mob
proc
Deathcheck(mob/M)
if(usr.hp<=0)
hp=0
if(usr.Bendingability=="Eart")
usr<<"You have been killed by [M]"
usr.hp=usr.Mhp
usr.Death+=1
M<<"You have killed [M]"
M.kills+=1
usr.loc=locate(16,64,1)
if(usr.Bendingability=="Water")
usr<<"You have been killed by [M]"
usr.hp=usr.Mhp
usr.Death+=1
M<<"You have killed [M]"
M.kills+=1
usr.loc=locate(20,56,1)
if(usr.Bendingability=="Fire")
usr<<"You have been killed by [M]"
usr.hp=usr.Mhp
usr.Death+=1
M<<"You have killed [M]"
M.kills+=1
usr.loc=locate(11,56,1)
if(usr.Bendingability=="Wind")
usr<<"You have been killed by [M]"
usr.hp=usr.Mhp
usr.Death+=1
M<<"You have killed [M]"
M.kills+=1
usr.loc=locate(20,64,1)
runtime error: Cannot read null.kills
proc name: Deathcheck (/mob/proc/Deathcheck)
usr: the hgghgh (/mob)
src: the hgghgh (/mob)
call stack:
the hgghgh (/mob): Deathcheck(null)
the hgghgh (/mob): kill(the hgghgh (/mob))
You have been killed by :
could someone plz help me with this, with help i mean with what i did wrong with this code so i wont make the same mistake again
thx for taking the time to read this
Put in a parameter when you call your proc.