ID:178368
 
mob
Stat()
..()
statpanel("Stats")//Stats
stat("Health -",health)
stat("Strength -",Strength)
verb/Attack(mob/M as mob in oview(1))//For all mobs
if(M.pk == 1)
var/damage = usr.Strength/ rand(1,3)//damage is the attack var divided by a random number between 1 and 3
M.health -= round(damage,1)//ouch you lose power
M << "[usr] attacked you for [round(damage,1)] damage!"
usr << "You attacked [M] for [round(damage,1)] damage!"
M.deathcheck()//handle death
else
usr <<"You can only attack in the wilderness!"
M <<"[usr] tryed to attack you.. but you must be in the wilderness!"
proc/deathcheck()
if(src.health <= 0)
world<<"[src] was killed!"
src.Move(locate(1,1,1))
if(!src.client)//Not a player
del(src)//Bye you NPC!

what would i put in the if to find if usr and M HAS A pk var of 1?
<code>if(usr.pk == 1 && M.pl == 1)</code>

The && thingy basically means "AND" when used this way.