What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

How to target self for healing skill?

altnob

New Member
Joined
Nov 24, 2012
Messages
183
Reaction score
0
//if we have enouth mp and hp, or mobs want to kill us - try to find bestMob.
if ((mpp() > 35 && hpp() > 75) || getAggroMobs().Count > 0)
bestMob = GetBestNearestMob(zone);
if ((mpp() > 35 && hpp() < 75) || getAggroMobs().Count > 0)
UseSkill("Antithesis");

Using this to heal when not in combat if HP is < 75 and MPP > 35 but it won't do it unless I manually target myself.
 
before the use skill ... BUT one of the overloads of useskill is

public bool UseSkill(
string name,
bool autoCome,
bool selfTarget
)

So

UseSkill("Antithesis",false,true) will auto-self target you.
 
something like this
if ((mpp() > 35 && hpp() > 75) || getAggroMobs().Count > 0)
bestMob = GetBestNearestMob(zone);
if ((mpp() > 35 && hpp() < 75) || getAggroMobs().Count > 0)
SetTarget(me);
UseSkill("Antithesis");
 
Back
Top