ID:266682
 
Everytime I fight and kill a monster it gives me a bunch of errors stating

Emperor Beld (/mob/Player): Attack(null)
runtime error: Cannot read null.NPC
proc name: Attack (/mob/verb/Attack)
source file: Verbs.dm,23
usr: Emperor Beld (/mob/Player)
src: Emperor Beld (/mob/Player)
call stack:
Emperor Beld (/mob/Player): Attack(null)

I'm guessing that it means im attacking nothing and I can't figure out how to stop it.If you know how please help.
Emperor Beld wrote:
Everytime I fight and kill a monster it gives me a bunch of errors stating

Emperor Beld (/mob/Player): Attack(null)
runtime error: Cannot read null.NPC
proc name: Attack (/mob/verb/Attack)
source file: Verbs.dm,23
usr: Emperor Beld (/mob/Player)
src: Emperor Beld (/mob/Player)
call stack:
Emperor Beld (/mob/Player): Attack(null)

I'm guessing that it means im attacking nothing and I can't figure out how to stop it.If you know how please help.

Simple: At the beginning of the Attack verb, check to see if the argument (the mob under attack) is null. If it is, return.
verb/Attack(mob/M as mob in oview(1))
if(!M) return
...

Lummox JR