ID:268017
 
"Vash Killed The Store Owner."
The storeowner is a mob and you can attack him i want to make it so you cant how can i do this? heres the code:
mob
verb
Attack1(mob/M in oview(1))
set category = "Actions"
set name = "Attack"
view() << "<small><I><font color = green>[usr] beats on [M]"
M.powerlevel -= usr.powerlevel * 1
M.DeathCheck()
if(istype(M,/mob/player))
if(M.dead == 1)
usr << "They Are Dead Already"
return
else
if(usr.dead == 1)
usr << "Your Dead,Cant Attack an Alive Person Dumby"
return
else
return
Change mob/M to mob/attackable/M.

Make everything you want to attack a mob/attackable/whatever, make everything you don't want to attack a mob/unattackable/whatever. That includes players. Any variables required for combat and such should go under mob/attackable, instead of just /mob.
In response to Garthor
Thanks