Merged with released L2J-Unity files.

This commit is contained in:
mobiusdev
2016-06-12 01:34:09 +00:00
parent e003e87887
commit 635557f5da
18352 changed files with 3245113 additions and 2892959 deletions

View File

@@ -0,0 +1,11 @@
<html><body scroll="no">
<table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td height=34></td></tr>
<tr><td align=center>You already received the Wings of Destiny Circlet.</td></tr>
<tr><td height=10></td></tr>
<tr><td align=center>You cannot receive again.</td></tr>
<tr><td height=34></td></tr>
<tr><td align=center><button action="bypass -h Quest MonumentOfHeroes index" value="Back" width=200 height=31 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td></tr>
<tr><td height=200></td></tr>
</table>
</body></html>

View File

@@ -0,0 +1,11 @@
<html><body scroll="no">
<table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td height=34></td></tr>
<tr><td align=center>You cannot receive the circlet if you are not a hero.</td></tr>
<tr><td height=10></td></tr>
<tr><td align=center>Please come back next time as a hero.</td></tr>
<tr><td height=34></td></tr>
<tr><td align=center><button action="bypass -h Quest MonumentOfHeroes index" value="Back" width=200 height=31 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td></tr>
<tr><td height=200></td></tr>
</table>
</body></html>

View File

@@ -0,0 +1,11 @@
<html><body scroll="no">
<table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td height=34></td></tr>
<tr><td align=center>You already received the cloak.</td></tr>
<tr><td height=10></td></tr>
<tr><td align=center>You cannot receive it again.</td></tr>
<tr><td height=34></td></tr>
<tr><td align=center><button action="bypass -h Quest MonumentOfHeroes index" value="Back" width=200 height=31 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td></tr>
<tr><td height=200></td></tr>
</table>
</body></html>

View File

@@ -0,0 +1,11 @@
<html><body scroll="no">
<table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td height=34></td></tr>
<tr><td align=center>The cloak is only for the top three.</td></tr>
<tr><td height=10></td></tr>
<tr><td align=center>Try to be in the top 3.</td></tr>
<tr><td height=34></td></tr>
<tr><td align=center><button action="bypass -h Quest MonumentOfHeroes index" value="Back" width=200 height=31 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td></tr>
<tr><td height=200></td></tr>
</table>
</body></html>

View File

@@ -0,0 +1,12 @@
<html><body scroll="no">
<table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td height=34></td></tr>
<tr><td align=center>You are qualified to become a hero.</td></tr>
<tr><td height=10></td></tr>
<tr><td align=center></td></tr>
<tr><td height=34></td></tr>
<tr><td align=center><button action="bypass -h Quest MonumentOfHeroes heroConfirm" msg="1483" value="Hero Certification" width=200 height=31 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td></tr>
<tr><td align=center><button action="bypass -h Quest MonumentOfHeroes heroList" value="Hero Confirm" width=200 height=31 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td></tr>
<tr><td height=200></td></tr>
</table>
</body></html>

View File

@@ -0,0 +1,11 @@
<html><body scroll="no">
<table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td height=34></td></tr>
<tr><td align=center>You are already a hero.</td></tr>
<tr><td height=10></td></tr>
<tr><td align=center></td></tr>
<tr><td height=34></td></tr>
<tr><td align=center><button action="bypass -h Quest MonumentOfHeroes index" value="Back" width=200 height=31 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td></tr>
<tr><td height=200></td></tr>
</table>
</body></html>

View File

@@ -0,0 +1,13 @@
<html><body scroll="no">
<table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td height=34></td></tr>
<tr><td align=center>In order to become a hero of this era,</td></tr>
<tr><td height=10></td></tr>
<tr><td align=center>you have to be a specialized Awakened class</td></tr>
<tr><td height=10></td></tr>
<tr><td align=center>and a Noblesse of level 85 or higher.</td></tr>
<tr><td height=34></td></tr>
<tr><td align=center><button action="bypass -h Quest MonumentOfHeroes index" value="Back" width=200 height=31 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td></tr>
<tr><td height=200></td></tr>
</table>
</body></html>

View File

@@ -0,0 +1,11 @@
<html><body scroll="no">
<table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td height=34></td></tr>
<tr><td align=center>You are not qualified to become a hero.</td></tr>
<tr><td height=10></td></tr>
<tr><td align=center></td></tr>
<tr><td height=34></td></tr>
<tr><td align=center><button action="bypass -h Quest MonumentOfHeroes index" value="Back" width=200 height=31 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td></tr>
<tr><td height=200></td></tr>
</table>
</body></html>

View File

@@ -0,0 +1,11 @@
<html><body scroll="no">
<table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td height=34></td></tr>
<tr><td align=center>In the subclass status,</td></tr>
<tr><td height=10></td></tr>
<tr><td align=center>you cannot become a hero.</td></tr>
<tr><td height=34></td></tr>
<tr><td align=center><button action="bypass -h Quest MonumentOfHeroes index" value="Back" width=200 height=31 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td></tr>
<tr><td height=200></td></tr>
</table>
</body></html>

View File

@@ -0,0 +1,11 @@
<html><body scroll="no">
<table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td height=34></td></tr>
<tr><td align=center>Congratulations! You are a Hero now.</td></tr>
<tr><td height=10></td></tr>
<tr><td align=center></td></tr>
<tr><td height=34></td></tr>
<tr><td align=center><button action="bypass -h Quest MonumentOfHeroes index" value="Back" width=200 height=31 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td></tr>
<tr><td height=200></td></tr>
</table>
</body></html>

View File

@@ -0,0 +1,18 @@
<html><body scroll="no">
<table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td valign="top" align="center"><!-- Olympiad Emblem -->
<table border=0 cellpadding=0 cellspacing=0>
<tr><td width=256 height=185 background="L2UI_CT1.OlympiadWnd_DF_GrandTexture"></td></tr>
</table>
<!-- // Olympiad Emblem -->
<table border=0 cellpadding=0 cellspacing=0>
<tr><td align=center>You are not a noblesse.</td></tr>
<tr><td height=10></td></tr>
<tr><td align=center>You can check to see who the era's heroes are.</td></tr>
<tr><td height=34></td></tr>
<tr><td align=center><button action="bypass -h Quest MonumentOfHeroes heroList" value="Hero List" width=200 height=31 back="L2UI_CT1.OlympiadWnd_DF_HeroConfirm_Down" fore="L2UI_CT1.OlympiadWnd_DF_HeroConfirm"></td></tr>
<tr><td height=60></td></tr>
<tr><td></td></tr>
</table>
</td></tr></table>
</body></html>

View File

@@ -0,0 +1,18 @@
<html><body scroll="no">
<table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td valign="top" align="center"><!-- Olympiad Emblem -->
<table border=0 cellpadding=0 cellspacing=0>
<tr><td width=256 height=185 background="L2UI_CT1.OlympiadWnd_DF_GrandTexture"></td></tr>
</table>
<!-- // Olympiad Emblem -->
<table border=0 cellpadding=0 cellspacing=0>
<tr><td align=center>The Obelisk is etched with images of heroes.</td></tr>
<tr><td height=10></td></tr>
<tr><td align=center>It offers several services with regard to heroes.</td></tr>
<tr><td height=34></td></tr>
<tr><td align=center><button action="bypass -h Quest MonumentOfHeroes heroCertification" value="Hero Certification" width=200 height=31 back="L2UI_CT1.OlympiadWnd_DF_HeroConfirm_Down" fore="L2UI_CT1.OlympiadWnd_DF_HeroConfirm"></td></tr>
<tr><td align=center><button action="bypass -h Quest MonumentOfHeroes MonumentOfHeroes-reward.html" value="Receive Reward" width=200 height=31 back="L2UI_CT1.OlympiadWnd_DF_Reward_Down" fore="L2UI_CT1.OlympiadWnd_DF_Reward"></td></tr>
<tr><td align=center><button action="bypass -h Quest MonumentOfHeroes heroList" value="Hero List" width=200 height=31 back="L2UI_CT1.OlympiadWnd_DF_HeroConfirm_Down" fore="L2UI_CT1.OlympiadWnd_DF_HeroConfirm"></td></tr>
</table>
</td></tr></table>
</body></html>

View File

@@ -0,0 +1,18 @@
<html><body scroll="no">
<table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td height=40></td></tr>
<tr><td align=center>Heroes can receive the hero-exclusive circlet</td></tr>
<tr><td height=10></td></tr>
<tr><td align=center>You may select the weapon and use it.</td></tr>
<tr><td height=30></td></tr>
<tr><td align=center>Also, ranks 1 to 3 of each class </td></tr>
<tr><td height=10></td></tr>
<tr><td align=center>may receive a cloak.</td></tr>
<tr><td height=54></td></tr>
<tr><td align=center><button action="bypass -h Quest MonumentOfHeroes heroCirclet" value="Receive a Circlet" width=200 height=31 back="L2UI_CT1.OlympiadWnd_DF_Reward_Down" fore="L2UI_CT1.OlympiadWnd_DF_Reward"></td></tr>
<tr><td align=center><button action="bypass -h Quest MonumentOfHeroes heroWeapon" value="Receive a Weapon" width=200 height=31 back="L2UI_CT1.OlympiadWnd_DF_HeroConfirm_Down" fore="L2UI_CT1.OlympiadWnd_DF_HeroConfirm"></td></tr>
<tr><td align=center><button action="bypass -h Quest MonumentOfHeroes receiveCloak" value="Receive a Cloak (1st to 3rd Place)" width=200 height=31 back="L2UI_CT1.OlympiadWnd_DF_Reward_Down" fore="L2UI_CT1.OlympiadWnd_DF_Reward"></td></tr>
<tr><td height=20></td></tr>
<tr><td align=center><button action="bypass -h Quest MonumentOfHeroes index" value="Back" width=200 height=31 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td></tr> <tr><td height=40></td></tr>
</table>
</body></html>

View File

@@ -0,0 +1,11 @@
<html><body scroll="no">
<table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td height=34></td></tr>
<tr><td align=center>You already received a weapon.</td></tr>
<tr><td height=10></td></tr>
<tr><td align=center>You cannot receive another weapon.</td></tr>
<tr><td height=34></td></tr>
<tr><td align=center><button action="bypass -h Quest MonumentOfHeroes index" value="Back" width=200 height=31 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td></tr>
<tr><td height=200></td></tr>
</table>
</body></html>

View File

@@ -0,0 +1,26 @@
<html><body>
<table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td height=34></td></tr>
<tr><td align=center>Select a weapon that suits you.</td></tr>
<tr><td height=30></td></tr>
<tr><td align=center>
<a action="bypass -h Quest MonumentOfHeroes give_30392" msg="1484">Infinity Shaper (dagger)</a><br>
<a action="bypass -h Quest MonumentOfHeroes give_30393" msg="1484">Infinity Cutter (1-H Sword)</a><br>
<a action="bypass -h Quest MonumentOfHeroes give_30394" msg="1484">Infinity Slasher (2-H Sword)</a><br>
<a action="bypass -h Quest MonumentOfHeroes give_30395" msg="1484">Infinity Avenger (1-H Blunt Weapon)</a><br>
<a action="bypass -h Quest MonumentOfHeroes give_30396" msg="1484">Infinity Fighter (Fist)</a><br>
<a action="bypass -h Quest MonumentOfHeroes give_30397" msg="1484">Infinity Stormer (Polearm)</a><br>
<a action="bypass -h Quest MonumentOfHeroes give_30398" msg="1484">Infinity Thrower (bow)</a><br>
<a action="bypass -h Quest MonumentOfHeroes give_30399" msg="1484">Infinity Shooter (crossbow)</a><br>
<a action="bypass -h Quest MonumentOfHeroes give_30400" msg="1484">Infinity Buster (magic sword)</a><br>
<a action="bypass -h Quest MonumentOfHeroes give_30401" msg="1484">Infinity Caster (magic blunt weapon)</a><br>
<a action="bypass -h Quest MonumentOfHeroes give_30402" msg="1484">Infinity Retributer (two-handed magic blunt weapon)</a><br>
<a action="bypass -h Quest MonumentOfHeroes give_30403" msg="1484">Infinity Dual Sword (Dual Swords)</a><br>
<a action="bypass -h Quest MonumentOfHeroes give_30404" msg="1484">Infinity Dual Dagger (Dual Daggers)</a><br>
<a action="bypass -h Quest MonumentOfHeroes give_30405" msg="1484">Infinity Dual Blunt Weapon (Dual Blunt Weapon)</a><br>
</td></tr>
<tr><td height=34></td></tr>
<tr><td align=center><button action="bypass -h Quest MonumentOfHeroes index" value="Back" width=200 height=31 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td></tr>
<tr><td height=30></td></tr>
</table>
</body></html>

View File

@@ -0,0 +1,11 @@
<html><body scroll="no">
<table border=0 cellpadding=0 cellspacing=0 width=292 height=358 background="L2UI_CH3.refinewnd_back_Pattern">
<tr><td height=34></td></tr>
<tr><td align=center>If you are not a hero, you cannot receive a weapon.</td></tr>
<tr><td height=10></td></tr>
<tr><td align=center>Please come back next time as a hero.</td></tr>
<tr><td height=34></td></tr>
<tr><td align=center><button action="bypass -h npc_%objectId%_Chat 0" value="Back" width=200 height=31 back="L2UI_CT1.OlympiadWnd_DF_Back_Down" fore="L2UI_CT1.OlympiadWnd_DF_Back"></td></tr>
<tr><td height=200></td></tr>
</table>
</body></html>

View File

@@ -0,0 +1,283 @@
/*
* This file is part of the L2J Mobius project.
*
* 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 ai.others.MonumentOfHeroes;
import java.util.List;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.entity.Hero;
import com.l2jmobius.gameserver.model.olympiad.Olympiad;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.SystemMessageId;
import com.l2jmobius.gameserver.network.serverpackets.ExHeroList;
import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
import com.l2jmobius.gameserver.network.serverpackets.PlaySound;
import ai.AbstractNpcAI;
/**
* Monument of Heroes AI.
* @author St3eT
*/
public final class MonumentOfHeroes extends AbstractNpcAI
{
// NPCs
private static final int[] MONUMENTS =
{
31690,
31769,
31770,
31771,
31772,
};
// Items
private static final int HERO_CLOAK = 30372;
private static final int GLORIOUS_CLOAK = 30373;
private static final int WINGS_OF_DESTINY_CIRCLET = 6842;
private static final int[] WEAPONS =
{
30392, // Infinity Shaper (dagger)
30393, // Infinity Cutter (1-H Sword)
30394, // Infinity Slasher (2-H Sword)
30395, // Infinity Avenger (1-H Blunt Weapon)
30396, // Infinity Fighter (Fist)
30397, // Infinity Stormer (Polearm)
30398, // Infinity Thrower (bow)
30399, // Infinity Shooter (crossbow)
30400, // Infinity Buster (magic sword)
30401, // Infinity Caster (magic blunt weapon)
30402, // Infinity Retributer (two-handed magic blunt weapon)
30403, // Infinity Dual Sword (Dual Swords)
30404, // Infinity Dual Dagger (Dual Daggers)
30405, // Infinity Dual Blunt Weapon (Dual Blunt Weapon)
};
private MonumentOfHeroes()
{
addStartNpc(MONUMENTS);
addFirstTalkId(MONUMENTS);
addTalkId(MONUMENTS);
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = null;
switch (event)
{
case "MonumentOfHeroes-reward.html":
{
htmltext = event;
break;
}
case "index":
{
htmltext = onFirstTalk(npc, player);
break;
}
case "heroList":
{
player.sendPacket(new ExHeroList());
break;
}
case "receiveCloak":
{
final int olympiadRank = getOlympiadRank(player);
if (olympiadRank == 1)
{
if (!hasAtLeastOneQuestItem(player, HERO_CLOAK, GLORIOUS_CLOAK))
{
if (player.isInventoryUnder80(false))
{
giveItems(player, HERO_CLOAK, 1);
}
else
{
player.sendPacket(SystemMessageId.UNABLE_TO_PROCESS_THIS_REQUEST_UNTIL_YOUR_INVENTORY_S_WEIGHT_AND_SLOT_COUNT_ARE_LESS_THAN_80_PERCENT_OF_CAPACITY);
}
}
else
{
htmltext = "MonumentOfHeroes-cloakHave.html";
}
}
else if ((olympiadRank == 2) || (olympiadRank == 3))
{
if (!hasAtLeastOneQuestItem(player, HERO_CLOAK, GLORIOUS_CLOAK))
{
if (player.isInventoryUnder80(false))
{
giveItems(player, GLORIOUS_CLOAK, 1);
}
else
{
player.sendPacket(SystemMessageId.UNABLE_TO_PROCESS_THIS_REQUEST_UNTIL_YOUR_INVENTORY_S_WEIGHT_AND_SLOT_COUNT_ARE_LESS_THAN_80_PERCENT_OF_CAPACITY);
}
}
else
{
htmltext = "MonumentOfHeroes-cloakHave.html";
}
}
else
{
htmltext = "MonumentOfHeroes-cloakNo.html";
}
break;
}
case "heroWeapon":
{
if (Hero.getInstance().isHero(player.getObjectId()))
{
if (player.isInventoryUnder80(false))
{
htmltext = hasAtLeastOneQuestItem(player, WEAPONS) ? "MonumentOfHeroes-weaponHave.html" : "MonumentOfHeroes-weaponList.html";
}
else
{
player.sendPacket(SystemMessageId.UNABLE_TO_PROCESS_THIS_REQUEST_UNTIL_YOUR_INVENTORY_S_WEIGHT_AND_SLOT_COUNT_ARE_LESS_THAN_80_PERCENT_OF_CAPACITY);
}
}
else
{
htmltext = "MonumentOfHeroes-weaponNo.html";
}
}
case "heroCirclet":
{
if (Hero.getInstance().isHero(player.getObjectId()))
{
if (hasQuestItems(player, WINGS_OF_DESTINY_CIRCLET))
{
htmltext = "MonumentOfHeroes-circletHave.html";
}
else if (!player.isInventoryUnder80(false))
{
player.sendPacket(SystemMessageId.UNABLE_TO_PROCESS_THIS_REQUEST_UNTIL_YOUR_INVENTORY_S_WEIGHT_AND_SLOT_COUNT_ARE_LESS_THAN_80_PERCENT_OF_CAPACITY);
}
else
{
giveItems(player, WINGS_OF_DESTINY_CIRCLET, 1);
}
}
else
{
htmltext = "MonumentOfHeroes-circletNo.html";
}
break;
}
case "heroCertification":
{
if (Hero.getInstance().isUnclaimedHero(player.getObjectId()))
{
htmltext = "MonumentOfHeroes-heroCertification.html";
}
else if (Hero.getInstance().isHero(player.getObjectId()))
{
htmltext = "MonumentOfHeroes-heroCertificationAlready.html";
}
else
{
htmltext = "MonumentOfHeroes-heroCertificationNo.html";
}
break;
}
case "heroConfirm":
{
if (Hero.getInstance().isUnclaimedHero(player.getObjectId()))
{
if (!player.isSubClassActive())
{
if (player.getLevel() >= 85)
{
Hero.getInstance().claimHero(player);
showOnScreenMsg(player, (NpcStringId.getNpcStringId(13357 + player.getClassId().getId())), ExShowScreenMessage.TOP_CENTER, 5000);
player.broadcastPacket(new PlaySound(1, "ns01_f", 0, 0, 0, 0, 0));
htmltext = "MonumentOfHeroes-heroCertificationsDone.html";
}
else
{
htmltext = "MonumentOfHeroes-heroCertificationLevel.html";
}
}
else
{
htmltext = "MonumentOfHeroes-heroCertificationSub.html";
}
}
else
{
htmltext = "MonumentOfHeroes-heroCertificationNo.html";
}
break;
}
case "give_30392": // Infinity Shaper (dagger)
case "give_30393": // Infinity Cutter (1-H Sword)
case "give_30394": // Infinity Slasher (2-H Sword)
case "give_30395": // Infinity Avenger (1-H Blunt Weapon)
case "give_30396": // Infinity Fighter (Fist)
case "give_30397": // Infinity Stormer (Polearm)
case "give_30398": // Infinity Thrower (bow)
case "give_30399": // Infinity Shooter (crossbow)
case "give_30400": // Infinity Buster (magic sword)
case "give_30401": // Infinity Caster (magic blunt weapon)
case "give_30402": // Infinity Retributer (two-handed magic blunt weapon)
case "give_30403": // Infinity Dual Sword (Dual Swords)
case "give_30404": // Infinity Dual Dagger (Dual Daggers)
case "give_30405": // Infinity Dual Blunt Weapon (Dual Blunt Weapon)
{
final int weaponId = Integer.parseInt(event.replace("give_", ""));
giveItems(player, weaponId, 1);
break;
}
}
return htmltext;
}
@Override
public String onFirstTalk(L2Npc npc, L2PcInstance player)
{
return player.isNoble() ? "MonumentOfHeroes-noblesse.html" : "MonumentOfHeroes-noNoblesse.html";
}
private int getOlympiadRank(L2PcInstance player)
{
final List<String> names = Olympiad.getInstance().getClassLeaderBoard(player.getClassId().getId());
try
{
for (int i = 1; i <= 3; i++)
{
if (names.get(i - 1).equals(player.getName()))
{
return i;
}
}
}
catch (Exception e)
{
return -1;
}
return -1;
}
public static void main(String[] args)
{
new MonumentOfHeroes();
}
}