mob
monster
Slime
icon = 'slimes.dmi'
icon_state = "blue"
name = "Slime"
hp = 6
mp = 0
expreward = 3
jobexpreward = 0
gold = 2
attack = 5
defense = 2
intelligence = 5
agility = 4
Bumped(O)
if(src.islocked == 1)
usr << "<font color = blue><b>Someone is already fighting this monster!"
else
usr.islocked=1
src.islocked=1
Battle(O)
and heres the logout code(if it will help):
mob
Logout()
if(usr.lib == 1)
src.islocked = 0
if(src.color == null)
return ..()
world << "<font color = teal><b>[src.name]([src.key]) logs out."//tell the world the client logged out
usr.savex = usr.x
usr.savey = usr.y
usr.savez = usr.z
..()
The var lib is made 1 when u enter combat.