Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: config/players.properties
- ===================================================================
- --- config/players.properties (revision 7)
- +++ config/players.properties (working copy)
- @@ -174,6 +174,17 @@
- PartyRange = 1500
- #=============================================================
- +# Party Nobles
- +#=============================================================
- +
- +# -----------------------------------------------------
- +# Nobles Killing Barakiel
- +# -----------------------------------------------------
- +# Turn Mod On or Off for Nobles Killing Barakiel
- +# Default: False
- +RaidBossNobles = True
- +
- +#=============================================================
- # GMs / Admin Stuff
- #=============================================================
- Index: java/net/sf/l2j/Config.java
- ===================================================================
- --- java/net/sf/l2j/Config.java (revision 7)
- +++ java/net/sf/l2j/Config.java (working copy)
- @@ -119,6 +119,12 @@
- public static int CH_FRONT2_FEE;
- // --------------------------------------------------
- + // Custom Nobless Kill Barakiel
- + // --------------------------------------------------
- +
- + public static boolean ENABLE_RAIDBOSS_NOBLES;
- +
- + // --------------------------------------------------
- // Events settings
- // --------------------------------------------------
- @@ -1126,6 +1132,9 @@
- MAX_BUFFS_AMOUNT = players.getProperty("MaxBuffsAmount", 20);
- STORE_SKILL_COOLTIME = players.getProperty("StoreSkillCooltime", true);
- +
- + // Custom
- + ENABLE_RAIDBOSS_NOBLES = Boolean.parseBoolean(players.getProperty("RaidBossNobles", "false"));
- }
- /**
- Index: java/net/sf/l2j/gameserver/model/actor/instance/RaidBoss.java
- ===================================================================
- --- java/net/sf/l2j/gameserver/model/actor/instance/RaidBoss.java (revision 7)
- +++ java/net/sf/l2j/gameserver/model/actor/instance/RaidBoss.java (working copy)
- @@ -16,6 +16,8 @@
- import net.sf.l2j.gameserver.model.group.Party;
- import net.sf.l2j.gameserver.model.spawn.Spawn;
- import net.sf.l2j.gameserver.network.SystemMessageId;
- +import net.sf.l2j.gameserver.network.serverpackets.ItemList;
- +import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage;
- import net.sf.l2j.gameserver.network.serverpackets.PlaySound;
- import net.sf.l2j.gameserver.network.serverpackets.SystemMessage;
- @@ -117,6 +119,20 @@
- {
- for (Player member : party.getMembers())
- {
- + if (Config.ENABLE_RAIDBOSS_NOBLES)
- + {
- + if (getNpcId() == 25325 && !member.isNoble() && member.isIn3DRadius(getX(), getY(), getZ(), 1000))
- + {
- + member.setNoble(true, true);
- + NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
- + html.setHtml("<html><body><title>Congratulations!!!</title><br><center><img src=l2font-e.replay_logo-e width=255 height=60><br><br><br><br><font color=\"LEVEL\">Congratulations!</font><br><br>You acquired all<br1>status from a Noblesse.<br><br><table><tr><td><img src=icon.skill1323 width=32 height=32></td><td width=5></td><td><img src=icon.skill1324 width=32 height=32></td><td width=5></td><td><img src=icon.skill1325 width=32 height=32></td><td width=5></td><td><img src=icon.skill1326 width=32 height=32></td></tr><tr></tr><tr></tr><tr><td><img src=icon.skill1327 width=32 height=32></td><td width=5></td><td><img src=icon.skill0325 width=32 height=32></td><td width=5></td><td><img src=icon.skill0326 width=32 height=32></td><td width=5></td><td><img src=icon.skill0327 width=32 height=32></td></tr></table></center></body></html>");
- + member.sendPacket(html);
- + member.getInventory().addItem("Nobles Circlets", 7694, 1, member, null);
- + member.sendPacket(new ItemList(member, true));
- + member.sendMessage("You receive the Noblesse Tiara");
- + }
- + }
- +
- RaidPointManager.getInstance().addPoints(member, getNpcId(), (getStatus().getLevel() / 2) + Rnd.get(-5, 5));
- if (member.isNoble())
- HeroManager.getInstance().setRBkilled(member.getObjectId(), getNpcId());
- @@ -124,6 +140,20 @@
- }
- else
- {
- + if (Config.ENABLE_RAIDBOSS_NOBLES)
- + {
- + if (getNpcId() == 25325 && !player.isNoble())
- + {
- + player.setNoble(true, true);
- + NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
- + html.setHtml("<html><body><title>Congratulations!!!</title><br><center><img src=l2font-e.replay_logo-e width=255 height=60><br><br><br><br><font color=\"LEVEL\">Congratulations!</font><br><br>You acquired all<br1>status from a Noblesse.<br><br><table><tr><td><img src=icon.skill1323 width=32 height=32></td><td width=5></td><td><img src=icon.skill1324 width=32 height=32></td><td width=5></td><td><img src=icon.skill1325 width=32 height=32></td><td width=5></td><td><img src=icon.skill1326 width=32 height=32></td></tr><tr></tr><tr></tr><tr><td><img src=icon.skill1327 width=32 height=32></td><td width=5></td><td><img src=icon.skill0325 width=32 height=32></td><td width=5></td><td><img src=icon.skill0326 width=32 height=32></td><td width=5></td><td><img src=icon.skill0327 width=32 height=32></td></tr></table></center></body></html>");
- + player.sendPacket(html);
- + player.getInventory().addItem("Nobles Circlets", 7694, 1, player, null);
- + player.sendPacket(new ItemList(player, true));
- + player.sendMessage("You receive the Noblesse Tiara");
- + }
- + }
- +
- RaidPointManager.getInstance().addPoints(player, getNpcId(), (getStatus().getLevel() / 2) + Rnd.get(-5, 5));
- if (player.isNoble())
- HeroManager.getInstance().setRBkilled(player.getObjectId(), getNpcId());
Add Comment
Please, Sign In to add comment