Level_Player(M as mob in world, N as num)
set category = "IMP"
if (!M:client)
usr << "[M] is not a player!"
return
var/choice = alert("Level [M] to [N]?", "Level Player", "Yes", "No")
if (choice == "Yes")
while (M:level < N)
M:exp = M:maxexp
M:levelup()
Problem description:
This code works all fine and good until the player gets to level 105, they stop leveling. Also, the players experience and max experience dropped down to 0. I tried rebooting the game to see if it was just messing up but it kept on giving me this message.
Infinite loop suspected--switching proc to background.
If it is not an infinite loop, either do 'set background=1' or set world.loop_checks=0.
proc name: Level Player (/mob/pc/imp/a/b/verb/Level_Player)
usr: Killa (/mob/pc/imp/a/b/c)
src: Killa (/mob/pc/imp/a/b/c)
call stack:
Killa (/mob/pc/imp/a/b/c): Level Player(Killa (/mob/pc/imp/a/b/c), 250)
Do NOT use : when . is acceptable.