Jump to content
  • 0

{QUESTION}Auto target self with heals & buffs.


Petosaur

Question

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.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...