Author Topic: Lvl cap and getting exp from NPCs  (Read 2672 times)

Lvl cap and getting exp from NPCs
« 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.

Re: Lvl cap and getting exp from NPCs
« Reply #1 on: July 09, 2014, 02:43:14 am »
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.
« Last Edit: July 09, 2014, 02:45:41 am by sasha »

Re: Lvl cap and getting exp from NPCs
« Reply #2 on: July 09, 2014, 09:22:22 pm »
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?

Re: Lvl cap and getting exp from NPCs
« Reply #3 on: July 10, 2014, 01:34:18 am »
In file dialog_altruist.fos
In function void r_Give(Critter& player, Critter@ npc, int val) { }
change few values to YOUR_CURRENT_LVL_CAP:
Code: [Select]
    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;
    }

Re: Lvl cap and getting exp from NPCs
« Reply #4 on: July 10, 2014, 03:01:56 pm »
Ok thx, works good.