Jump to content
  • 0

Pvp Flag Raidbosses


Question

Posted

Hello guys... i need to add skill or something like at RaidBosses and when hes take dmg from ppl to Flag all players near rb... 

if any1 can help me?? ty!!

3 answers to this question

Recommended Posts

  • 0
Posted

go on L2RaidBossInstance.java

add the @override method 

 

 

@Override

public void doAttack(final L2Character attacker)
{
 
}

 

And inside this add your code 

 

 

for (L2PcInstance player : getKnownList().getKnownPlayers())

{

    player.setPvPFlag(1); 

}

 

or something like that... But consider that you need to add a threadpool or a check to avoid this to be happen on every hit cause is useless flame. 

  • 0
Posted

You must override onEvtAttacked. Flagging all people is "costy" since you mustn't control who is actually flagged and it's anyway part of the flag effect (refresh), but flagging only the attacker is easy.

  • 0
Posted

go on L2RaidBossInstance.java

add the @override method 

 

 

And inside this add your code 

 

 

or something like that... But consider that you need to add a threadpool or a check to avoid this to be happen on every hit cause is useless flame. 

i need more help :)

 

 

 

You must override onEvtAttacked. Flagging all people is "costy" since you mustn't control who is actually flagged and it's anyway part of the flag effect (refresh), but flagging only the attacker is easy.

you can help me more?? i dont understand you.... :(

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