mob
Move()
if(!usr.walk)
return 0
else
sleep(usr.speed)
return 1
Ok, i want it so where when walk=1 they cant move then when they move it sleeps for speed so they cant run super fast. i dont know why it wont work
ID:264219
![]() Oct 25 2008, 6:59 am
|
|
Ungh. No put usr in proc.
Meh. Put your code between the <DM> tags when posting, not above them. Bah. You should look up Move() (and perhaps learn some more) to see how it even works before messing with it, since whether you immediately return 0 or 1 in your override, no movement will take place. Unsurprisingly, Move() is the proc which makes the actual movement, so if you're terminating it after overriding it without calling the default action first, of course no movement will be done. Also, you should really override client/Move() for this, instead of mob/Move(). |
First of all, you should put your code in the middle of DM tags
at the start of your code and mob You also should try looking at some libraries before asking here. |
if(walk) = if walk is true (not 0, "", or null)
if(!walk) = if walk is false (0, "", or null)