ID:146406
 
Code:
world
New()
spawn() usr.attack_delay()
..()

mob
proc
attack_delay()
while(1)
sleep(10)
if(src.timer>=src.weapon_delay)
return 0
if(src.timer==(src.weapon_delay-1))
src << "<small>Melee ready!</small>"
src.timer++
if(src.timer<=src.weapon_delay)
src.timer++


Problem description:

I get this runtime error everytime I start the world up:

runtime error: Cannot execute null.attack delay().
proc name: New (/world/New)
usr: null
src:
call stack:
: New()

Any ideas on what's going on?
Well, first of all, usr is null at world.New(), which is the cause of that particular runtime, and second, even if that wasn't the case, you would be abusing usr, so you would have problems anyway. Please read the usr lecture. =P
Yes.

The runtime error says "Cannot execute null.attack delay().". Which means that there's nothing using attackdelay().

So why isn't anything using attackdelay? Well in a world's proc, you assume there'll be a usr. Look up what usr is and read usr Unfriendly.