I've searched around, and can't find any good answers on this one...
In stock smaug (1.4a), the formula the code uses to calculate experience needed for the next level is (lvl * lvl * lvl * exp_base) and is located in handler.c. What I'm trying to accomplish is to make the exp needed for the next lvl just be the (lvl * expbase).
I'm guessing the former formula must be adhered to, because if i change that line to just be (lvl * exp_base) then not only does experience needed not get calculated correctly, but it also seems that from that point on, the char receives no experience at all for anything they kill.
Code is still mostly stock, although i've commented out the code that gives experience for each successful hit, and plan on removing the code that gives experience for using skills and spells. I want players to only receive exp for the actual kill.
Am i looking in the wrong place? Does it need to be changed somewhere else? I've been staring at this for a couple days now, and can't see why it's not calculating correctly. I'm not the world's best coder, but I've been on a roll getting other things to work...this one is giving me a huge headache though (: Anyone?
Kurt
In stock smaug (1.4a), the formula the code uses to calculate experience needed for the next level is (lvl * lvl * lvl * exp_base) and is located in handler.c. What I'm trying to accomplish is to make the exp needed for the next lvl just be the (lvl * expbase).
I'm guessing the former formula must be adhered to, because if i change that line to just be (lvl * exp_base) then not only does experience needed not get calculated correctly, but it also seems that from that point on, the char receives no experience at all for anything they kill.
Code is still mostly stock, although i've commented out the code that gives experience for each successful hit, and plan on removing the code that gives experience for using skills and spells. I want players to only receive exp for the actual kill.
Am i looking in the wrong place? Does it need to be changed somewhere else? I've been staring at this for a couple days now, and can't see why it's not calculating correctly. I'm not the world's best coder, but I've been on a roll getting other things to work...this one is giving me a huge headache though (: Anyone?
Kurt