ok, i need it so every 15 minutes (900 seconds) that the pet1hunnum -=1, or inother words, every 15 minutes i want the pets hunger to go down one, here is the code:
proc
hunger()
sleep(1200)
if(usr:pet1hunnum==0)
usr:pet1hun = "Ok"
usr:pet1hunnum -= 1
spawn(10) hunger()
if(usr:pet1hunnum==-1)
usr:pet1hun = "Hungry"
usr:pet1hunnum -= 1
spawn(10) hunger()
if(usr:pet1hunnum==-2)
usr:pet1hun = "Starving"
usr:pet1connum -= 1
spawn(10) hunger()
ID:176390
![]() Jan 19 2003, 3:57 pm
|
|
![]() Jan 19 2003, 5:55 pm
|
|
Do not use usr in procs. Do not use the colon operator, which is needed in many cases as a result of using usr.
|