Skip to content

Raidboss Custom Code

Featured Replies

hi i want create a custom code  and focus raidboss , when dead a rb i want do something but i need for all raidboss in world. What class need use for that ? I use L2JServer

doDie() L2RaidBossInstance maybe? Else, you can create a custom script with overriden doDie() to don't see the core.

  • Author

public boolean doDie(L2Character killer)
{
if (!super.doDie(killer))
{
return false;
}


final L2PcInstance player = killer.getActingPlayer();
if (player != null)
{
broadcastPacket(SystemMessage.getSystemMessage(SystemMessageId.CONGRATULATIONS_YOUR_RAID_WAS_SUCCESSFUL));
if (player.getParty() != null)
{
for (L2PcInstance member : player.getParty().getMembers())
{
member.setRaidPoints(member.getRaidPoints() + (getLevel() / 2) + Rnd.get(-5, 5));
if (member.isNoble())
{
Hero.getInstance().setRBkilled(member.getObjectId(), getId());
}
}
}
else
{
player.setRaidPoints(player.getRaidPoints() + (getLevel() / 2) + Rnd.get(-5, 5));
if (player.isNoble())
{
Hero.getInstance().setRBkilled(player.getObjectId(), getId());
}
}
}


RaidBossSpawnManager.getInstance().updateStatus(this, true);
return true;
}

Just i can add my fuction in code only this?

Edited by BlackDevilDev

It's total bullshit.

 

What I meant is.. Open the file and put your custom code under doDie method, which handles the die. What you want to do?

Edited by SweeTs

  • Author

That i want do is insert i an a custom .sql some values, like count rb deads on world.

Create an account or sign in to comment

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.