Training Zone cleanup.
This commit is contained in:
@@ -117,7 +117,7 @@
|
||||
<npc id="34310" x="-52309" y="4860" z="-249" heading="6316" /> <!-- Mercenary -->
|
||||
<npc id="34310" x="-52265" y="4818" z="-249" heading="8191" /> <!-- Mercenary -->
|
||||
</group>
|
||||
<group name="PlainsoftheLizardmen" spawnByDefault="false">
|
||||
<group name="PlainsOfTheLizardmen" spawnByDefault="false">
|
||||
<npc id="22154" x="-56776" y="12532" z="-3384" heading="33897" respawnTime="60sec" /> <!-- Tanta Lizardman Archer -->
|
||||
<npc id="22152" x="-57296" y="13024" z="-3363" heading="36820" respawnTime="60sec" /> <!-- Tanta Lizardman Warrior -->
|
||||
<npc id="22154" x="-57384" y="12989" z="-3367" heading="36820" respawnTime="60sec" /> <!-- Tanta Lizardman Archer -->
|
||||
@@ -154,7 +154,7 @@
|
||||
<npc id="22245" x="-57591" y="12006" z="-3370" heading="65156" respawnTime="60sec" />
|
||||
<npc id="22242" x="-57642" y="12976" z="-3363" heading="42158" respawnTime="60sec" />
|
||||
</group>
|
||||
<group name="OrcBarrackskerrs" spawnByDefault="false">
|
||||
<group name="OrcBarracksKerrs" spawnByDefault="false">
|
||||
<npc id="22135" x="-56776" y="12532" z="-3384" heading="33897" respawnTime="60sec" />
|
||||
<npc id="22135" x="-57296" y="13024" z="-3363" heading="36820" respawnTime="60sec" />
|
||||
<npc id="22135" x="-57384" y="12989" z="-3367" heading="36820" respawnTime="60sec" />
|
||||
@@ -173,7 +173,7 @@
|
||||
<npc id="22138" x="-57591" y="12006" z="-3370" heading="65156" respawnTime="60sec" />
|
||||
<npc id="22135" x="-57642" y="12976" z="-3363" heading="42158" respawnTime="60sec" />
|
||||
</group>
|
||||
<group name="OrcBarrackstureks" spawnByDefault="false">
|
||||
<group name="OrcBarracksTureks" spawnByDefault="false">
|
||||
<npc id="22141" x="-56776" y="12532" z="-3384" heading="33897" respawnTime="60sec" />
|
||||
<npc id="22145" x="-57296" y="13024" z="-3363" heading="36820" respawnTime="60sec" />
|
||||
<npc id="22145" x="-57384" y="12989" z="-3367" heading="36820" respawnTime="60sec" />
|
||||
@@ -192,7 +192,7 @@
|
||||
<npc id="22141" x="-57591" y="12006" z="-3370" heading="65156" respawnTime="60sec" />
|
||||
<npc id="22141" x="-57642" y="12976" z="-3363" heading="42158" respawnTime="60sec" />
|
||||
</group>
|
||||
<group name="TowerOfinsolence1" spawnByDefault="false">
|
||||
<group name="TowerOfInsolence1" spawnByDefault="false">
|
||||
<npc id="21990" x="-51984" y="5902" z="-249" heading="4492" respawnTime="60sec" /> <!-- Tower Watchman -->
|
||||
<npc id="21991" x="-51245" y="6107" z="-249" heading="63802" respawnTime="60sec" /> <!-- Ghastly Warrior -->
|
||||
<npc id="21989" x="-51383" y="5837" z="-247" heading="40365" respawnTime="60sec" /> <!-- Ghost of the Tower -->
|
||||
@@ -209,7 +209,7 @@
|
||||
<npc id="21991" x="-51588" y="5945" z="-246" heading="46147" respawnTime="60sec" /> <!-- Ghastly Warrior -->
|
||||
<npc id="21989" x="-51588" y="5945" z="-246" heading="46147" respawnTime="60sec" /> <!-- Ghost of the Tower -->
|
||||
</group>
|
||||
<group name="TowerOfinsolence2" spawnByDefault="false">
|
||||
<group name="TowerOfInsolence2" spawnByDefault="false">
|
||||
<npc id="21994" x="-51984" y="5902" z="-249" heading="4492" respawnTime="60sec" />
|
||||
<npc id="21994" x="-51245" y="6107" z="-249" heading="63802" respawnTime="60sec" />
|
||||
<npc id="21994" x="-51383" y="5837" z="-247" heading="40365" respawnTime="60sec" />
|
||||
@@ -226,7 +226,7 @@
|
||||
<npc id="21996" x="-51588" y="5945" z="-246" heading="46147" respawnTime="60sec" />
|
||||
<npc id="21996" x="-51588" y="5945" z="-246" heading="46147" respawnTime="60sec" />
|
||||
</group>
|
||||
<group name="TowerOfinsolence3" spawnByDefault="false">
|
||||
<group name="TowerOfInsolence3" spawnByDefault="false">
|
||||
<npc id="22000" x="-51984" y="5902" z="-249" heading="4492" respawnTime="60sec" />
|
||||
<npc id="22000" x="-51245" y="6107" z="-249" heading="63802" respawnTime="60sec" />
|
||||
<npc id="22003" x="-51383" y="5837" z="-247" heading="40365" respawnTime="60sec" />
|
||||
@@ -243,7 +243,7 @@
|
||||
<npc id="22003" x="-51588" y="5945" z="-246" heading="46147" respawnTime="60sec" />
|
||||
<npc id="22003" x="-51588" y="5945" z="-246" heading="46147" respawnTime="60sec" />
|
||||
</group>
|
||||
<group name="TowerOfinsolence4" spawnByDefault="false">
|
||||
<group name="TowerOfInsolence4" spawnByDefault="false">
|
||||
<npc id="22025" x="-51984" y="5902" z="-249" heading="4492" respawnTime="60sec" />
|
||||
<npc id="22025" x="-51245" y="6107" z="-249" heading="63802" respawnTime="60sec" />
|
||||
<npc id="22025" x="-51383" y="5837" z="-247" heading="40365" respawnTime="60sec" />
|
||||
@@ -260,7 +260,7 @@
|
||||
<npc id="22025" x="-51588" y="5945" z="-246" heading="46147" respawnTime="60sec" />
|
||||
<npc id="22025" x="-51588" y="5945" z="-246" heading="46147" respawnTime="60sec" />
|
||||
</group>
|
||||
<group name="TowerOfinsolence5" spawnByDefault="false">
|
||||
<group name="TowerOfInsolence5" spawnByDefault="false">
|
||||
<npc id="22010" x="-51984" y="5902" z="-249" heading="4492" respawnTime="60sec" />
|
||||
<npc id="22010" x="-51245" y="6107" z="-249" heading="63802" respawnTime="60sec" />
|
||||
<npc id="22010" x="-51383" y="5837" z="-247" heading="40365" respawnTime="60sec" />
|
||||
@@ -277,7 +277,7 @@
|
||||
<npc id="22010" x="-51588" y="5945" z="-246" heading="46147" respawnTime="60sec" />
|
||||
<npc id="22010" x="-51588" y="5945" z="-246" heading="46147" respawnTime="60sec" />
|
||||
</group>
|
||||
<group name="TowerOfinsolence6" spawnByDefault="false">
|
||||
<group name="TowerOfInsolence6" spawnByDefault="false">
|
||||
<npc id="22016" x="-51984" y="5902" z="-249" heading="4492" respawnTime="60sec" />
|
||||
<npc id="22016" x="-51245" y="6107" z="-249" heading="63802" respawnTime="60sec" />
|
||||
<npc id="22016" x="-51383" y="5837" z="-247" heading="40365" respawnTime="60sec" />
|
||||
@@ -294,7 +294,7 @@
|
||||
<npc id="22017" x="-51588" y="5945" z="-246" heading="46147" respawnTime="60sec" />
|
||||
<npc id="22017" x="-51588" y="5945" z="-246" heading="46147" respawnTime="60sec" />
|
||||
</group>
|
||||
<group name="TowerOfinsolence7" spawnByDefault="false">
|
||||
<group name="TowerOfInsolence7" spawnByDefault="false">
|
||||
<npc id="22021" x="-51984" y="5902" z="-249" heading="4492" respawnTime="60sec" />
|
||||
<npc id="22021" x="-51245" y="6107" z="-249" heading="63802" respawnTime="60sec" />
|
||||
<npc id="22021" x="-51383" y="5837" z="-247" heading="40365" respawnTime="60sec" />
|
||||
@@ -311,7 +311,7 @@
|
||||
<npc id="22021" x="-51588" y="5945" z="-246" heading="46147" respawnTime="60sec" />
|
||||
<npc id="22021" x="-51588" y="5945" z="-246" heading="46147" respawnTime="60sec" />
|
||||
</group>
|
||||
<group name="TowerOfinsolence8" spawnByDefault="false">
|
||||
<group name="TowerOfInsolence8" spawnByDefault="false">
|
||||
<npc id="22024" x="-51984" y="5902" z="-249" heading="4492" respawnTime="60sec" />
|
||||
<npc id="22024" x="-51245" y="6107" z="-249" heading="63802" respawnTime="60sec" />
|
||||
<npc id="22024" x="-51383" y="5837" z="-247" heading="40365" respawnTime="60sec" />
|
||||
@@ -328,7 +328,7 @@
|
||||
<npc id="22026" x="-51588" y="5945" z="-246" heading="46147" respawnTime="60sec" />
|
||||
<npc id="22026" x="-51588" y="5945" z="-246" heading="46147" respawnTime="60sec" />
|
||||
</group>
|
||||
<group name="TowerOfinsolence9" spawnByDefault="false">
|
||||
<group name="TowerOfInsolence9" spawnByDefault="false">
|
||||
<npc id="22028" x="-51984" y="5902" z="-249" heading="4492" respawnTime="60sec" />
|
||||
<npc id="22028" x="-51245" y="6107" z="-249" heading="63802" respawnTime="60sec" />
|
||||
<npc id="22028" x="-51383" y="5837" z="-247" heading="40365" respawnTime="60sec" />
|
||||
@@ -345,7 +345,7 @@
|
||||
<npc id="22028" x="-51588" y="5945" z="-246" heading="46147" respawnTime="60sec" />
|
||||
<npc id="22028" x="-51588" y="5945" z="-246" heading="46147" respawnTime="60sec" />
|
||||
</group>
|
||||
<group name="TowerOfinsolence10" spawnByDefault="false">
|
||||
<group name="TowerOfInsolence10" spawnByDefault="false">
|
||||
<npc id="22032" x="-51984" y="5902" z="-249" heading="4492" respawnTime="60sec" />
|
||||
<npc id="22032" x="-51245" y="6107" z="-249" heading="63802" respawnTime="60sec" />
|
||||
<npc id="22032" x="-51383" y="5837" z="-247" heading="40365" respawnTime="60sec" />
|
||||
@@ -362,7 +362,7 @@
|
||||
<npc id="22032" x="-51588" y="5945" z="-246" heading="46147" respawnTime="60sec" />
|
||||
<npc id="22033" x="-51588" y="5945" z="-246" heading="46147" respawnTime="60sec" />
|
||||
</group>
|
||||
<group name="TowerOfinsolence11" spawnByDefault="false">
|
||||
<group name="TowerOfInsolence11" spawnByDefault="false">
|
||||
<npc id="22035" x="-51984" y="5902" z="-249" heading="4492" respawnTime="60sec" />
|
||||
<npc id="22035" x="-51245" y="6107" z="-249" heading="63802" respawnTime="60sec" />
|
||||
<npc id="22035" x="-51383" y="5837" z="-247" heading="40365" respawnTime="60sec" />
|
||||
@@ -379,7 +379,7 @@
|
||||
<npc id="22035" x="-51588" y="5945" z="-246" heading="46147" respawnTime="60sec" />
|
||||
<npc id="22035" x="-51588" y="5945" z="-246" heading="46147" respawnTime="60sec" />
|
||||
</group>
|
||||
<group name="TowerOfinsolence12" spawnByDefault="false">
|
||||
<group name="TowerOfInsolence12" spawnByDefault="false">
|
||||
<npc id="22037" x="-51984" y="5902" z="-249" heading="4492" respawnTime="60sec" />
|
||||
<npc id="22038" x="-51245" y="6107" z="-249" heading="63802" respawnTime="60sec" />
|
||||
<npc id="22039" x="-51383" y="5837" z="-247" heading="40365" respawnTime="60sec" />
|
||||
|
@@ -5,6 +5,6 @@ I use support magic that <font color="LEVEL">enhances attack skills.</font><br>
|
||||
This magic is not applied to the single Adventurer, but to <font color="LEVEL">the entire area.</font><br>
|
||||
Choose the buff you need, and i will apply it to the zone of your training. <font color="LEVEL">I will need some time</font> to apply the buff to the entire area.<br>
|
||||
What type of attack do you need?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TrainingZone NPC_BUFFSUPPORT">Choose attack buff</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TrainingZone NPC_BUFF_SUPPORT">Choose attack buff</Button>
|
||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
|
||||
</body></html>
|
@@ -9,12 +9,12 @@
|
||||
<table border=0 cellpadding=0 cellspacing=0 width="290">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone GivePatk" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF"><font color="LEVEL">P.Atk +1000</font></button>
|
||||
<button action="bypass -h Quest TrainingZone GivePAtk" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF"><font color="LEVEL">P.Atk +1000</font></button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone GiveMatk" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF"><font color="LEVEL">M.Atk +1000</font></button>
|
||||
<button action="bypass -h Quest TrainingZone GiveMAtk" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF"><font color="LEVEL">M.Atk +1000</font></button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -24,27 +24,27 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone GiveCastingSpd" value="Casting Spd +24%" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
<button action="bypass -h Quest TrainingZone GiveCastingSpeed" value="Casting Spd +24%" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone GivePskillcriticalrate" value="P Skill Critical Rate +11%" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
<button action="bypass -h Quest TrainingZone GivePSkillCriticalRate" value="P Skill Critical Rate +11%" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone GivePskillcriticalDamage" value="P Skill Critical Rate +21%" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
<button action="bypass -h Quest TrainingZone GivePSkillCriticalDamage" value="P Skill Critical Rate +21%" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone GivePskillcriticalDamage+500" value="All Critical Damage +10%" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
<button action="bypass -h Quest TrainingZone GivePSkillCriticalDamage+500" value="All Critical Damage +10%" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone GiveSshotsdamage" value="Soulshot/Spiritshot damage +10%" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
<button action="bypass -h Quest TrainingZone GiveShotsDamage" value="Soulshot/Spiritshot damage +10%" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -52,7 +52,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone GivePskillPower" value="Skill Power +10%" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
<button action="bypass -h Quest TrainingZone GivePSkillPower" value="Skill Power +10%" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -60,7 +60,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone GiveAllcriticaldamage" msg="4457" value="All Critical Damage +15%" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
<button action="bypass -h Quest TrainingZone GiveAllCriticalDamage" msg="4457" value="All Critical Damage +15%" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -68,7 +68,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone GiveAbsorbs3inflictedMp" value="Absorbs 3% of the inflicted damage as MP" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
<button action="bypass -h Quest TrainingZone GiveAbsorbs3InflictedMp" value="Absorbs 3% of the inflicted damage as MP" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -76,7 +76,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone GiveAbsorbs8inflictedHp" value="Absorbs 8% of the inflicted damage as HP" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
<button action="bypass -h Quest TrainingZone GiveAbsorbs8InflictedHp" value="Absorbs 8% of the inflicted damage as HP" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@@ -4,6 +4,6 @@ I came together with Arbana, who is in charge of the Training Azone, Now I provi
|
||||
I mostly use defensive support magic that helps to survive in battle. This magic is not applied to the single adventurer, but to <font color="LEVEL">the entre area</font>.<br>
|
||||
<font color="LEVEL">When you choose the required type of support magic</font>, i will apply the buff to the zone of you training. The buff will affect the entire area. so <font color="LEVEL">I will need some time to apply it.</font><br>
|
||||
What type buff are you interested in?<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TrainingZone NPC_BUFFSUPPORT">Choose the defensive buff</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TrainingZone NPC_BUFF_SUPPORT">Choose the defensive buff</Button>
|
||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
|
||||
</body></html>
|
@@ -9,12 +9,12 @@
|
||||
<table border=0 cellpadding=0 cellspacing=0 width="290">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone GivePdef" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF"><font color="LEVEL">P. Def +1000</font></button>
|
||||
<button action="bypass -h Quest TrainingZone GivePDef" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF"><font color="LEVEL">P. Def +1000</font></button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone GiveMdef" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF"><font color="LEVEL">M.Def +1000</font></button>
|
||||
<button action="bypass -h Quest TrainingZone GiveMDef" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF"><font color="LEVEL">M.Def +1000</font></button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -52,7 +52,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone GiveHpPotionRevcovery" value="HP Recovery Potions Effect +100" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
<button action="bypass -h Quest TrainingZone GiveHpPotionRecovery" value="HP Recovery Potions Effect +100" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<html><body>Training Mentor Grown:<br>
|
||||
<font color="LEVEL">The device for summoning monsters from the chosen area is activated</font>...<br>
|
||||
Go to the Training Zone And start practicing, Teleport Mentor will help you get there.<br>
|
||||
Go to the Training Zone and start practicing, Teleport Mentor will help you get there.<br>
|
||||
Good luck!
|
||||
</body></html>
|
@@ -1,9 +1,9 @@
|
||||
<html><body>Training Mentor Grown:<br>
|
||||
You removed Previous Selection<font color="LEVEL"> summoned.</font><br>
|
||||
Select New<font color="LEVEL">Spawn.</font><br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TrainingZone LIZARMENDSELECT">Plains of the Lizardmen</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TrainingZone SELMAHUMSELECT">Sel Mahum Base</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TrainingZone ORCBARRACKSELECT">Orc Barracks (Kerr Barracks)</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TrainingZone ORCBARRACKTUREKSELECT">Orc Barracks (Turek Barracks)</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TrainingZone LIZARD_MEN_SELECT">Plains of the Lizardmen</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TrainingZone SEL_MAHUM_SELECT">Sel Mahum Base</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TrainingZone ORC_BARRACKS_SELECT">Orc Barracks (Kerr Barracks)</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TrainingZone ORC_BARRACKS_TUREK_SELECT">Orc Barracks (Turek Barracks)</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TrainingZone INSOLENCE_TOWER">Tower of Insolence</Button>
|
||||
</body></html>
|
@@ -9,42 +9,42 @@
|
||||
<table border=0 cellpadding=0 cellspacing=0 width="290">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone TOWEROFINSOLENCESELECT" value="Tower of Insolence (1st Floor)" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
<button action="bypass -h Quest TrainingZone TOWER_OF_INSOLENCE_SELECT" value="Tower of Insolence (1st Floor)" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone TOWEROFINSOLENCESELECT2" value="Tower of Insolence (2nd Floor)" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
<button action="bypass -h Quest TrainingZone TOWER_OF_INSOLENCE_SELECT2" value="Tower of Insolence (2nd Floor)" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone TOWEROFINSOLENCESELECT3" value="Tower of Insolence (3rd Floor)" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
<button action="bypass -h Quest TrainingZone TOWER_OF_INSOLENCE_SELECT3" value="Tower of Insolence (3rd Floor)" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone TOWEROFINSOLENCESELECT4" value="Tower of Insolence (4th Floor)" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
<button action="bypass -h Quest TrainingZone TOWER_OF_INSOLENCE_SELECT4" value="Tower of Insolence (4th Floor)" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone TOWEROFINSOLENCESELECT5" value="Tower of Insolence (5th Floor)" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
<button action="bypass -h Quest TrainingZone TOWER_OF_INSOLENCE_SELECT5" value="Tower of Insolence (5th Floor)" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone TOWEROFINSOLENCESELECT6" value="Tower of Insolence (6th Floor)" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
<button action="bypass -h Quest TrainingZone TOWER_OF_INSOLENCE_SELECT6" value="Tower of Insolence (6th Floor)" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone TOWEROFINSOLENCESELECT7" value="Tower of Insolence (7th Floor)" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
<button action="bypass -h Quest TrainingZone TOWER_OF_INSOLENCE_SELECT7" value="Tower of Insolence (7th Floor)" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone TOWEROFINSOLENCESELECT8" value="Tower of Insolence (8th Floor)" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
<button action="bypass -h Quest TrainingZone TOWER_OF_INSOLENCE_SELECT8" value="Tower of Insolence (8th Floor)" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -52,7 +52,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone TOWEROFINSOLENCESELECT9" value="Tower of Insolence (9th Floor)" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
<button action="bypass -h Quest TrainingZone TOWER_OF_INSOLENCE_SELECT9" value="Tower of Insolence (9th Floor)" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -60,7 +60,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone TOWEROFINSOLENCESELECT10" msg="4457" value="Tower of Insolence (10th Floor)" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
<button action="bypass -h Quest TrainingZone TOWER_OF_INSOLENCE_SELECT10" msg="4457" value="Tower of Insolence (10th Floor)" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -68,7 +68,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone TOWEROFINSOLENCESELECT11" value="Tower of Insolence (11th Floor)" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
<button action="bypass -h Quest TrainingZone TOWER_OF_INSOLENCE_SELECT11" value="Tower of Insolence (11th Floor)" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -76,7 +76,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<button action="bypass -h Quest TrainingZone TOWEROFINSOLENCESELECT12" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF"><font color="LEVEL">Tower of Insolence (12th Floor)</font></button>
|
||||
<button action="bypass -h Quest TrainingZone TOWER_OF_INSOLENCE_SELECT12" width="230" height="29" back="L2UI_NewTex.Button.Button29_Down" fore="L2UI_NewTex.Button.Button29_DF"><font color="LEVEL">Tower of Insolence (12th Floor)</font></button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@@ -2,10 +2,10 @@
|
||||
Hello! My name is Grown.<br>
|
||||
In the Training Zone you can summon monsters from diferent parts of aden and practice in defeating them.<br>
|
||||
Monster from which area do you want to summon?.<br>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TrainingZone LIZARMENDSELECT">Plains of the Lizardmen</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TrainingZone SELMAHUMSELECT">Sel Mahum Base</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TrainingZone ORCBARRACKSELECT">Orc Barracks (Kerr Barracks)</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TrainingZone ORCBARRACKTUREKSELECT">Orc Barracks (Turek Barracks)</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TrainingZone LIZARD_MEN_SELECT">Plains of the Lizardmen</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TrainingZone SEL_MAHUM_SELECT">Sel Mahum Base</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TrainingZone ORC_BARRACKS_SELECT">Orc Barracks (Kerr Barracks)</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TrainingZone ORC_BARRACKS_TUREK_SELECT">Orc Barracks (Turek Barracks)</Button>
|
||||
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest TrainingZone INSOLENCE_TOWER">Tower of Insolence</Button>
|
||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
|
||||
</body></html>
|
@@ -4,6 +4,6 @@ Then i will teleport you to the training Zone<br>
|
||||
By the way! if you want to have a rest during the training, you can come back here.<br>
|
||||
Remember, I will be keeping an eye on you during the training.<br>
|
||||
Do you want go to the Training Zone?<br>
|
||||
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest TrainingZone LOCALTELEPORT">Teleport to the Training Zone</Button>
|
||||
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest TrainingZone LOCAL_TELEPORT">Teleport to the Training Zone</Button>
|
||||
<Button ALIGN=LEFT ICON="QUEST" action="bypass -h npc_%objectId%_Quest">Quest</Button>
|
||||
</body></html>
|
@@ -2,5 +2,5 @@
|
||||
Do you to have a little rest?<br>
|
||||
Everyone has their own limits. You should better take a break if you dont want to get too exhausted.<br>
|
||||
When the training starts mobs will appear constantly, so if you want to have a rest, you should better go to the waiting area.<br>
|
||||
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest TrainingZone LOCALTELEPORTRETURN">Take a break and go to the waiting zone.</Button>
|
||||
<Button ALIGN=LEFT ICON="TELEPORT" action="bypass -h Quest TrainingZone LOCAL_TELEPORT_RETURN">Take a break and go to the waiting zone.</Button>
|
||||
</body></html>
|
@@ -23,7 +23,6 @@ import org.l2jmobius.gameserver.enums.ChatType;
|
||||
import org.l2jmobius.gameserver.instancemanager.InstanceManager;
|
||||
import org.l2jmobius.gameserver.model.Location;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.World;
|
||||
import org.l2jmobius.gameserver.model.WorldObject;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.actor.Npc;
|
||||
@@ -59,8 +58,6 @@ public class TrainingZone extends AbstractInstance
|
||||
private static final int CHEL = 25963; // Insolence Boss
|
||||
private static final int RILVA = 25961; // Insolence Boss
|
||||
private static final int RYUN = 25962; // Insolence Boss
|
||||
// Skill
|
||||
private static final SkillHolder SAYHA_BUFF = new SkillHolder(48489, 1); //
|
||||
// Attack buff
|
||||
private static final SkillHolder MENTOR_PATK = new SkillHolder(48490, 1); // P atk +1000 buff
|
||||
private static final SkillHolder MENTOR_MATK = new SkillHolder(48491, 1); // M atk +1000 buff
|
||||
@@ -152,9 +149,6 @@ public class TrainingZone extends AbstractInstance
|
||||
private static final Location WAITING_AREA = new Location(-49550, 17189, -3016);
|
||||
private static final Location INSOLENCE_TOWER = new Location(-52849, 5272, -240);
|
||||
|
||||
private static boolean _teleported;
|
||||
private static boolean _summonReady;
|
||||
|
||||
private static final int TEMPLATE_ID = 224;
|
||||
|
||||
public TrainingZone()
|
||||
@@ -206,11 +200,11 @@ public class TrainingZone extends AbstractInstance
|
||||
}
|
||||
switch (event)
|
||||
{
|
||||
case "34307.htm": // Gronw
|
||||
case "34307.htm":
|
||||
{
|
||||
break;
|
||||
}
|
||||
case "GivePatk":
|
||||
case "GivePAtk":
|
||||
{
|
||||
if ((npc.getId() == TOKA) && npc.isInInstance())
|
||||
{
|
||||
@@ -218,7 +212,7 @@ public class TrainingZone extends AbstractInstance
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "GiveMatk":
|
||||
case "GiveMAtk":
|
||||
{
|
||||
if ((npc.getId() == TOKA) && npc.isInInstance())
|
||||
{
|
||||
@@ -234,7 +228,7 @@ public class TrainingZone extends AbstractInstance
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "GiveCastingSpd":
|
||||
case "GiveCastingSpeed":
|
||||
{
|
||||
if ((npc.getId() == TOKA) && npc.isInInstance())
|
||||
{
|
||||
@@ -242,7 +236,7 @@ public class TrainingZone extends AbstractInstance
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "GivePskillcriticalrate":
|
||||
case "GivePSkillCriticalRate":
|
||||
{
|
||||
if ((npc.getId() == TOKA) && npc.isInInstance())
|
||||
{
|
||||
@@ -250,7 +244,7 @@ public class TrainingZone extends AbstractInstance
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "GivePskillcriticalDamage":
|
||||
case "GivePSkillCriticalDamage":
|
||||
{
|
||||
if ((npc.getId() == TOKA) && npc.isInInstance())
|
||||
{
|
||||
@@ -258,7 +252,7 @@ public class TrainingZone extends AbstractInstance
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "GivePskillcriticalDamage+500":
|
||||
case "GivePSkillCriticalDamage+500":
|
||||
{
|
||||
if ((npc.getId() == TOKA) && npc.isInInstance())
|
||||
{
|
||||
@@ -266,7 +260,7 @@ public class TrainingZone extends AbstractInstance
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "GiveSshotsdamage":
|
||||
case "GiveShotsDamage":
|
||||
{
|
||||
if ((npc.getId() == TOKA) && npc.isInInstance())
|
||||
{
|
||||
@@ -274,7 +268,7 @@ public class TrainingZone extends AbstractInstance
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "GivePskillPower":
|
||||
case "GivePSkillPower":
|
||||
{
|
||||
if ((npc.getId() == TOKA) && npc.isInInstance())
|
||||
{
|
||||
@@ -282,7 +276,7 @@ public class TrainingZone extends AbstractInstance
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "GiveAllcriticaldamage":
|
||||
case "GiveAllCriticalDamage":
|
||||
{
|
||||
if ((npc.getId() == TOKA) && npc.isInInstance())
|
||||
{
|
||||
@@ -290,7 +284,7 @@ public class TrainingZone extends AbstractInstance
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "GiveAbsorbs3inflictedMp":
|
||||
case "GiveAbsorbs3InflictedMp":
|
||||
{
|
||||
if ((npc.getId() == TOKA) && npc.isInInstance())
|
||||
{
|
||||
@@ -298,7 +292,7 @@ public class TrainingZone extends AbstractInstance
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "GiveAbsorbs8inflictedHp":
|
||||
case "GiveAbsorbs8InflictedHp":
|
||||
{
|
||||
if ((npc.getId() == TOKA) && npc.isInInstance())
|
||||
{
|
||||
@@ -306,7 +300,7 @@ public class TrainingZone extends AbstractInstance
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "GivePdef":
|
||||
case "GivePDef":
|
||||
{
|
||||
if ((npc.getId() == ERI) && npc.isInInstance())
|
||||
{
|
||||
@@ -314,7 +308,7 @@ public class TrainingZone extends AbstractInstance
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "GiveMdef":
|
||||
case "GiveMDef":
|
||||
{
|
||||
if ((npc.getId() == ERI) && npc.isInInstance())
|
||||
{
|
||||
@@ -370,7 +364,7 @@ public class TrainingZone extends AbstractInstance
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "GiveHpPotionRevcovery":
|
||||
case "GiveHpPotionRecovery":
|
||||
{
|
||||
if ((npc.getId() == ERI) && npc.isInInstance())
|
||||
{
|
||||
@@ -383,13 +377,13 @@ public class TrainingZone extends AbstractInstance
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
if (world != null)
|
||||
{
|
||||
npc.broadcastSay(ChatType.NPC_SHOUT, "I can Summon mobs for the training");
|
||||
npc.broadcastSay(ChatType.NPC_SHOUT, "I can summon mobs for the training");
|
||||
startQuestTimer(event, 11500, npc, player);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case "NPC_BUFFSUPPORT":
|
||||
case "NPC_BUFF_SUPPORT":
|
||||
{
|
||||
if (npc.getId() == TOKA)
|
||||
{
|
||||
@@ -409,460 +403,401 @@ public class TrainingZone extends AbstractInstance
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "BOSS_LOCAL_SPAWN":
|
||||
{
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
if (npc.getVariables().getInt("TRAINIG_AREA_TELEPORT") == 1)
|
||||
{
|
||||
world.spawnGroup("tookhack");
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "DEBUFF":
|
||||
{
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
World.getInstance().forEachVisibleObjectInRange(npc, Player.class, 800, closeby ->
|
||||
{
|
||||
if (closeby.isPlayer() && (!world.getParameters().getBoolean("SayhaActive", false)))
|
||||
{
|
||||
world.getParameters().set("SayhaActive", true);
|
||||
npc.setTarget(closeby);
|
||||
npc.doCast(SAYHA_BUFF.getSkill());
|
||||
}
|
||||
});
|
||||
break;
|
||||
}
|
||||
// Last 10 Min < 600000 Boss spawn
|
||||
case "SpawnBossClockList":
|
||||
{
|
||||
// Last 10 Min < 600000 Boss spawn
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
final StatSet npcVars = player.getVariables();
|
||||
final int areaTeleport = npcVars.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
if ((areaTeleport == 1) && (world.getRemainingTime() < 600000))
|
||||
if (world.getRemainingTime() > 600000)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
final int areaTeleport = world.getParameters().getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
if (areaTeleport == 1)
|
||||
{
|
||||
addSpawn(BOOJUDU, -56776, 12532, -3384, 33897, false, 0, true, player.getInstanceId());
|
||||
}
|
||||
if ((areaTeleport == 2) && (world.getRemainingTime() < 600000))
|
||||
else if (areaTeleport == 2)
|
||||
{
|
||||
addSpawn(PETRON, -56776, 12532, -3384, 33897, false, 0, true, player.getInstanceId());
|
||||
}
|
||||
if ((areaTeleport == 3) && (world.getRemainingTime() < 600000))
|
||||
else if (areaTeleport == 3)
|
||||
{
|
||||
addSpawn(KERION, -56776, 12532, -3384, 33897, false, 0, true, player.getInstanceId());
|
||||
}
|
||||
if ((areaTeleport == 4) && (world.getRemainingTime() < 600000))
|
||||
else if (areaTeleport == 4)
|
||||
{
|
||||
addSpawn(TUKHAH, -56776, 12532, -3384, 33897, false, 0, true, player.getInstanceId());
|
||||
}
|
||||
if ((areaTeleport == 5) && (world.getRemainingTime() < 600000))
|
||||
else if (areaTeleport == 5)
|
||||
{
|
||||
addSpawn(RILVA, -51725, 6149, -245, 54160, false, 0, true, player.getInstanceId());
|
||||
}
|
||||
if ((areaTeleport == 6) && (world.getRemainingTime() < 600000))
|
||||
else if (areaTeleport == 6)
|
||||
{
|
||||
addSpawn(RILVA, -51725, 6149, -245, 54160, false, 0, true, player.getInstanceId());
|
||||
}
|
||||
if ((areaTeleport == 7) && (world.getRemainingTime() < 600000))
|
||||
else if (areaTeleport == 7)
|
||||
{
|
||||
addSpawn(RILVA, -51725, 6149, -245, 54160, false, 0, true, player.getInstanceId());
|
||||
}
|
||||
if ((areaTeleport == 8) && (world.getRemainingTime() < 600000))
|
||||
else if (areaTeleport == 8)
|
||||
{
|
||||
addSpawn(RILVA, -51725, 6149, -245, 54160, false, 0, true, player.getInstanceId());
|
||||
}
|
||||
if ((areaTeleport == 9) && (world.getRemainingTime() < 600000))
|
||||
else if (areaTeleport == 9)
|
||||
{
|
||||
addSpawn(RYUN, -51725, 6149, -245, 54160, false, 0, true, player.getInstanceId());
|
||||
}
|
||||
if ((areaTeleport == 10) && (world.getRemainingTime() < 600000))
|
||||
else if (areaTeleport == 10)
|
||||
{
|
||||
addSpawn(RYUN, -51725, 6149, -245, 54160, false, 0, true, player.getInstanceId());
|
||||
}
|
||||
if ((areaTeleport == 11) && (world.getRemainingTime() < 600000))
|
||||
else if (areaTeleport == 11)
|
||||
{
|
||||
addSpawn(RYUN, -51725, 6149, -245, 54160, false, 0, true, player.getInstanceId());
|
||||
}
|
||||
if ((areaTeleport == 12) && (world.getRemainingTime() < 600000))
|
||||
else if (areaTeleport == 12)
|
||||
{
|
||||
addSpawn(RYUN, -51725, 6149, -245, 54160, false, 0, true, player.getInstanceId());
|
||||
}
|
||||
if ((areaTeleport >= 13) && (world.getRemainingTime() < 600000))
|
||||
else if (areaTeleport >= 13)
|
||||
{
|
||||
addSpawn(CHEL, -51725, 6149, -245, 54160, false, 0, true, player.getInstanceId());
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "LIZARMENDSELECT":
|
||||
case "LIZARD_MEN_SELECT":
|
||||
{
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
|
||||
final StatSet npcVars = player.getVariables();
|
||||
final int areaTeleport = npcVars.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
final StatSet worldParameters = world.getParameters();
|
||||
final int areaTeleport = worldParameters.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
if (areaTeleport >= 1)
|
||||
{
|
||||
_summonReady = false;
|
||||
world.getNpcs().stream().filter(WorldObject::isAttackable).forEach(Npc::deleteMe);
|
||||
npcVars.remove("TRAINIG_AREA_TELEPORT");
|
||||
worldParameters.remove("TRAINIG_AREA_TELEPORT");
|
||||
return npc.getId() + "-removeselect.html";
|
||||
|
||||
}
|
||||
else if (areaTeleport == 0)
|
||||
{
|
||||
_summonReady = true;
|
||||
world.spawnGroup("PlainsoftheLizardmen");
|
||||
npcVars.set("TRAINIG_AREA_TELEPORT", areaTeleport + 1);
|
||||
|
||||
world.spawnGroup("PlainsOfTheLizardmen");
|
||||
worldParameters.set("TRAINIG_AREA_TELEPORT", areaTeleport + 1);
|
||||
return npc.getId() + "-Selected.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "SELMAHUMSELECT":
|
||||
case "SEL_MAHUM_SELECT":
|
||||
{
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
|
||||
final StatSet npcVars = player.getVariables();
|
||||
final int areaTeleport = npcVars.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
final StatSet worldParameters = world.getParameters();
|
||||
final int areaTeleport = worldParameters.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
if (areaTeleport >= 1)
|
||||
{
|
||||
_summonReady = false;
|
||||
world.getNpcs().stream().filter(WorldObject::isAttackable).forEach(Npc::deleteMe);
|
||||
npcVars.remove("TRAINIG_AREA_TELEPORT");
|
||||
worldParameters.remove("TRAINIG_AREA_TELEPORT");
|
||||
return npc.getId() + "-removeselect.html";
|
||||
}
|
||||
else if (areaTeleport == 0)
|
||||
{
|
||||
_summonReady = true;
|
||||
world.spawnGroup("SelMahumBase");
|
||||
npcVars.set("TRAINIG_AREA_TELEPORT", areaTeleport + 2);
|
||||
worldParameters.set("TRAINIG_AREA_TELEPORT", areaTeleport + 2);
|
||||
return npc.getId() + "-Selected.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "ORCBARRACKSELECT":
|
||||
case "ORC_BARRACKS_SELECT":
|
||||
{
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
|
||||
final StatSet npcVars = player.getVariables();
|
||||
final int areaTeleport = npcVars.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
final StatSet worldParameters = world.getParameters();
|
||||
final int areaTeleport = worldParameters.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
if (areaTeleport >= 1)
|
||||
{
|
||||
_summonReady = false;
|
||||
world.getNpcs().stream().filter(WorldObject::isAttackable).forEach(Npc::deleteMe);
|
||||
npcVars.remove("TRAINIG_AREA_TELEPORT");
|
||||
worldParameters.remove("TRAINIG_AREA_TELEPORT");
|
||||
return npc.getId() + "-removeselect.html";
|
||||
}
|
||||
else if (areaTeleport == 0)
|
||||
{
|
||||
_summonReady = true;
|
||||
world.spawnGroup("OrcBarrackskerrs");
|
||||
npcVars.set("TRAINIG_AREA_TELEPORT", areaTeleport + 3);
|
||||
world.spawnGroup("OrcBarracksKerrs");
|
||||
worldParameters.set("TRAINIG_AREA_TELEPORT", areaTeleport + 3);
|
||||
return npc.getId() + "-Selected.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "ORCBARRACKTUREKSELECT":
|
||||
case "ORC_BARRACKS_TUREK_SELECT":
|
||||
{
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
|
||||
final StatSet npcVars = player.getVariables();
|
||||
final int areaTeleport = npcVars.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
final StatSet worldParameters = world.getParameters();
|
||||
final int areaTeleport = worldParameters.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
if (areaTeleport >= 1)
|
||||
{
|
||||
_summonReady = false;
|
||||
world.getNpcs().stream().filter(WorldObject::isAttackable).forEach(Npc::deleteMe);
|
||||
npcVars.remove("TRAINIG_AREA_TELEPORT");
|
||||
worldParameters.remove("TRAINIG_AREA_TELEPORT");
|
||||
return npc.getId() + "-removeselect.html";
|
||||
}
|
||||
else if (areaTeleport == 0)
|
||||
{
|
||||
_summonReady = true;
|
||||
world.spawnGroup("OrcBarrackstureks");
|
||||
npcVars.set("TRAINIG_AREA_TELEPORT", areaTeleport + 4);
|
||||
world.spawnGroup("OrcBarracksTureks");
|
||||
worldParameters.set("TRAINIG_AREA_TELEPORT", areaTeleport + 4);
|
||||
return npc.getId() + "-Selected.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "TOWEROFINSOLENCESELECT":
|
||||
case "TOWER_OF_INSOLENCE_SELECT":
|
||||
{
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
|
||||
final StatSet npcVars = player.getVariables();
|
||||
final int areaTeleport = npcVars.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
final StatSet worldParameters = world.getParameters();
|
||||
final int areaTeleport = worldParameters.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
if (areaTeleport >= 1)
|
||||
{
|
||||
_summonReady = false;
|
||||
world.getNpcs().stream().filter(WorldObject::isAttackable).forEach(Npc::deleteMe);
|
||||
npcVars.remove("TRAINIG_AREA_TELEPORT");
|
||||
worldParameters.remove("TRAINIG_AREA_TELEPORT");
|
||||
return npc.getId() + "-removeselect.html";
|
||||
}
|
||||
else if (areaTeleport == 0)
|
||||
{
|
||||
_summonReady = true;
|
||||
npcVars.set("TRAINIG_AREA_TELEPORT", areaTeleport + 5);
|
||||
world.spawnGroup("TowerOfinsolence1");
|
||||
worldParameters.set("TRAINIG_AREA_TELEPORT", areaTeleport + 5);
|
||||
world.spawnGroup("TowerOfInsolence1");
|
||||
return npc.getId() + "-Selected.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "TOWEROFINSOLENCESELECT2":
|
||||
case "TOWER_OF_INSOLENCE_SELECT2":
|
||||
{
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
|
||||
final StatSet npcVars = player.getVariables();
|
||||
final int areaTeleport = npcVars.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
final StatSet worldParameters = world.getParameters();
|
||||
final int areaTeleport = worldParameters.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
if (areaTeleport >= 1)
|
||||
{
|
||||
_summonReady = false;
|
||||
world.getNpcs().stream().filter(WorldObject::isAttackable).forEach(Npc::deleteMe);
|
||||
npcVars.remove("TRAINIG_AREA_TELEPORT");
|
||||
worldParameters.remove("TRAINIG_AREA_TELEPORT");
|
||||
return npc.getId() + "-removeselect.html";
|
||||
}
|
||||
else if (areaTeleport == 0)
|
||||
{
|
||||
_summonReady = true;
|
||||
npcVars.set("TRAINIG_AREA_TELEPORT", areaTeleport + 6);
|
||||
world.spawnGroup("TowerOfinsolence2");
|
||||
worldParameters.set("TRAINIG_AREA_TELEPORT", areaTeleport + 6);
|
||||
world.spawnGroup("TowerOfInsolence2");
|
||||
return npc.getId() + "-Selected.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "TOWEROFINSOLENCESELECT3":
|
||||
case "TOWER_OF_INSOLENCE_SELECT3":
|
||||
{
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
final StatSet npcVars = player.getVariables();
|
||||
final int areaTeleport = npcVars.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
final StatSet worldParameters = world.getParameters();
|
||||
final int areaTeleport = worldParameters.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
if (areaTeleport >= 1)
|
||||
{
|
||||
_summonReady = false;
|
||||
world.getNpcs().stream().filter(WorldObject::isAttackable).forEach(Npc::deleteMe);
|
||||
npcVars.remove("TRAINIG_AREA_TELEPORT");
|
||||
worldParameters.remove("TRAINIG_AREA_TELEPORT");
|
||||
return npc.getId() + "-removeselect.html";
|
||||
}
|
||||
else if (areaTeleport == 0)
|
||||
{
|
||||
_summonReady = true;
|
||||
npcVars.set("TRAINIG_AREA_TELEPORT", areaTeleport + 7);
|
||||
world.spawnGroup("TowerOfinsolence3");
|
||||
worldParameters.set("TRAINIG_AREA_TELEPORT", areaTeleport + 7);
|
||||
world.spawnGroup("TowerOfInsolence3");
|
||||
return npc.getId() + "-Selected.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "TOWEROFINSOLENCESELECT4":
|
||||
case "TOWER_OF_INSOLENCE_SELECT4":
|
||||
{
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
final StatSet npcVars = player.getVariables();
|
||||
final int areaTeleport = npcVars.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
final StatSet worldParameters = world.getParameters();
|
||||
final int areaTeleport = worldParameters.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
if (areaTeleport >= 1)
|
||||
{
|
||||
_summonReady = false;
|
||||
world.getNpcs().stream().filter(WorldObject::isAttackable).forEach(Npc::deleteMe);
|
||||
npcVars.remove("TRAINIG_AREA_TELEPORT");
|
||||
worldParameters.remove("TRAINIG_AREA_TELEPORT");
|
||||
return npc.getId() + "-removeselect.html";
|
||||
}
|
||||
else if (areaTeleport == 0)
|
||||
{
|
||||
_summonReady = true;
|
||||
npcVars.set("TRAINIG_AREA_TELEPORT", areaTeleport + 8);
|
||||
world.spawnGroup("TowerOfinsolence4");
|
||||
worldParameters.set("TRAINIG_AREA_TELEPORT", areaTeleport + 8);
|
||||
world.spawnGroup("TowerOfInsolence4");
|
||||
return npc.getId() + "-Selected.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "TOWEROFINSOLENCESELECT5":
|
||||
case "TOWER_OF_INSOLENCE_SELECT5":
|
||||
{
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
final StatSet npcVars = player.getVariables();
|
||||
final int areaTeleport = npcVars.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
final StatSet worldParameters = world.getParameters();
|
||||
final int areaTeleport = worldParameters.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
if (areaTeleport >= 1)
|
||||
{
|
||||
_summonReady = false;
|
||||
world.getNpcs().stream().filter(WorldObject::isAttackable).forEach(Npc::deleteMe);
|
||||
npcVars.remove("TRAINIG_AREA_TELEPORT");
|
||||
worldParameters.remove("TRAINIG_AREA_TELEPORT");
|
||||
return npc.getId() + "-removeselect.html";
|
||||
}
|
||||
else if (areaTeleport == 0)
|
||||
{
|
||||
_summonReady = true;
|
||||
npcVars.set("TRAINIG_AREA_TELEPORT", areaTeleport + 9);
|
||||
world.spawnGroup("TowerOfinsolence5");
|
||||
worldParameters.set("TRAINIG_AREA_TELEPORT", areaTeleport + 9);
|
||||
world.spawnGroup("TowerOfInsolence5");
|
||||
return npc.getId() + "-Selected.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "TOWEROFINSOLENCESELECT6":
|
||||
case "TOWER_OF_INSOLENCE_SELECT6":
|
||||
{
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
final StatSet npcVars = player.getVariables();
|
||||
final int areaTeleport = npcVars.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
final StatSet worldParameters = world.getParameters();
|
||||
final int areaTeleport = worldParameters.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
if (areaTeleport >= 1)
|
||||
{
|
||||
_summonReady = false;
|
||||
world.getNpcs().stream().filter(WorldObject::isAttackable).forEach(Npc::deleteMe);
|
||||
npcVars.remove("TRAINIG_AREA_TELEPORT");
|
||||
worldParameters.remove("TRAINIG_AREA_TELEPORT");
|
||||
return npc.getId() + "-removeselect.html";
|
||||
}
|
||||
else if (areaTeleport == 0)
|
||||
{
|
||||
_summonReady = true;
|
||||
npcVars.set("TRAINIG_AREA_TELEPORT", areaTeleport + 10);
|
||||
world.spawnGroup("TowerOfinsolence6");
|
||||
worldParameters.set("TRAINIG_AREA_TELEPORT", areaTeleport + 10);
|
||||
world.spawnGroup("TowerOfInsolence6");
|
||||
return npc.getId() + "-Selected.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "TOWEROFINSOLENCESELECT7":
|
||||
case "TOWER_OF_INSOLENCE_SELECT7":
|
||||
{
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
final StatSet npcVars = player.getVariables();
|
||||
final int areaTeleport = npcVars.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
final StatSet worldParameters = world.getParameters();
|
||||
final int areaTeleport = worldParameters.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
if (areaTeleport >= 1)
|
||||
{
|
||||
_summonReady = false;
|
||||
world.getNpcs().stream().filter(WorldObject::isAttackable).forEach(Npc::deleteMe);
|
||||
npcVars.remove("TRAINIG_AREA_TELEPORT");
|
||||
worldParameters.remove("TRAINIG_AREA_TELEPORT");
|
||||
return npc.getId() + "-removeselect.html";
|
||||
}
|
||||
else if (areaTeleport == 0)
|
||||
{
|
||||
_summonReady = true;
|
||||
npcVars.set("TRAINIG_AREA_TELEPORT", areaTeleport + 11);
|
||||
world.spawnGroup("TowerOfinsolence7");
|
||||
worldParameters.set("TRAINIG_AREA_TELEPORT", areaTeleport + 11);
|
||||
world.spawnGroup("TowerOfInsolence7");
|
||||
return npc.getId() + "-Selected.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "TOWEROFINSOLENCESELECT8":
|
||||
case "TOWER_OF_INSOLENCE_SELECT8":
|
||||
{
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
final StatSet npcVars = player.getVariables();
|
||||
final int areaTeleport = npcVars.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
final StatSet worldParameters = world.getParameters();
|
||||
final int areaTeleport = worldParameters.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
if (areaTeleport >= 1)
|
||||
{
|
||||
_summonReady = false;
|
||||
world.getNpcs().stream().filter(WorldObject::isAttackable).forEach(Npc::deleteMe);
|
||||
npcVars.remove("TRAINIG_AREA_TELEPORT");
|
||||
worldParameters.remove("TRAINIG_AREA_TELEPORT");
|
||||
return npc.getId() + "-removeselect.html";
|
||||
}
|
||||
else if (areaTeleport == 0)
|
||||
{
|
||||
_summonReady = true;
|
||||
npcVars.set("TRAINIG_AREA_TELEPORT", areaTeleport + 12);
|
||||
world.spawnGroup("TowerOfinsolence8");
|
||||
worldParameters.set("TRAINIG_AREA_TELEPORT", areaTeleport + 12);
|
||||
world.spawnGroup("TowerOfInsolence8");
|
||||
return npc.getId() + "-Selected.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "TOWEROFINSOLENCESELECT9":
|
||||
case "TOWER_OF_INSOLENCE_SELECT9":
|
||||
{
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
final StatSet npcVars = player.getVariables();
|
||||
final int areaTeleport = npcVars.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
final StatSet worldParameters = world.getParameters();
|
||||
final int areaTeleport = worldParameters.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
if (areaTeleport >= 1)
|
||||
{
|
||||
_summonReady = false;
|
||||
world.getNpcs().stream().filter(WorldObject::isAttackable).forEach(Npc::deleteMe);
|
||||
npcVars.remove("TRAINIG_AREA_TELEPORT");
|
||||
worldParameters.remove("TRAINIG_AREA_TELEPORT");
|
||||
return npc.getId() + "-removeselect.html";
|
||||
}
|
||||
else if (areaTeleport == 0)
|
||||
{
|
||||
_summonReady = true;
|
||||
npcVars.set("TRAINIG_AREA_TELEPORT", areaTeleport + 13);
|
||||
world.spawnGroup("TowerOfinsolence9");
|
||||
worldParameters.set("TRAINIG_AREA_TELEPORT", areaTeleport + 13);
|
||||
world.spawnGroup("TowerOfInsolence9");
|
||||
return npc.getId() + "-Selected.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "TOWEROFINSOLENCESELECT10":
|
||||
case "TOWER_OF_INSOLENCE_SELECT10":
|
||||
{
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
final StatSet npcVars = player.getVariables();
|
||||
final int areaTeleport = npcVars.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
final StatSet worldParameters = world.getParameters();
|
||||
final int areaTeleport = worldParameters.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
if (areaTeleport >= 1)
|
||||
{
|
||||
_summonReady = false;
|
||||
world.getNpcs().stream().filter(WorldObject::isAttackable).forEach(Npc::deleteMe);
|
||||
npcVars.remove("TRAINIG_AREA_TELEPORT");
|
||||
worldParameters.remove("TRAINIG_AREA_TELEPORT");
|
||||
return npc.getId() + "-removeselect.html";
|
||||
|
||||
}
|
||||
else if (areaTeleport == 0)
|
||||
{
|
||||
_summonReady = true;
|
||||
npcVars.set("TRAINIG_AREA_TELEPORT", areaTeleport + 14);
|
||||
world.spawnGroup("TowerOfinsolence10");
|
||||
worldParameters.set("TRAINIG_AREA_TELEPORT", areaTeleport + 14);
|
||||
world.spawnGroup("TowerOfInsolence10");
|
||||
return npc.getId() + "-Selected.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "TOWEROFINSOLENCESELECT11":
|
||||
case "TOWER_OF_INSOLENCE_SELECT11":
|
||||
{
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
final StatSet npcVars = player.getVariables();
|
||||
final int areaTeleport = npcVars.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
final StatSet worldParameters = world.getParameters();
|
||||
final int areaTeleport = worldParameters.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
if (areaTeleport >= 1)
|
||||
{
|
||||
_summonReady = false;
|
||||
world.getNpcs().stream().filter(WorldObject::isAttackable).forEach(Npc::deleteMe);
|
||||
npcVars.remove("TRAINIG_AREA_TELEPORT");
|
||||
worldParameters.remove("TRAINIG_AREA_TELEPORT");
|
||||
return npc.getId() + "-removeselect.html";
|
||||
|
||||
}
|
||||
else if (areaTeleport == 0)
|
||||
{
|
||||
_summonReady = true;
|
||||
npcVars.set("TRAINIG_AREA_TELEPORT", areaTeleport + 15);
|
||||
world.spawnGroup("TowerOfinsolence11");
|
||||
worldParameters.set("TRAINIG_AREA_TELEPORT", areaTeleport + 15);
|
||||
world.spawnGroup("TowerOfInsolence11");
|
||||
return npc.getId() + "-Selected.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "TOWEROFINSOLENCESELECT12":
|
||||
case "TOWER_OF_INSOLENCE_SELECT12":
|
||||
{
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
final StatSet npcVars = player.getVariables();
|
||||
final int areaTeleport = npcVars.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
final StatSet worldParameters = world.getParameters();
|
||||
final int areaTeleport = worldParameters.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
if (areaTeleport >= 1)
|
||||
{
|
||||
_summonReady = false;
|
||||
world.getNpcs().stream().filter(WorldObject::isAttackable).forEach(Npc::deleteMe);
|
||||
npcVars.remove("TRAINIG_AREA_TELEPORT");
|
||||
worldParameters.remove("TRAINIG_AREA_TELEPORT");
|
||||
return npc.getId() + "-removeselect.html";
|
||||
}
|
||||
else if (areaTeleport == 0)
|
||||
{
|
||||
_summonReady = true;
|
||||
npcVars.set("TRAINIG_AREA_TELEPORT", areaTeleport + 16);
|
||||
world.spawnGroup("TowerOfinsolence12");
|
||||
worldParameters.set("TRAINIG_AREA_TELEPORT", areaTeleport + 16);
|
||||
world.spawnGroup("TowerOfInsolence12");
|
||||
return npc.getId() + "-Selected.html";
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "LOCALTELEPORT":
|
||||
case "LOCAL_TELEPORT":
|
||||
{
|
||||
final StatSet npcVars = player.getVariables();
|
||||
final int areaTeleport = npcVars.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
final int areaTeleport = world.getParameters().getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
if (areaTeleport <= 4)
|
||||
{
|
||||
player.teleToLocation(LOCAL_AREA);
|
||||
|
||||
_teleported = true;
|
||||
world.setParameter("BATTLEZONE", true);
|
||||
}
|
||||
if (areaTeleport >= 5)
|
||||
{
|
||||
player.teleToLocation(INSOLENCE_TOWER);
|
||||
_teleported = true;
|
||||
world.setParameter("BATTLEZONE", true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "LOCALTELEPORTRETURN":
|
||||
case "LOCAL_TELEPORT_RETURN":
|
||||
{
|
||||
final StatSet npcVars = player.getVariables();
|
||||
final int areaTeleport = npcVars.getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
if (areaTeleport >= 1)
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
if (world.getParameters().getBoolean("BATTLEZONE", true))
|
||||
{
|
||||
_teleported = false;
|
||||
player.teleToLocation(WAITING_AREA);
|
||||
npcVars.remove("TRAINIG_AREA_TELEPORT");
|
||||
world.setParameter("BATTLEZONE", false);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -897,11 +832,13 @@ public class TrainingZone extends AbstractInstance
|
||||
@Override
|
||||
public String onFirstTalk(Npc npc, Player player)
|
||||
{
|
||||
if (_teleported && (npc.getId() == TIND))
|
||||
final Instance world = npc.getInstanceWorld();
|
||||
if (world.getParameters().getBoolean("BATTLEZONE", true) && (npc.getId() == TIND))
|
||||
{
|
||||
return npc.getId() + "-waitingzone.html";
|
||||
}
|
||||
if (_summonReady && (npc.getId() == TIND))
|
||||
final int areaTeleport = world.getParameters().getInt("TRAINIG_AREA_TELEPORT", 0);
|
||||
if ((areaTeleport >= 1) && (npc.getId() == TIND))
|
||||
{
|
||||
return npc.getId() + "-teleport.html";
|
||||
}
|
||||
@@ -939,14 +876,14 @@ public class TrainingZone extends AbstractInstance
|
||||
player.sendPacket(new ExSendUIEvent(player, true, false, 3600, 0, NpcStringId.TIME_LEFT));
|
||||
player.sendPacket(TimedHuntingZoneExit.STATIC_PACKET);
|
||||
removeBuffs(player);
|
||||
final StatSet npcVars = player.getVariables();
|
||||
npcVars.remove("TRAINIG_AREA_TELEPORT");
|
||||
instance.getParameters().remove("TRAINIG_AREA_TELEPORT");
|
||||
instance.finishInstance();
|
||||
}
|
||||
|
||||
private void startEvent(Player player)
|
||||
{
|
||||
final Instance instance = player.getInstanceWorld();
|
||||
instance.setParameter("BATTLEZONE", false);
|
||||
player.sendPacket(new ExSendUIEvent(player, false, false, Math.min(3600, (int) (instance.getRemainingTime() / 1000)), 0, NpcStringId.TIME_LEFT));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user