fodev.net
FOnline Development => Questions and Answers => Topic started by: fonliner on July 08, 2014, 09:00:29 pm
-
Can anyone tell me how to remove lvl cap or make it higher than 24 lvl? I would like to know how to spawn NPC which gives you experience and some equipment? I know that there were something like hubologists but I can not find them.
-
you can change the level cap in config.fos file. search " __LevelCap = ".
~getaccess account password
`addnpc 486 -d 10809 -l 9999
items
`addnpc 278 -d 10802 -l 9999
lvl, perks, etc.
-
When I have 24 lvl NPC can not give me more exp but I changed lvl cap. I can only use `param 0 76 exp to get higher lvl than 24. How to solve it?
-
In file dialog_altruist.fos
In function void r_Give(Critter& player, Critter@ npc, int val) { }
change few values to YOUR_CURRENT_LVL_CAP:
case 0:
{
int level = player.Stat[ST_LEVEL];
if(level > YOUR_CURRENT_LVL_CAP-1)
{
player.Say(SAY_NORM_ON_HEAD, "Wait, it can't be that good.");
return;
}
level++;
int exp = level * (level - 1) * 500;
player.StatBase[ST_EXPERIENCE] += (exp - player.StatBase[ST_EXPERIENCE]);
return;
}
case 1:
{
int level = player.Stat[ST_LEVEL];
if(level > YOUR_CURRENT_LVL_CAP-2)
{
player.Say(SAY_NORM_ON_HEAD, "No, wait.");
return;
}
level += 3;
if(level > YOUR_CURRENT_LVL_CAP)
level = YOUR_CURRENT_LVL_CAP;
int exp = level * (level - 1) * 500;
player.StatBase[ST_EXPERIENCE] += (exp - player.StatBase[ST_EXPERIENCE]);
return;
}
-
Ok thx, works good.