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.
ID:266682
May 18 2002, 9:37 am
|
|
Simple: At the beginning of the Attack verb, check to see if the argument (the mob under attack) is null. If it is, return.
Lummox JR