SHOW:
|
|
- or go back to the newest paste.
1 | Index: config/players.properties | |
2 | =================================================================== | |
3 | --- config/players.properties (revision 7) | |
4 | +++ config/players.properties (working copy) | |
5 | @@ -174,6 +174,17 @@ | |
6 | PartyRange = 1500 | |
7 | ||
8 | #============================================================= | |
9 | +# Party Nobles | |
10 | +#============================================================= | |
11 | + | |
12 | +# ----------------------------------------------------- | |
13 | +# Nobles Killing Barakiel | |
14 | +# ----------------------------------------------------- | |
15 | +# Turn Mod On or Off for Nobles Killing Barakiel | |
16 | +# Default: False | |
17 | +RaidBossNobles = True | |
18 | + | |
19 | +#============================================================= | |
20 | # GMs / Admin Stuff | |
21 | #============================================================= | |
22 | ||
23 | Index: java/net/sf/l2j/Config.java | |
24 | =================================================================== | |
25 | --- java/net/sf/l2j/Config.java (revision 7) | |
26 | +++ java/net/sf/l2j/Config.java (working copy) | |
27 | @@ -119,6 +119,12 @@ | |
28 | public static int CH_FRONT2_FEE; | |
29 | ||
30 | // -------------------------------------------------- | |
31 | + // Custom Nobless Kill Barakiel | |
32 | + // -------------------------------------------------- | |
33 | + | |
34 | + public static boolean ENABLE_RAIDBOSS_NOBLES; | |
35 | + | |
36 | + // -------------------------------------------------- | |
37 | // Events settings | |
38 | // -------------------------------------------------- | |
39 | ||
40 | @@ -1126,6 +1132,9 @@ | |
41 | ||
42 | MAX_BUFFS_AMOUNT = players.getProperty("MaxBuffsAmount", 20); | |
43 | STORE_SKILL_COOLTIME = players.getProperty("StoreSkillCooltime", true); | |
44 | + | |
45 | + // Custom | |
46 | + ENABLE_RAIDBOSS_NOBLES = Boolean.parseBoolean(players.getProperty("RaidBossNobles", "false")); | |
47 | } | |
48 | ||
49 | /** | |
50 | Index: java/net/sf/l2j/gameserver/model/actor/instance/RaidBoss.java | |
51 | =================================================================== | |
52 | --- java/net/sf/l2j/gameserver/model/actor/instance/RaidBoss.java (revision 7) | |
53 | +++ java/net/sf/l2j/gameserver/model/actor/instance/RaidBoss.java (working copy) | |
54 | @@ -16,6 +16,8 @@ | |
55 | import net.sf.l2j.gameserver.model.group.Party; | |
56 | import net.sf.l2j.gameserver.model.spawn.Spawn; | |
57 | import net.sf.l2j.gameserver.network.SystemMessageId; | |
58 | +import net.sf.l2j.gameserver.network.serverpackets.ItemList; | |
59 | +import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage; | |
60 | import net.sf.l2j.gameserver.network.serverpackets.PlaySound; | |
61 | import net.sf.l2j.gameserver.network.serverpackets.SystemMessage; | |
62 | ||
63 | @@ -117,6 +119,20 @@ | |
64 | { | |
65 | for (Player member : party.getMembers()) | |
66 | { | |
67 | + if (Config.ENABLE_RAIDBOSS_NOBLES) | |
68 | + { | |
69 | + if (getNpcId() == 25325 && !member.isNoble() && member.isIn3DRadius(getX(), getY(), getZ(), 1000)) | |
70 | + { | |
71 | + member.setNoble(true, true); | |
72 | + NpcHtmlMessage html = new NpcHtmlMessage(getObjectId()); | |
73 | + 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>"); | |
74 | + member.sendPacket(html); | |
75 | + member.getInventory().addItem("Nobles Circlets", 7694, 1, member, null); | |
76 | + member.sendPacket(new ItemList(member, true)); | |
77 | + member.sendMessage("You receive the Noblesse Tiara"); | |
78 | + } | |
79 | + } | |
80 | + | |
81 | RaidPointManager.getInstance().addPoints(member, getNpcId(), (getStatus().getLevel() / 2) + Rnd.get(-5, 5)); | |
82 | if (member.isNoble()) | |
83 | HeroManager.getInstance().setRBkilled(member.getObjectId(), getNpcId()); | |
84 | @@ -124,6 +140,20 @@ | |
85 | } | |
86 | else | |
87 | { | |
88 | + if (Config.ENABLE_RAIDBOSS_NOBLES) | |
89 | + { | |
90 | + if (getNpcId() == 25325 && !player.isNoble()) | |
91 | + { | |
92 | + player.setNoble(true, true); | |
93 | + NpcHtmlMessage html = new NpcHtmlMessage(getObjectId()); | |
94 | + 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>"); | |
95 | + player.sendPacket(html); | |
96 | + player.getInventory().addItem("Nobles Circlets", 7694, 1, player, null); | |
97 | + player.sendPacket(new ItemList(player, true)); | |
98 | + player.sendMessage("You receive the Noblesse Tiara"); | |
99 | + } | |
100 | + } | |
101 | + | |
102 | RaidPointManager.getInstance().addPoints(player, getNpcId(), (getStatus().getLevel() / 2) + Rnd.get(-5, 5)); | |
103 | if (player.isNoble()) | |
104 | HeroManager.getInstance().setRBkilled(player.getObjectId(), getNpcId()); | |
105 |