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

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