Jump to content

Question

4 answers to this question

Recommended Posts

  • 0
Posted

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

  • 0
Posted (edited)

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
  • 0
Posted (edited)

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

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

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..