ID:180174
 
ok here is my code

heala
icon = 'Healer.dmi'
Click()
usr.health = usr.max_health
usr.magic = usr.max_magic
usr << "You are heald"


but it domt matter where you click even if its on the ground it still heals you....how do i make it so u only get healed when u click the healer..?
Eponick wrote:
ok here is my code

heala
icon = 'Healer.dmi'
Click()
usr.health = usr.max_health
usr.magic = usr.max_magic
usr << "You are heald"


but it domt matter where you click even if its on the ground it still heals you....how do i make it so u only get healed when u click the healer..?

Make that Click() proc a part of heala by indenting it under heala:
heala
icon = 'Healer.dmi'
Click()
usr.health = usr.max_health
usr.magic = usr.max_magic
usr << "You are heald"

Now this Click() proc overides the general Click() proc for heala and it's child objects. (Mobs I assume)