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

damn! Its the Npc Template <_<

 

I changed to the first npc template (31324) and work successfully.

 

Thanks to all :)

  • 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...