ID:266413
 
runtime error: bad arg name 'lag'
proc name: s missile (/proc/s_missile)
usr: DBZFreak (/mob)
src: null
call stack:
s missile()
DBZFreak (/mob): Energy Attack(Mutated Man (/mob/Mutated_Man))


What does that mean?




mob/verb/Energy_Attack(mob/m in oview(5))
s_missile('blast.dmi',"blast",usr,m,lag=1)



Thats the code
don't set 'lag=1' just set '1'
In response to Foomer
runtime error: Cannot read null.HP
proc name: deathcheck (/mob/proc/deathcheck)
source file: NPC.dm,101
usr: DBZFreak (/mob)
src: DBZFreak (/mob)
call stack:
DBZFreak (/mob): deathcheck(null)
DBZFreak (/mob): Energy Attack(Mutated Man (/mob/Mutated_Man))


Im getting that now
mob/verb/Energy_Attack(mob/m in oview(5))
if(usr.Magic>=5)
s_missile('blast.dmi',"blast",usr,m,1,1)
usr.Magic-=5
var/damage=usr.Mstr
m.HP-=damage
deathcheck()






ob/proc/deathcheck(mob/M as mob)//handles death
if(M.HP<=0)//checks health
if(M.client)//if is a player
M.loc = locate(1,1,1)//restarts
M.HP = M.HPMax//resets health
M<<"[src] killed you!"//tells you, you were killed.

else//not a player
src<<"You killed [M]!"//Tells you who you killed
M.loc = locate(rand(1,world.maxx),rand(1,world.maxy),rand(1,world.ma xz))
//random location after death