RedHoT Posted October 26, 2013 Posted October 26, 2013 I want my npc cast the skills by this way... ...but when I click to buff it do this way: 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)
0 RedHoT Posted October 28, 2013 Author Posted October 28, 2013 damn! Its the Npc Template <_< I changed to the first npc template (31324) and work successfully. Thanks to all :)
0 SweeTs Posted October 26, 2013 Posted October 26, 2013 (edited) As Tk said or getEffects(this, player) Two possibilities. Edited October 26, 2013 by SweeTs
0 xdem Posted October 26, 2013 Posted October 26, 2013 change 'this' to player, cause probably this referst to the npc if it is into l2bufferInstance
0 RedHoT Posted October 28, 2013 Author Posted October 28, 2013 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"
Question
RedHoT
I want my npc cast the skills by this way...
...but when I click to buff it do this way:
My code for buff + action:
Someone knows how to solve this?
Thanks a lot (And sorry for my english)
5 answers to this question
Recommended Posts