Jump to content
  • 0

{QUESTION}Auto target self with heals & buffs.


Question

Posted

Hope someone knows something about this.

 

Basically what i want is to make heals and buffs that are TARGET_ONE type to automatically heal the caster when the target is a mob or a flagged player, unless he presses ctrl.

 

I noticed that when you try to heal a mob the char does nothing and no messages come up to say anything.

Also healing a flagged player needs no Ctrl button...NCsoft just disgusts me every time.

Anyway im trying to find where the f@#$ in the chaos of l2j does it say "Don't heal a mob unless ctrl is pressed"

but cant find it anywhere...ill keep on looking for tonight i hope i find it.

If anyone knows anything i would really apreciate the help.

2 answers to this question

Recommended Posts

  • 0
Posted

I'm kinda busy to look the whole crap to find you the correct place, but what can I say is the skill you try to use is registered as a SkillDat, than queued, than used in useMagic. The ctrl action is registered as forceUse boolean.

 

From here, it is used on many others places.

 

public boolean useMagic(L2Skill skill, boolean forceUse, boolean dontMove)

L2PcInstance.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock