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.


  • Posts

    • TILL START LEFT LESS THAN - 2 DAYS ! GRAND OPENING FROM - 17/12/2021, FRIDAY, 20:00 +3 GMT !
    • [L2 Nostalgia – Interlude x3] Grand Opening June 1st, 2025 @ 18:00 GMT+3     [L2 Nostalgia – Interlude x3] A True Classic Returns – Grand Opening June 1st, 2025 @ 18:00 GMT+3   The Golden Age of Lineage 2   Rediscover the magic of Lineage 2 Interlude on a carefully crafted low-rate server that respects the original experience while offering modern quality-of-life improvements.   Chronicle: Interlude Rates: x3 EXP/SP – x2 Adena x3 Drop/Spoil Balanced & Fair: No Pay-to-Win Clean & Retail-like: No custom items or edits   Want more details?   Check out all the features here  https://l2-nostalgia.com/   Private Beta Test A 3-day closed beta will launch on Saturday, May 17 at 20:00 GMT+3, exclusively for members of our Discord community. During the beta, testers will have access to special commands and tools to speed up progression and help us fine-tune gameplay.   To join the beta, you must be in our Discord. Join here: https://discord.com/invite/hGbVVNWnzA Join the community. Feel the nostalgia. L2 Nostalgia – For those who remember.
    • From 1600$ to 200 euro good price 🙂 @SkyLord u price with fixes same ? 😄
    • 🌌 [L2 Nostalgia – Interlude x3] Grand Opening June 1st, 2025 @ 18:00 GMT+3     🌌 [L2 Nostalgia – Interlude x3] A True Classic Returns – Grand Opening June 1st, 2025 @ 18:00 GMT+3   The Golden Age of Lineage 2   Rediscover the magic of Lineage 2 Interlude on a carefully crafted low-rate server that respects the original experience while offering modern quality-of-life improvements.   ✅ Chronicle: Interlude ✅ Rates: x3 EXP/SP – x2 Adena ✅ x3 Drop/Spoil ✅ Balanced & Fair: No Pay-to-Win ✅ Clean & Retail-like: No custom items or edits   🎯 Want more details?   Check out all the features here 👉 https://l2-nostalgia.com/   🧪 Private Beta Test A 3-day closed beta will launch on Saturday, May 17 at 20:00 GMT+3, exclusively for members of our Discord community. During the beta, testers will have access to special commands and tools to speed up progression and help us fine-tune gameplay.   👾 To join the beta, you must be in our Discord. 🔗 Join here: https://discord.com/invite/hGbVVNWnzA 💬 Join the community. Feel the nostalgia. ⚔️ L2 Nostalgia – For those who remember.
  • Topics

×
×
  • Create New...