"Infinite procs" in login proc? in Developer Help
|
|
Hello, I need help here.
mob proc Recsta() recust if(usr.stamina >= usr.maxstamina) usr.stamina = usr.maxstamina sleep(50) goto recust usr.stamina += 10 sleep(50) goto recust
mob proc Logando() world<<"<font color = green>[src]([src.key]) acabou de logar no Servidor" src.Recsta() src.Rechp() src.RecuperandoChakra() src.Perdervip()
|
All of this procs are like the first proc, with GOTO.
But when you log, only the first run, others don't, how can I do all of them run??
Thanks
|
Also goto loops work, but using a for or while loop may make the code less confusing.