| RedHoT |
29-09-2013 12:39 PM |
Noblesse Manager
Descrição: Depois de ter concluído três rebirths, você precisará coletar diversos itens a partir dos seguintes raid bosses, a fim de se tornar um Noblesse:
- Death Lord Hallate
- Kernon
- Longhorn Golkonda
- Shilen's Messenger Cabrio
Depois de coletar todos os itens e seu personagem ter lvl78, você poderá ir ao Noblesse NPC "Eddy Wally" que está localizado nas escadas de Aden Town, e se tornar um Noblesse.
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
[Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
Core Patch
Código:
### Eclipse Workspace Patch 1.0
#P aCis_gameserver
Index: java/net/sf/l2j/gameserver/model/actor/instance/L2NoblesseInstance.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/instance/L2NoblesseInstance.java (revision 0)
+++ java/net/sf/l2j/gameserver/model/actor/instance/L2NoblesseInstance.java (working copy)
@@ -0,0 +1,134 @@
+/*
+ * This program is free software: you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation, either version 3 of the License, or (at your option) any later
+ * version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package net.sf.l2j.gameserver.model.actor.instance;
+
+import net.sf.l2j.Config;
+import net.sf.l2j.gameserver.network.serverpackets.NpcHtmlMessage;
+import net.sf.l2j.gameserver.templates.chars.L2NpcTemplate;
+
+/**
+ * Noblesse Manager
+ * @author Trance
+ * @skype chr.trance
+ */
+public final class L2NoblesseInstance extends L2NpcInstance
+{
+ private static final int BLACK_CROWN = 9210;
+ private static final int GOLD_CROWN = 9211;
+ private static final int RED_CROWN = 9212;
+ private static final int SILVER_CROWN = 9213;
+ private static final int NOBLESSE_TIARA = 7694;
+
+ public L2NoblesseInstance(int objectId, L2NpcTemplate template)
+ {
+ super(objectId, template);
+ }
+
+ @Override
+ public void onBypassFeedback(L2PcInstance player, String command)
+ {
+ if (command.startsWith("becomeNoblesse"))
+ {
+ int currBirth = L2RebirthInstance.getRebirthLevel(player);
+ if (player.isNoble())
+ {
+ NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
+ html.setFile("data/html/managers/noblesse-already.htm");
+
+ player.sendPacket(html);
+ return;
+ }
+ else if (player.getLevel() < 78)
+ {
+ NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
+ html.setFile("data/html/managers/noblesse-level.htm");
+
+ player.sendPacket(html);
+ return;
+ }
+ else if (currBirth < Config.REBIRTH_MAX)
+ {
+ NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
+ html.setFile("data/html/managers/noblesse-rebirths.htm");
+
+ player.sendPacket(html);
+ return;
+ }
+ else if (player.getInventory().getItemByItemId(BLACK_CROWN) == null
+ || player.getInventory().getItemByItemId(GOLD_CROWN) == null
+ || player.getInventory().getItemByItemId(RED_CROWN) == null
+ || player.getInventory().getItemByItemId(SILVER_CROWN) == null)
+ {
+ NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
+ html.setFile("data/html/managers/noblesse-crowns.htm");
+
+ player.sendPacket(html);
+ return;
+ }
+ else
+ {
+ NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
+ html.setFile("data/html/managers/noblesse-successfully.htm");
+
+ player.destroyItemByItemId("Consume", BLACK_CROWN, 1, player, true);
+ player.destroyItemByItemId("Consume", GOLD_CROWN, 1, player, true);
+ player.destroyItemByItemId("Consume", RED_CROWN, 1, player, true);
+ player.destroyItemByItemId("Consume", SILVER_CROWN, 1, player, true);
+ player.addItem("Loot", NOBLESSE_TIARA, 1, player, true);
+ player.setNoble(true, true);
+ player.sendPacket(html);
+ }
+ }
+ else
+ super.onBypassFeedback(player, command);
+ }
+
+ @Override
+ public void showChatWindow(L2PcInstance player)
+ {
+ NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
+ html.setFile("data/html/managers/noblesse.htm");
+ html.replace("%objectId%", String.valueOf(player.getTargetId()));
+ html.replace("%blackcrown%", player.getInventory().getItemByItemId(BLACK_CROWN) == null ? "l2ui.CheckBox" : "l2ui.CheckBox_checked");
+ html.replace("%goldcrown%", player.getInventory().getItemByItemId(GOLD_CROWN) == null ? "l2ui.CheckBox" : "l2ui.CheckBox_checked");
+ html.replace("%redcrown%", player.getInventory().getItemByItemId(RED_CROWN) == null ? "l2ui.CheckBox" : "l2ui.CheckBox_checked");
+ html.replace("%silvercrown%", player.getInventory().getItemByItemId(SILVER_CROWN) == null ? "l2ui.CheckBox" : "l2ui.CheckBox_checked");
+ html.replace("%level%", player.getLevel() < 78 ? "l2ui.CheckBox" : "l2ui.CheckBox_checked");
+
+ int currBirth = L2RebirthInstance.getRebirthLevel(player);
+ html.replace("%rebbox%", currBirth < Config.REBIRTH_MAX ? "l2ui.CheckBox" : "l2ui.CheckBox_checked");
+
+ switch (currBirth)
+ {
+ case 0:
+ html.replace("%rebirth%", "0/3");
+ break;
+
+ case 1:
+ html.replace("%rebirth%", "1/3");
+ break;
+
+ case 2:
+ html.replace("%rebirth%", "2/3");
+ break;
+
+ case 3:
+ html.replace("%rebirth%", "3/3");
+ break;
+ }
+
+ player.sendPacket(html);
+ }
+}
\ No newline at end of file
Datapack Patch
Código:
### Eclipse Workspace Patch 1.0
#P aCis_datapack
Index: data/xml/items/9200-9299.xml
===================================================================
--- data/xml/items/9200-9299.xml (revision 4)
+++ data/xml/items/9200-9299.xml (working copy)
@@ -102,4 +102,40 @@
<set name="is_dropable" val="false" />
<set name="is_sellable" val="false" />
</item>
+ <item id="9210" type="EtcItem" name="Black Crown">
+ <!-- Noblesse Manager -->
+ <set name="material" val="steel" />
+ <set name="is_tradable" val="true" />
+ <set name="is_dropable" val="true" />
+ <set name="is_sellable" val="false" />
+ <set name="is_depositable" val="true" />
+ <set name="is_stackable" val="false" />
+ </item>
+ <item id="9211" type="EtcItem" name="Gold Crown">
+ <!-- Noblesse Manager -->
+ <set name="material" val="steel" />
+ <set name="is_tradable" val="true" />
+ <set name="is_dropable" val="true" />
+ <set name="is_sellable" val="false" />
+ <set name="is_depositable" val="true" />
+ <set name="is_stackable" val="false" />
+ </item>
+ <item id="9212" type="EtcItem" name="Red Crown">
+ <!-- Noblesse Manager -->
+ <set name="material" val="steel" />
+ <set name="is_tradable" val="true" />
+ <set name="is_dropable" val="true" />
+ <set name="is_sellable" val="false" />
+ <set name="is_depositable" val="true" />
+ <set name="is_stackable" val="false" />
+ </item>
+ <item id="9213" type="EtcItem" name="Silver Crown">
+ <!-- Noblesse Manager -->
+ <set name="material" val="steel" />
+ <set name="is_tradable" val="true" />
+ <set name="is_dropable" val="true" />
+ <set name="is_sellable" val="false" />
+ <set name="is_depositable" val="true" />
+ <set name="is_stackable" val="false" />
+ </item>
</list>
\ No newline at end of file
Index: data/html/managers/noblesse-already.htm
===================================================================
--- data/html/managers/noblesse-already.htm (revision 0)
+++ data/html/managers/noblesse-already.htm (working copy)
@@ -0,0 +1,7 @@
+<html>
+<body>
+ <center><font color="FF9900">Noblesse Manager</font></center>
+ <img src="L2UI.SquareWhite" width="280" height="1"><br>
+ You already got Noblesse status.
+</body>
+</html>
\ No newline at end of file
Index: data/html/managers/noblesse-rebirths.htm
===================================================================
--- data/html/managers/noblesse-rebirths.htm (revision 0)
+++ data/html/managers/noblesse-rebirths.htm (working copy)
@@ -0,0 +1,7 @@
+<html>
+<body>
+ <center><font color="FF9900">Noblesse Manager</font></center>
+ <img src="L2UI.SquareWhite" width="280" height="1"><br>
+ You don't have all the required rebirths.
+</body>
+</html>
\ No newline at end of file
Index: data/html/managers/noblesse.htm
===================================================================
--- data/html/managers/noblesse.htm (revision 0)
+++ data/html/managers/noblesse.htm (working copy)
@@ -0,0 +1,43 @@
+<html>
+<body>
+ <center><font color="FF9900">Noblesse Manager</font></center>
+ <img src="L2UI.SquareWhite" width="280" height="1"><br>
+ To become a Noblesse you have to complete a couple of<br1>
+ tasks. Kill several raidbosses, perform 3 rebirths and get<br1>
+ level 78.<br><br>
+ <font color="FF9900"> Raid bosses</font><br1>
+ <table width="280">
+ <tr>
+ <td> Death Lord Hallate</td>
+ <td>(Black Crown)</td>
+ <td><img src="%blackcrown%" width="16" height="16"></td>
+ </tr>
+ <tr>
+ <td> Kernon</td>
+ <td>(Golden Crown)</td>
+ <td><img src="%goldcrown%" width="16" height="16"></td>
+ </tr>
+ <tr>
+ <td> Longhhorn Golkonda</td>
+ <td>(Red Crown)</td>
+ <td><img src="%redcrown%" width="16" height="16"></td>
+ </tr>
+ <tr>
+ <td> Shilens Messenger Cabrio</td>
+ <td>(Silver Crown)</td>
+ <td><img src="%silvercrown%" width="16" height="16"></td>
+ </tr>
+ </table><br>
+ <table width="303">
+ <tr>
+ <td> Be level 78</td>
+ <td><img src="%level%" width="16" height="16"></td>
+ </tr>
+ <tr>
+ <td> Perform 3 rebirths (%rebirth%)</td>
+ <td><img src="%rebbox%" width="16" height="16"></td>
+ </tr>
+ </table><br><br><br>
+ <center><a action="bypass -h npc_%objectId%_becomeNoblesse">Become a Noblesse</a></center>
+</body>
+</html>
\ No newline at end of file
Index: data/html/managers/noblesse-level.htm
===================================================================
--- data/html/managers/noblesse-level.htm (revision 0)
+++ data/html/managers/noblesse-level.htm (working copy)
@@ -0,0 +1,7 @@
+<html>
+<body>
+ <center><font color="FF9900">Noblesse Manager</font></center>
+ <img src="L2UI.SquareWhite" width="280" height="1"><br>
+ Your level should be greater than or equal to 78.
+</body>
+</html>
\ No newline at end of file
Index: data/html/managers/noblesse-crowns.htm
===================================================================
--- data/html/managers/noblesse-crowns.htm (revision 0)
+++ data/html/managers/noblesse-crowns.htm (working copy)
@@ -0,0 +1,7 @@
+<html>
+<body>
+ <center><font color="FF9900">Noblesse Manager</font></center>
+ <img src="L2UI.SquareWhite" width="280" height="1"><br>
+ You don't have all the required crowns.
+</body>
+</html>
\ No newline at end of file
Index: data/html/managers/noblesse-successfully.htm
===================================================================
--- data/html/managers/noblesse-successfully.htm (revision 0)
+++ data/html/managers/noblesse-successfully.htm (working copy)
@@ -0,0 +1,9 @@
+<html>
+<body>
+ <center><font color="FF9900">Noblesse Manager</font></center>
+ <img src="L2UI.SquareWhite" width="280" height="1"><br>
+ Congratulations, you are now a Noblesse!<br1>
+ Don't forget as a Noblesse you have new skills, you can<br1>
+ participate in Olympiad to become a Hero.
+</body>
+</html>
\ No newline at end of file
Index: data/xml/npcs/npcs.xml
===================================================================
--- data/xml/npcs/npcs.xml (revision 4)
+++ data/xml/npcs/npcs.xml (working copy)
@@ -170280,6 +170280,9 @@
<category id="4">
<drop itemid="8619" min="1" max="1" chance="750000"/>
</category>
+ <category id="5">
+ <drop itemid="9213" min="1" max="2" chance="1000000"/>
+ </category>
</drops>
<minions>
<minion id="25036" min="3" max="3"/>
@@ -171293,6 +171296,9 @@
<drop itemid="959" min="1" max="1" chance="47727"/>
<drop itemid="960" min="1" max="1" chance="477271"/>
</category>
+ <category id="5">
+ <drop itemid="9211" min="1" max="2" chance="1000000"/>
+ </category>
</drops>
<minions>
<minion id="25055" min="1" max="1"/>
@@ -175111,6 +175117,9 @@
<drop itemid="6689" min="16" max="48" chance="48634"/>
<drop itemid="6690" min="11" max="31" chance="75675"/>
</category>
+ <category id="5">
+ <drop itemid="9212" min="1" max="2" chance="1000000"/>
+ </category>
</drops>
</npc>
<npc id="25127" name="Langk Matriarch Rashkos" title="Raid Boss">
@@ -179739,6 +179748,9 @@
<category id="4">
<drop itemid="8619" min="1" max="1" chance="750000"/>
</category>
+ <category id="5">
+ <drop itemid="9210" min="1" max="2" chance="1000000"/>
+ </category>
</drops>
<minions>
<minion id="25221" min="3" max="3"/>
@@ -300199,4 +300211,36 @@
<skill id="4416" level="16"/>
</skills>
</npc>
+ <npc id="50009" idTemplate="7025" name="Eddy Wally" title="Noblesse Manager">
+ <set name="level" val="70"/>
+ <set name="radius" val="8.0"/>
+ <set name="height" val="25.0"/>
+ <set name="rHand" val="0"/>
+ <set name="lHand" val="0"/>
+ <set name="type" val="L2Noblesse"/>
+ <set name="exp" val="0"/>
+ <set name="sp" val="0"/>
+ <set name="hp" val="2444.46819"/>
+ <set name="mp" val="1345.8"/>
+ <set name="hpRegen" val="7.5"/>
+ <set name="mpRegen" val="2.7"/>
+ <set name="pAtk" val="688.86373"/>
+ <set name="pDef" val="700.91597"/>
+ <set name="mAtk" val="470.40463"/>
+ <set name="mDef" val="700.53847"/>
+ <set name="crit" val="4"/>
+ <set name="atkSpd" val="253"/>
+ <set name="str" val="22"/>
+ <set name="int" val="41"/>
+ <set name="dex" val="21"/>
+ <set name="wit" val="20"/>
+ <set name="con" val="27"/>
+ <set name="men" val="20"/>
+ <set name="corpseTime" val="7"/>
+ <set name="walkSpd" val="33"/>
+ <set name="runSpd" val="120"/>
+ <set name="dropHerbGroup" val="0"/>
+ <set name="attackRange" val="40"/>
+ <ai type="mage" ssCount="0" ssRate="0" spsCount="0" spsRate="0" aggro="0" clan="" clanRange="0" clanIgnore="" canMove="false" seedable="false"/>
+ </npc>
</list>
Client Side:
Senha: www.secretexperience.net
Você precisará adicionar o [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
para o sistema funcionar.
Código Desenvolvido para aCis.
Créditos: Tяαnce.
|