Sync with L2JServer Jan 26th 2015.

This commit is contained in:
mobius
2015-01-27 01:59:37 +00:00
parent 5d7ab65416
commit bfe682bbe3
63 changed files with 1049 additions and 1306 deletions

View File

@@ -36,14 +36,15 @@ Characters Related:<br1>
<tr>
<td><button value="Vit Set" action="bypass -h admin_set_vitality $qbox" width=82 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Vit Max" action="bypass -h admin_full_vitality" width=82 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Get Buffs" action="bypass -h admin_getbuffs $qbox" width=82 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
<tr>
<td><button value="Get Buffs" action="bypass -h admin_getbuffs $qbox" width=82 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Party" action="bypass -h admin_partyinfo" width=82 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Quests" action="bypass -h admin_charquestmenu $qbox" width=82 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Effects" action="bypass -h admin_admin3" width=82 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
<tr>
<td><button value="Party" action="bypass -h admin_partyinfo" width=82 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td></td>
<td></td>
<td></td>
</tr>

View File

@@ -28,22 +28,16 @@ Character Based:<br1>
<td><button value="UnPara All" action="bypass -h admin_unpara_all_menu" width=65 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
<tr>
<td><br></td>
</tr>
<tr>
<td><button value="Abnormal" action="bypass -h admin_ave_abnormal $qbox" width=65 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td></td>
<td></td>
</tr>
<tr>
<td><button value="Social" action="bypass -h admin_social_menu $qbox" width=65 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Effect" action="bypass -h admin_effect_menu $qbox" width=65 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Abnormal" action="bypass -h admin_ave_abnormal $qbox" width=65 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Displ.Eff." action="bypass -h admin_set_displayeffect_menu $qbox" width=65 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
<tr>
<td><button value="Transform" action="bypass -h admin_transform_menu $qbox" width=65 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Small Head" action="bypass -h admin_shrinkhead" width=65 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Big Head" action="bypass -h admin_bighead" width=65 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="DisplayEffect" action="bypass -h admin_set_displayeffect_menu $qbox" width=65 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="SmallHead" action="bypass -h admin_shrinkhead" width=65 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="BigHead" action="bypass -h admin_bighead" width=65 height=21 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td></td>
</tr>
</table>
<br><br>
@@ -63,4 +57,4 @@ World Based:<br1>
</tr></table><br><br>
<br><br>
</center>
</body></html>
</body></html>

View File

@@ -26,7 +26,7 @@ Clan Related:<br1>
<tr>
<td><button value="Delete" action="bypass -h admin_pledge dismiss $qbox" width=82 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Reputation" action="bypass -h admin_pledge rep $qbox" width=82 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Pending leaders" action="bypass -h admin_clan_show_pending" width=82 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Pen. leaders" action="bypass -h admin_clan_show_pending" width=82 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
</table>
<br>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- TODO: Remove "castle" attributes from here, it should be loaded from TaxZones -->
<list enabled="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/MapRegion.xsd">
<!-- Faeron Town -->
<region name="faeron_village" town="Fearon Village" castle="1" locId="910" bbs="1">
<respawnPoint X="-78615" Y="248628" Z="-3296" />
<respawnPoint X="-80316" Y="248142" Z="-3488" />
<respawnPoint X="-78306" Y="244526" Z="-3688" isChaotic="true" />
<map X="17" Y="25" />
</region>
</list>

View File

@@ -3,40 +3,11 @@
<list enabled="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/MapRegion.xsd">
<!-- Talking Island Town -->
<region name="talking_island_town" town="Talking Island Town" castle="1" locId="910" bbs="1">
<respawnPoint X="-83990" Y="243336" Z="-3700" />
<respawnPoint X="-83964" Y="242680" Z="-3700" />
<respawnPoint X="-84512" Y="242679" Z="-3700" />
<respawnPoint X="-84623" Y="243193" Z="-3700" />
<respawnPoint X="-83742" Y="242214" Z="-3700" />
<respawnPoint X="-83537" Y="242537" Z="-3700" />
<respawnPoint X="-83700" Y="242896" Z="-3700" />
<respawnPoint X="-83646" Y="243397" Z="-3700" />
<respawnPoint X="-83808" Y="243637" Z="-3700" />
<respawnPoint X="-84903" Y="243489" Z="-3700" />
<respawnPoint X="-84852" Y="243174" Z="-3700" />
<respawnPoint X="-84892" Y="242479" Z="-3700" />
<respawnPoint X="-84756" Y="242155" Z="-3700" />
<respawnPoint X="-83761" Y="243620" Z="-3700" />
<respawnPoint X="-79411" Y="240677" Z="-3450" isChaotic="true" />
<respawnPoint X="-80480" Y="242640" Z="-3690" isChaotic="true" />
<respawnPoint X="-80336" Y="244656" Z="-3680" isChaotic="true" />
<respawnPoint X="-82464" Y="247248" Z="-3570" isChaotic="true" />
<respawnPoint X="-89522" Y="241696" Z="-3530" isChaotic="true" />
<respawnPoint X="-87056" Y="237952" Z="-3580" isChaotic="true" />
<respawnPoint X="-89536" Y="240336" Z="-3560" isChaotic="true" />
<respawnPoint X="-88208" Y="241360" Z="-3560" isChaotic="true" />
<respawnPoint X="-85328" Y="238080" Z="-3660" isChaotic="true" />
<respawnPoint X="-89760" Y="237408" Z="-3660" isChaotic="true" />
<respawnPoint X="-92976" Y="240560" Z="-3380" isChaotic="true" />
<respawnPoint X="-94448" Y="240944" Z="-3300" isChaotic="true" />
<respawnPoint X="-93552" Y="245296" Z="-3530" isChaotic="true" />
<respawnPoint X="-91584" Y="238480" Z="-3650" isChaotic="true" />
<respawnPoint X="-88720" Y="238976" Z="-3650" isChaotic="true" />
<respawnPoint X="-91760" Y="243664" Z="-3440" isChaotic="true" />
<respawnPoint X="-81680" Y="249696" Z="-3630" isChaotic="true" />
<respawnPoint X="-83808" Y="251264" Z="-3630" isChaotic="true" />
<respawnPoint X="-83328" Y="238304" Z="-3700" isChaotic="true" />
<respawnPoint X="-91296" Y="236272" Z="-3690" isChaotic="true" />
<respawnPoint X="-114336" Y="255654" Z="-1512" />
<respawnPoint X="-114742" Y="255603" Z="-1512" />
<respawnPoint X="-113990" Y="255700" Z="-1504" />
<respawnPoint X="-119602" Y="246335" Z="-1232" isChaotic="true" />
<respawnPoint X="-119756" Y="246335" Z="-1232" isChaotic="true" />
<map X="15" Y="23" />
<map X="15" Y="24" />
<map X="15" Y="25" />
@@ -44,61 +15,6 @@
<map X="16" Y="24" />
<map X="16" Y="25" />
<map X="17" Y="24" />
<map X="17" Y="25" />
<map X="18" Y="25" />
</region>
<!-- Cedric's Training Hall -->
<region name="Cedric's_Training_Hall" town="Talking Island Town" castle="1" locId="910" bbs="1">
<respawnPoint X="-71338" Y="258271" Z="-3104" />
<respawnPoint X="-71417" Y="258270" Z="-3104" />
<respawnPoint X="-71453" Y="258305" Z="-3104" />
<respawnPoint X="-71467" Y="258378" Z="-3104" />
<respawnPoint X="-79411" Y="240677" Z="-3450" isChaotic="true" />
<respawnPoint X="-80480" Y="242640" Z="-3690" isChaotic="true" />
<respawnPoint X="-80336" Y="244656" Z="-3680" isChaotic="true" />
<respawnPoint X="-82464" Y="247248" Z="-3570" isChaotic="true" />
<respawnPoint X="-89522" Y="241696" Z="-3530" isChaotic="true" />
<respawnPoint X="-87056" Y="237952" Z="-3580" isChaotic="true" />
<respawnPoint X="-89536" Y="240336" Z="-3560" isChaotic="true" />
<respawnPoint X="-88208" Y="241360" Z="-3560" isChaotic="true" />
<respawnPoint X="-85328" Y="238080" Z="-3660" isChaotic="true" />
<respawnPoint X="-89760" Y="237408" Z="-3660" isChaotic="true" />
<respawnPoint X="-92976" Y="240560" Z="-3380" isChaotic="true" />
<respawnPoint X="-94448" Y="240944" Z="-3300" isChaotic="true" />
<respawnPoint X="-93552" Y="245296" Z="-3530" isChaotic="true" />
<respawnPoint X="-91584" Y="238480" Z="-3650" isChaotic="true" />
<respawnPoint X="-88720" Y="238976" Z="-3650" isChaotic="true" />
<respawnPoint X="-91760" Y="243664" Z="-3440" isChaotic="true" />
<respawnPoint X="-81680" Y="249696" Z="-3630" isChaotic="true" />
<respawnPoint X="-83808" Y="251264" Z="-3630" isChaotic="true" />
<respawnPoint X="-83328" Y="238304" Z="-3700" isChaotic="true" />
<respawnPoint X="-91296" Y="236272" Z="-3690" isChaotic="true" />
</region>
<!-- Einhovant's School Of Magic -->
<region name="Einhovant's_School_of_Magic" town="Talking Island Town" castle="1" locId="910" bbs="1">
<respawnPoint X="-90875" Y="248162" Z="-3570" />
<respawnPoint X="-90954" Y="248118" Z="-3570" />
<respawnPoint X="-90918" Y="248070" Z="-3570" />
<respawnPoint X="-90890" Y="248027" Z="-3570" />
<respawnPoint X="-79411" Y="240677" Z="-3450" isChaotic="true" />
<respawnPoint X="-80480" Y="242640" Z="-3690" isChaotic="true" />
<respawnPoint X="-80336" Y="244656" Z="-3680" isChaotic="true" />
<respawnPoint X="-82464" Y="247248" Z="-3570" isChaotic="true" />
<respawnPoint X="-89522" Y="241696" Z="-3530" isChaotic="true" />
<respawnPoint X="-87056" Y="237952" Z="-3580" isChaotic="true" />
<respawnPoint X="-89536" Y="240336" Z="-3560" isChaotic="true" />
<respawnPoint X="-88208" Y="241360" Z="-3560" isChaotic="true" />
<respawnPoint X="-85328" Y="238080" Z="-3660" isChaotic="true" />
<respawnPoint X="-89760" Y="237408" Z="-3660" isChaotic="true" />
<respawnPoint X="-92976" Y="240560" Z="-3380" isChaotic="true" />
<respawnPoint X="-94448" Y="240944" Z="-3300" isChaotic="true" />
<respawnPoint X="-93552" Y="245296" Z="-3530" isChaotic="true" />
<respawnPoint X="-91584" Y="238480" Z="-3650" isChaotic="true" />
<respawnPoint X="-88720" Y="238976" Z="-3650" isChaotic="true" />
<respawnPoint X="-91760" Y="243664" Z="-3440" isChaotic="true" />
<respawnPoint X="-81680" Y="249696" Z="-3630" isChaotic="true" />
<respawnPoint X="-83808" Y="251264" Z="-3630" isChaotic="true" />
<respawnPoint X="-83328" Y="238304" Z="-3700" isChaotic="true" />
<respawnPoint X="-91296" Y="236272" Z="-3690" isChaotic="true" />
</region>
</list>

View File

@@ -141,7 +141,6 @@ ai/individual/Venom/Venom.java
ai/individual/Anais.java
ai/individual/Ballista.java
ai/individual/Beleth.java
ai/individual/CatsEyeBandit.java
ai/individual/CrimsonHatuOtis.java
ai/individual/Core.java
ai/individual/DarkWaterDragon.java

View File

@@ -190,7 +190,7 @@ public final class DragonValley extends AbstractNpcAI
{
spawnGhost(npc, killer, isSummon, 20);
}
else if (((L2Attackable) npc).isSweepActive())
else if (((L2Attackable) npc).isSpoiled())
{
npc.dropItem(killer, getRandom(GREATER_HERB_OF_MANA, SUPERIOR_HERB_OF_MANA), 1);
manageMoraleBoost(killer, npc);

View File

@@ -1,76 +0,0 @@
/*
* Copyright (C) 2004-2015 L2J DataPack
*
* This file is part of L2J DataPack.
*
* L2J DataPack 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.
*
* L2J DataPack 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.individual;
import ai.npc.AbstractNpcAI;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.itemcontainer.Inventory;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.network.NpcStringId;
import com.l2jserver.gameserver.network.clientpackets.Say2;
/**
* Cat's Eye Bandit (Quest Monster) AI.
* @author Gladicek
*/
public final class CatsEyeBandit extends AbstractNpcAI
{
// NPC ID
private static final int MOB_ID = 27038;
// Weapons
private static final int BOW = 1181;
private static final int DAGGER = 1182;
private CatsEyeBandit()
{
super(CatsEyeBandit.class.getSimpleName(), "ai/individual");
addAttackId(MOB_ID);
addKillId(MOB_ID);
}
@Override
public String onAttack(L2Npc npc, L2PcInstance attacker, int damage, boolean isSummon)
{
final QuestState qs = attacker.getQuestState("403_PathToRogue"); // TODO: Replace with class name.
if (npc.isScriptValue(0) && (qs != null) && ((qs.getItemEquipped(Inventory.PAPERDOLL_RHAND) == BOW) || (qs.getItemEquipped(Inventory.PAPERDOLL_RHAND) == DAGGER)))
{
broadcastNpcSay(npc, Say2.NPC_ALL, NpcStringId.YOU_CHILDISH_FOOL_DO_YOU_THINK_YOU_CAN_CATCH_ME);
npc.setScriptValue(1);
}
return super.onAttack(npc, attacker, damage, isSummon);
}
@Override
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
final QuestState qs = killer.getQuestState("403_PathToRogue"); // TODO: Replace with class name.
if (qs != null)
{
broadcastNpcSay(npc, Say2.NPC_ALL, NpcStringId.I_MUST_DO_SOMETHING_ABOUT_THIS_SHAMEFUL_INCIDENT);
}
return super.onKill(npc, killer, isSummon);
}
public static void main(String[] args)
{
new CatsEyeBandit();
}
}

View File

@@ -197,7 +197,7 @@ public class MentorGuide extends AbstractNpcAI implements IXmlReader
event.getMentor().sendPacket(new ExMentorList(event.getMentor()));
// Add the mentee skill
event.getMentee().addSkill(MENTEE_MENTOR_SUMMON.getSkill(), false);
event.getMentee().addSkill(MENTEE_MENTOR_SUMMON.getSkill(), true);
// Send mail with the headphone
sendMail(event.getMentee(), MENTEE_ADDED_TITLE, MENTEE_ADDED_BODY, MENTEE_HEADPHONE, 1);
@@ -400,6 +400,8 @@ public class MentorGuide extends AbstractNpcAI implements IXmlReader
if (mentor != null)
{
MentorManager.getInstance().setPenalty(mentor.getObjectId(), Config.MENTOR_PENALTY_FOR_MENTEE_COMPLETE);
MentorManager.getInstance().deleteMentor(mentor.getObjectId(), player.getObjectId());
if (mentor.isOnline())
{
mentor.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.S1_HAS_AWAKENED_AND_THE_MENTOR_MENTEE_RELATIONSHIP_HAS_ENDED_THE_MENTOR_CANNOT_OBTAIN_ANOTHER_MENTEE_FOR_ONE_DAY_AFTER_THE_MENTEE_S_GRADUATION).addPcName(player));
@@ -411,8 +413,6 @@ public class MentorGuide extends AbstractNpcAI implements IXmlReader
mentor.sendPacket(new ExMentorList(mentor.getPlayerInstance()));
}
MentorManager.getInstance().deleteMentor(mentor.getObjectId(), player.getObjectId());
// Remove the mentee skills
player.removeSkill(MENTEE_MENTOR_SUMMON.getSkillId());
@@ -445,13 +445,18 @@ public class MentorGuide extends AbstractNpcAI implements IXmlReader
int amount = MENTEE_COINS.get(player.getLevel());
if (amount > 0)
{
sendMail(player, LEVEL_UP_TITLE, String.format(LEVEL_UP_BODY, player.getName(), player.getLevel()), MENTEE_MARK, amount);
sendMail(mentor.getObjectId(), player, LEVEL_UP_TITLE, String.format(LEVEL_UP_BODY, player.getName(), player.getLevel()), MENTEE_MARK, amount);
}
}
private void sendMail(L2PcInstance player, String title, String body, int itemId, long amount)
{
final Message msg = new Message(MENTOR_GUIDE, player.getObjectId(), title, body, MailType.MENTOR_NPC);
sendMail(player.getObjectId(), player, title, body, itemId, amount);
}
private void sendMail(int objectId, L2PcInstance player, String title, String body, int itemId, long amount)
{
final Message msg = new Message(MENTOR_GUIDE, objectId, title, body, MailType.MENTOR_NPC);
msg.createAttachments().addItem(getName(), itemId, amount, null, player);
MailManager.getInstance().sendMessage(msg);

View File

@@ -69,9 +69,9 @@ public final class GrandBossTeleporters extends AbstractNpcAI
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = "";
QuestState st = getQuestState(player, false);
final QuestState st = getQuestState(player, false);
if (st.hasQuestItems(VACUALITE_FLOATING_STONE))
if (hasQuestItems(player, VACUALITE_FLOATING_STONE))
{
player.teleToLocation(ENTER_HALL_OF_FLAMES);
st.set("allowEnter", "1");
@@ -87,12 +87,7 @@ public final class GrandBossTeleporters extends AbstractNpcAI
public String onTalk(L2Npc npc, L2PcInstance player)
{
String htmltext = "";
QuestState st = getQuestState(player, true);
if (st == null)
{
return null;
}
final QuestState st = getQuestState(player, true);
switch (npc.getId())
{

View File

@@ -22,7 +22,6 @@ import com.l2jserver.gameserver.data.xml.impl.MultisellData;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
/**
* Newbie Weapon/Accesories Coupons for the Hellbound opening event.<br>
@@ -79,7 +78,6 @@ public final class NewbieCoupons extends Quest
return htmltext;
}
QuestState st = getQuestState(player, false);
int newbie = player.getNewbie();
int level = player.getLevel();
int occupation_level = player.getClassId().level();
@@ -95,7 +93,7 @@ public final class NewbieCoupons extends Quest
if ((newbie | NEWBIE_WEAPON) != newbie)
{
player.setNewbie(newbie | NEWBIE_WEAPON);
st.giveItems(COUPON_ONE, 5);
giveItems(player, COUPON_ONE, 5);
htmltext = "30598-2.htm"; // here's the coupon you requested
}
else
@@ -116,7 +114,7 @@ public final class NewbieCoupons extends Quest
if ((newbie | NEWBIE_ACCESORY) != newbie)
{
player.setNewbie(newbie | NEWBIE_ACCESORY);
st.giveItems(COUPON_TWO, 1);
giveItems(player, COUPON_TWO, 1);
htmltext = "30598-5.htm"; // here's the coupon you requested
}
else

View File

@@ -23,7 +23,6 @@ import com.l2jserver.gameserver.model.L2Spawn;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.util.Util;
/**
@@ -273,12 +272,6 @@ public final class NpcLocationInfo extends Quest
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = event;
QuestState st = getQuestState(player, false);
if (st == null)
{
return htmltext;
}
if (Util.isDigit(event))
{
@@ -295,10 +288,9 @@ public final class NpcLocationInfo extends Quest
y = spawn.getY();
z = spawn.getZ();
}
st.addRadar(x, y, z);
addRadar(player, x, y, z);
htmltext = "MoveToLoc.htm";
}
st.exitQuest(true);
}
return htmltext;
}

View File

@@ -21,8 +21,6 @@ package events.CharacterBirthday;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.model.quest.State;
import com.l2jserver.gameserver.util.Util;
/**
@@ -71,8 +69,6 @@ public final class CharacterBirthday extends Quest
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = event;
QuestState st = getQuestState(player, false);
if (event.equalsIgnoreCase("despawn_npc"))
{
npc.doDie(player);
@@ -83,10 +79,10 @@ public final class CharacterBirthday extends Quest
else if (event.equalsIgnoreCase("change"))
{
// Change Hat
if (st.hasQuestItems(10250))
if (hasQuestItems(player, 10250))
{
st.takeItems(10250, 1); // Adventurer Hat (Event)
st.giveItems(21594, 1); // Birthday Hat
takeItems(player, 10250, 1); // Adventurer Hat (Event)
giveItems(player, 21594, 1); // Birthday Hat
htmltext = null; // FIXME: Probably has html
// Despawn npc
npc.doDie(player);
@@ -108,13 +104,10 @@ public final class CharacterBirthday extends Quest
return "busy.htm";
}
QuestState st = getQuestState(player, true);
if (!Util.checkIfInRange(10, npc, player, true))
{
L2Npc spawned = st.addSpawn(32600, player.getX() + 10, player.getY() + 10, player.getZ() + 10, 0, false, 0, true);
st.setState(State.STARTED);
st.startQuestTimer("despawn_npc", 180000, spawned);
L2Npc spawned = addSpawn(32600, player.getX() + 10, player.getY() + 10, player.getZ() + 10, 0, false, 0, true);
startQuestTimer("despawn_npc", 180000, spawned, player);
SPAWNS++;
}
else

View File

@@ -23,8 +23,6 @@ import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.event.LongTimeEvent;
import com.l2jserver.gameserver.model.itemcontainer.Inventory;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.model.quest.State;
import com.l2jserver.gameserver.model.skills.Skill;
import com.l2jserver.gameserver.network.NpcStringId;
import com.l2jserver.gameserver.network.SystemMessageId;
@@ -79,15 +77,9 @@ public final class FreyaCelebration extends LongTimeEvent
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
QuestState st = getQuestState(player, false);
if (st == null)
{
return null;
}
if (event.equalsIgnoreCase("give_potion"))
{
if (st.getQuestItemsCount(Inventory.ADENA_ID) > 1)
if (getQuestItemsCount(player, Inventory.ADENA_ID) > 1)
{
long _curr_time = System.currentTimeMillis();
String value = loadGlobalQuestVar(player.getAccountName());
@@ -95,9 +87,8 @@ public final class FreyaCelebration extends LongTimeEvent
if (_curr_time > _reuse_time)
{
st.setState(State.STARTED);
st.takeItems(Inventory.ADENA_ID, 1);
st.giveItems(FREYA_POTION, 1);
takeItems(player, Inventory.ADENA_ID, 1);
giveItems(player, FREYA_POTION, 1);
saveGlobalQuestVar(player.getAccountName(), Long.toString(System.currentTimeMillis() + (HOURS * 3600000)));
}
else
@@ -156,7 +147,6 @@ public final class FreyaCelebration extends LongTimeEvent
@Override
public String onFirstTalk(L2Npc npc, L2PcInstance player)
{
getQuestState(player, true);
return "13296.htm";
}

View File

@@ -22,8 +22,6 @@ import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.event.LongTimeEvent;
import com.l2jserver.gameserver.model.holders.SkillHolder;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.model.quest.State;
import com.l2jserver.gameserver.network.SystemMessageId;
import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
@@ -76,6 +74,11 @@ public final class GiftOfVitality extends LongTimeEvent
new SkillHolder(5636, 1), // Empower
};
// Misc
private static final int HOURS = 5; // Reuse between buffs
private static final int MIN_LEVEL = 75;
private static final String REUSE = GiftOfVitality.class.getSimpleName() + "_reuse";
private GiftOfVitality()
{
super(GiftOfVitality.class.getSimpleName(), "events");
@@ -84,29 +87,18 @@ public final class GiftOfVitality extends LongTimeEvent
addTalkId(STEVE_SHYAGEL);
}
// Misc
private static final int HOURS = 5; // Reuse between buffs
private static final int MIN_LEVEL = 75;
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = event;
QuestState st = getQuestState(player, false);
switch (event)
{
case "vitality":
{
long _reuse = 0;
String _streuse = st.get("reuse");
if (_streuse != null)
final long reuse = player.getVariables().getLong(REUSE, 0);
if (reuse > System.currentTimeMillis())
{
_reuse = Long.parseLong(_streuse);
}
if (_reuse > System.currentTimeMillis())
{
long remainingTime = (_reuse - System.currentTimeMillis()) / 1000;
long remainingTime = (reuse - System.currentTimeMillis()) / 1000;
int hours = (int) (remainingTime / 3600);
int minutes = (int) ((remainingTime % 3600) / 60);
SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1_WILL_BE_AVAILABLE_FOR_RE_USE_AFTER_S2_HOUR_S_S3_MINUTE_S);
@@ -120,8 +112,7 @@ public final class GiftOfVitality extends LongTimeEvent
{
player.doCast(GIFT_OF_VITALITY.getSkill());
player.doSimultaneousCast(JOY_OF_VITALITY.getSkill());
st.setState(State.STARTED);
st.set("reuse", String.valueOf(System.currentTimeMillis() + (HOURS * 3600000)));
player.getVariables().set(REUSE, System.currentTimeMillis() + (HOURS * 3600000));
htmltext = "4306-okvitality.htm";
}
break;
@@ -175,10 +166,6 @@ public final class GiftOfVitality extends LongTimeEvent
@Override
public String onFirstTalk(L2Npc npc, L2PcInstance player)
{
if (player.getQuestState(getName()) == null)
{
newQuestState(player);
}
return "4306.htm";
}

View File

@@ -22,7 +22,6 @@ import com.l2jserver.gameserver.enums.QuestSound;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.event.LongTimeEvent;
import com.l2jserver.gameserver.model.quest.QuestState;
/**
* Heavy Medals event AI.
@@ -65,28 +64,22 @@ public final class HeavyMedal extends LongTimeEvent
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
if (st == null)
{
return getNoQuestMsg(player);
}
String htmltext = event;
int level = checkLevel(st);
int level = checkLevel(player);
if (event.equalsIgnoreCase("game"))
{
htmltext = st.getQuestItemsCount(GLITTERING_MEDAL) < MEDALS[level] ? "31229-no.htm" : "31229-game.htm";
htmltext = getQuestItemsCount(player, GLITTERING_MEDAL) < MEDALS[level] ? "31229-no.htm" : "31229-game.htm";
}
else if (event.equalsIgnoreCase("heads") || event.equalsIgnoreCase("tails"))
{
if (st.getQuestItemsCount(GLITTERING_MEDAL) < MEDALS[level])
if (getQuestItemsCount(player, GLITTERING_MEDAL) < MEDALS[level])
{
htmltext = "31229-" + event.toLowerCase() + "-10.htm";
}
else
{
st.takeItems(GLITTERING_MEDAL, MEDALS[level]);
takeItems(player, GLITTERING_MEDAL, MEDALS[level]);
if (getRandom(100) > WIN_CHANCE)
{
@@ -96,10 +89,10 @@ public final class HeavyMedal extends LongTimeEvent
{
if (level > 0)
{
st.takeItems(BADGES[level - 1], -1);
takeItems(player, BADGES[level - 1], -1);
}
st.giveItems(BADGES[level], 1);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
giveItems(player, BADGES[level], 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
level++;
}
htmltext = "31229-" + event.toLowerCase() + "-" + String.valueOf(level) + ".htm";
@@ -122,22 +115,22 @@ public final class HeavyMedal extends LongTimeEvent
return npc.getId() + ".htm";
}
public int checkLevel(QuestState st)
public int checkLevel(L2PcInstance player)
{
int _lev = 0;
if (st.hasQuestItems(6402))
if (hasQuestItems(player, 6402))
{
_lev = 4;
}
else if (st.hasQuestItems(6401))
else if (hasQuestItems(player, 6401))
{
_lev = 3;
}
else if (st.hasQuestItems(6400))
else if (hasQuestItems(player, 6400))
{
_lev = 2;
}
else if (st.hasQuestItems(6399))
else if (hasQuestItems(player, 6399))
{
_lev = 1;
}

View File

@@ -23,8 +23,6 @@ import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.event.LongTimeEvent;
import com.l2jserver.gameserver.model.holders.SkillHolder;
import com.l2jserver.gameserver.model.itemcontainer.Inventory;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.model.quest.State;
import com.l2jserver.gameserver.network.SystemMessageId;
import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
@@ -38,11 +36,12 @@ public final class LoveYourGatekeeper extends LongTimeEvent
private static final int GATEKEEPER = 32477;
// Item
private static final int GATEKEEPER_TRANSFORMATION_STICK = 12814;
// Skills
private static SkillHolder TELEPORTER_TRANSFORM = new SkillHolder(5655, 1);
// Misc
private static final int HOURS = 24;
private static final int PRICE = 10000;
// Skills
private static SkillHolder TELEPORTER_TRANSFORM = new SkillHolder(5655, 1);
private static final String REUSE = LoveYourGatekeeper.class.getSimpleName() + "_reuse";
private LoveYourGatekeeper()
{
@@ -55,27 +54,16 @@ public final class LoveYourGatekeeper extends LongTimeEvent
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
if (st == null)
{
return getNoQuestMsg(player);
}
switch (event)
{
case "transform_stick":
{
if (player.getAdena() >= PRICE)
{
long _reuse = 0;
String _streuse = st.get("reuse");
if (_streuse != null)
final long reuse = player.getVariables().getLong(REUSE, 0);
if (reuse > System.currentTimeMillis())
{
_reuse = Long.parseLong(_streuse);
}
if (_reuse > System.currentTimeMillis())
{
final long remainingTime = (_reuse - System.currentTimeMillis()) / 1000;
final long remainingTime = (reuse - System.currentTimeMillis()) / 1000;
final int hours = (int) (remainingTime / 3600);
final int minutes = (int) ((remainingTime % 3600) / 60);
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1_WILL_BE_AVAILABLE_FOR_RE_USE_AFTER_S2_HOUR_S_S3_MINUTE_S);
@@ -86,12 +74,10 @@ public final class LoveYourGatekeeper extends LongTimeEvent
}
else
{
st.takeItems(Inventory.ADENA_ID, PRICE);
st.giveItems(GATEKEEPER_TRANSFORMATION_STICK, 1);
st.setState(State.STARTED);
st.set("reuse", String.valueOf(System.currentTimeMillis() + (HOURS * 3600000)));
takeItems(player, Inventory.ADENA_ID, PRICE);
giveItems(player, GATEKEEPER_TRANSFORMATION_STICK, 1);
player.getVariables().set(REUSE, System.currentTimeMillis() + (HOURS * 3600000));
}
}
else
{
@@ -101,11 +87,10 @@ public final class LoveYourGatekeeper extends LongTimeEvent
}
case "transform":
{
if (player.isTransformed())
if (!player.isTransformed())
{
return null;
player.doCast(TELEPORTER_TRANSFORM.getSkill());
}
player.doCast(TELEPORTER_TRANSFORM.getSkill());
return null;
}
}
@@ -115,10 +100,6 @@ public final class LoveYourGatekeeper extends LongTimeEvent
@Override
public String onFirstTalk(L2Npc npc, L2PcInstance player)
{
if (player.getQuestState(getName()) == null)
{
newQuestState(player);
}
return "32477.htm";
}

View File

@@ -24,7 +24,6 @@ import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.event.LongTimeEvent;
import com.l2jserver.gameserver.model.itemcontainer.Inventory;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.network.SystemMessageId;
import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
@@ -66,7 +65,7 @@ public final class MasterOfEnchanting extends LongTimeEvent
};
@SuppressWarnings("deprecation")
private static final Date _eventStart = new Date(2011, 7, 1);
private static final Date EVENT_START = new Date(2011, 7, 1);
private MasterOfEnchanting()
{
@@ -80,13 +79,12 @@ public final class MasterOfEnchanting extends LongTimeEvent
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = event;
QuestState st = getQuestState(player, false);
if (event.equalsIgnoreCase("buy_staff"))
{
if (!st.hasQuestItems(MASTER_YOGI_STAFF) && (st.getQuestItemsCount(Inventory.ADENA_ID) > STAFF_PRICE))
if (!hasQuestItems(player, MASTER_YOGI_STAFF) && (getQuestItemsCount(player, Inventory.ADENA_ID) > STAFF_PRICE))
{
st.takeItems(Inventory.ADENA_ID, STAFF_PRICE);
st.giveItems(MASTER_YOGI_STAFF, 1);
takeItems(player, Inventory.ADENA_ID, STAFF_PRICE);
giveItems(player, MASTER_YOGI_STAFF, 1);
htmltext = "32599-staffbuyed.htm";
}
else
@@ -96,20 +94,20 @@ public final class MasterOfEnchanting extends LongTimeEvent
}
else if (event.equalsIgnoreCase("buy_scroll_24"))
{
long _curr_time = System.currentTimeMillis();
long curTime = System.currentTimeMillis();
String value = loadGlobalQuestVar(player.getAccountName());
long _reuse_time = value == "" ? 0 : Long.parseLong(value);
if (player.getCreateDate().after(_eventStart))
long reuse = value == "" ? 0 : Long.parseLong(value);
if (player.getCreateDate().after(EVENT_START))
{
return "32599-bidth.htm";
}
if (_curr_time > _reuse_time)
if (curTime > reuse)
{
if (st.getQuestItemsCount(Inventory.ADENA_ID) > SCROLL_24_PRICE)
if (getQuestItemsCount(player, Inventory.ADENA_ID) > SCROLL_24_PRICE)
{
st.takeItems(Inventory.ADENA_ID, SCROLL_24_PRICE);
st.giveItems(MASTER_YOGI_SCROLL, 24);
takeItems(player, Inventory.ADENA_ID, SCROLL_24_PRICE);
giveItems(player, MASTER_YOGI_SCROLL, 24);
saveGlobalQuestVar(player.getAccountName(), Long.toString(System.currentTimeMillis() + (SCROLL_24_TIME * 3600000)));
htmltext = "32599-scroll24.htm";
}
@@ -120,9 +118,9 @@ public final class MasterOfEnchanting extends LongTimeEvent
}
else
{
long _remaining_time = (_reuse_time - _curr_time) / 1000;
int hours = (int) _remaining_time / 3600;
int minutes = ((int) _remaining_time % 3600) / 60;
long remainingTime = (reuse - curTime) / 1000;
int hours = (int) remainingTime / 3600;
int minutes = ((int) remainingTime % 3600) / 60;
if (hours > 0)
{
SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.THERE_ARE_S1_HOUR_S_AND_S2_MINUTE_S_REMAINING_UNTIL_THE_ITEM_CAN_BE_PURCHASED_AGAIN);
@@ -142,10 +140,10 @@ public final class MasterOfEnchanting extends LongTimeEvent
{
// Little glitch. There is no SystemMessage with seconds only.
// If time is less than 1 minute player can buy scrolls
if (st.getQuestItemsCount(Inventory.ADENA_ID) > SCROLL_24_PRICE)
if (getQuestItemsCount(player, Inventory.ADENA_ID) > SCROLL_24_PRICE)
{
st.takeItems(Inventory.ADENA_ID, SCROLL_24_PRICE);
st.giveItems(MASTER_YOGI_SCROLL, 24);
takeItems(player, Inventory.ADENA_ID, SCROLL_24_PRICE);
giveItems(player, MASTER_YOGI_SCROLL, 24);
saveGlobalQuestVar(player.getAccountName(), Long.toString(System.currentTimeMillis() + (SCROLL_24_TIME * 3600000)));
htmltext = "32599-scroll24.htm";
}
@@ -158,10 +156,10 @@ public final class MasterOfEnchanting extends LongTimeEvent
}
else if (event.equalsIgnoreCase("buy_scroll_1"))
{
if (st.getQuestItemsCount(Inventory.ADENA_ID) > SCROLL_1_PRICE)
if (getQuestItemsCount(player, Inventory.ADENA_ID) > SCROLL_1_PRICE)
{
st.takeItems(Inventory.ADENA_ID, SCROLL_1_PRICE);
st.giveItems(MASTER_YOGI_SCROLL, 1);
takeItems(player, Inventory.ADENA_ID, SCROLL_1_PRICE);
giveItems(player, MASTER_YOGI_SCROLL, 1);
htmltext = "32599-scroll-ok.htm";
}
else
@@ -171,10 +169,10 @@ public final class MasterOfEnchanting extends LongTimeEvent
}
else if (event.equalsIgnoreCase("buy_scroll_10"))
{
if (st.getQuestItemsCount(Inventory.ADENA_ID) > SCROLL_10_PRICE)
if (getQuestItemsCount(player, Inventory.ADENA_ID) > SCROLL_10_PRICE)
{
st.takeItems(Inventory.ADENA_ID, SCROLL_10_PRICE);
st.giveItems(MASTER_YOGI_SCROLL, 10);
takeItems(player, Inventory.ADENA_ID, SCROLL_10_PRICE);
giveItems(player, MASTER_YOGI_SCROLL, 10);
htmltext = "32599-scroll-ok.htm";
}
else
@@ -184,83 +182,83 @@ public final class MasterOfEnchanting extends LongTimeEvent
}
else if (event.equalsIgnoreCase("receive_reward"))
{
if ((st.getItemEquipped(Inventory.PAPERDOLL_RHAND) == MASTER_YOGI_STAFF) && (st.getEnchantLevel(MASTER_YOGI_STAFF) > 3))
if ((getItemEquipped(player, Inventory.PAPERDOLL_RHAND) == MASTER_YOGI_STAFF) && (getEnchantLevel(player, MASTER_YOGI_STAFF) > 3))
{
switch (st.getEnchantLevel(MASTER_YOGI_STAFF))
switch (getEnchantLevel(player, MASTER_YOGI_STAFF))
{
case 4:
st.giveItems(6406, 1); // Firework
giveItems(player, 6406, 1); // Firework
break;
case 5:
st.giveItems(6406, 2); // Firework
st.giveItems(6407, 1); // Large Firework
giveItems(player, 6406, 2); // Firework
giveItems(player, 6407, 1); // Large Firework
break;
case 6:
st.giveItems(6406, 3); // Firework
st.giveItems(6407, 2); // Large Firework
giveItems(player, 6406, 3); // Firework
giveItems(player, 6407, 2); // Large Firework
break;
case 7:
st.giveItems(HAT_SHADOW_REWARD[getRandom(3)], 1);
giveItems(player, HAT_SHADOW_REWARD[getRandom(3)], 1);
break;
case 8:
st.giveItems(955, 1); // Scroll: Enchant Weapon (D)
giveItems(player, 955, 1); // Scroll: Enchant Weapon (D)
break;
case 9:
st.giveItems(955, 1); // Scroll: Enchant Weapon (D)
st.giveItems(956, 1); // Scroll: Enchant Armor (D)
giveItems(player, 955, 1); // Scroll: Enchant Weapon (D)
giveItems(player, 956, 1); // Scroll: Enchant Armor (D)
break;
case 10:
st.giveItems(951, 1); // Scroll: Enchant Weapon (C)
giveItems(player, 951, 1); // Scroll: Enchant Weapon (C)
break;
case 11:
st.giveItems(951, 1); // Scroll: Enchant Weapon (C)
st.giveItems(952, 1); // Scroll: Enchant Armor (C)
giveItems(player, 951, 1); // Scroll: Enchant Weapon (C)
giveItems(player, 952, 1); // Scroll: Enchant Armor (C)
break;
case 12:
st.giveItems(948, 1); // Scroll: Enchant Armor (B)
giveItems(player, 948, 1); // Scroll: Enchant Armor (B)
break;
case 13:
st.giveItems(729, 1); // Scroll: Enchant Weapon (A)
giveItems(player, 729, 1); // Scroll: Enchant Weapon (A)
break;
case 14:
st.giveItems(HAT_EVENT_REWARD[getRandom(3)], 1);
giveItems(player, HAT_EVENT_REWARD[getRandom(3)], 1);
break;
case 15:
st.giveItems(13992, 1); // Grade S Accessory Chest (Event)
giveItems(player, 13992, 1); // Grade S Accessory Chest (Event)
break;
case 16:
st.giveItems(8762, 1); // Top-Grade Life Stone: level 76
giveItems(player, 8762, 1); // Top-Grade Life Stone: level 76
break;
case 17:
st.giveItems(959, 1); // Scroll: Enchant Weapon (S)
giveItems(player, 959, 1); // Scroll: Enchant Weapon (S)
break;
case 18:
st.giveItems(13991, 1); // Grade S Armor Chest (Event)
giveItems(player, 13991, 1); // Grade S Armor Chest (Event)
break;
case 19:
st.giveItems(13990, 1); // Grade S Weapon Chest (Event)
giveItems(player, 13990, 1); // Grade S Weapon Chest (Event)
break;
case 20:
st.giveItems(CRYSTAL_REWARD[getRandom(3)], 1); // Red/Blue/Green Soul Crystal - Stage 14
giveItems(player, CRYSTAL_REWARD[getRandom(3)], 1); // Red/Blue/Green Soul Crystal - Stage 14
break;
case 21:
st.giveItems(8762, 1); // Top-Grade Life Stone: level 76
st.giveItems(8752, 1); // High-Grade Life Stone: level 76
st.giveItems(CRYSTAL_REWARD[getRandom(3)], 1); // Red/Blue/Green Soul Crystal - Stage 14
giveItems(player, 8762, 1); // Top-Grade Life Stone: level 76
giveItems(player, 8752, 1); // High-Grade Life Stone: level 76
giveItems(player, CRYSTAL_REWARD[getRandom(3)], 1); // Red/Blue/Green Soul Crystal - Stage 14
break;
case 22:
st.giveItems(13989, 1); // S80 Grade Armor Chest (Event)
giveItems(player, 13989, 1); // S80 Grade Armor Chest (Event)
break;
case 23:
st.giveItems(13988, 1); // S80 Grade Weapon Chest (Event)
giveItems(player, 13988, 1); // S80 Grade Weapon Chest (Event)
default:
if (st.getEnchantLevel(MASTER_YOGI_STAFF) > 23)
if (getEnchantLevel(player, MASTER_YOGI_STAFF) > 23)
{
st.giveItems(13988, 1); // S80 Grade Weapon Chest (Event)
giveItems(player, 13988, 1); // S80 Grade Weapon Chest (Event)
}
break;
}
st.takeItems(MASTER_YOGI_STAFF, 1);
takeItems(player, MASTER_YOGI_STAFF, 1);
htmltext = "32599-rewardok.htm";
}
else
@@ -274,10 +272,6 @@ public final class MasterOfEnchanting extends LongTimeEvent
@Override
public String onFirstTalk(L2Npc npc, L2PcInstance player)
{
if (player.getQuestState(getName()) == null)
{
newQuestState(player);
}
return npc.getId() + ".htm";
}

View File

@@ -22,8 +22,6 @@ import com.l2jserver.gameserver.enums.QuestSound;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.event.LongTimeEvent;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.model.quest.State;
/**
* The Valentine Event event AI.
@@ -35,6 +33,8 @@ public final class TheValentineEvent extends LongTimeEvent
private static final int NPC = 4301;
// Item
private static final int RECIPE = 20191;
// Misc
private static final String COMPLETED = TheValentineEvent.class.getSimpleName() + "_completed";
private TheValentineEvent()
{
@@ -47,24 +47,17 @@ public final class TheValentineEvent extends LongTimeEvent
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, false);
if (st == null)
{
return getNoQuestMsg(player);
}
String htmltext = event;
if (event.equalsIgnoreCase("4301-3.htm"))
{
if (st.isCompleted())
if (player.getVariables().getBoolean(COMPLETED, false))
{
htmltext = "4301-4.htm";
}
else
{
st.giveItems(RECIPE, 1);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
st.setState(State.COMPLETED);
giveItems(player, RECIPE, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
return htmltext;
@@ -73,10 +66,6 @@ public final class TheValentineEvent extends LongTimeEvent
@Override
public String onFirstTalk(L2Npc npc, L2PcInstance player)
{
if (player.getQuestState(getName()) == null)
{
newQuestState(player);
}
return npc.getId() + ".htm";
}

View File

@@ -322,19 +322,19 @@ public class EnergySeeds extends AbstractNpcAI
case INFINITY:
if ((st != null) && st.isCond(3))
{
handleQuestDrop(st, 13798);
handleQuestDrop(player, 13798);
}
break;
case DESTRUCTION:
if ((st != null) && st.isCond(3))
{
handleQuestDrop(st, 13867);
handleQuestDrop(player, 13867);
}
break;
case ANNIHILATION_BISTAKON:
if ((st != null) && st.isCond(3))
{
handleQuestDrop(st, 15535);
handleQuestDrop(player, 15535);
}
if (getRandom(100) < 50)
{
@@ -347,7 +347,7 @@ public class EnergySeeds extends AbstractNpcAI
case ANNIHILATION_REPTILIKON:
if ((st != null) && st.isCond(3))
{
handleQuestDrop(st, 15535);
handleQuestDrop(player, 15535);
}
if (getRandom(100) < 50)
{
@@ -360,7 +360,7 @@ public class EnergySeeds extends AbstractNpcAI
case ANNIHILATION_COKRAKON:
if ((st != null) && st.isCond(3))
{
handleQuestDrop(st, 15535);
handleQuestDrop(player, 15535);
}
if (getRandom(100) < 50)
{
@@ -386,7 +386,7 @@ public class EnergySeeds extends AbstractNpcAI
return monster;
}
private void handleQuestDrop(QuestState st, int itemId)
private void handleQuestDrop(L2PcInstance player, int itemId)
{
double chance = HOWTOOPPOSEEVIL_CHANCE * Config.RATE_QUEST_DROP;
int numItems = (int) (chance / 100);
@@ -397,8 +397,8 @@ public class EnergySeeds extends AbstractNpcAI
}
if (numItems > 0)
{
st.giveItems(itemId, numItems);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
giveItems(player, itemId, numItems);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}

View File

@@ -39,7 +39,6 @@ import com.l2jserver.gameserver.model.actor.instance.L2MonsterInstance;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.effects.L2EffectType;
import com.l2jserver.gameserver.model.instancezone.InstanceWorld;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.model.skills.Skill;
import com.l2jserver.gameserver.network.SystemMessageId;
import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
@@ -586,7 +585,7 @@ public final class HallOfSuffering extends AbstractNpcAI
}
@Override
public String onKill(L2Npc npc, L2PcInstance player, boolean isSummon)
public String onKill(L2Npc npc, L2PcInstance killer, boolean isSummon)
{
InstanceWorld tmpworld = InstanceManager.getInstance().getWorld(npc.getInstanceId());
if (tmpworld instanceof HSWorld)
@@ -595,7 +594,7 @@ public final class HallOfSuffering extends AbstractNpcAI
if (npc.getId() == TUMOR_ALIVE)
{
addSpawn(TUMOR_DEAD, npc.getX(), npc.getY(), npc.getZ(), npc.getHeading(), false, 0, false, npc.getInstanceId());
addSpawn(TUMOR_DEAD, npc, false, 0, false, npc.getInstanceId());
}
if (world.getStatus() < 5)
{
@@ -627,7 +626,7 @@ public final class HallOfSuffering extends AbstractNpcAI
}
}
}
return "";
return super.onKill(npc, killer, isSummon);
}
@Override
@@ -652,46 +651,45 @@ public final class HallOfSuffering extends AbstractNpcAI
return getPtLeaderText(player, (HSWorld) world);
}
return "";
return super.onFirstTalk(npc, player);
}
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
public String onTalk(L2Npc npc, L2PcInstance talker)
{
getQuestState(player, true);
getQuestState(talker, true);
if (npc.getId() == MOUTHOFEKIMUS)
{
enterInstance(player, "HallOfSuffering.xml", ENTER_TELEPORT);
enterInstance(talker, "HallOfSuffering.xml", ENTER_TELEPORT);
}
else if (npc.getId() == TEPIOS)
{
InstanceWorld world = InstanceManager.getInstance().getPlayerWorld(player);
InstanceWorld world = InstanceManager.getInstance().getPlayerWorld(talker);
if (((HSWorld) world).rewardItemId == -1)
{
_log.warning("Hall of Suffering: " + player.getName() + "(" + player.getObjectId() + ") is try to cheat!");
return getPtLeaderText(player, (HSWorld) world);
_log.warning("Hall of Suffering: " + talker.getName() + "(" + talker.getObjectId() + ") is try to cheat!");
return getPtLeaderText(talker, (HSWorld) world);
}
else if (((HSWorld) world).isRewarded)
{
return "32530-11.htm";
}
else if ((player.getParty() != null) && (player.getParty().getLeaderObjectId() == player.getObjectId()))
else if ((talker.getParty() != null) && (talker.getParty().getLeaderObjectId() == talker.getObjectId()))
{
((HSWorld) world).isRewarded = true;
for (L2PcInstance member : player.getParty().getMembers())
for (L2PcInstance member : talker.getParty().getMembers())
{
final QuestState qsMember = getQuestState(member, false);
if (qsMember != null)
if (getQuestState(member, false) != null)
{
qsMember.giveItems(736, 1);
qsMember.giveItems(((HSWorld) world).rewardItemId, 1);
giveItems(member, 736, 1);
giveItems(member, ((HSWorld) world).rewardItemId, 1);
}
}
return "";
}
return getPtLeaderText(player, (HSWorld) world);
return getPtLeaderText(talker, (HSWorld) world);
}
return "";
return super.onTalk(npc, talker);
}
}

View File

@@ -130,7 +130,17 @@ public class QuestLink implements IBypassHandler
}
else
{
StringUtil.append(sb, "<fstring>", String.valueOf(quest.getId()), state, "</fstring>");
int questId = quest.getId();
if (quest.getId() > 10000)
{
questId -= 5000;
}
else if (questId == 146)
{
questId = 640;
}
StringUtil.append(sb, "<fstring>", String.valueOf(questId), state, "</fstring>");
}
sb.append("</button></font><br>");
}

View File

@@ -18,6 +18,8 @@
*/
package handlers.effecthandlers;
import java.util.Collection;
import com.l2jserver.gameserver.model.StatsSet;
import com.l2jserver.gameserver.model.actor.L2Attackable;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
@@ -63,21 +65,19 @@ public final class Sweeper extends AbstractEffect
return;
}
final ItemHolder[] items = monster.takeSweep();
if ((items == null) || (items.length == 0))
final Collection<ItemHolder> items = monster.takeSweep();
if (items != null)
{
return;
}
for (ItemHolder item : items)
{
if (player.isInParty())
for (ItemHolder item : items)
{
player.getParty().distributeItem(player, item, true, monster);
}
else
{
player.addItem("Sweeper", item, info.getEffected(), true);
if (player.isInParty())
{
player.getParty().distributeItem(player, item, true, monster);
}
else
{
player.addItem("Sweeper", item, info.getEffected(), true);
}
}
}
}

View File

@@ -170,6 +170,8 @@ public abstract class Chamber extends Quest
private final String INSTANCE_TEMPLATE;
protected Location[] ROOM_ENTER_POINTS;
// Misc
private static final String RETURN = Chamber.class.getSimpleName() + "_return";
protected Chamber(int questId, String name, String descr, int instanceId, String instanceTemplateName, int entranceGKId, int roomGKFirstId, int roomGKLastId, int aenkinelId, int boxId)
{
@@ -362,20 +364,18 @@ public abstract class Chamber extends Quest
for (L2PcInstance partyMember : party.getMembers())
{
final QuestState st = getQuestState(partyMember, true);
if (st.hasQuestItems(DELUSION_MARK))
if (hasQuestItems(partyMember, DELUSION_MARK))
{
st.takeItems(DELUSION_MARK, -1);
takeItems(partyMember, DELUSION_MARK, -1);
}
if (party.isLeader(partyMember))
{
st.giveItems(DELUSION_MARK, 1);
giveItems(partyMember, DELUSION_MARK, 1);
}
// Save location for teleport back into main hall
st.set("return_point", Integer.toString(partyMember.getX()) + ";" + Integer.toString(partyMember.getY()) + ";" + Integer.toString(partyMember.getZ()));
partyMember.getVariables().set(RETURN, Integer.toString(partyMember.getX()) + ";" + Integer.toString(partyMember.getY()) + ";" + Integer.toString(partyMember.getZ()));
partyMember.setInstanceId(world.getInstanceId());
world.addAllowed(partyMember.getObjectId());
@@ -445,26 +445,21 @@ public abstract class Chamber extends Quest
}
final Instance inst = InstanceManager.getInstance().getInstance(player.getInstanceId());
Location ret = inst.getSpawnLoc();
final QuestState st = getQuestState(player, false);
if (st != null)
final String return_point = player.getVariables().getString(RETURN, null);
if (return_point != null)
{
String return_point = st.get("return_point");
if (return_point != null)
String[] coords = return_point.split(";");
if (coords.length == 3)
{
String[] coords = return_point.split(";");
if (coords.length == 3)
try
{
int x = Integer.parseInt(coords[0]);
int y = Integer.parseInt(coords[1]);
int z = Integer.parseInt(coords[2]);
ret.setLocation(new Location(x, y, z));
}
catch (Exception e)
{
try
{
int x = Integer.parseInt(coords[0]);
int y = Integer.parseInt(coords[1]);
int z = Integer.parseInt(coords[2]);
ret.setLocation(new Location(x, y, z));
}
catch (Exception e)
{
}
}
}
}
@@ -487,15 +482,8 @@ public abstract class Chamber extends Quest
{
final CDWorld world = (CDWorld) tmpworld;
QuestState st = getQuestState(player, false);
if (st == null)
{
st = newQuestState(player);
}
// Change room from dialog
else if (event.equals("next_room"))
if (event.equals("next_room"))
{
if (player.getParty() == null)
{
@@ -509,7 +497,7 @@ public abstract class Chamber extends Quest
else if (hasQuestItems(player, DELUSION_MARK))
{
st.takeItems(DELUSION_MARK, 1);
takeItems(player, DELUSION_MARK, 1);
world.stopRoomChangeTask();
changeRoom(world);
}
@@ -519,7 +507,6 @@ public abstract class Chamber extends Quest
htmltext = getHtm(player.getHtmlPrefix(), "data/scripts/instances/ChambersOfDelusion/no_item.html");
}
}
else if (event.equals("go_out"))
{
if (player.getParty() == null)
@@ -545,7 +532,6 @@ public abstract class Chamber extends Quest
inst.setEmptyDestroyTime(0);
}
}
else if (event.equals("look_party"))
{
if ((player.getParty() != null) && (player.getParty() == world.getPartyInside()))

View File

@@ -1872,8 +1872,7 @@ public final class CrystalCaverns extends Quest
CCWorld world = (CCWorld) tmpworld;
if ((world.getStatus() == 0) && world.oracle.contains(npc))
{
String htmltext = "32281.htm";
return htmltext;
return "32281.htm";// TODO: Missing HTML.
}
}
npc.showChatWindow(player);
@@ -1887,8 +1886,7 @@ public final class CrystalCaverns extends Quest
CCWorld world = (CCWorld) tmpworld;
if (!world.OracleTriggered[npc.getId() - 32275])
{
String htmltext = "no.htm";
return htmltext;
return "no.htm"; // TODO: Missing HTML.
}
npc.showChatWindow(player);
return null;
@@ -1899,19 +1897,12 @@ public final class CrystalCaverns extends Quest
InstanceWorld tmpworld = InstanceManager.getInstance().getWorld(npc.getInstanceId());
if (tmpworld instanceof CCWorld)
{
String htmltext = "no.htm";
return htmltext;
return "no.htm"; // TODO: Missing HTML.
}
}
else if (npc.getId() == 32279)
{
QuestState st = player.getQuestState("131_BirdInACage");
String htmltext = "32279.htm";
if ((st != null) && !st.isCompleted())
{
htmltext = "32279-01.htm";
}
return htmltext;
return "32279.htm";
}
else if (npc.getId() == CRYSTAL_GOLEM)
{
@@ -2485,42 +2476,36 @@ public final class CrystalCaverns extends Quest
{
if (partyMember.getInstanceId() == instanceId)
{
final QuestState st = getQuestState(partyMember, true);
if (!isBaylor && st.hasQuestItems(CONT_CRYSTAL))
if (!isBaylor && hasQuestItems(partyMember, CONT_CRYSTAL))
{
st.takeItems(CONT_CRYSTAL, 1);
st.giveItems(bossCry, 1);
takeItems(partyMember, CONT_CRYSTAL, 1);
giveItems(partyMember, bossCry, 1);
}
if (getRandom(10) < 5)
{
st.giveItems(WHITE_SEED, num);
giveItems(partyMember, WHITE_SEED, num);
}
else
{
st.giveItems(BLACK_SEED, num);
giveItems(partyMember, BLACK_SEED, num);
}
}
}
}
else if (player.getInstanceId() == instanceId)
{
QuestState st = getQuestState(player, false);
if (st == null)
if (!isBaylor && hasQuestItems(player, CONT_CRYSTAL))
{
st = newQuestState(player);
}
if (!isBaylor && st.hasQuestItems(CONT_CRYSTAL))
{
st.takeItems(CONT_CRYSTAL, 1);
st.giveItems(bossCry, 1);
takeItems(player, CONT_CRYSTAL, 1);
giveItems(player, bossCry, 1);
}
if (getRandom(10) < 5)
{
st.giveItems(WHITE_SEED, num);
giveItems(player, WHITE_SEED, num);
}
else
{
st.giveItems(BLACK_SEED, num);
giveItems(player, BLACK_SEED, num);
}
}
@@ -3017,12 +3002,8 @@ public final class CrystalCaverns extends Quest
{
return "";
}
QuestState st = ((L2PcInstance) character).getQuestState(getName());
if (st == null)
{
st = newQuestState((L2PcInstance) character);
}
if (!st.hasQuestItems(RACE_KEY))
if (!hasQuestItems((L2PcInstance) character, RACE_KEY))
{
return "";
}
@@ -3031,7 +3012,7 @@ public final class CrystalCaverns extends Quest
runEmeraldRooms(world, spawns, room);
}
door.openMe();
st.takeItems(RACE_KEY, 1);
takeItems((L2PcInstance) character, RACE_KEY, 1);
world.openedDoors.put(door, (L2PcInstance) character);
break;
}

View File

@@ -29,7 +29,6 @@ import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.model.entity.Instance;
import com.l2jserver.gameserver.model.instancezone.InstanceWorld;
import com.l2jserver.gameserver.model.quest.Quest;
import com.l2jserver.gameserver.model.quest.QuestState;
import com.l2jserver.gameserver.model.skills.Skill;
import com.l2jserver.gameserver.network.NpcStringId;
import com.l2jserver.gameserver.network.SystemMessageId;
@@ -1405,11 +1404,10 @@ public final class DarkCloudMansion extends Quest
if ((npc.getId() == SOTruth) && (world.getStatus() == 10))
{
npc.showChatWindow(player);
QuestState st = getQuestState(player, true);
if (!st.hasQuestItems(CC))
if (!hasQuestItems(player, CC))
{
st.giveItems(CC, 1);
giveItems(player, CC, 1);
}
}
}

View File

@@ -18,7 +18,7 @@
*/
package instances.FaeronTrainingGrounds1;
import quests.Q10736_ASpecialPower.Q10736_ASpecialPower;
import quests.Q10735_ASpecialPower.Q10735_ASpecialPower;
import ai.npc.AbstractNpcAI;
import com.l2jserver.gameserver.instancemanager.InstanceManager;
@@ -52,7 +52,7 @@ public class FaeronTrainingGrounds1 extends AbstractNpcAI
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
final QuestState qs = player.getQuestState(Q10736_ASpecialPower.class.getSimpleName());
final QuestState qs = player.getQuestState(Q10735_ASpecialPower.class.getSimpleName());
if (qs == null)
{
return null;

View File

@@ -147,8 +147,8 @@ public final class MithrilMine extends AbstractNpcAI
world.removeAllowed(player.getObjectId());
player.setInstanceId(0);
player.teleToLocation(EXIT_LOC, 0);
qs.giveAdena(296425, true);
qs.addExpAndSp(921805, 82230);
giveAdena(player, 296425, true);
addExpAndSp(player, 921805, 82230);
qs.exitQuest(false, true);
return "18846-03.html";
}
@@ -200,9 +200,9 @@ public final class MithrilMine extends AbstractNpcAI
final QuestState qs = talker.getQuestState(Q10284_AcquisitionOfDivineSword.class.getSimpleName());
if ((qs != null) && qs.isMemoState(2))
{
if (!qs.hasQuestItems(COLD_RESISTANCE_POTION))
if (!hasQuestItems(talker, COLD_RESISTANCE_POTION))
{
qs.giveItems(COLD_RESISTANCE_POTION, 1);
giveItems(talker, COLD_RESISTANCE_POTION, 1);
}
qs.setCond(4, true);
enterInstance(talker, "MithrilMine.xml", START_LOC);
@@ -212,9 +212,9 @@ public final class MithrilMine extends AbstractNpcAI
case KEGOR:
{
final QuestState qs = talker.getQuestState(Q10284_AcquisitionOfDivineSword.class.getSimpleName());
if ((qs != null) && qs.isMemoState(2) && qs.hasQuestItems(COLD_RESISTANCE_POTION) && npc.isScriptValue(0))
if ((qs != null) && qs.isMemoState(2) && hasQuestItems(talker, COLD_RESISTANCE_POTION) && npc.isScriptValue(0))
{
qs.takeItems(COLD_RESISTANCE_POTION, -1);
takeItems(talker, COLD_RESISTANCE_POTION, -1);
qs.setCond(5, true);
npc.setScriptValue(1);
startQuestTimer("TIMER", 3000, npc, talker);

View File

@@ -58,17 +58,17 @@ public class Q10501_ZakenEmbroideredSoulCloak extends Quest
final QuestState st = getQuestState(player, false);
if ((st != null) && st.isCond(1) && Util.checkIfInRange(1500, npc, player, false))
{
final long currentCount = st.getQuestItemsCount(ZAKENS_SOUL_FRAGMENT);
final long currentCount = getQuestItemsCount(player, ZAKENS_SOUL_FRAGMENT);
final long count = getRandom(1, 3);
if (count >= (FRAGMENT_COUNT - currentCount))
{
st.giveItems(ZAKENS_SOUL_FRAGMENT, FRAGMENT_COUNT - currentCount);
giveItems(player, ZAKENS_SOUL_FRAGMENT, FRAGMENT_COUNT - currentCount);
st.setCond(2, true);
}
else
{
st.giveItems(ZAKENS_SOUL_FRAGMENT, count);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
giveItems(player, ZAKENS_SOUL_FRAGMENT, count);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
}
@@ -96,11 +96,6 @@ public class Q10501_ZakenEmbroideredSoulCloak extends Quest
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, true);
if (st == null)
{
return getNoQuestMsg(player);
}
String htmltext = getNoQuestMsg(player);
switch (st.getState())
{
@@ -120,10 +115,10 @@ public class Q10501_ZakenEmbroideredSoulCloak extends Quest
}
case 2:
{
if (st.getQuestItemsCount(ZAKENS_SOUL_FRAGMENT) >= FRAGMENT_COUNT)
if (getQuestItemsCount(player, ZAKENS_SOUL_FRAGMENT) >= FRAGMENT_COUNT)
{
st.giveItems(SOUL_CLOAK_OF_ZAKEN, 1);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
giveItems(player, SOUL_CLOAK_OF_ZAKEN, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
st.exitQuest(false, true);
htmltext = "32612-06.html";
}

View File

@@ -58,17 +58,17 @@ public class Q10502_FreyaEmbroideredSoulCloak extends Quest
final QuestState st = getQuestState(player, false);
if ((st != null) && st.isCond(1) && Util.checkIfInRange(1500, npc, player, false))
{
final long currentCount = st.getQuestItemsCount(FREYAS_SOUL_FRAGMENT);
final long currentCount = getQuestItemsCount(player, FREYAS_SOUL_FRAGMENT);
final long count = getRandom(1, 3);
if (count >= (FRAGMENT_COUNT - currentCount))
{
st.giveItems(FREYAS_SOUL_FRAGMENT, FRAGMENT_COUNT - currentCount);
giveItems(player, FREYAS_SOUL_FRAGMENT, FRAGMENT_COUNT - currentCount);
st.setCond(2, true);
}
else
{
st.giveItems(FREYAS_SOUL_FRAGMENT, count);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
giveItems(player, FREYAS_SOUL_FRAGMENT, count);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
}
@@ -120,10 +120,10 @@ public class Q10502_FreyaEmbroideredSoulCloak extends Quest
}
case 2:
{
if (st.getQuestItemsCount(FREYAS_SOUL_FRAGMENT) >= FRAGMENT_COUNT)
if (getQuestItemsCount(player, FREYAS_SOUL_FRAGMENT) >= FRAGMENT_COUNT)
{
st.giveItems(SOUL_CLOAK_OF_FREYA, 1);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
giveItems(player, SOUL_CLOAK_OF_FREYA, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
st.exitQuest(false, true);
htmltext = "32612-06.html";
}

View File

@@ -59,17 +59,17 @@ public class Q10503_FrintezzaEmbroideredSoulCloak extends Quest
final QuestState st = getQuestState(player, false);
if ((st != null) && st.isCond(1) && Util.checkIfInRange(1500, npc, player, false))
{
final long currentCount = st.getQuestItemsCount(FRINTEZZAS_SOUL_FRAGMENT);
final long currentCount = getQuestItemsCount(player, FRINTEZZAS_SOUL_FRAGMENT);
final long count = getRandom(1, 3);
if (count >= (FRAGMENT_COUNT - currentCount))
{
st.giveItems(FRINTEZZAS_SOUL_FRAGMENT, FRAGMENT_COUNT - currentCount);
giveItems(player, FRINTEZZAS_SOUL_FRAGMENT, FRAGMENT_COUNT - currentCount);
st.setCond(2, true);
}
else
{
st.giveItems(FRINTEZZAS_SOUL_FRAGMENT, count);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
giveItems(player, FRINTEZZAS_SOUL_FRAGMENT, count);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
}
}
}
@@ -97,11 +97,6 @@ public class Q10503_FrintezzaEmbroideredSoulCloak extends Quest
public String onTalk(L2Npc npc, L2PcInstance player)
{
final QuestState st = getQuestState(player, true);
if (st == null)
{
return getNoQuestMsg(player);
}
String htmltext = getNoQuestMsg(player);
switch (st.getState())
{
@@ -121,10 +116,10 @@ public class Q10503_FrintezzaEmbroideredSoulCloak extends Quest
}
case 2:
{
if (st.getQuestItemsCount(FRINTEZZAS_SOUL_FRAGMENT) >= FRAGMENT_COUNT)
if (getQuestItemsCount(player, FRINTEZZAS_SOUL_FRAGMENT) >= FRAGMENT_COUNT)
{
st.giveItems(SOUL_CLOAK_OF_FRINTEZZA, 1);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
giveItems(player, SOUL_CLOAK_OF_FRINTEZZA, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
st.exitQuest(false, true);
htmltext = "32612-06.html";
}

View File

@@ -59,9 +59,9 @@ public final class Q10504_JewelOfAntharas extends Quest
final QuestState st = getQuestState(player, false);
if ((st != null) && st.isCond(1) && Util.checkIfInRange(1500, npc, player, false))
{
st.takeItems(CLEAR_CRYSTAL, -1);
st.giveItems(FILLED_CRYSTAL_ANTHARAS_ENERGY, 1);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
takeItems(player, CLEAR_CRYSTAL, -1);
giveItems(player, FILLED_CRYSTAL_ANTHARAS_ENERGY, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
st.setCond(2, true);
}
}
@@ -76,7 +76,7 @@ public final class Q10504_JewelOfAntharas extends Quest
}
String htmltext = null;
if ((player.getLevel() >= MIN_LEVEL) && st.hasQuestItems(PORTAL_STONE))
if ((player.getLevel() >= MIN_LEVEL) && hasQuestItems(player, PORTAL_STONE))
{
switch (event)
{
@@ -89,7 +89,7 @@ public final class Q10504_JewelOfAntharas extends Quest
case "30755-07.html":
{
st.startQuest();
st.giveItems(CLEAR_CRYSTAL, 1);
giveItems(player, CLEAR_CRYSTAL, 1);
htmltext = event;
break;
}
@@ -118,7 +118,7 @@ public final class Q10504_JewelOfAntharas extends Quest
{
htmltext = "30755-02.html";
}
else if (!st.hasQuestItems(PORTAL_STONE))
else if (!hasQuestItems(player, PORTAL_STONE))
{
htmltext = "30755-04.html";
}
@@ -134,21 +134,21 @@ public final class Q10504_JewelOfAntharas extends Quest
{
case 1:
{
if (st.hasQuestItems(CLEAR_CRYSTAL))
if (hasQuestItems(player, CLEAR_CRYSTAL))
{
htmltext = "30755-08.html";
}
else
{
st.giveItems(CLEAR_CRYSTAL, 1);
giveItems(player, CLEAR_CRYSTAL, 1);
htmltext = "30755-09.html";
}
break;
}
case 2:
{
st.giveItems(JEWEL_OF_ANTHARAS, 1);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
giveItems(player, JEWEL_OF_ANTHARAS, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
st.exitQuest(false, true);
htmltext = "30755-10.html";
break;

View File

@@ -59,9 +59,9 @@ public class Q10505_JewelOfValakas extends Quest
final QuestState st = getQuestState(player, false);
if ((st != null) && st.isCond(1) && Util.checkIfInRange(1500, npc, player, false))
{
st.takeItems(EMPTY_CRYSTAL, -1);
st.giveItems(FILLED_CRYSTAL_VALAKAS_ENERGY, 1);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
takeItems(player, EMPTY_CRYSTAL, -1);
giveItems(player, FILLED_CRYSTAL_VALAKAS_ENERGY, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
st.setCond(2, true);
}
}
@@ -76,7 +76,7 @@ public class Q10505_JewelOfValakas extends Quest
}
String htmltext = null;
if ((player.getLevel() >= MIN_LEVEL) && st.hasQuestItems(VACUALITE_FLOATING_STONE))
if ((player.getLevel() >= MIN_LEVEL) && hasQuestItems(player, VACUALITE_FLOATING_STONE))
{
switch (event)
{
@@ -89,7 +89,7 @@ public class Q10505_JewelOfValakas extends Quest
case "31540-07.html":
{
st.startQuest();
st.giveItems(EMPTY_CRYSTAL, 1);
giveItems(player, EMPTY_CRYSTAL, 1);
htmltext = event;
break;
}
@@ -108,12 +108,7 @@ public class Q10505_JewelOfValakas extends Quest
@Override
public String onTalk(L2Npc npc, L2PcInstance player)
{
QuestState st = getQuestState(player, true);
if (st == null)
{
return getNoQuestMsg(player);
}
final QuestState st = getQuestState(player, true);
String htmltext = getNoQuestMsg(player);
switch (st.getState())
{
@@ -123,7 +118,7 @@ public class Q10505_JewelOfValakas extends Quest
{
htmltext = "31540-02.html";
}
else if (!st.hasQuestItems(VACUALITE_FLOATING_STONE))
else if (!hasQuestItems(player, VACUALITE_FLOATING_STONE))
{
htmltext = "31540-04.html";
}
@@ -139,21 +134,21 @@ public class Q10505_JewelOfValakas extends Quest
{
case 1:
{
if (st.hasQuestItems(EMPTY_CRYSTAL))
if (hasQuestItems(player, EMPTY_CRYSTAL))
{
htmltext = "31540-08.html";
}
else
{
st.giveItems(EMPTY_CRYSTAL, 1);
giveItems(player, EMPTY_CRYSTAL, 1);
htmltext = "31540-09.html";
}
break;
}
case 2:
{
st.giveItems(JEWEL_OF_VALAKAS, 1);
st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET);
giveItems(player, JEWEL_OF_VALAKAS, 1);
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
st.exitQuest(false, true);
htmltext = "31540-10.html";
break;

View File

@@ -1133,7 +1133,7 @@
<run ground="120" />
</speed>
</stats>
<status attackable="false" talkable="false" targetable="false" />
<status attackable="false" targetable="false" talkable="false" showName="false" />
<collision>
<radius normal="9.5" />
<height normal="22.4" />

View File

@@ -130,7 +130,7 @@
<run ground="120" />
</speed>
</stats>
<status attackable="false" talkable="false" targetable="false" />
<status attackable="false" talkable="false" targetable="false" showName="false" />
<collision>
<radius normal="9.5" />
<height normal="22.4" />
@@ -453,7 +453,7 @@
<run ground="120" />
</speed>
</stats>
<status attackable="false" talkable="false" targetable="false" />
<status attackable="false" targetable="false" talkable="false" showName="false" />
<collision>
<radius normal="9.5" />
<height normal="22.4" />

View File

@@ -113,7 +113,7 @@
<run ground="120" />
</speed>
</stats>
<status attackable="false" />
<status attackable="false" targetable="false" talkable="false" showName="false" />
<collision>
<radius normal="9.5" />
<height normal="22.4" />
@@ -181,7 +181,7 @@
<run ground="120" />
</speed>
</stats>
<status attackable="false" talkable="false" targetable="false" />
<status attackable="false" />
<collision>
<radius normal="9.5" />
<height normal="22.4" />
@@ -232,7 +232,7 @@
<run ground="120" />
</speed>
</stats>
<status attackable="false" talkable="false" targetable="false" />
<status attackable="false" />
<collision>
<radius normal="9.5" />
<height normal="22.4" />
@@ -249,7 +249,7 @@
<run ground="120" />
</speed>
</stats>
<status attackable="false" talkable="false" targetable="false" />
<status attackable="false" targetable="false" talkable="false" showName="false" />
<collision>
<radius normal="9.5" />
<height normal="22.4" />
@@ -436,7 +436,7 @@
<run ground="120" />
</speed>
</stats>
<status attackable="false" talkable="false" targetable="false" />
<status attackable="false" targetable="false" talkable="false" showName="false" />
<collision>
<radius normal="9.5" />
<height normal="22.4" />

View File

@@ -62,7 +62,7 @@
<run ground="120" />
</speed>
</stats>
<status attackable="false" talkable="false" targetable="false" />
<status attackable="false" targetable="false" talkable="false" showName="false" />
<collision>
<radius normal="9.5" />
<height normal="22.4" />
@@ -85,7 +85,7 @@
<height normal="22.4" />
</collision>
</npc>
<npc id="33205" level="85" type="L2Teleporter" name="Ye Sagira Teleport Device" title="">
<npc id="33205" level="85" type="L2Npc" name="Ye Sagira Teleport Device" title="">
<!-- AUTO GENERATED NPC TODO: FIX IT -->
<race>HUMAN</race>
<sex>FEMALE</sex>
@@ -113,7 +113,7 @@
<run ground="120" />
</speed>
</stats>
<status attackable="false" talkable="false" targetable="false" />
<status attackable="false" />
<collision>
<radius normal="9.5" />
<height normal="22.4" />
@@ -402,7 +402,7 @@
<run ground="120" />
</speed>
</stats>
<status attackable="false" talkable="false" targetable="false" />
<status attackable="false" targetable="false" talkable="false" showName="false" />
<collision>
<radius normal="9.5" />
<height normal="22.4" />
@@ -487,7 +487,7 @@
<run ground="120" />
</speed>
</stats>
<status attackable="false" />
<status attackable="false" targetable="false" talkable="false" showName="false" />
<collision>
<radius normal="9.5" />
<height normal="22.4" />
@@ -504,7 +504,7 @@
<run ground="120" />
</speed>
</stats>
<status attackable="false" talkable="false" targetable="false" />
<status attackable="false" targetable="false" talkable="false" showName="false" />
<collision>
<radius normal="9.5" />
<height normal="22.4" />
@@ -538,7 +538,7 @@
<run ground="120" />
</speed>
</stats>
<status attackable="false" talkable="false" targetable="false" />
<status attackable="false" />
<collision>
<radius normal="9.5" />
<height normal="22.4" />
@@ -623,7 +623,7 @@
<run ground="120" />
</speed>
</stats>
<status attackable="false" />
<status attackable="false" targetable="false" talkable="false" showName="false" />
<collision>
<radius normal="9.5" />
<height normal="22.4" />
@@ -657,7 +657,7 @@
<run ground="120" />
</speed>
</stats>
<status attackable="false" talkable="false" targetable="false" />
<status attackable="false" targetable="false" talkable="false" showName="false" />
<collision>
<radius normal="9.5" />
<height normal="22.4" />
@@ -1439,7 +1439,7 @@
<run ground="120" />
</speed>
</stats>
<status attackable="false" />
<status attackable="false" targetable="false" talkable="false" showName="false" />
<collision>
<radius normal="9.5" />
<height normal="22.4" />
@@ -1456,7 +1456,7 @@
<run ground="120" />
</speed>
</stats>
<status attackable="false" talkable="false" targetable="false" />
<status attackable="false" targetable="false" talkable="false" showName="false" />
<collision>
<radius normal="9.5" />
<height normal="22.4" />

View File

@@ -1035,20 +1035,26 @@
</enchant2for>
</skill>
<skill id="330" levels="1" name="Skill Mastery">
<!-- Masters excellence in skills. Low possibility of being able to re-use skills without delay or doubles the duration. Influenced by STR. -->
<set name="icon" val="icon.skill0330" />
<set name="magicLvl" val="77" />
<set name="operateType" val="P" />
<set name="targetType" val="SELF" />
<!-- FIXME: effect hardcoded inside formula -->
<for>
<effect name="Buff">
<add stat="skillCritical" val="1" /> <!-- STR -->
</effect>
</for>
</skill>
<skill id="331" levels="1" name="Skill Mastery">
<!-- Masters excellence in skills. Low possibility of being able to re-use skills without delay or doubles the duration. Influenced by INT. -->
<set name="icon" val="icon.skill0330" />
<set name="magicLvl" val="77" />
<set name="operateType" val="P" />
<set name="targetType" val="SELF" />
<!-- FIXME: effect hardcoded inside formula -->
<for>
<effect name="Buff">
<add stat="skillCritical" val="4" /> <!-- INT -->
</effect>
</for>
</skill>
<skill id="332" levels="1" name="Extra Inventory">
<!-- Confirmed CT2.5 -->
@@ -1086,7 +1092,7 @@
<for>
<effect name="MpConsumePerLevel" ticks="5">
<param power="2" />
<mul stat="skillMastery" val="11" />
<mul stat="skillCriticalProbability" val="11" />
</effect>
</for>
</skill>
@@ -2966,4 +2972,4 @@
<set name="operateType" val="P" />
<set name="targetType" val="NONE" />
</skill>
</list>
</list>

View File

@@ -23,7 +23,7 @@
<add stat="STR" val="2">
<using kind="SWORD, BLUNT" />
</add>
<add stat="skillMastery" val="2" />
<add stat="skillCritical" val="1" /> <!-- STR -->
</effect>
<effect name="TriggerSkillByAttack">
<param attackerType="L2Character" minAttackerLevel="1" maxAttackerLevel="99" />
@@ -41,7 +41,7 @@
<add stat="STR" val="2">
<using kind="SWORD, BLUNT" />
</add>
<add stat="skillMastery" val="2" />
<add stat="skillCritical" val="1" /> <!-- STR -->
</effect>
<effect name="TriggerSkillByAttack">
<param attackerType="L2Character" minAttackerLevel="1" maxAttackerLevel="99" />

View File

@@ -80,7 +80,7 @@
<mul stat="pAtkSpd" val="1.25" />
<mul stat="pAtk" val="1.30" />
<add stat="STR" val="2" />
<add stat="skillMastery" val="2" />
<add stat="skillCritical" val="1" /> <!-- STR -->
<add stat="atkCountMax" val="8">
<using kind="POLE" />
</add>
@@ -105,7 +105,7 @@
<mul stat="pAtkSpd" val="1.25" />
<mul stat="pAtk" val="1.30" />
<add stat="STR" val="2" />
<add stat="skillMastery" val="2" />
<add stat="skillCritical" val="1" /> <!-- STR -->
<add stat="atkCountMax" val="8">
<using kind="POLE" />
</add>

View File

@@ -29,7 +29,7 @@
<mul stat="pAtk" val="1.45" />
<mul stat="mAtk" val="1.17" />
<mul stat="mAtkSpd" val="1.23" />
<add stat="skillMastery" val="2" />
<add stat="skillCritical" val="4" /> <!-- INT -->
</effect>
</for>
<enchant1for>
@@ -39,7 +39,7 @@
<mul stat="pAtk" val="1.45" />
<mul stat="mAtk" val="1.17" />
<mul stat="mAtkSpd" val="1.23" />
<add stat="skillMastery" val="2" />
<add stat="skillCritical" val="1" /> <!-- STR -->
</effect>
</enchant1for>
</skill>

View File

@@ -86,9 +86,12 @@
<set name="reuseDelay" val="15000" />
<set name="isMagic" val="1" />
</skill>
<skill id="11755" levels="8" name="Radiant Heal">
<skill id="11755" levels="8" name="Radiant Heal" enchantGroup1="10">
<!-- Heals target with 1488 Power added to M. Atk. If HP is full, CP is restored. -->
<table name="#mpConsumes"> 138 138 141 143 146 148 151 153 </table>
<table name="#mpConsume"> 110 110 113 114 117 118 121 122 </table>
<table name="#mpInitialConsume"> 28 28 28 29 29 30 30 31 </table>
<table name="#ench1MpConsume"> 115 107 100 93 85 78 70 63 56 48 </table>
<table name="#ench1MpInitialConsume"> 28 26 25 23 21 19 17 15 14 12 </table>
<table name="#power"> 1488 1495 1507 1519 1532 1544 1557 1570 </table>
<table name="#effectPoints"> 467 484 500 516 530 544 556 559 </table>
<table name="#magicLvl"> 85 86 88 90 92 94 96 98 </table>
@@ -96,7 +99,7 @@
<set name="operateType" val="A1" />
<set name="targetType" val="ONE" />
<set name="magicLvl" val="#magicLvl" />
<set name="mpConsume" val="#mpConsumes" />
<set name="mpConsume" val="#mpConsume" />
<set name="castRange" val="600" />
<set name="effectPoint" val="#effectPoints" />
<set name="hitTime" val="4500" />
@@ -104,23 +107,29 @@
<set name="reuseDelay" val="3000" />
<set name="rideState" val="NONE;STRIDER;WYVERN;WOLF" />
<set name="isMagic" val="1" />
<set name="mpConsume" val="#mpConsume" />
<set name="mpInitialConsume" val="#mpInitialConsume" />
<for>
<effect name="HpCpHeal">
<param power="#power" />
</effect>
</for>
</skill>
<skill id="11756" levels="8" name="Panic Heal">
<skill id="11756" levels="8" name="Panic Heal" enchantGroup1="10">
<!-- Heals target with 1488 Power added to M. Atk. If HP is full, CP is restored. -->
<table name="#mpConsume"> 166 166 170 173 174 178 181 184 </table>
<table name="#mpInitialConsume"> 41 42 42 43 44 44 45 46 </table>
<table name="#power"> 1488 1495 1507 1519 1532 1544 1557 1570 </table>
<table name="#mpConsumes"> 207 208 212 216 218 222 226 230 </table>
<table name="#effectPoints"> 437 444 450 456 462 468 473 479 </table>
<table name="#magicLvl"> 85 86 88 90 92 94 96 98 </table>
<table name="#ench1mpConsume"> 172 160 149 138 128 116 105 94 84 72 </table>
<table name="#ench1mpInitialConsume"> 43 40 37 34 32 29 26 23 21 18 </table>
<set name="icon" val="icon.skill11756" />
<set name="operateType" val="A1" />
<set name="targetType" val="ONE" />
<set name="magicLvl" val="#magicLvl" />
<set name="mpConsume" val="#mpConsumes" />
<set name="mpConsume" val="#mpConsume" />
<set name="mpInitialConsume" val="#mpInitialConsume" />
<set name="castRange" val="600" />
<set name="effectPoint" val="#effectPoints" />
<set name="hitTime" val="1500" />
@@ -128,18 +137,22 @@
<set name="reuseDelay" val="1000" />
<set name="rideState" val="NONE;STRIDER;WYVERN;WOLF" />
<set name="isMagic" val="1" />
<enchant1 name="mpConsume" val="#ench1mpConsume" />
<enchant1 name="mpInitialConsume" val="#ench1mpInitialConsume" />
<for>
<effect name="HpCpHeal">
<param power="#power" />
</effect>
</for>
</skill>
<skill id="11757" levels="8" name="Brilliant Heal">
<skill id="11757" levels="8" name="Brilliant Heal" enchantGroup1="10">
<!-- Heals yourself and nearby party members with 1191 Power added to M. Atk. If HP is full, CP is restored. -->
<table name="#power"> 1191 1200 1210 1220 1230 1240 1250 1261 </table>
<table name="#effectPoints"> 431 467 500 530 556 566 576 586 </table>
<table name="#mpConsumes"> 277 281 286 290 295 300 305 310 </table>
<table name="#magicLvl"> 85 87 89 91 93 95 97 99 </table>
<table name="#ench1mpConsume"> 232 217 202 188 172 157 142 128 113 98 </table>
<table name="#ench1mpInitialConsume"> 58 54 50 47 43 39 35 32 28 24 </table>
<set name="icon" val="icon.skill11757" />
<set name="operateType" val="A1" />
<set name="targetType" val="PARTY" />
@@ -152,6 +165,8 @@
<set name="reuseDelay" val="5000" />
<set name="rideState" val="NONE;STRIDER;WYVERN;WOLF" />
<set name="isMagic" val="1" />
<enchant1 name="mpConsume" val="#ench1mpConsume" />
<enchant1 name="mpInitialConsume" val="#ench1mpInitialConsume" />
<for>
<effect name="HpCpHeal">
<param power="#power" />
@@ -181,35 +196,78 @@
<set name="reuseDelay" val="120000" />
<set name="isMagic" val="1" />
</skill>
<skill id="11760" levels="8" name="Radiant Recharge">
<!-- AUTO GENERATED SKILL -->
<skill id="11760" levels="8" name="Radiant Recharge" enchantGroup1="10">
<!-- Instantly recovers target's MP with a maximum of 166 Power depending on target's level. Also, for 10 seconds, recovers 12 MP per second. Ineffective on classes that have the Recharge skill. -->
<table name="#mpConsumes"> 183 186 188 192 196 200 203 207 </table>
<set name="icon" val="icon.skill11760" />
<table name="#magicLvl"> 85 86 88 90 92 94 96 98 </table>
<table name="#mpConsume"> 146 149 150 154 157 160 162 166 </table>
<table name="#mpInitialConsume"> 37 37 38 38 39 40 41 41 </table>
<table name="#amount"> 190 191 193 195 198 201 205 208 211 215 </table>
<table name="#ench1mpConsume"> 150 140 130 121 112 101 92 82 72 64 </table>
<table name="#ench1mpInitialConsume"> 37 35 32 30 28 25 23 20 18 16 </table>
<set name="abnormalTime" val="10" />
<set name="operateType" val="A2" />
<set name="targetType" val="SELF" />
<set name="mpConsume" val="#mpConsumes" />
<set name="castRange" val="600" />
<set name="icon" val="icon.skill11760" />
<set name="hitTime" val="5500" />
<set name="coolTime" val="500" />
<set name="reuseDelay" val="3000" />
<set name="isMagic" val="1" />
<set name="magicLvl" val="#magicLvl" />
<set name="mpConsume" val="#mpConsume" />
<set name="mpInitialConsume" val="#mpInitialConsume" />
<set name="castRange" val="600" />
<set name="targetType" val="ONE" />
<enchant1 name="mpConsume" val="#ench1mpConsume" />
<enchant1 name="mpInitialConsume" val="#ench1mpInitialConsume" />
<cond msgId="113" addName="1">
<not>
<target class_id_restriction="179, 180, 181" />
</not>
</cond>
<for>
<effect name="ManaHealByLevel">
<param power="#amount" />
</effect>
<effect name="ManaHealOverTime" ticks="1">
<param power="13" />
</effect>
</for>
</skill>
<skill id="11761" levels="5" name="Brilliant Recharge">
<!-- AUTO GENERATED SKILL -->
<skill id="11761" levels="5" name="Brilliant Recharge" enchantGroup1="10">
<!-- Instantly recovers party members' MP with a maximum of 700 Power depending on their level. Also, for 10 seconds, recovers 50 MP per second. -->
<table name="#mpConsumes"> 3900 3970 4030 4110 4180 </table>
<set name="icon" val="icon.skill11761" />
<table name="#magicLvl"> 91 93 95 97 99 </table>
<table name="#mpConsume"> 3120 3176 3224 3288 3344 </table>
<table name="#mpInitialConsume"> 780 794 806 822 836 </table>
<table name="#amount"> 700 715 725 740 750 </table>
<table name="#amountPerSec"> 50 50 50 50 55 </table>
<table name="#ench1mpConsume"> 3136 2936 2736 2536 2336 2136 1928 1728 1528 1328 </table>
<table name="#ench1mpInitialConsume"> 784 734 684 634 584 534 482 432 382 332 </table>
<set name="abnormalTime" val="10" />
<set name="operateType" val="A2" />
<set name="targetType" val="SELF" />
<set name="mpConsume" val="#mpConsumes" />
<set name="icon" val="icon.skill11761" />
<set name="affectRange" val="1000" />
<set name="hitTime" val="5500" />
<set name="coolTime" val="500" />
<set name="reuseDelay" val="300000" />
<set name="isMagic" val="1" />
<set name="magicLvl" val="#magicLvl" />
<set name="mpConsume" val="#mpConsume" />
<set name="mpInitialConsume" val="#mpInitialConsume" />
<set name="targetType" val="PARTY" />
<enchant1 name="mpConsume" val="#ench1mpConsume" />
<enchant1 name="mpInitialConsume" val="#ench1mpInitialConsume" />
<for>
<effect name="ManaHealByLevel">
<param power="#amount" />
</effect>
<effect name="ManaHealOverTime" ticks="1">
<param power="#amountPerSec" />
</effect>
</for>
</skill>
<skill id="11762" levels="1" name="Balance Heal">
<skill id="11762" levels="1" name="Balance Heal" enchantGroup1="10">
<!-- Equalizes all party members' HP and restores 333 HP every second for 15 seconds. -->
<table name="#ench1mpConsume"> 137 132 128 124 119 114 109 105 100 96 </table>
<table name="#ench1mpInitialConsume"> 34 33 32 31 29 28 27 26 25 24 </table>
<set name="abnormalTime" val="15" />
<set name="affectRange" val="1000" />
<set name="effectPoint" val="398" />
@@ -224,6 +282,8 @@
<set name="reuseDelay" val="20000" />
<set name="rideState" val="NONE;STRIDER;WYVERN;WOLF" />
<set name="targetType" val="PARTY" />
<enchant1 name="mpConsume" val="#ench1mpConsume" />
<enchant1 name="mpInitialConsume" val="#ench1mpInitialConsume" />
<for>
<effect name="RebalanceHP" />
<effect name="HealOverTime" ticks="1">
@@ -231,8 +291,9 @@
</effect>
</for>
</skill>
<skill id="11763" levels="1" name="Radiant Purge">
<skill id="11763" levels="1" name="Radiant Purge" enchantGroup1="10">
<!-- Dispels target's debuffs. Allies only. -->
<table name="#ench1power"> 1 2 3 4 5 6 7 8 9 10 </table>
<set name="castRange" val="600" />
<set name="effectPoint" val="1" />
<set name="effectRange" val="1100" />
@@ -252,30 +313,95 @@
<param slot="debuff" rate="100" max="10" />
</effect>
</for>
<enchant1for>
<effect name="DispelByCategory">
<param slot="debuff" rate="100" max="10" />
</effect>
<effect name="HealPercent">
<param power="#ench1power" />
</effect>
</enchant1for>
</skill>
<skill id="11764" levels="1" name="Brilliant Purge">
<!-- AUTO GENERATED SKILL -->
<skill id="11764" levels="1" name="Brilliant Purge" enchantGroup1="10" enchantGroup2="10">
<!-- Cancels all party members' debuffs and makes them immune to debuffs for 7 seconds. -->
<set name="icon" val="icon.skill11764" />
<table name="#ench1mpConsume"> 71 68 66 64 61 59 56 54 52 49 </table>
<table name="#ench1mpInitialConsume"> 17 17 16 16 15 14 14 13 13 12 </table>
<table name="#ench2power"> 1 2 3 4 5 6 7 8 9 10 </table>
<set name="abnormalTime" val="7" />
<set name="affectRange" val="1000" />
<set name="magicLvl" val="94" />
<set name="operateType" val="A2" />
<set name="targetType" val="SELF" />
<set name="mpConsume" val="92" />
<set name="castRange" val="600" />
<set name="icon" val="icon.skill11764" />
<set name="hitTime" val="1500" />
<set name="coolTime" val="500" />
<set name="reuseDelay" val="60000" />
<set name="isMagic" val="1" />
<set name="mpConsume" val="74" />
<set name="mpInitialConsume" val="18" />
<set name="castRange" val="600" />
<set name="targetType" val="PARTY" />
<enchant1 name="mpConsume" val="#ench1mpConsume" />
<enchant1 name="mpInitialConsume" val="#ench1mpInitialConsume" />
<for>
<effect name="DispelByCategory">
<param slot="debuff" rate="100" max="10" />
</effect>
<effect name="Buff">
<set stat="debuffImmunity" val="1" />
</effect>
</for>
<enchant2for>
<effect name="DispelByCategory">
<param slot="debuff" rate="100" max="10" />
</effect>
<effect name="Buff">
<set stat="debuffImmunity" val="1" />
</effect>
<effect name="HealPercent">
<param power="#ench2power" />
</effect>
</enchant2for>
</skill>
<skill id="11765" levels="4" name="Crystal Regeneration">
<!-- AUTO GENERATED SKILL -->
<skill id="11765" levels="4" name="Crystal Regeneration" enchantGroup1="10" enchantGroup2="10" enchantGroup3="10">
<!-- Crystallize yourself and become immune to damage and debuffs for 10 seconds. Recover 266 HP and 74 MP every second. -->
<table name="#mpConsumes"> 73 77 80 83 </table>
<set name="icon" val="icon.skill11765" />
<table name="#hpPower"> 266 273 280 285 </table>
<table name="#mpPower"> 74 77 81 83 </table>
<table name="#mpConsume"> 73 77 80 83 </table>
<table name="#abnormalLevels"> 2 3 4 5 </table>
<table name="#ench1hpPower"> 286 288 289 291 294 297 300 302 305 308 </table>
<table name="#ench1mpPower"> 84 85 86 87 88 90 91 93 94 96 </table>
<table name="#ench1mpConsume"> 64 61 59 57 55 52 51 48 46 44 </table>
<table name="#ench1mpInitialConsume"> 16 15 14 14 13 13 12 12 11 11 </table>
<set name="abnormalLvl" val="#abnormalLevels" />
<set name="abnormalType" val="TURN_STONE" />
<set name="abnormalVisualEffect" val="FLESH_STONE" />
<set name="abnormalTime" val="10" />
<set name="operateType" val="A2" />
<set name="targetType" val="SELF" />
<set name="mpConsume" val="#mpConsumes" />
<set name="icon" val="icon.skill11765" />
<set name="hitTime" val="500" />
<set name="reuseDelay" val="300000" />
<set name="mpConsume" val="#mpConsume" />
<set name="targetType" val="SELF" />
<enchant2 name="mpConsume" val="#ench1mpConsume" />
<enchant2 name="mpInitialConsume" val="#ench1mpInitialConsume" />
<for>
<effect name="Petrification" />
<effect name="HealOverTime" ticks="1">
<param power="#hpPower" />
</effect>
<effect name="ManaHealOverTime" ticks="1">
<param power="#mpPower" />
</effect>
</for>
<enchant1for>
<effect name="Petrification" />
<effect name="HealOverTime" ticks="1">
<param power="#ench1hpPower" />
</effect>
<effect name="ManaHealOverTime" ticks="1">
<param power="#ench1mpPower" />
</effect>
</enchant1for>
</skill>
<skill id="11766" levels="8" name="Dark Blast">
<!-- AUTO GENERATED SKILL -->
@@ -305,13 +431,17 @@
<set name="reuseDelay" val="6700" />
<set name="isMagic" val="1" />
</skill>
<skill id="11768" levels="1" name="Rebirth">
<skill id="11768" levels="1" name="Rebirth" enchantGroup1="10" enchantGroup2="10">
<!-- Restores all party members' HP/MP/CP and has a chance of dispelling their debuffs. -->
<table name="#ench2Rate"> 28 31 34 37 40 43 46 49 52 55 </table>
<table name="#ench1mpConsume"> 50 47 46 43 42 39 38 35 33 30 </table>
<table name="#ench1mpInitialConsume"> 12 12 11 11 10 10 9 9 8 8 </table>
<set name="icon" val="icon.skill11768" />
<set name="affectRange" val="1000" />
<set name="operateType" val="A1" />
<set name="targetType" val="PARTY" />
<set name="mpConsume" val="66" />
<set name="mpConsume" val="53" />
<set name="mpInitialConsume" val="13" />
<set name="magicLvl" val="85" />
<set name="hitTime" val="3000" />
<set name="coolTime" val="200" />
@@ -319,6 +449,8 @@
<set name="staticReuse" val="true" />
<set name="isMagic" val="1" />
<set name="rideState" val="NONE;STRIDER;WYVERN;WOLF" />
<enchant1 name="mpConsume" val="#ench1mpConsume" />
<enchant1 name="mpInitialConsume" val="#ench1mpInitialConsume" />
<for>
<effect name="ManaHealPercent">
<param power="100" />
@@ -330,9 +462,23 @@
<param power="100" />
</effect>
<effect name="DispelByCategory">
<param slot="debuff" rate="15" max="10" />
<param slot="debuff" rate="25" max="10" />
</effect>
</for>
<enchant2for>
<effect name="ManaHealPercent">
<param power="100" />
</effect>
<effect name="CpHealPercent">
<param power="100" />
</effect>
<effect name="HealPercent">
<param power="100" />
</effect>
<effect name="DispelByCategory">
<param slot="debuff" rate="#ench2Rate" max="10" />
</effect>
</enchant2for>
</skill>
<skill id="11769" levels="6" name="Dark Backfire">
<!-- AUTO GENERATED SKILL -->
@@ -371,18 +517,47 @@
<set name="coolTime" val="500" />
<set name="reuseDelay" val="600000" />
</skill>
<skill id="11772" levels="4" name="Giant's Favor">
<!-- AUTO GENERATED SKILL -->
<skill id="11772" levels="4" name="Giant's Favor" enchantGroup1="10" enchantGroup2="10" enchantGroup3="10">
<!-- Performs an ancient secret technique of the Giants to increase P. Def., M. Def., and Healing power by 1000 for 30 seconds. -->
<table name="#mpConsumes"> 17 18 21 22 </table>
<set name="icon" val="icon.skill11772" />
<table name="#power"> 1000 1500 2000 2500 </table>
<table name="#mpConsume"> 14 14 17 18 </table>
<table name="#mpInitialConsume"> 3 4 4 4 </table>
<table name="#magicLvl"> 85 90 95 99 </table>
<table name="#ench1mpConsume"> 16 14 13 12 12 10 9 8 8 6 </table>
<table name="#ench1mpInitialConsume"> 4 3 3 3 3 2 2 2 2 1 </table>
<table name="#ench2abnormalTime"> 31 32 33 34 35 36 37 38 39 40 </table>
<table name="#ench3sleepPower"> 1 2 3 4 5 6 7 8 9 10 </table>
<set name="abnormalTime" val="30" />
<set name="operateType" val="A2" />
<set name="targetType" val="SELF" />
<set name="mpConsume" val="#mpConsumes" />
<set name="icon" val="icon.skill11772" />
<set name="hitTime" val="4000" />
<set name="coolTime" val="500" />
<set name="reuseDelay" val="600000" />
<set name="isMagic" val="1" />
<set name="magicLvl" val="#magicLvl" />
<set name="mpConsume" val="#mpConsume" />
<set name="mpInitialConsume" val="#mpInitialConsume" />
<set name="targetType" val="SELF" />
<enchant1 name="mpConsume" val="#ench1mpConsume" />
<enchant1 name="mpInitialConsume" val="#ench1mpInitialConsume" />
<enchant2 name="abnormalTime" val="#ench2abnormalTime" />
<for>
<effect name="Buff">
<add stat="healEffect" val="#power" />
<add stat="pDef" val="#power" />
<add stat="mDef" val="#power" />
</effect>
</for>
<enchant3for>
<effect name="Buff">
<add stat="healEffect" val="2500" />
<add stat="pDef" val="2500" />
<add stat="mDef" val="2500" />
</effect>
<effect name="AttackTrait">
<param SLEEP="#ench3sleepPower" />
</effect>
</enchant3for>
</skill>
<skill id="11773" levels="2" name="Lakcis Disc">
<!-- AUTO GENERATED SKILL -->
@@ -511,10 +686,10 @@
</skill>
<skill id="11784" levels="4" name="Blessed Resurrection">
<!-- Resurrects a dead target and restores 85% of the XP lost. -->
<table name="#mpConsume"> 35 38 42 46 </table>
<table name="#mpConsume"> 28 30 33 36 </table>
<table name="#mpInitialConsume"> 7 7 8 9 </table>
<table name="#power"> 85 90 95 100 </table>
<table name="#magicLvl"> 85 90 95 99 </table>
<table name="#ench1mpConsume"> 147 142 137 132 127 122 117 112 108 103 </table>
<set name="blockedInOlympiad" val="true" />
<set name="castRange" val="400" />
<set name="hitTime" val="2000" />
@@ -523,6 +698,7 @@
<set name="isMagic" val="4" />
<set name="magicLvl" val="#magicLvl" />
<set name="mpConsume" val="#mpConsume" />
<set name="mpInitialConsume" val="14" />
<set name="operateType" val="A1" />
<set name="reuseDelay" val="10000" />
<set name="rideState" val="NONE;STRIDER;WYVERN;WOLF" />

View File

@@ -313,8 +313,11 @@
<set name="targetType" val="SELF" />
<set name="reuseDelay" val="4000" />
</skill>
<skill id="11828" levels="1" name="Progressive Heal">
<skill id="11828" levels="1" name="Progressive Heal" enchantGroup1="10">
<!-- Heals target and the 10 most injured allies around target by up to 40% of their Max HP. The recovery amount decreases starting from the most injured person. -->
<table name="#ench1Cost"> 62 59 57 54 52 49 47 44 41 38 </table>
<table name="#ench1mpConsume"> 448 434 420 405 391 374 360 345 331 316 </table>
<table name="#ench1mpInitialConsume"> 112 108 105 101 97 93 90 86 82 79 </table>
<set name="affectLimit" val="5-12" />
<set name="affectRange" val="300" />
<set name="castRange" val="900" />
@@ -324,11 +327,14 @@
<set name="icon" val="icon.skill11828" />
<set name="isMagic" val="1" /> <!-- Magic Skill -->
<set name="magicLvl" val="85" />
<set name="mpConsume" val="573" />
<set name="mpConsume" val="458" />
<set name="mpInitialConsume" val="115" />
<set name="operateType" val="A1" />
<set name="reuseDelay" val="5000" />
<set name="rideState" val="NONE;STRIDER;WYVERN;WOLF" />
<set name="targetType" val="AREA_FRIENDLY" />
<enchant1 name="mpConsume" val="#ench1mpConsume" />
<enchant1 name="mpInitialConsume" val="#ench1mpInitialConsume" />
<for>
<effect name="HealPercent">
<param power="40" />
@@ -425,13 +431,15 @@
</skill>
<skill id="11850" levels="4" name="Miraculous Benediction">
<!-- Restores clan members' CP/HP. Can only be used when MP is 50% or below. -->
<table name="#mpConsumes"> 185 205 225 243 </table>
<table name="#mpConsume"> 148 164 180 194 </table>
<table name="#mpInitialConsume"> 37 41 45 49 </table>
<table name="#magicLvl"> 85 90 95 99 </table>
<table name="#mp"> 50 60 70 100 </table>
<set name="icon" val="icon.skill11850new" />
<set name="operateType" val="A1" />
<set name="targetType" val="PARTY_CLAN" />
<set name="mpConsume" val="#mpConsumes" />
<set name="mpConsume" val="#mpConsume" />
<set name="mpInitialConsume" val="#mpInitialConsume" />
<set name="hitTime" val="10000" />
<set name="coolTime" val="500" />
<set name="reuseDelay" val="600000" />
@@ -455,8 +463,8 @@
<table name="#abnormalLvls"> 4 5 6 7 </table>
<table name="#healEffect"> 1.05 1.07 1.1 1.15 </table>
<table name="#magicLvl"> 85 90 95 99 </table>
<table name="#mpInitialConsume"> 37 41 45 49 </table>
<table name="#mpConsume"> 185 205 225 243 </table>
<table name="#mpInitialConsume"> 37 41 45 49 </table>
<set name="abnormalLvl" val="#abnormalLvls" />
<set name="abnormalType" val="HEAL_EFFECT_UP" />
<set name="abnormalTime" val="1800" />
@@ -479,17 +487,31 @@
</for>
</skill>
<skill id="11852" levels="4" name="Mass Mana Gain">
<!-- AUTO GENERATED SKILL -->
<!-- For 30 min., party members' MP heal amount + 33. -->
<table name="#mpConsumes"> 185 205 225 243 </table>
<set name="icon" val="icon.skill11852new" />
<table name="#abnormalLvls"> 2 3 4 5 </table>
<table name="#mpInitialConsume"> 37 41 45 49 </table>
<table name="#mpConsume"> 148 164 180 194 </table>
<table name="#magicLvl"> 85 90 95 99 </table>
<table name="#power"> 33 35 37 40 </table>
<set name="abnormalLvl" val="#abnormalLvls" />
<set name="abnormalType" val="RECHARGE_UP" />
<set name="abnormalTime" val="1800" />
<set name="affectRange" val="1000" />
<set name="operateType" val="A2" />
<set name="targetType" val="SELF" />
<set name="mpConsume" val="#mpConsumes" />
<set name="icon" val="icon.skill11852new" />
<set name="hitTime" val="1500" />
<set name="coolTime" val="500" />
<set name="reuseDelay" val="30000" />
<set name="isMagic" val="1" />
<set name="magicLvl" val="#magicLvl" />
<set name="mpConsume" val="#mpConsume" />
<set name="mpInitialConsume" val="#mpInitialConsume" />
<set name="targetType" val="PARTY" />
<for>
<effect name="Buff">
<add stat="manaCharge" val="#power" />
</effect>
</for>
</skill>
<skill id="11853" levels="4" name="Superior Quick Recovery">
<!-- AUTO GENERATED SKILL -->
@@ -499,17 +521,31 @@
<set name="targetType" val="SELF" />
</skill>
<skill id="11854" levels="4" name="Mass Mana Gain">
<!-- AUTO GENERATED SKILL -->
<!-- For 30 min., party members' MP heal amount + 33. -->
<table name="#mpConsumes"> 185 205 225 243 </table>
<set name="icon" val="icon.skill11852new" />
<table name="#abnormalLvls"> 2 3 4 5 </table>
<table name="#mpInitialConsume"> 37 41 45 49 </table>
<table name="#mpConsume"> 148 164 180 194 </table>
<table name="#magicLvl"> 85 90 95 99 </table>
<table name="#power"> 33 35 37 40 </table>
<set name="abnormalLvl" val="#abnormalLvls" />
<set name="abnormalType" val="RECHARGE_UP" />
<set name="abnormalTime" val="1800" />
<set name="affectRange" val="1000" />
<set name="operateType" val="A2" />
<set name="targetType" val="SELF" />
<set name="mpConsume" val="#mpConsumes" />
<set name="icon" val="icon.skill11852new" />
<set name="hitTime" val="1500" />
<set name="coolTime" val="500" />
<set name="reuseDelay" val="30000" />
<set name="isMagic" val="1" />
<set name="magicLvl" val="#magicLvl" />
<set name="mpConsume" val="#mpConsume" />
<set name="mpInitialConsume" val="#mpInitialConsume" />
<set name="targetType" val="PARTY" />
<for>
<effect name="Buff">
<add stat="manaCharge" val="#power" />
</effect>
</for>
</skill>
<skill id="11855" levels="4" name="Superior Wizard Combat">
<!-- AUTO GENERATED SKILL -->

View File

@@ -604,7 +604,7 @@
<effect name="Buff">
<add stat="rCrit" val="50" />
<add stat="mCritRate" val="20" />
<mul stat="skillMastery" val="1.50" />
<mul stat="skillCriticalProbability" val="1.50" />
</effect>
</for>
</skill>
@@ -732,7 +732,7 @@
<set name="targetType" val="SELF" />
<for>
<effect name="Buff">
<mul stat="skillMastery" val="#bonus" />
<mul stat="skillCriticalProbability" val="#bonus" />
</effect>
</for>
</skill>

View File

@@ -342,7 +342,8 @@
<xs:enumeration value="shieldDefAngle" />
<xs:enumeration value="reflectSkillMagic" />
<xs:enumeration value="reflectSkillPhysic" />
<xs:enumeration value="skillMastery" />
<xs:enumeration value="skillCritical" />
<xs:enumeration value="skillCriticalProbability" />
<xs:enumeration value="PrivateBuyLimit" />
<xs:enumeration value="PrivateSellLimit" />
<xs:enumeration value="inventoryLimit" />

View File

@@ -1,53 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<list enabled="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/zones.xsd">
<!-- Peace Zones -->
<zone name="talking_island_town_peace_zone_1" type="PeaceZone" shape="NPoly" minZ="-2000" maxZ="-1000"> <!-- [17_25] -->
<node X="-114584" Y="252104"/>
<node X="-115400" Y="252120"/>
<node X="-117000" Y="252216"/>
<node X="-117000" Y="253320"/>
<node X="-117560" Y="253336"/>
<node X="-117592" Y="254008"/>
<node X="-117816" Y="254376"/>
<node X="-118328" Y="254568"/>
<node X="-118792" Y="255016"/>
<node X="-118968" Y="255352"/>
<node X="-118600" Y="256216"/>
<node X="-118520" Y="256216"/>
<node X="-118200" Y="256936"/>
<node X="-117608" Y="256696"/>
<node X="-117368" Y="257128"/>
<node X="-117400" Y="258552"/>
<node X="-117224" Y="258776"/>
<node X="-116296" Y="259832"/>
<node X="-115816" Y="259816"/>
<node X="-115816" Y="260680"/>
<node X="-112920" Y="260696"/>
<node X="-112920" Y="259976"/>
<node X="-112392" Y="259944"/>
<node X="-111688" Y="259352"/>
<node X="-111192" Y="258984"/>
<node X="-110696" Y="258744"/>
<node X="-110104" Y="258264"/>
<node X="-109064" Y="255768"/>
<node X="-109704" Y="254760"/>
<node X="-109720" Y="254088"/>
<node X="-109992" Y="253528"/>
<node X="-109656" Y="252904"/>
<node X="-109608" Y="252168"/>
<node X="-109624" Y="251832"/>
<node X="-109720" Y="251672"/>
<node X="-110200" Y="251304"/>
<node X="-110760" Y="251288"/>
<node X="-111464" Y="251928"/>
<node X="-111832" Y="252216"/>
<node X="-112072" Y="251992"/>
<zone name="talking_island_town_peace_zone" type="PeaceZone" shape="NPoly" minZ="-2000" maxZ="-1300"> <!-- [16_25] -->
<node X="-116682" Y="251916" />
<node X="-112129" Y="251952" />
<node X="-110861" Y="251493" />
<node X="-110258" Y="251440" />
<node X="-109750" Y="251761" />
<node X="-109772" Y="255021" />
<node X="-108960" Y="255768" />
<node X="-110067" Y="258267" />
<node X="-112865" Y="260707" />
<node X="-115879" Y="260724" />
<node X="-118301" Y="256907" />
<node X="-119012" Y="255316" />
<node X="-117201" Y="252300" />
</zone>
<zone name="talking_island_town_peace_zone_2" type="PeaceZone" shape="NPoly" minZ="-8050" maxZ="-7050"> <!-- [17_25] -->
<node X="-113500" Y="246000"/>
<node X="-113500" Y="243350"/>
<node X="-115930" Y="243350"/>
<node X="-115930" Y="246000"/>
<zone name="faeron_town_peace_zone" type="PeaceZone" shape="NPoly" minZ="-3866" maxZ="-2866"> <!-- [17_25] -->
<node X="-82791" Y="248383" />
<node X="-81763" Y="247611" />
<node X="-79546" Y="246146" />
<node X="-78124" Y="246275" />
<node X="-76771" Y="247497" />
<node X="-76094" Y="248657" />
<node X="-77833" Y="252164" />
<node X="-79415" Y="253191" />
<node X="-81691" Y="255369" />
<node X="-84012" Y="254772" />
<node X="-84175" Y="254116" />
<node X="-83749" Y="251334" />
</zone>
<zone name="guldiocastle_town_peace1" type="PeaceZone" shape="NPoly" minZ="-3245" maxZ="-2745"> <!-- [19_21] -->
<node X="-11998" Y="123905" />
@@ -243,6 +224,12 @@
<node X="85038" Y="143856" />
<node X="83111" Y="143859" />
</zone>
<zone name="oren_town_peace1" type="PeaceZone" shape="NPoly" minZ="-1822" maxZ="-1022"> <!-- [22_19] -->
<node X="78900" Y="52076" />
<node X="84126" Y="52049" />
<node X="84099" Y="57117" />
<node X="78872" Y="57144" />
</zone>
<zone name="ivory_tower_peace1" type="PeaceZone" shape="NPoly" minZ="-4652" maxZ="347"> <!-- [22_18] -->
<node X="86094" Y="16382" />
<node X="85888" Y="16744" />
@@ -702,108 +689,6 @@
<node X="16296" Y="-113656"/>
<node X="16472" Y="-113608"/>
</zone>
<zone name="faeron_village_town_peace" type="PeaceZone" shape="NPoly" minZ="-4000" maxZ="-2500"> <!-- [17_24] -->
<node X="-82504" Y="248456"/>
<node X="-82408" Y="248520"/>
<node X="-82312" Y="248600"/>
<node X="-82200" Y="248696"/>
<node X="-82056" Y="248872"/>
<node X="-82216" Y="249096"/>
<node X="-82248" Y="249224"/>
<node X="-82440" Y="249528"/>
<node X="-82520" Y="249640"/>
<node X="-82536" Y="249752"/>
<node X="-82488" Y="250344"/>
<node X="-80616" Y="250680"/>
<node X="-79912" Y="250568"/>
<node X="-79240" Y="250888"/>
<node X="-79304" Y="251256"/>
<node X="-79528" Y="251512"/>
<node X="-79864" Y="251368"/>
<node X="-79928" Y="251512"/>
<node X="-80152" Y="251560"/>
<node X="-80760" Y="251736"/>
<node X="-80872" Y="252056"/>
<node X="-80600" Y="252200"/>
<node X="-80664" Y="252440"/>
<node X="-80664" Y="252728"/>
<node X="-80584" Y="252872"/>
<node X="-80456" Y="252984"/>
<node X="-80264" Y="253048"/>
<node X="-80056" Y="253048"/>
<node X="-79864" Y="252968"/>
<node X="-79736" Y="252824"/>
<node X="-79688" Y="252696"/>
<node X="-79704" Y="252520"/>
<node X="-79784" Y="252376"/>
<node X="-79352" Y="252008"/>
<node X="-79240" Y="251896"/>
<node X="-79176" Y="251720"/>
<node X="-79032" Y="251576"/>
<node X="-78968" Y="251544"/>
<node X="-78888" Y="251464"/>
<node X="-77944" Y="250968"/>
<node X="-77896" Y="250888"/>
<node X="-77704" Y="250328"/>
<node X="-77800" Y="249800"/>
<node X="-77512" Y="249256"/>
<node X="-77592" Y="248712"/>
<node X="-77496" Y="248232"/>
<node X="-77576" Y="247912"/>
<node X="-77768" Y="247672"/>
<node X="-78312" Y="247240"/>
<node X="-78728" Y="247000"/>
<node X="-78872" Y="246888"/>
<node X="-78904" Y="246600"/>
<node X="-78840" Y="246152"/>
<node X="-79384" Y="246232"/>
<node X="-79304" Y="246344"/>
<node X="-79240" Y="246472"/>
<node X="-79192" Y="246616"/>
<node X="-79080" Y="247032"/>
<node X="-79176" Y="247048"/>
<node X="-79336" Y="247240"/>
<node X="-79352" Y="247336"/>
<node X="-79384" Y="247464"/>
<node X="-79512" Y="247656"/>
<node X="-79416" Y="247496"/>
<node X="-79560" Y="247320"/>
<node X="-79752" Y="247224"/>
<node X="-79880" Y="247240"/>
<node X="-79960" Y="247112"/>
<node X="-80072" Y="247000"/>
<node X="-80184" Y="246920"/>
<node X="-80312" Y="246936"/>
<node X="-80408" Y="246920"/>
<node X="-80536" Y="246984"/>
<node X="-80616" Y="247048"/>
<node X="-80664" Y="247160"/>
<node X="-80776" Y="247160"/>
<node X="-80872" Y="247112"/>
<node X="-80952" Y="247096"/>
<node X="-81032" Y="247112"/>
<node X="-81112" Y="247160"/>
<node X="-81192" Y="247272"/>
<node X="-81208" Y="247448"/>
<node X="-81176" Y="247560"/>
<node X="-81192" Y="247672"/>
<node X="-81352" Y="247784"/>
<node X="-81416" Y="247864"/>
<node X="-81384" Y="247912"/>
<node X="-81384" Y="248040"/>
<node X="-81304" Y="248120"/>
<node X="-81160" Y="248184"/>
<node X="-80968" Y="248424"/>
<node X="-80776" Y="248696"/>
<node X="-81112" Y="249160"/>
<node X="-81288" Y="249160"/>
<node X="-81448" Y="249096"/>
<node X="-81608" Y="248936"/>
<node X="-81752" Y="248680"/>
<node X="-81928" Y="248680"/>
<node X="-82120" Y="248376"/>
<node X="-82200" Y="248200"/>
</zone>
<zone name="refugee_camp_peace" type="PeaceZone" shape="NPoly" minZ="-2000" maxZ="-3000"> <!-- [19_25] -->
<node X="-29163" Y="253328"/>
<node X="-29912" Y="254568"/>