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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock