Jump to content
  • 0

Raidboss Custom Code


BlackDevilDev

Question

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

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

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