![]() |
[BUG]Carry Over Exp - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: Source Code Development (https://mirage-engine.uk/forums/forumdisplay.php?fid=51) +----- Forum: Mirage Source 4 (Visual Basic 6) (https://mirage-engine.uk/forums/forumdisplay.php?fid=44) +----- Thread: [BUG]Carry Over Exp (/showthread.php?tid=2400) |
[BUG]Carry Over Exp - Azrael - 25-11-2008 Hi there, didn't see it mentioned so here I go. In version 3.59 Roll over exp was added, but I beileve its nots working correctly as it does its calculation after player has a new (and higher) NextLevelExp. This gave me atleast, a negative exp number when leveling up. Here is the Code: Code: Sub CheckPlayerLevelUp(ByVal Index As Long) To fix it, simply add a variable "expRollover" and have the calculation give this variable the value right after the Exp >= NextLevel check. Then obviously use this new variable as the setExp parameter. Example: Code: Sub CheckPlayerLevelUp(ByVal Index As Long) and there you go, I'm very much a VB6 noob so sorry if I missed something. Re: [BUG]Carry Over Exp - genusis - 25-11-2008 has anyone else noticed this? Re: [BUG]Carry Over Exp - genusis - 25-11-2008 yep i think he is right looks like it would negative out ^^. |