Code review Part 5.
This commit is contained in:
@@ -343,7 +343,7 @@ public class FeedableBeasts extends Quest
|
||||
|
||||
private void spawnNext(NpcInstance npc, int growthLevel, PlayerInstance player, int food)
|
||||
{
|
||||
int npcId = npc.getNpcId();
|
||||
final int npcId = npc.getNpcId();
|
||||
int nextNpcId = 0;
|
||||
|
||||
// Find the next mob to spawn, based on the current npcId, growthlevel, and food.
|
||||
@@ -405,7 +405,7 @@ public class FeedableBeasts extends Quest
|
||||
nextNpc.setRunning();
|
||||
|
||||
// If player has Q020 going, give quest item
|
||||
QuestState st = player.getQuestState(Q020_BringUpWithLove.class.getSimpleName());
|
||||
final QuestState st = player.getQuestState(Q020_BringUpWithLove.class.getSimpleName());
|
||||
if ((st != null) && (Rnd.get(100) < 5) && !st.hasQuestItems(7185))
|
||||
{
|
||||
st.giveItems(7185, 1);
|
||||
@@ -413,7 +413,7 @@ public class FeedableBeasts extends Quest
|
||||
}
|
||||
|
||||
// Also, perform a rare random chat
|
||||
int rand = Rnd.get(20);
|
||||
final int rand = Rnd.get(20);
|
||||
if (rand < 5)
|
||||
{
|
||||
npc.broadcastPacket(new CreatureSay(nextNpc.getObjectId(), 0, nextNpc.getName(), SPAWN_CHATS[rand].replace("$s1", player.getName())));
|
||||
@@ -423,7 +423,7 @@ public class FeedableBeasts extends Quest
|
||||
{
|
||||
// If not trained, the newly spawned mob will automatically be aggro against its feeder
|
||||
// (what happened to "never bite the hand that feeds you" anyway?!)
|
||||
Attackable nextNpc = (Attackable) addSpawn(nextNpcId, npc);
|
||||
final Attackable nextNpc = (Attackable) addSpawn(nextNpcId, npc);
|
||||
|
||||
if (MAD_COW_POLYMORPH.containsKey(nextNpcId))
|
||||
{
|
||||
@@ -454,7 +454,7 @@ public class FeedableBeasts extends Quest
|
||||
npc.deleteMe();
|
||||
|
||||
// spawn the new mob
|
||||
Attackable nextNpc = (Attackable) addSpawn(MAD_COW_POLYMORPH.get(npc.getNpcId()), npc);
|
||||
final Attackable nextNpc = (Attackable) addSpawn(MAD_COW_POLYMORPH.get(npc.getNpcId()), npc);
|
||||
|
||||
// register the player in the feedinfo for the mob that just spawned
|
||||
FEED_INFO.put(nextNpc.getObjectId(), player.getObjectId());
|
||||
@@ -471,8 +471,8 @@ public class FeedableBeasts extends Quest
|
||||
public String onSkillUse(NpcInstance npc, PlayerInstance caster, Skill skill)
|
||||
{
|
||||
// Gather some values on local variables
|
||||
int npcId = npc.getNpcId();
|
||||
int skillId = skill.getId();
|
||||
final int npcId = npc.getNpcId();
|
||||
final int skillId = skill.getId();
|
||||
|
||||
// Check if the npc and skills used are valid for this script. Exit if invalid.
|
||||
if (!Util.contains(FEEDABLE_BEASTS, npcId) || ((skillId != SKILL_GOLDEN_SPICE) && (skillId != SKILL_CRYSTAL_SPICE)))
|
||||
@@ -481,7 +481,7 @@ public class FeedableBeasts extends Quest
|
||||
}
|
||||
|
||||
// First gather some values on local variables
|
||||
int objectId = npc.getObjectId();
|
||||
final int objectId = npc.getObjectId();
|
||||
int growthLevel = 3; // if a mob is in FEEDABLE_BEASTS but not in GROWTH_CAPABLE_MOBS, then it's at max growth (3)
|
||||
|
||||
if (GROWTH_CAPABLE_MONSTERS.containsKey(npcId))
|
||||
|
@@ -181,8 +181,8 @@ public class NewbieHelper extends Quest
|
||||
String htmltext = event;
|
||||
player = qs1.getPlayer();
|
||||
|
||||
int ex = qs2.getInt("Ex");
|
||||
int classId = qs1.getPlayer().getClassId().getId();
|
||||
final int ex = qs2.getInt("Ex");
|
||||
final int classId = qs1.getPlayer().getClassId().getId();
|
||||
|
||||
if (event.equalsIgnoreCase("TimerEx_NewbieHelper"))
|
||||
{
|
||||
@@ -210,7 +210,7 @@ public class NewbieHelper extends Quest
|
||||
}
|
||||
else
|
||||
{
|
||||
Event ev = _events.get(event);
|
||||
final Event ev = _events.get(event);
|
||||
if (ev != null)
|
||||
{
|
||||
if (ev._radarX != 0)
|
||||
@@ -250,7 +250,7 @@ public class NewbieHelper extends Quest
|
||||
{
|
||||
String htmltext = "";
|
||||
QuestState qs1 = player.getQuestState(getName());
|
||||
QuestState qs2 = player.getQuestState(Tutorial.class.getSimpleName());
|
||||
final QuestState qs2 = player.getQuestState(Tutorial.class.getSimpleName());
|
||||
if (qs1 == null)
|
||||
{
|
||||
qs1 = newQuestState(player);
|
||||
@@ -262,16 +262,16 @@ public class NewbieHelper extends Quest
|
||||
return null;
|
||||
}
|
||||
|
||||
int npcId = npc.getNpcId();
|
||||
int level = player.getLevel();
|
||||
boolean isMage = player.isMageClass();
|
||||
boolean isOrcMage = player.getClassId().getId() == 49;
|
||||
final int npcId = npc.getNpcId();
|
||||
final int level = player.getLevel();
|
||||
final boolean isMage = player.isMageClass();
|
||||
final boolean isOrcMage = player.getClassId().getId() == 49;
|
||||
|
||||
int npcType = 0;
|
||||
int raceId = 0;
|
||||
int item = 0;
|
||||
String[] htmlfiles = {};
|
||||
Talk talk = _talks.get(npcId);
|
||||
final Talk talk = _talks.get(npcId);
|
||||
try
|
||||
{
|
||||
if (talk != null)
|
||||
@@ -343,7 +343,7 @@ public class NewbieHelper extends Quest
|
||||
}
|
||||
else if (npcType == 0)
|
||||
{
|
||||
int step = qs1.getInt("step");
|
||||
final int step = qs1.getInt("step");
|
||||
if (step == 1)
|
||||
{
|
||||
htmltext = htmlfiles[0];
|
||||
|
@@ -72,7 +72,7 @@ public class RetreatOnAttack extends Quest
|
||||
}
|
||||
int posX = npc.getX();
|
||||
int posY = npc.getY();
|
||||
int posZ = npc.getZ();
|
||||
final int posZ = npc.getZ();
|
||||
int signX = -500;
|
||||
int signY = -500;
|
||||
if (npc.getX() > attacker.getX())
|
||||
|
@@ -162,7 +162,7 @@ public class SummonMinions extends Quest
|
||||
HasSpawned = 0;
|
||||
if (Rnd.get(100) < 33) // mobs that summon minions only on certain chance
|
||||
{
|
||||
Integer[] minions = MINIONS.get(npcId);
|
||||
final Integer[] minions = MINIONS.get(npcId);
|
||||
for (Integer minion : minions)
|
||||
{
|
||||
final Attackable newNpc = (Attackable) addSpawn(minion, (npc.getX() + Rnd.get(-150, 150)), (npc.getY() + Rnd.get(-150, 150)), npc.getZ(), 0, false, 0);
|
||||
@@ -208,7 +208,7 @@ public class SummonMinions extends Quest
|
||||
if (((attacker.getParty() != null) && (attacker.getParty().getMemberCount() > 2)) || (_attackersList.get(npcObjId).size() > 2)) // Just to make sure..
|
||||
{
|
||||
HasSpawned = 0;
|
||||
Integer[] minions = MINIONS.get(npcId);
|
||||
final Integer[] minions = MINIONS.get(npcId);
|
||||
for (Integer minion : minions)
|
||||
{
|
||||
final Attackable newNpc = (Attackable) addSpawn(minion, npc.getX() + Rnd.get(-150, 150), npc.getY() + Rnd.get(-150, 150), npc.getZ(), 0, false, 0);
|
||||
@@ -222,7 +222,7 @@ public class SummonMinions extends Quest
|
||||
// mobs without special conditions
|
||||
{
|
||||
HasSpawned = 0;
|
||||
Integer[] minions = MINIONS.get(npcId);
|
||||
final Integer[] minions = MINIONS.get(npcId);
|
||||
if (npcId != 20767)
|
||||
{
|
||||
for (Integer minion : minions)
|
||||
|
@@ -168,8 +168,8 @@ public class Tutorial extends Quest
|
||||
|
||||
String html = "";
|
||||
|
||||
int classId = player.getClassId().getId();
|
||||
int ex = qs.getInt("Ex");
|
||||
final int classId = player.getClassId().getId();
|
||||
final int ex = qs.getInt("Ex");
|
||||
|
||||
if (event.startsWith("UC"))
|
||||
{
|
||||
|
@@ -59,17 +59,17 @@ public class EchoCrystals extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = "";
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
|
||||
if ((st != null) && Util.isDigit(event))
|
||||
{
|
||||
int score = Integer.parseInt(event);
|
||||
final int score = Integer.parseInt(event);
|
||||
if (SCORES.containsKey(score))
|
||||
{
|
||||
int crystal = SCORES.get(score).getCrystalId();
|
||||
String ok = SCORES.get(score).getOkMsg();
|
||||
String noadena = SCORES.get(score).getNoAdenaMsg();
|
||||
String noscore = SCORES.get(score).getNoScoreMsg();
|
||||
final int crystal = SCORES.get(score).getCrystalId();
|
||||
final String ok = SCORES.get(score).getOkMsg();
|
||||
final String noadena = SCORES.get(score).getNoAdenaMsg();
|
||||
final String noscore = SCORES.get(score).getNoScoreMsg();
|
||||
|
||||
if (st.getQuestItemsCount(score) == 0)
|
||||
{
|
||||
|
@@ -50,9 +50,9 @@ public class HeroWeapon extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
|
||||
int weaponId = Integer.parseInt(event);
|
||||
final int weaponId = Integer.parseInt(event);
|
||||
if (Util.contains(WEAPON_IDS, weaponId))
|
||||
{
|
||||
st.giveItems(weaponId, 1);
|
||||
@@ -66,7 +66,7 @@ public class HeroWeapon extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = "";
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
newQuestState(player);
|
||||
|
@@ -149,7 +149,7 @@ public class KetraOrcSupport extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -444,7 +444,7 @@ public class KetraOrcSupport extends Quest
|
||||
// Drop by 1 the level of that alliance (symbolized by a quest item).
|
||||
for (int i = 7215; i >= 7211; i--)
|
||||
{
|
||||
ItemInstance item = inventory.getItemByItemId(i);
|
||||
final ItemInstance item = inventory.getItemByItemId(i);
|
||||
if (item != null)
|
||||
{
|
||||
// Destroy the badge.
|
||||
@@ -462,7 +462,7 @@ public class KetraOrcSupport extends Quest
|
||||
|
||||
for (String mission : ketraMissions)
|
||||
{
|
||||
QuestState pst = player.getQuestState(mission);
|
||||
final QuestState pst = player.getQuestState(mission);
|
||||
if (pst != null)
|
||||
{
|
||||
pst.exitQuest(true);
|
||||
|
@@ -64,7 +64,7 @@ public class MissQueen extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
|
||||
if (event.equals("newbie_coupon"))
|
||||
{
|
||||
|
@@ -216,7 +216,7 @@ public class NpcLocationInfo extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -225,7 +225,7 @@ public class NpcLocationInfo extends Quest
|
||||
if (Util.isDigit(event))
|
||||
{
|
||||
htmltext = null;
|
||||
int npcId = Integer.parseInt(event);
|
||||
final int npcId = Integer.parseInt(event);
|
||||
|
||||
if (Util.contains(RADARS, npcId))
|
||||
{
|
||||
|
@@ -141,7 +141,7 @@ public class RaidbossInfo extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return event;
|
||||
@@ -149,11 +149,11 @@ public class RaidbossInfo extends Quest
|
||||
|
||||
if (Util.isDigit(event))
|
||||
{
|
||||
int rbid = Integer.parseInt(event);
|
||||
final int rbid = Integer.parseInt(event);
|
||||
|
||||
if (RADARS.containsKey(rbid))
|
||||
{
|
||||
Location loc = RADARS.get(rbid);
|
||||
final Location loc = RADARS.get(rbid);
|
||||
st.addRadar(loc.getX(), loc.getY(), loc.getZ());
|
||||
}
|
||||
st.exitQuest(true);
|
||||
|
@@ -47,15 +47,15 @@ public class ShadowWeapon extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
boolean hasD = st.hasQuestItems(D_COUPON);
|
||||
boolean hasC = st.hasQuestItems(C_COUPON);
|
||||
final boolean hasD = st.hasQuestItems(D_COUPON);
|
||||
final boolean hasC = st.hasQuestItems(C_COUPON);
|
||||
|
||||
if (hasD || hasC)
|
||||
{
|
||||
|
@@ -148,7 +148,7 @@ public class VarkaSilenosSupport extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -443,7 +443,7 @@ public class VarkaSilenosSupport extends Quest
|
||||
// Drop by 1 the level of that alliance (symbolized by a quest item).
|
||||
for (int i = 7225; i >= 7221; i--)
|
||||
{
|
||||
ItemInstance item = inventory.getItemByItemId(i);
|
||||
final ItemInstance item = inventory.getItemByItemId(i);
|
||||
if (item != null)
|
||||
{
|
||||
// Destroy the badge.
|
||||
@@ -461,7 +461,7 @@ public class VarkaSilenosSupport extends Quest
|
||||
|
||||
for (String mission : varkaMissions)
|
||||
{
|
||||
QuestState pst = player.getQuestState(mission);
|
||||
final QuestState pst = player.getQuestState(mission);
|
||||
if (pst != null)
|
||||
{
|
||||
pst.exitQuest(true);
|
||||
|
@@ -51,8 +51,8 @@ public class Q001_LettersOfLove extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -73,7 +73,7 @@ public class Q001_LettersOfLove extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -86,7 +86,7 @@ public class Q001_LettersOfLove extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case DARIN:
|
||||
|
@@ -54,8 +54,8 @@ public class Q002_WhatWomenWant extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -90,7 +90,7 @@ public class Q002_WhatWomenWant extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -114,7 +114,7 @@ public class Q002_WhatWomenWant extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case ARUJIEN:
|
||||
|
@@ -48,8 +48,8 @@ public class Q003_WillTheSealBeBroken extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -68,7 +68,7 @@ public class Q003_WillTheSealBeBroken extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -93,7 +93,7 @@ public class Q003_WillTheSealBeBroken extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
if (cond == 1)
|
||||
{
|
||||
htmltext = "30141-04.htm";
|
||||
@@ -121,7 +121,7 @@ public class Q003_WillTheSealBeBroken extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerCondition(player, npc, "cond", "1");
|
||||
final QuestState st = checkPlayerCondition(player, npc, "cond", "1");
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -52,8 +52,8 @@ public class Q004_LongliveThePaagrioLord extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -73,7 +73,7 @@ public class Q004_LongliveThePaagrioLord extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -97,8 +97,8 @@ public class Q004_LongliveThePaagrioLord extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
int npcId = npc.getNpcId();
|
||||
final int cond = st.getInt("cond");
|
||||
final int npcId = npc.getNpcId();
|
||||
|
||||
if (npcId == 30578)
|
||||
{
|
||||
@@ -121,7 +121,7 @@ public class Q004_LongliveThePaagrioLord extends Quest
|
||||
}
|
||||
else
|
||||
{
|
||||
int i = NPC_GIFTS.get(npcId);
|
||||
final int i = NPC_GIFTS.get(npcId);
|
||||
if (st.hasQuestItems(i))
|
||||
{
|
||||
htmltext = npcId + "-02.htm";
|
||||
|
@@ -55,8 +55,8 @@ public class Q005_MinersFavor extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -92,7 +92,7 @@ public class Q005_MinersFavor extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -106,7 +106,7 @@ public class Q005_MinersFavor extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case BOLTER:
|
||||
|
@@ -51,7 +51,7 @@ public class Q006_StepIntoTheFuture extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -96,7 +96,7 @@ public class Q006_StepIntoTheFuture extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -117,7 +117,7 @@ public class Q006_StepIntoTheFuture extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case ROXXY:
|
||||
|
@@ -50,8 +50,8 @@ public class Q007_ATripBegins extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -89,7 +89,7 @@ public class Q007_ATripBegins extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -114,7 +114,7 @@ public class Q007_ATripBegins extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case MIRABEL:
|
||||
|
@@ -50,8 +50,8 @@ public class Q008_AnAdventureBegins extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -89,7 +89,7 @@ public class Q008_AnAdventureBegins extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -110,7 +110,7 @@ public class Q008_AnAdventureBegins extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case JASMINE:
|
||||
|
@@ -45,8 +45,8 @@ public class Q009_IntoTheCityOfHumans extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -77,7 +77,7 @@ public class Q009_IntoTheCityOfHumans extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -98,7 +98,7 @@ public class Q009_IntoTheCityOfHumans extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case PETUKAI:
|
||||
|
@@ -50,8 +50,8 @@ public class Q010_IntoTheWorld extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -95,7 +95,7 @@ public class Q010_IntoTheWorld extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -115,7 +115,7 @@ public class Q010_IntoTheWorld extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case BALANKI:
|
||||
|
@@ -45,8 +45,8 @@ public class Q011_SecretMeetingWithKetraOrcs extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -78,7 +78,7 @@ public class Q011_SecretMeetingWithKetraOrcs extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -92,7 +92,7 @@ public class Q011_SecretMeetingWithKetraOrcs extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case CADMON:
|
||||
|
@@ -45,8 +45,8 @@ public class Q012_SecretMeetingWithVarkaSilenos extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -78,7 +78,7 @@ public class Q012_SecretMeetingWithVarkaSilenos extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -92,7 +92,7 @@ public class Q012_SecretMeetingWithVarkaSilenos extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case CADMON:
|
||||
|
@@ -44,8 +44,8 @@ public class Q013_ParcelDelivery extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -73,7 +73,7 @@ public class Q013_ParcelDelivery extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
|
@@ -44,8 +44,8 @@ public class Q014_WhereaboutsOfTheArchaeologist extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -72,7 +72,7 @@ public class Q014_WhereaboutsOfTheArchaeologist extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
|
@@ -40,8 +40,8 @@ public class Q015_SweetWhispers extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -72,7 +72,7 @@ public class Q015_SweetWhispers extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -85,7 +85,7 @@ public class Q015_SweetWhispers extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case VLADIMIR:
|
||||
|
@@ -48,8 +48,8 @@ public class Q016_TheComingDarkness extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -100,7 +100,7 @@ public class Q016_TheComingDarkness extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -113,8 +113,8 @@ public class Q016_TheComingDarkness extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
int npcId = npc.getNpcId();
|
||||
final int cond = st.getInt("cond");
|
||||
final int npcId = npc.getNpcId();
|
||||
|
||||
switch (npcId)
|
||||
{
|
||||
|
@@ -48,7 +48,7 @@ public class Q017_LightAndDarkness extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -121,7 +121,7 @@ public class Q017_LightAndDarkness extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -134,7 +134,7 @@ public class Q017_LightAndDarkness extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case HIERARCH:
|
||||
|
@@ -45,8 +45,8 @@ public class Q018_MeetingWithTheGoldenRam extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -80,7 +80,7 @@ public class Q018_MeetingWithTheGoldenRam extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -93,7 +93,7 @@ public class Q018_MeetingWithTheGoldenRam extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case DONAL:
|
||||
|
@@ -45,7 +45,7 @@ public class Q019_GoToThePastureland extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -80,7 +80,7 @@ public class Q019_GoToThePastureland extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
|
@@ -40,8 +40,8 @@ public class Q020_BringUpWithLove extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -68,7 +68,7 @@ public class Q020_BringUpWithLove extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
|
@@ -64,8 +64,8 @@ public class Q021_HiddenTruth extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -168,7 +168,7 @@ public class Q021_HiddenTruth extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -181,7 +181,7 @@ public class Q021_HiddenTruth extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case MYSTERIOUS_WIZARD:
|
||||
@@ -280,7 +280,7 @@ public class Q021_HiddenTruth extends Quest
|
||||
case DOMINIC:
|
||||
if (((cond == 6) || (cond == 7)) && st.hasQuestItems(CROSS_OF_EINHASAD))
|
||||
{
|
||||
int npcId = npc.getNpcId();
|
||||
final int npcId = npc.getNpcId();
|
||||
|
||||
// For cond 6, make checks until cond 7 is activated.
|
||||
if (cond == 6)
|
||||
|
@@ -67,7 +67,7 @@ public class Q022_TragedyInVonHellmannForest extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -75,7 +75,7 @@ public class Q022_TragedyInVonHellmannForest extends Quest
|
||||
|
||||
if (event.equals("31334-03.htm"))
|
||||
{
|
||||
QuestState st2 = player.getQuestState(Q021_HiddenTruth.class.getSimpleName());
|
||||
final QuestState st2 = player.getQuestState(Q021_HiddenTruth.class.getSimpleName());
|
||||
if ((st2 != null) && st2.isCompleted() && (player.getLevel() >= 63))
|
||||
{
|
||||
htmltext = "31334-02.htm";
|
||||
@@ -198,7 +198,7 @@ public class Q022_TragedyInVonHellmannForest extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -210,7 +210,7 @@ public class Q022_TragedyInVonHellmannForest extends Quest
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case INNOCENTIN:
|
||||
QuestState st2 = player.getQuestState(Q021_HiddenTruth.class.getSimpleName());
|
||||
final QuestState st2 = player.getQuestState(Q021_HiddenTruth.class.getSimpleName());
|
||||
if ((st2 != null) && st2.isCompleted())
|
||||
{
|
||||
if (!st.hasQuestItems(CROSS_OF_EINHASAD))
|
||||
@@ -233,7 +233,7 @@ public class Q022_TragedyInVonHellmannForest extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case TIFAREN:
|
||||
@@ -421,7 +421,7 @@ public class Q022_TragedyInVonHellmannForest extends Quest
|
||||
@Override
|
||||
public String onAttack(NpcInstance npc, PlayerInstance attacker, int damage, boolean isPet)
|
||||
{
|
||||
QuestState st = attacker.getQuestState(getName());
|
||||
final QuestState st = attacker.getQuestState(getName());
|
||||
if ((st == null) || !st.isStarted() || isPet)
|
||||
{
|
||||
return null;
|
||||
@@ -443,7 +443,7 @@ public class Q022_TragedyInVonHellmannForest extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerState(player, npc, State.STARTED);
|
||||
final QuestState st = checkPlayerState(player, npc, State.STARTED);
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -58,7 +58,7 @@ public class Q023_LidiasHeart extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -171,7 +171,7 @@ public class Q023_LidiasHeart extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -180,7 +180,7 @@ public class Q023_LidiasHeart extends Quest
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
QuestState st2 = player.getQuestState(Q022_TragedyInVonHellmannForest.class.getSimpleName());
|
||||
final QuestState st2 = player.getQuestState(Q022_TragedyInVonHellmannForest.class.getSimpleName());
|
||||
if ((st2 != null) && st2.isCompleted())
|
||||
{
|
||||
if (player.getLevel() >= 64)
|
||||
@@ -199,7 +199,7 @@ public class Q023_LidiasHeart extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case INNOCENTIN:
|
||||
|
@@ -58,7 +58,7 @@ public class Q024_InhabitantsOfTheForrestOfTheDead extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
final String htmltext = event;
|
||||
final QuestState qs = player.getQuestState(getName());
|
||||
if (qs == null)
|
||||
{
|
||||
|
@@ -65,7 +65,7 @@ public class Q025_HidingBehindTheTruth extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState qs = player.getQuestState(getName());
|
||||
final QuestState qs = player.getQuestState(getName());
|
||||
if (qs == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -222,7 +222,7 @@ public class Q025_HidingBehindTheTruth extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState qs = player.getQuestState(getName());
|
||||
final QuestState qs = player.getQuestState(getName());
|
||||
if (qs == null)
|
||||
{
|
||||
return htmltext;
|
||||
|
@@ -49,7 +49,7 @@ public class Q027_ChestCaughtWithABaitOfWind extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -96,7 +96,7 @@ public class Q027_ChestCaughtWithABaitOfWind extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -112,7 +112,7 @@ public class Q027_ChestCaughtWithABaitOfWind extends Quest
|
||||
}
|
||||
else
|
||||
{
|
||||
QuestState st2 = player.getQuestState(Q050_LanoscosSpecialBait.class.getSimpleName());
|
||||
final QuestState st2 = player.getQuestState(Q050_LanoscosSpecialBait.class.getSimpleName());
|
||||
if ((st2 != null) && st2.isCompleted())
|
||||
{
|
||||
htmltext = "31570-01.htm";
|
||||
@@ -125,7 +125,7 @@ public class Q027_ChestCaughtWithABaitOfWind extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case LANOSCO:
|
||||
|
@@ -49,7 +49,7 @@ public class Q028_ChestCaughtWithABaitOfIcyAir extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -96,7 +96,7 @@ public class Q028_ChestCaughtWithABaitOfIcyAir extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -112,7 +112,7 @@ public class Q028_ChestCaughtWithABaitOfIcyAir extends Quest
|
||||
}
|
||||
else
|
||||
{
|
||||
QuestState st2 = player.getQuestState(Q051_OFullesSpecialBait.class.getSimpleName());
|
||||
final QuestState st2 = player.getQuestState(Q051_OFullesSpecialBait.class.getSimpleName());
|
||||
if ((st2 != null) && st2.isCompleted())
|
||||
{
|
||||
htmltext = "31572-01.htm";
|
||||
@@ -125,7 +125,7 @@ public class Q028_ChestCaughtWithABaitOfIcyAir extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case OFULLE:
|
||||
|
@@ -49,7 +49,7 @@ public class Q029_ChestCaughtWithABaitOfEarth extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -96,7 +96,7 @@ public class Q029_ChestCaughtWithABaitOfEarth extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -112,7 +112,7 @@ public class Q029_ChestCaughtWithABaitOfEarth extends Quest
|
||||
}
|
||||
else
|
||||
{
|
||||
QuestState st2 = player.getQuestState(Q052_WilliesSpecialBait.class.getSimpleName());
|
||||
final QuestState st2 = player.getQuestState(Q052_WilliesSpecialBait.class.getSimpleName());
|
||||
if ((st2 != null) && st2.isCompleted())
|
||||
{
|
||||
htmltext = "31574-01.htm";
|
||||
@@ -125,7 +125,7 @@ public class Q029_ChestCaughtWithABaitOfEarth extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case WILLIE:
|
||||
|
@@ -49,7 +49,7 @@ public class Q030_ChestCaughtWithABaitOfFire extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -96,7 +96,7 @@ public class Q030_ChestCaughtWithABaitOfFire extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -112,7 +112,7 @@ public class Q030_ChestCaughtWithABaitOfFire extends Quest
|
||||
}
|
||||
else
|
||||
{
|
||||
QuestState st2 = player.getQuestState(Q053_LinnaeusSpecialBait.class.getSimpleName());
|
||||
final QuestState st2 = player.getQuestState(Q053_LinnaeusSpecialBait.class.getSimpleName());
|
||||
if ((st2 != null) && st2.isCompleted())
|
||||
{
|
||||
htmltext = "31577-01.htm";
|
||||
@@ -125,7 +125,7 @@ public class Q030_ChestCaughtWithABaitOfFire extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case LINNAEUS:
|
||||
|
@@ -48,8 +48,8 @@ public class Q031_SecretBuriedInTheSwamp extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -107,7 +107,7 @@ public class Q031_SecretBuriedInTheSwamp extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -121,7 +121,7 @@ public class Q031_SecretBuriedInTheSwamp extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case ABERCROMBIE:
|
||||
|
@@ -57,7 +57,7 @@ public class Q032_AnObviousLie extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -169,7 +169,7 @@ public class Q032_AnObviousLie extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -183,7 +183,7 @@ public class Q032_AnObviousLie extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case MAXIMILIAN:
|
||||
@@ -253,7 +253,7 @@ public class Q032_AnObviousLie extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerCondition(player, npc, "cond", "3");
|
||||
final QuestState st = checkPlayerCondition(player, npc, "cond", "3");
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -51,7 +51,7 @@ public class Q033_MakeAPairOfDressShoes extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -114,7 +114,7 @@ public class Q033_MakeAPairOfDressShoes extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -126,7 +126,7 @@ public class Q033_MakeAPairOfDressShoes extends Quest
|
||||
case State.CREATED:
|
||||
if (player.getLevel() >= 60)
|
||||
{
|
||||
QuestState fwear = player.getQuestState(Q037_MakeFormalWear.class.getSimpleName());
|
||||
final QuestState fwear = player.getQuestState(Q037_MakeFormalWear.class.getSimpleName());
|
||||
if ((fwear != null) && (fwear.getInt("cond") == 7))
|
||||
{
|
||||
htmltext = "30838-0.htm";
|
||||
@@ -143,7 +143,7 @@ public class Q033_MakeAPairOfDressShoes extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case WOODLEY:
|
||||
|
@@ -60,7 +60,7 @@ public class Q034_InSearchOfCloth extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -117,7 +117,7 @@ public class Q034_InSearchOfCloth extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -129,7 +129,7 @@ public class Q034_InSearchOfCloth extends Quest
|
||||
case State.CREATED:
|
||||
if (player.getLevel() >= 60)
|
||||
{
|
||||
QuestState fwear = player.getQuestState(Q037_MakeFormalWear.class.getSimpleName());
|
||||
final QuestState fwear = player.getQuestState(Q037_MakeFormalWear.class.getSimpleName());
|
||||
if ((fwear != null) && (fwear.getInt("cond") == 6))
|
||||
{
|
||||
htmltext = "30088-0.htm";
|
||||
@@ -146,7 +146,7 @@ public class Q034_InSearchOfCloth extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case RADIA:
|
||||
@@ -218,7 +218,7 @@ public class Q034_InSearchOfCloth extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerCondition(player, npc, "cond", "4");
|
||||
final QuestState st = checkPlayerCondition(player, npc, "cond", "4");
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -55,7 +55,7 @@ public class Q035_FindGlitteringJewelry extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -101,7 +101,7 @@ public class Q035_FindGlitteringJewelry extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -113,7 +113,7 @@ public class Q035_FindGlitteringJewelry extends Quest
|
||||
case State.CREATED:
|
||||
if (player.getLevel() >= 60)
|
||||
{
|
||||
QuestState fwear = player.getQuestState(Q037_MakeFormalWear.class.getSimpleName());
|
||||
final QuestState fwear = player.getQuestState(Q037_MakeFormalWear.class.getSimpleName());
|
||||
if ((fwear != null) && (fwear.getInt("cond") == 6))
|
||||
{
|
||||
htmltext = "30091-0.htm";
|
||||
@@ -130,7 +130,7 @@ public class Q035_FindGlitteringJewelry extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case ELLIE:
|
||||
@@ -172,7 +172,7 @@ public class Q035_FindGlitteringJewelry extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerCondition(player, npc, "cond", "2");
|
||||
final QuestState st = checkPlayerCondition(player, npc, "cond", "2");
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -50,7 +50,7 @@ public class Q036_MakeASewingKit extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -90,7 +90,7 @@ public class Q036_MakeASewingKit extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -102,7 +102,7 @@ public class Q036_MakeASewingKit extends Quest
|
||||
case State.CREATED:
|
||||
if (player.getLevel() >= 60)
|
||||
{
|
||||
QuestState fwear = player.getQuestState(Q037_MakeFormalWear.class.getSimpleName());
|
||||
final QuestState fwear = player.getQuestState(Q037_MakeFormalWear.class.getSimpleName());
|
||||
if ((fwear != null) && (fwear.getInt("cond") == 6))
|
||||
{
|
||||
htmltext = "30847-0.htm";
|
||||
@@ -119,7 +119,7 @@ public class Q036_MakeASewingKit extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
if (cond == 1)
|
||||
{
|
||||
htmltext = "30847-1a.htm";
|
||||
@@ -145,7 +145,7 @@ public class Q036_MakeASewingKit extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerCondition(player, npc, "cond", "1");
|
||||
final QuestState st = checkPlayerCondition(player, npc, "cond", "1");
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -55,8 +55,8 @@ public class Q037_MakeFormalWear extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -121,7 +121,7 @@ public class Q037_MakeFormalWear extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -135,7 +135,7 @@ public class Q037_MakeFormalWear extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case ALEXIS:
|
||||
|
@@ -114,7 +114,7 @@ public class Q038_DragonFangs extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -169,7 +169,7 @@ public class Q038_DragonFangs extends Quest
|
||||
{
|
||||
if (st.getQuestItemsCount(TOOTH_OF_DRAGON) >= 50)
|
||||
{
|
||||
int position = Rnd.get(REWARD.length);
|
||||
final int position = Rnd.get(REWARD.length);
|
||||
|
||||
htmltext = "30034-06.htm";
|
||||
st.takeItems(TOOTH_OF_DRAGON, 50);
|
||||
@@ -187,7 +187,7 @@ public class Q038_DragonFangs extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -200,7 +200,7 @@ public class Q038_DragonFangs extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case LUIS:
|
||||
@@ -265,7 +265,7 @@ public class Q038_DragonFangs extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerState(player, npc, State.STARTED);
|
||||
final QuestState st = checkPlayerState(player, npc, State.STARTED);
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -108,8 +108,8 @@ public class Q039_RedEyedInvaders extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -151,7 +151,7 @@ public class Q039_RedEyedInvaders extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -164,7 +164,7 @@ public class Q039_RedEyedInvaders extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case BABENCO:
|
||||
|
@@ -53,8 +53,8 @@ public class Q042_HelpTheUncle extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -98,7 +98,7 @@ public class Q042_HelpTheUncle extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -112,7 +112,7 @@ public class Q042_HelpTheUncle extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case WATERS:
|
||||
@@ -162,7 +162,7 @@ public class Q042_HelpTheUncle extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerCondition(player, npc, "cond", "2");
|
||||
final QuestState st = checkPlayerCondition(player, npc, "cond", "2");
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -53,8 +53,8 @@ public class Q043_HelpTheSister extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -98,7 +98,7 @@ public class Q043_HelpTheSister extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -112,7 +112,7 @@ public class Q043_HelpTheSister extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case COOPER:
|
||||
@@ -162,7 +162,7 @@ public class Q043_HelpTheSister extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerCondition(player, npc, "cond", "2");
|
||||
final QuestState st = checkPlayerCondition(player, npc, "cond", "2");
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -54,8 +54,8 @@ public class Q044_HelpTheSon extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -99,7 +99,7 @@ public class Q044_HelpTheSon extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -113,7 +113,7 @@ public class Q044_HelpTheSon extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case LUNDY:
|
||||
@@ -163,7 +163,7 @@ public class Q044_HelpTheSon extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerCondition(player, npc, "cond", "2");
|
||||
final QuestState st = checkPlayerCondition(player, npc, "cond", "2");
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -50,8 +50,8 @@ public class Q045_ToTalkingIsland extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -114,7 +114,7 @@ public class Q045_ToTalkingIsland extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -142,7 +142,7 @@ public class Q045_ToTalkingIsland extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case GALLADUCCI:
|
||||
|
@@ -54,8 +54,8 @@ public class Q046_OnceMoreInTheArmsOfTheMotherTree extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -118,7 +118,7 @@ public class Q046_OnceMoreInTheArmsOfTheMotherTree extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -146,7 +146,7 @@ public class Q046_OnceMoreInTheArmsOfTheMotherTree extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case GALLADUCCI:
|
||||
|
@@ -54,8 +54,8 @@ public class Q047_IntoTheDarkForest extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -118,7 +118,7 @@ public class Q047_IntoTheDarkForest extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -146,7 +146,7 @@ public class Q047_IntoTheDarkForest extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case GALLADUCCI:
|
||||
|
@@ -54,8 +54,8 @@ public class Q048_ToTheImmortalPlateau extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -118,7 +118,7 @@ public class Q048_ToTheImmortalPlateau extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -146,7 +146,7 @@ public class Q048_ToTheImmortalPlateau extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case GALLADUCCI:
|
||||
|
@@ -54,8 +54,8 @@ public class Q049_TheRoadHome extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -118,7 +118,7 @@ public class Q049_TheRoadHome extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -146,7 +146,7 @@ public class Q049_TheRoadHome extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case GALLADUCCI:
|
||||
|
@@ -46,7 +46,7 @@ public class Q050_LanoscosSpecialBait extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -73,7 +73,7 @@ public class Q050_LanoscosSpecialBait extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -101,7 +101,7 @@ public class Q050_LanoscosSpecialBait extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerCondition(player, npc, "cond", "1");
|
||||
final QuestState st = checkPlayerCondition(player, npc, "cond", "1");
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -46,7 +46,7 @@ public class Q051_OFullesSpecialBait extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -73,7 +73,7 @@ public class Q051_OFullesSpecialBait extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -101,7 +101,7 @@ public class Q051_OFullesSpecialBait extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerCondition(player, npc, "cond", "1");
|
||||
final QuestState st = checkPlayerCondition(player, npc, "cond", "1");
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -46,7 +46,7 @@ public class Q052_WilliesSpecialBait extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -73,7 +73,7 @@ public class Q052_WilliesSpecialBait extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -101,7 +101,7 @@ public class Q052_WilliesSpecialBait extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerCondition(player, npc, "cond", "1");
|
||||
final QuestState st = checkPlayerCondition(player, npc, "cond", "1");
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -46,7 +46,7 @@ public class Q053_LinnaeusSpecialBait extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -73,7 +73,7 @@ public class Q053_LinnaeusSpecialBait extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -101,7 +101,7 @@ public class Q053_LinnaeusSpecialBait extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerCondition(player, npc, "cond", "1");
|
||||
final QuestState st = checkPlayerCondition(player, npc, "cond", "1");
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -63,8 +63,8 @@ public class Q101_SwordOfSolidarity extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -122,7 +122,7 @@ public class Q101_SwordOfSolidarity extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -146,7 +146,7 @@ public class Q101_SwordOfSolidarity extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = (st.getInt("cond"));
|
||||
final int cond = (st.getInt("cond"));
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case ROIEN:
|
||||
@@ -218,7 +218,7 @@ public class Q101_SwordOfSolidarity extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerCondition(player, npc, "cond", "2");
|
||||
final QuestState st = checkPlayerCondition(player, npc, "cond", "2");
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -72,8 +72,8 @@ public class Q102_SeaOfSporesFever extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -94,7 +94,7 @@ public class Q102_SeaOfSporesFever extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -118,7 +118,7 @@ public class Q102_SeaOfSporesFever extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case ALBERIUS:
|
||||
@@ -252,7 +252,7 @@ public class Q102_SeaOfSporesFever extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerCondition(player, npc, "cond", "2");
|
||||
final QuestState st = checkPlayerCondition(player, npc, "cond", "2");
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
@@ -272,7 +272,7 @@ public class Q102_SeaOfSporesFever extends Quest
|
||||
{
|
||||
st.takeItems(itemId, 1);
|
||||
|
||||
int medicinesLeft = st.getInt("medicines") - 1;
|
||||
final int medicinesLeft = st.getInt("medicines") - 1;
|
||||
if (medicinesLeft == 0)
|
||||
{
|
||||
st.set("cond", "6");
|
||||
|
@@ -69,8 +69,8 @@ public class Q103_SpiritOfCraftsman extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -91,7 +91,7 @@ public class Q103_SpiritOfCraftsman extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -115,7 +115,7 @@ public class Q103_SpiritOfCraftsman extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case KARROD:
|
||||
@@ -245,7 +245,7 @@ public class Q103_SpiritOfCraftsman extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerState(player, npc, State.STARTED);
|
||||
final QuestState st = checkPlayerState(player, npc, State.STARTED);
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -67,8 +67,8 @@ public class Q104_SpiritOfMirrors extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -91,7 +91,7 @@ public class Q104_SpiritOfMirrors extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -115,7 +115,7 @@ public class Q104_SpiritOfMirrors extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case GALLINT:
|
||||
@@ -193,7 +193,7 @@ public class Q104_SpiritOfMirrors extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerState(player, npc, State.STARTED);
|
||||
final QuestState st = checkPlayerState(player, npc, State.STARTED);
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -75,8 +75,8 @@ public class Q105_SkirmishWithTheOrcs extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -95,7 +95,7 @@ public class Q105_SkirmishWithTheOrcs extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -120,7 +120,7 @@ public class Q105_SkirmishWithTheOrcs extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
if (cond == 1)
|
||||
{
|
||||
htmltext = "30218-05.htm";
|
||||
@@ -195,7 +195,7 @@ public class Q105_SkirmishWithTheOrcs extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerState(player, npc, State.STARTED);
|
||||
final QuestState st = checkPlayerState(player, npc, State.STARTED);
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -65,8 +65,8 @@ public class Q106_ForgottenTruth extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -85,7 +85,7 @@ public class Q106_ForgottenTruth extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -110,7 +110,7 @@ public class Q106_ForgottenTruth extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case THIFIELL:
|
||||
@@ -209,7 +209,7 @@ public class Q106_ForgottenTruth extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerCondition(player, npc, "cond", "2");
|
||||
final QuestState st = checkPlayerCondition(player, npc, "cond", "2");
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -64,8 +64,8 @@ public class Q107_MercilessPunishment extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -104,7 +104,7 @@ public class Q107_MercilessPunishment extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -129,7 +129,7 @@ public class Q107_MercilessPunishment extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case HATOS:
|
||||
@@ -208,13 +208,13 @@ public class Q107_MercilessPunishment extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerState(player, npc, State.STARTED);
|
||||
final QuestState st = checkPlayerState(player, npc, State.STARTED);
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
|
||||
if (cond == 2)
|
||||
{
|
||||
|
@@ -114,8 +114,8 @@ public class Q108_JumbleTumbleDiamondFuss extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -149,7 +149,7 @@ public class Q108_JumbleTumbleDiamondFuss extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -174,7 +174,7 @@ public class Q108_JumbleTumbleDiamondFuss extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case GOUPH:
|
||||
@@ -375,7 +375,7 @@ public class Q108_JumbleTumbleDiamondFuss extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerState(player, npc, State.STARTED);
|
||||
final QuestState st = checkPlayerState(player, npc, State.STARTED);
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -47,8 +47,8 @@ public class Q109_InSearchOfTheNest extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -85,7 +85,7 @@ public class Q109_InSearchOfTheNest extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -107,7 +107,7 @@ public class Q109_InSearchOfTheNest extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case PIERCE:
|
||||
|
@@ -44,8 +44,8 @@ public class Q110_ToThePrimevalIsle extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -72,7 +72,7 @@ public class Q110_ToThePrimevalIsle extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
|
@@ -53,8 +53,8 @@ public class Q111_ElrokianHuntersProof extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -120,7 +120,7 @@ public class Q111_ElrokianHuntersProof extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -133,7 +133,7 @@ public class Q111_ElrokianHuntersProof extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case MARQUEZ:
|
||||
@@ -230,13 +230,13 @@ public class Q111_ElrokianHuntersProof extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
PlayerInstance partyMember = getRandomPartyMemberState(player, npc, State.STARTED);
|
||||
final PlayerInstance partyMember = getRandomPartyMemberState(player, npc, State.STARTED);
|
||||
if (partyMember == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
QuestState st = partyMember.getQuestState(getName());
|
||||
final QuestState st = partyMember.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -42,8 +42,8 @@ public class Q112_WalkOfFate extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -69,7 +69,7 @@ public class Q112_WalkOfFate extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
|
@@ -44,8 +44,8 @@ public class Q113_StatusOfTheBeaconTower extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -72,7 +72,7 @@ public class Q113_StatusOfTheBeaconTower extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
|
@@ -62,7 +62,7 @@ public class Q114_ResurrectionOfAnOldManager extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -334,7 +334,7 @@ public class Q114_ResurrectionOfAnOldManager extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -344,13 +344,13 @@ public class Q114_ResurrectionOfAnOldManager extends Quest
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
QuestState pavelReq = player.getQuestState(Q121_PavelTheGiant.class.getSimpleName());
|
||||
final QuestState pavelReq = player.getQuestState(Q121_PavelTheGiant.class.getSimpleName());
|
||||
htmltext = ((pavelReq == null) || !pavelReq.isCompleted() || (player.getLevel() < 49)) ? "32041-00.htm" : "32041-01.htm";
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
int talk = st.getInt("talk");
|
||||
final int cond = st.getInt("cond");
|
||||
final int talk = st.getInt("talk");
|
||||
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
@@ -611,7 +611,7 @@ public class Q114_ResurrectionOfAnOldManager extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerCondition(player, npc, "cond", "10");
|
||||
final QuestState st = checkPlayerCondition(player, npc, "cond", "10");
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -57,7 +57,7 @@ public class Q115_TheOtherSideOfTruth extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState qs = player.getQuestState(getName());
|
||||
final QuestState qs = player.getQuestState(getName());
|
||||
if (qs == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -190,7 +190,7 @@ public class Q115_TheOtherSideOfTruth extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState qs = player.getQuestState(getName());
|
||||
final QuestState qs = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (qs == null)
|
||||
{
|
||||
|
@@ -52,7 +52,7 @@ public class Q116_BeyondTheHillsOfWinter extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -93,7 +93,7 @@ public class Q116_BeyondTheHillsOfWinter extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -107,7 +107,7 @@ public class Q116_BeyondTheHillsOfWinter extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case FILAUR:
|
||||
|
@@ -53,8 +53,8 @@ public class Q117_TheOceanOfDistantStars extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -122,7 +122,7 @@ public class Q117_TheOceanOfDistantStars extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -136,7 +136,7 @@ public class Q117_TheOceanOfDistantStars extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case ANCIENT_GHOST:
|
||||
@@ -239,7 +239,7 @@ public class Q117_TheOceanOfDistantStars extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerCondition(player, npc, "cond", "7");
|
||||
final QuestState st = checkPlayerCondition(player, npc, "cond", "7");
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -68,7 +68,7 @@ public class Q118_ToLeadAndBeLed extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -162,7 +162,7 @@ public class Q118_ToLeadAndBeLed extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -173,7 +173,7 @@ public class Q118_ToLeadAndBeLed extends Quest
|
||||
case State.CREATED:
|
||||
if (player.getSponsor() > 0)
|
||||
{
|
||||
QuestState st2 = player.getQuestState(Q123_TheLeaderAndTheFollower.class.getSimpleName());
|
||||
final QuestState st2 = player.getQuestState(Q123_TheLeaderAndTheFollower.class.getSimpleName());
|
||||
if (st2 != null)
|
||||
{
|
||||
htmltext = (st2.isCompleted()) ? "30298-02a.htm" : "30298-02b.htm";
|
||||
@@ -318,7 +318,7 @@ public class Q118_ToLeadAndBeLed extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerState(player, npc, State.STARTED);
|
||||
final QuestState st = checkPlayerState(player, npc, State.STARTED);
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -45,7 +45,7 @@ public class Q119_LastImperialPrince extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -91,7 +91,7 @@ public class Q119_LastImperialPrince extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -104,7 +104,7 @@ public class Q119_LastImperialPrince extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case NAMELESS_SPIRIT:
|
||||
|
@@ -39,8 +39,8 @@ public class Q121_PavelTheGiant extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -66,7 +66,7 @@ public class Q121_PavelTheGiant extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
|
@@ -39,8 +39,8 @@ public class Q122_OminousNews extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -66,7 +66,7 @@ public class Q122_OminousNews extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
|
@@ -66,7 +66,7 @@ public class Q123_TheLeaderAndTheFollower extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -160,7 +160,7 @@ public class Q123_TheLeaderAndTheFollower extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -171,7 +171,7 @@ public class Q123_TheLeaderAndTheFollower extends Quest
|
||||
case State.CREATED:
|
||||
if (player.getSponsor() > 0)
|
||||
{
|
||||
QuestState st2 = player.getQuestState(Q118_ToLeadAndBeLed.class.getSimpleName());
|
||||
final QuestState st2 = player.getQuestState(Q118_ToLeadAndBeLed.class.getSimpleName());
|
||||
if (st2 != null)
|
||||
{
|
||||
htmltext = (st2.isCompleted()) ? "31961-02a.htm" : "31961-02b.htm";
|
||||
@@ -316,7 +316,7 @@ public class Q123_TheLeaderAndTheFollower extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerState(player, npc, State.STARTED);
|
||||
final QuestState st = checkPlayerState(player, npc, State.STARTED);
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -42,8 +42,8 @@ public class Q124_MeetingTheElroki extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -95,7 +95,7 @@ public class Q124_MeetingTheElroki extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -109,7 +109,7 @@ public class Q124_MeetingTheElroki extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case MARQUEZ:
|
||||
|
@@ -85,8 +85,8 @@ public class Q125_TheNameOfEvil_1 extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -138,7 +138,7 @@ public class Q125_TheNameOfEvil_1 extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -148,7 +148,7 @@ public class Q125_TheNameOfEvil_1 extends Quest
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
QuestState first = player.getQuestState(Q124_MeetingTheElroki.class.getSimpleName());
|
||||
final QuestState first = player.getQuestState(Q124_MeetingTheElroki.class.getSimpleName());
|
||||
if ((first != null) && first.isCompleted() && (player.getLevel() >= 76))
|
||||
{
|
||||
htmltext = "32114-01.htm";
|
||||
@@ -160,7 +160,7 @@ public class Q125_TheNameOfEvil_1 extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case MUSHIKA:
|
||||
@@ -272,7 +272,7 @@ public class Q125_TheNameOfEvil_1 extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerCondition(player, npc, "cond", "3");
|
||||
final QuestState st = checkPlayerCondition(player, npc, "cond", "3");
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -49,7 +49,7 @@ public class Q126_TheNameOfEvil_2 extends Quest
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -294,7 +294,7 @@ public class Q126_TheNameOfEvil_2 extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -310,7 +310,7 @@ public class Q126_TheNameOfEvil_2 extends Quest
|
||||
}
|
||||
else
|
||||
{
|
||||
QuestState st2 = player.getQuestState(Q125_TheNameOfEvil_1.class.getSimpleName());
|
||||
final QuestState st2 = player.getQuestState(Q125_TheNameOfEvil_1.class.getSimpleName());
|
||||
if ((st2 != null) && st2.isCompleted())
|
||||
{
|
||||
htmltext = "32115-01.htm";
|
||||
@@ -323,7 +323,7 @@ public class Q126_TheNameOfEvil_2 extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case ASAMANAH:
|
||||
|
@@ -55,8 +55,8 @@ public class Q127_KamaelAWindowToTheFuture extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -135,14 +135,14 @@ public class Q127_KamaelAWindowToTheFuture extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
npc.getNpcId();
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
|
||||
switch (st.getState())
|
||||
{
|
||||
|
@@ -47,8 +47,8 @@ public class Q151_CureForFeverDisease extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -68,7 +68,7 @@ public class Q151_CureForFeverDisease extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -81,7 +81,7 @@ public class Q151_CureForFeverDisease extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case ELIAS:
|
||||
@@ -131,7 +131,7 @@ public class Q151_CureForFeverDisease extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerCondition(player, npc, "cond", "1");
|
||||
final QuestState st = checkPlayerCondition(player, npc, "cond", "1");
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -55,8 +55,8 @@ public class Q152_ShardsOfGolem extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -84,7 +84,7 @@ public class Q152_ShardsOfGolem extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -97,7 +97,7 @@ public class Q152_ShardsOfGolem extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case HARRIS:
|
||||
@@ -153,7 +153,7 @@ public class Q152_ShardsOfGolem extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerCondition(player, npc, "cond", "2");
|
||||
final QuestState st = checkPlayerCondition(player, npc, "cond", "2");
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -56,8 +56,8 @@ public class Q153_DeliverGoods extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -80,7 +80,7 @@ public class Q153_DeliverGoods extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
|
@@ -52,8 +52,8 @@ public class Q154_SacrificeToTheSea extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -72,7 +72,7 @@ public class Q154_SacrificeToTheSea extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -86,7 +86,7 @@ public class Q154_SacrificeToTheSea extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case ROCKSWELL:
|
||||
@@ -168,7 +168,7 @@ public class Q154_SacrificeToTheSea extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerCondition(player, npc, "cond", "1");
|
||||
final QuestState st = checkPlayerCondition(player, npc, "cond", "1");
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -45,8 +45,8 @@ public class Q155_FindSirWindawood extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -66,7 +66,7 @@ public class Q155_FindSirWindawood extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
|
@@ -45,8 +45,8 @@ public class Q156_MillenniumLove extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -81,7 +81,7 @@ public class Q156_MillenniumLove extends Quest
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = getNoQuestMsg();
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
|
@@ -45,8 +45,8 @@ public class Q157_RecoverSmuggledGoods extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -65,7 +65,7 @@ public class Q157_RecoverSmuggledGoods extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -79,7 +79,7 @@ public class Q157_RecoverSmuggledGoods extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
if (cond == 1)
|
||||
{
|
||||
htmltext = "30005-06.htm";
|
||||
@@ -104,7 +104,7 @@ public class Q157_RecoverSmuggledGoods extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerCondition(player, npc, "cond", "1");
|
||||
final QuestState st = checkPlayerCondition(player, npc, "cond", "1");
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -45,8 +45,8 @@ public class Q158_SeedOfEvil extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -65,7 +65,7 @@ public class Q158_SeedOfEvil extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -104,7 +104,7 @@ public class Q158_SeedOfEvil extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerCondition(player, npc, "cond", "1");
|
||||
final QuestState st = checkPlayerCondition(player, npc, "cond", "1");
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -45,8 +45,8 @@ public class Q159_ProtectTheWaterSource extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -66,7 +66,7 @@ public class Q159_ProtectTheWaterSource extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -91,7 +91,7 @@ public class Q159_ProtectTheWaterSource extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
if (cond == 1)
|
||||
{
|
||||
htmltext = "30154-05.htm";
|
||||
@@ -131,7 +131,7 @@ public class Q159_ProtectTheWaterSource extends Quest
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
QuestState st = checkPlayerState(player, npc, State.STARTED);
|
||||
final QuestState st = checkPlayerState(player, npc, State.STARTED);
|
||||
if (st == null)
|
||||
{
|
||||
return null;
|
||||
|
@@ -53,8 +53,8 @@ public class Q160_NerupasRequest extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -74,7 +74,7 @@ public class Q160_NerupasRequest extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -99,7 +99,7 @@ public class Q160_NerupasRequest extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case NERUPA:
|
||||
|
@@ -46,8 +46,8 @@ public class Q161_FruitOfTheMotherTree extends Quest
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final String htmltext = event;
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
@@ -67,7 +67,7 @@ public class Q161_FruitOfTheMotherTree extends Quest
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(getName());
|
||||
final QuestState st = player.getQuestState(getName());
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
@@ -92,7 +92,7 @@ public class Q161_FruitOfTheMotherTree extends Quest
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int cond = st.getInt("cond");
|
||||
final int cond = st.getInt("cond");
|
||||
switch (npc.getNpcId())
|
||||
{
|
||||
case ANDELLIA:
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user