Jump to content
  • 0

[HELP] Player gets flagged when hit raid boss


Question

Posted

Hello everyone, I wanted to ask if someone could help me doing this feature like topic says.

 

The thing is, I want to make that if any player hits raidboss, he gets flagged.

 

Maybe doing something in L2PcInstance that if player attacks a npc (instance of L2RaidBoss) gets flagged? Or maybe doing something in L2RaidBossInstance?

 

Please, I really need this feature, thank you.

2 answers to this question

Recommended Posts

  • 0
Posted

go to L2RaidBossInstance, override onReduceCurrentHp method and add in there:

if(attacker.isPlayer())

attacker.startPvPFlag(null);

super.onReduceCurrentHp(attacker, something....);

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