![]() |
Simple EXP Carry-Over - 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: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49) +---- Thread: Simple EXP Carry-Over (/showthread.php?tid=305) |
Simple EXP Carry-Over - Tutorial Bot - 13-09-2006 Author: Magnus Difficulty: 1/5 :: SERVER SIDE :: Find: Code: Sub CheckPlayerLevelUp(ByVal Index As Long) Code: Dim ExtraEXP As Long Now, add this before any of the other comment stuff: Code: If GetPlayerExp(Index) > GetPlayerNextLevel(Index) Then Code: Call SetPlayerExp(Index, 0) Code: Call SetPlayerExp(Index, ExtraEXP) Code: Call CheckPlayerLevelUp(Index) Re: Simple EXP Carry-Over - Joost - 04-03-2008 Slightly better way to do it. Code: Sub CheckPlayerLevelUp(ByVal Index As Long) |