Jump to content
  • 0

Broadcast Skills By Npc


Question

Posted

I want my npc cast the skills by this way...

loBJYuj.png

 

...but when I click to buff it do this way:

BbVN3W6.png

 

My code for buff + action:

MagicSkillUse mgc = new MagicSkillUse(this, player, buffId, buffLevel, 5, 0);
SkillTable.getInstance().getInfo(buffId, buffLevel).getEffects(player, player);
player.broadcastPacket(mgc);

Someone knows how to solve this?

Thanks a lot (And sorry for my english)

 

5 answers to this question

Recommended Posts

  • 0
Posted
new MagicSkillUse(player, player,...

?

 

 

As Tk said or

getEffects(this, player)

Two possibilities.

Thanks to all, but not work :/

 

change 'this' to player, cause probably this referst to the npc if it is into l2bufferInstance

 

What I want is the NPC cast the skill on the player, so I have to use "this"

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..