I was searching through the fourms and everyone said client.click is EVIL! and now I see why. I need to know how to make it so more than 1 click() works. I currently have one for attack, but i also want to have click() open door and tresure chest, and a click() login screen.
heres the click attack one, what do i do to male it work for the others?
client.Click(mob/m/M in AtomTypeInRange(src, 1, /mob/m))
if(istype(M,/mob/m)) if(M in range(1))
var/maxdamage = usr.attack - M.defense - (M.agility / 15)
var/damage = rand ((maxdamage / 2), maxdamage)
usr << "You attack [M]!"
usr << "You Do [damage] damage!"
M << "[usr] attacks you!"
M << "[usr] Does [damage] damage!"
M.HP -= damage
Please, please help me =)