Partial sync L2jUnity free release Feb 20th 2015.

This commit is contained in:
MobiusDev
2016-10-28 08:58:02 +00:00
parent 4628bd3d86
commit 01a48c62cd
219 changed files with 1825 additions and 2935 deletions

View File

@@ -26,7 +26,6 @@ import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.NpcSay;
import quests.Q00121_PavelTheGiant.Q00121_PavelTheGiant;
@@ -233,7 +232,7 @@ public class Q00114_ResurrectionOfAnOldManager extends Quest
if ((golem == null) || ((golem != null) && golem.isDead()))
{
golem = (L2Attackable) addSpawn(GUARDIAN, 96977, -110625, -3280, 0, false, 0);
golem.broadcastPacket(new NpcSay(golem.getObjectId(), ChatType.NPC_GENERAL, golem.getId(), NpcStringId.YOU_S1_YOU_ATTACKED_WENDY_PREPARE_TO_DIE).addStringParameter(player.getName()));
golem.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.YOU_S1_YOU_ATTACKED_WENDY_PREPARE_TO_DIE, player.getName());
addAttackDesire(golem, player);
qs.set("spawned", "1");
startQuestTimer("golem_despawn", 300000, null, player);
@@ -327,7 +326,7 @@ public class Q00114_ResurrectionOfAnOldManager extends Quest
case "golem_despawn":
{
qs.unset("spawned");
golem.broadcastPacket(new NpcSay(golem.getObjectId(), ChatType.NPC_GENERAL, golem.getId(), NpcStringId.S1_YOUR_ENEMY_WAS_DRIVEN_OUT_I_WILL_NOW_WITHDRAW_AND_AWAIT_YOUR_NEXT_COMMAND).addStringParameter(player.getName()));
golem.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.S1_YOUR_ENEMY_WAS_DRIVEN_OUT_I_WILL_NOW_WITHDRAW_AND_AWAIT_YOUR_NEXT_COMMAND, player.getName());
golem.deleteMe();
golem = null;
htmltext = null;
@@ -393,7 +392,7 @@ public class Q00114_ResurrectionOfAnOldManager extends Quest
if ((qs != null) && qs.isCond(10) && (qs.getInt("spawned") == 1))
{
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.THIS_ENEMY_IS_FAR_TOO_POWERFUL_FOR_ME_TO_FIGHT_I_MUST_WITHDRAW));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.THIS_ENEMY_IS_FAR_TOO_POWERFUL_FOR_ME_TO_FIGHT_I_MUST_WITHDRAW);
qs.setCond(11, true);
qs.unset("spawned");
cancelQuestTimers("golem_despawn");

View File

@@ -26,7 +26,6 @@ import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.NpcSay;
import quests.Q00192_SevenSignsSeriesOfDoubt.Q00192_SevenSignsSeriesOfDoubt;
@@ -69,7 +68,7 @@ public final class Q00193_SevenSignsDyingMessage extends Quest
if (!npc.isDead())
{
isBusy = false;
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.NEXT_TIME_YOU_WILL_NOT_ESCAPE));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.NEXT_TIME_YOU_WILL_NOT_ESCAPE);
npc.deleteMe();
}
return super.onAdvEvent(event, npc, player);
@@ -157,12 +156,10 @@ public final class Q00193_SevenSignsDyingMessage extends Quest
if (qs.isCond(4))
{
isBusy = true;
final NpcSay ns = new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.S1_THAT_STRANGER_MUST_BE_DEFEATED_HERE_IS_THE_ULTIMATE_HELP);
ns.addStringParameter(player.getName());
npc.broadcastPacket(ns);
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.S1_THAT_STRANGER_MUST_BE_DEFEATED_HERE_IS_THE_ULTIMATE_HELP, player.getName());
startQuestTimer("heal", 30000 - getRandom(20000), npc, player);
final L2MonsterInstance monster = (L2MonsterInstance) addSpawn(SHILENS_EVIL_THOUGHTS, 82425, 47232, -3216, 0, false, 0, false);
monster.broadcastPacket(new NpcSay(monster.getObjectId(), ChatType.NPC_GENERAL, monster.getId(), NpcStringId.YOU_ARE_NOT_THE_OWNER_OF_THAT_ITEM));
monster.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.YOU_ARE_NOT_THE_OWNER_OF_THAT_ITEM);
addAttackDesire(monster, player);
startQuestTimer("despawn", 300000, monster, null);
}
@@ -172,9 +169,7 @@ public final class Q00193_SevenSignsDyingMessage extends Quest
{
if (!npc.isInsideRadius(player, 600, true, false))
{
final NpcSay ns = new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.LOOK_HERE_S1_DON_T_FALL_TOO_FAR_BEHIND);
ns.addStringParameter(player.getName());
npc.broadcastPacket(ns);
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.LOOK_HERE_S1_DON_T_FALL_TOO_FAR_BEHIND, player.getName());
}
else if (!player.isDead())
{
@@ -225,7 +220,7 @@ public final class Q00193_SevenSignsDyingMessage extends Quest
isBusy = false;
cancelQuestTimers("despawn");
cancelQuestTimers("heal");
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.S1_YOU_MAY_HAVE_WON_THIS_TIME_BUT_NEXT_TIME_I_WILL_SURELY_CAPTURE_YOU).addStringParameter(partyMember.getName()));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.S1_YOU_MAY_HAVE_WON_THIS_TIME_BUT_NEXT_TIME_I_WILL_SURELY_CAPTURE_YOU, partyMember.getName());
return super.onKill(npc, player, isSummon);
}

View File

@@ -24,7 +24,6 @@ import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.SystemMessageId;
import com.l2jmobius.gameserver.network.serverpackets.NpcSay;
import quests.Q00195_SevenSignsSecretRitualOfThePriests.Q00195_SevenSignsSecretRitualOfThePriests;
@@ -64,7 +63,7 @@ public final class Q00196_SevenSignsSealOfTheEmperor extends Quest
if ((npc.getId() == MERCHANT_OF_MAMMON) && "DESPAWN".equals(event))
{
isBusy = false;
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.THE_ANCIENT_PROMISE_TO_THE_EMPEROR_HAS_BEEN_FULFILLED));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.THE_ANCIENT_PROMISE_TO_THE_EMPEROR_HAS_BEEN_FULFILLED);
npc.deleteMe();
return super.onAdvEvent(event, npc, player);
}
@@ -100,7 +99,7 @@ public final class Q00196_SevenSignsSealOfTheEmperor extends Quest
isBusy = true;
npc.setScriptValue(1);
final L2Npc merchant = addSpawn(MERCHANT_OF_MAMMON, 109743, 219975, -3512, 0, false, 0, false);
merchant.broadcastPacket(new NpcSay(merchant.getObjectId(), ChatType.NPC_GENERAL, merchant.getId(), NpcStringId.WHO_DARES_SUMMON_THE_MERCHANT_OF_MAMMON));
merchant.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.WHO_DARES_SUMMON_THE_MERCHANT_OF_MAMMON);
htmltext = "30969-06.html";
startQuestTimer("DESPAWN", 120000, merchant, null);
}

View File

@@ -25,7 +25,6 @@ import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.NpcSay;
import quests.Q00196_SevenSignsSealOfTheEmperor.Q00196_SevenSignsSealOfTheEmperor;
@@ -66,7 +65,7 @@ public final class Q00197_SevenSignsTheSacredBookOfSeal extends Quest
if (!npc.isDead())
{
isBusy = false;
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.NEXT_TIME_YOU_WILL_NOT_ESCAPE));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.NEXT_TIME_YOU_WILL_NOT_ESCAPE);
npc.deleteMe();
}
return super.onAdvEvent(event, npc, player);
@@ -167,9 +166,9 @@ public final class Q00197_SevenSignsTheSacredBookOfSeal extends Quest
if (qs.isCond(3))
{
isBusy = true;
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.S1_THAT_STRANGER_MUST_BE_DEFEATED_HERE_IS_THE_ULTIMATE_HELP).addStringParameter(player.getName()));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.S1_THAT_STRANGER_MUST_BE_DEFEATED_HERE_IS_THE_ULTIMATE_HELP, player.getName());
final L2MonsterInstance monster = (L2MonsterInstance) addSpawn(SHILENS_EVIL_THOUGHTS, 152520, -57502, -3408, 0, false, 0, false);
monster.broadcastPacket(new NpcSay(monster.getObjectId(), ChatType.NPC_GENERAL, monster.getId(), NpcStringId.YOU_ARE_NOT_THE_OWNER_OF_THAT_ITEM));
monster.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.YOU_ARE_NOT_THE_OWNER_OF_THAT_ITEM);
addAttackDesire(monster, player);
startQuestTimer("despawn", 300000, monster, null);
}
@@ -236,7 +235,7 @@ public final class Q00197_SevenSignsTheSacredBookOfSeal extends Quest
isBusy = false;
cancelQuestTimers("despawn");
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.S1_YOU_MAY_HAVE_WON_THIS_TIME_BUT_NEXT_TIME_I_WILL_SURELY_CAPTURE_YOU).addStringParameter(partyMember.getName()));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.S1_YOU_MAY_HAVE_WON_THIS_TIME_BUT_NEXT_TIME_I_WILL_SURELY_CAPTURE_YOU, partyMember.getName());
return super.onKill(npc, player, isSummon);
}

View File

@@ -26,7 +26,6 @@ import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.NpcSay;
import quests.Q00197_SevenSignsTheSacredBookOfSeal.Q00197_SevenSignsTheSacredBookOfSeal;
@@ -68,7 +67,7 @@ public final class Q00198_SevenSignsEmbryo extends Quest
if (!npc.isDead())
{
isBusy = false;
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.NEXT_TIME_YOU_WILL_NOT_ESCAPE));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.NEXT_TIME_YOU_WILL_NOT_ESCAPE);
npc.deleteMe();
}
return super.onAdvEvent(event, npc, player);
@@ -105,10 +104,10 @@ public final class Q00198_SevenSignsEmbryo extends Quest
if (qs.isCond(1))
{
isBusy = true;
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.S1_THAT_STRANGER_MUST_BE_DEFEATED_HERE_IS_THE_ULTIMATE_HELP).addStringParameter(player.getName()));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.S1_THAT_STRANGER_MUST_BE_DEFEATED_HERE_IS_THE_ULTIMATE_HELP, player.getName());
startQuestTimer("heal", 30000 - getRandom(20000), npc, player);
final L2MonsterInstance monster = (L2MonsterInstance) addSpawn(SHILENS_EVIL_THOUGHTS, -23734, -9184, -5384, 0, false, 0, false, npc.getInstanceId());
monster.broadcastPacket(new NpcSay(monster.getObjectId(), ChatType.NPC_GENERAL, monster.getId(), NpcStringId.YOU_ARE_NOT_THE_OWNER_OF_THAT_ITEM));
L2MonsterInstance monster = (L2MonsterInstance) addSpawn(SHILENS_EVIL_THOUGHTS, -23734, -9184, -5384, 0, false, 0, false, npc.getInstanceId());
monster.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.YOU_ARE_NOT_THE_OWNER_OF_THAT_ITEM);
addAttackDesire(monster, player);
startQuestTimer("despawn", 300000, monster, null);
}
@@ -118,9 +117,7 @@ public final class Q00198_SevenSignsEmbryo extends Quest
{
if (!npc.isInsideRadius(player, 600, true, false))
{
final NpcSay ns = new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.LOOK_HERE_S1_DON_T_FALL_TOO_FAR_BEHIND);
ns.addStringParameter(player.getName());
npc.broadcastPacket(ns);
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.LOOK_HERE_S1_DON_T_FALL_TOO_FAR_BEHIND, player.getName());
}
else if (!player.isDead())
{
@@ -147,7 +144,7 @@ public final class Q00198_SevenSignsEmbryo extends Quest
takeItems(player, SCULPTURE_OF_DOUBT, -1);
qs.setCond(3, true);
htmltext = event;
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.WE_WILL_BE_WITH_YOU_ALWAYS));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.WE_WILL_BE_WITH_YOU_ALWAYS);
}
break;
}
@@ -185,7 +182,7 @@ public final class Q00198_SevenSignsEmbryo extends Quest
isBusy = false;
cancelQuestTimers("despawn");
cancelQuestTimers("heal");
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.S1_YOU_MAY_HAVE_WON_THIS_TIME_BUT_NEXT_TIME_I_WILL_SURELY_CAPTURE_YOU).addStringParameter(partyMember.getName()));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.S1_YOU_MAY_HAVE_WON_THIS_TIME_BUT_NEXT_TIME_I_WILL_SURELY_CAPTURE_YOU, partyMember.getName());
npc.deleteMe();
partyMember.showQuestMovie(14);
return super.onKill(npc, player, isSummon);

View File

@@ -29,7 +29,6 @@ import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.NpcSay;
/**
* Little Wing (420)
@@ -422,7 +421,7 @@ public final class Q00420_LittleWing extends Quest
{
takeItems(attacker, DELUXE_FAIRY_STONE, -1);
playSound(attacker, QuestSound.ITEMSOUND_QUEST_MIDDLE);
npc.broadcastPacket(new NpcSay(npc, ChatType.NPC_GENERAL, NpcStringId.THE_STONE_THE_ELVEN_STONE_BROKE));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.THE_STONE_THE_ELVEN_STONE_BROKE);
}
return super.onAttack(npc, attacker, damage, isSummon);
}

View File

@@ -31,7 +31,6 @@ import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.NpcSay;
import com.l2jmobius.gameserver.util.Util;
/**
@@ -398,7 +397,7 @@ public final class Q00421_LittleWingsBigAdventure extends Quest
}
else if ((getRandom(100) < 2) && hasQuestItems(attacker, FAIRY_LEAF))
{
npc.broadcastPacket(new NpcSay(npc, ChatType.NPC_GENERAL, NpcStringId.GIVE_ME_A_FAIRY_LEAF));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.GIVE_ME_A_FAIRY_LEAF);
takeItems(attacker, FAIRY_LEAF, 1);
qs.setMemoState(qs.getMemoState() + data.memoStateValue);
qs.unset("hits");
@@ -415,13 +414,13 @@ public final class Q00421_LittleWingsBigAdventure extends Quest
switch (getRandom(3))
{
case 0:
npc.broadcastPacket(new NpcSay(npc, ChatType.NPC_GENERAL, NpcStringId.WHY_DO_YOU_BOTHER_ME_AGAIN));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.WHY_DO_YOU_BOTHER_ME_AGAIN);
break;
case 1:
npc.broadcastPacket(new NpcSay(npc, ChatType.NPC_GENERAL, data.message));
npc.broadcastSay(ChatType.NPC_GENERAL, data.message);
break;
case 2:
npc.broadcastPacket(new NpcSay(npc, ChatType.NPC_GENERAL, NpcStringId.LEAVE_NOW_BEFORE_YOU_INCUR_THE_WRATH_OF_THE_GUARDIAN_GHOST));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.LEAVE_NOW_BEFORE_YOU_INCUR_THE_WRATH_OF_THE_GUARDIAN_GHOST);
break;
}
}

View File

@@ -28,7 +28,6 @@ import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.NpcSay;
/**
* Grave Robber Rescue (450)
@@ -166,11 +165,11 @@ public class Q00450_GraveRobberRescue extends Quest
{
if (getRandom(100) < 50)
{
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.GRUNT_OH));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.GRUNT_OH);
}
else
{
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.GRUNT_WHAT_S_WRONG_WITH_ME));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.GRUNT_WHAT_S_WRONG_WITH_ME);
}
npc.deleteMe();
htmltext = null;

View File

@@ -35,7 +35,6 @@ import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.NpcSay;
import com.l2jmobius.gameserver.util.Util;
/**
@@ -351,9 +350,6 @@ public final class Q00456_DontKnowDontCare extends Quest
giveItems(player, reward, count);
final L2Item item = ItemTable.getInstance().getTemplate(reward);
final NpcSay packet = new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.S1_RECEIVED_A_S2_ITEM_AS_A_REWARD_FROM_THE_SEPARATED_SOUL);
packet.addStringParameter(player.getName());
packet.addStringParameter(item.getName());
npc.broadcastPacket(packet);
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.S1_RECEIVED_A_S2_ITEM_AS_A_REWARD_FROM_THE_SEPARATED_SOUL, player.getName(), item.getName());
}
}

View File

@@ -28,7 +28,6 @@ import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.NpcSay;
/**
* I Must Be a Genius (463)<br>
@@ -189,11 +188,7 @@ public class Q00463_IMustBeaGenius extends Quest
if (msg)
{
final NpcSay ns = new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.ATT_ATTACK_S1_RO_ROGUE_S2);
ns.addStringParameter(player.getName());
ns.addStringParameter(String.valueOf(number));
npc.broadcastPacket(ns);
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.ATT_ATTACK_S1_RO_ROGUE_S2, player.getName(), String.valueOf(number));
playSound(player, QuestSound.ITEMSOUND_QUEST_ITEMGET);
if (getQuestItemsCount(player, CORPSE_LOG) == qs.getInt("number"))
{

View File

@@ -33,7 +33,6 @@ import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.model.skills.AbnormalType;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.NpcSay;
import com.l2jmobius.gameserver.util.Util;
/**
@@ -287,27 +286,30 @@ public final class Q00501_ProofOfClanAlliance extends Quest
if ((lqs.getInt("flag") == 3) && arthea.isScriptValue(15))
{
lqs.set("flag", lqs.getInt("flag") + 1);
npc.broadcastPacket(new NpcSay(npc, ChatType.NPC_GENERAL, NpcStringId.BINGO));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.BINGO);
}
else if ((lqs.getInt("flag") == 2) && arthea.isScriptValue(14))
{
lqs.set("flag", lqs.getInt("flag") + 1);
npc.broadcastPacket(new NpcSay(npc, ChatType.NPC_GENERAL, NpcStringId.BINGO));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.BINGO);
}
else if ((lqs.getInt("flag") == 1) && arthea.isScriptValue(13))
{
lqs.set("flag", lqs.getInt("flag") + 1);
npc.broadcastPacket(new NpcSay(npc, ChatType.NPC_GENERAL, NpcStringId.BINGO));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.BINGO);
}
else if ((lqs.getInt("flag") == 0) && arthea.isScriptValue(12))
{
lqs.set("flag", lqs.getInt("flag") + 1);
npc.broadcastPacket(new NpcSay(npc, ChatType.NPC_GENERAL, NpcStringId.BINGO));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.BINGO);
}
else if ((lqs.getInt("flag") < 4) && (getRandom(4) == 0))
else if (lqs.getInt("flag") < 4)
{
lqs.set("flag", lqs.getInt("flag") + 1);
npc.broadcastPacket(new NpcSay(npc, ChatType.NPC_GENERAL, NpcStringId.BINGO));
if (getRandom(4) == 0)
{
lqs.set("flag", lqs.getInt("flag") + 1);
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.BINGO);
}
}
arthea.setScriptValue(arthea.getScriptValue() + 1);
}

View File

@@ -1,4 +1,4 @@
<html><body>Commander Kbaldir:<br>
I'm afraid you're a 'no go' for launch. Judging from my experience and what I've seen of the Seed of Annihilation, you just wouldn't cut it there. My daddy always said you need the right tool for the job. You aren't the right tool. At least not yet.<br>
(Only characters level 84 and above can take this quest.)
<html><body>Commander Kbaldir:<br>
I'm afraid you're a 'no go' for launch. Judging from my experience and what I've seen of the Seed of Annihilation, you just wouldn't cut it there. My daddy always said you need the right tool for the job. You aren't the right tool. At least not yet.<br>
(Only characters level 85 and above can take this quest.)
</body></html>

View File

@@ -1,5 +1,5 @@
<html><body>Commander Kbaldir:<br>
You definitely have the look of a seasoned warrior. I can tell, you and I have seen our share of battles, haven't we? Hehe, one of these days we'll have to share a few pints.<br>
But matters of state come first. I have a favor to ask if you're willing.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10282_ToTheSeedOfAnnihilation 32733-02.htm">Ask about the favor.</Button>
<html><body>Commander Kbaldir:<br>
You definitely have the look of a seasoned warrior. I can tell, you and I have seen our share of battles, haven't we? Hehe, one of these days we'll have to share a few pints.<br>
But matters of state come first. I have a favor to ask if you're willing.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10282_ToTheSeedOfAnnihilation 32733-02.htm">"What is it?"</Button>
</body></html>

View File

@@ -1,6 +1,6 @@
<html><body>Commander Kbaldir:<br>
I need this <font color="LEVEL">order</font> from the Kucereus' outpost sent to the <font color="LEVEL">Seed of Annihilation</font>. That is priority one.<br>
The thing is, you need to know how to get to the Seed. Do you?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10282_ToTheSeedOfAnnihilation 32733-03.htm">Nod that you do.</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10282_ToTheSeedOfAnnihilation 32733-04.htm">Admit that you don't.</Button>
<html><body>Commander Kbaldir:<br>
I need this <font color="LEVEL">order</font> from the Kucereus' outpost sent to the <font color="LEVEL">Seed of Annihilation</font>. That is priority one.<br>
The thing is, you need to know how to get to the Seed. Do you?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10282_ToTheSeedOfAnnihilation 32733-03.htm">"Yeah, I do"</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10282_ToTheSeedOfAnnihilation 32733-04.htm">"Not really."</Button>
</body></html>

View File

@@ -1,4 +1,4 @@
<html><body>Commander Kbaldir:<br>
Alright good. Keep in mind, the Seed of Annihilation is farther north than the Seeds of Destruction and Infinity. Just need to be able to fly there.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10282_ToTheSeedOfAnnihilation 32733-04.htm">Nod in acknowledgement.</Button>
<html><body>Commander Kbaldir:<br>
Alright good. Keep in mind, the Seed of Annihilation is farther north than the Seeds of Destruction and Infinity. Just need to be able to fly there.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10282_ToTheSeedOfAnnihilation 32733-04.htm">Nod in acknowledgement.</Button>
</body></html>

View File

@@ -1,4 +1,4 @@
<html><body>Commander Kbaldir:<br>
Alright, I just need to confirm once more. Will you do this for me? Know that the threat there is significant; it is not a place for the feint of heart.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10282_ToTheSeedOfAnnihilation 32733-07.htm">"I'm ready. Huzzah!"</Button>
<html><body>Commander Kbaldir:<br>
Alright, I just need to confirm once more. Will you do this for me? Know that the threat there is significant; it is not a place for the feint of heart.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10282_ToTheSeedOfAnnihilation 32733-07.htm">"I'm ready. Huzzah!"</Button>
</body></html>

View File

@@ -1,5 +1,5 @@
<html><body>Commander Kbaldir:<br>
Like the other Seeds that have floated into Gracia, the easiest, and right now, only way to get to the Seed of Annihilation is by <font color="LEVEL">flight</font>. You either need access to an airship or know the Aura Bird Transformation.<br>
If you don't have an airship, the Dwarf they call <font color="LEVEL">Engineer Lekon</font> below is who you should talk to. <font color="LEVEL">Officer Tolonis</font> might also sell you one. As for the Aura Bird Transformation, I couldn't tell you how to learn it, I honestly don't know.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10282_ToTheSeedOfAnnihilation 32733-06.htm">Nod in acknowledgement.</Button>
<html><body>Commander Kbaldir:<br>
Like the other Seeds that have floated into Gracia, the easiest, and right now, only way to get to the Seed of Annihilation is by <font color="LEVEL">flight</font>. You either need access to an airship or know the Aura Bird Transformation.<br>
If you don't have an airship, the Dwarf they call <font color="LEVEL">Engineer Lekon</font> below is who you should talk to. <font color="LEVEL">Officer Tolonis</font> might also sell you one. As for the Aura Bird Transformation, I couldn't tell you how to learn it, I honestly don't know.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10282_ToTheSeedOfAnnihilation 32733-06.htm">"Oh joy."</Button>
</body></html>

View File

@@ -1,4 +1,4 @@
<html><body>Commander Kbaldir:<br>
Once you have some method of flight, head to the Seed of Annihilation. It's farther north than the Seed of Destruction and Seed of Infinity.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10282_ToTheSeedOfAnnihilation 32733-07.htm">"Alright."</Button>
<html><body>Commander Kbaldir:<br>
Once you have some method of flight, head to the Seed of Annihilation. It's farther north than the Seed of Destruction and Seed of Infinity.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10282_ToTheSeedOfAnnihilation 32733-07.htm">"Thanks for the info."</Button>
</body></html>

View File

@@ -1,4 +1,4 @@
<html><body>Officer Klemis:<br>
Let me see that order you have... ah, you've been sent by <font color="LEVEL">Commander Kbaldir</font> of Keucereus Alliance Base?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10282_ToTheSeedOfAnnihilation 32734-02.htm">Nod.</Button>
<html><body>Officer Klemis:<br>
Let me see that order you have... ah, you've been sent by <font color="LEVEL">Commander Kbaldir</font> of Keucereus Alliance Base?<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h Quest Q10282_ToTheSeedOfAnnihilation 32734-02.htm">I have no idea what you're saying, but sure</Button>
</body></html>

View File

@@ -23,17 +23,19 @@ import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
/**
* To the Seed of Destruction (10269)<br>
* Original Jython script by Gnacik 2010-08-13 Based on Freya PTS.
* To the Seed of Destruction (10269)
* @author nonom
*/
public class Q10282_ToTheSeedOfAnnihilation extends Quest
public final class Q10282_ToTheSeedOfAnnihilation extends Quest
{
// NPCs
private static final int KBALDIR = 32733;
private static final int KLEMIS = 32734;
// Item
private static final int SOA_ORDERS = 15512;
private static final int EAR = 17527; // Scroll: Enchant Armor (R-grade)
// Misc
private static final int MIN_LV = 85;
public Q10282_ToTheSeedOfAnnihilation()
{
@@ -41,6 +43,7 @@ public class Q10282_ToTheSeedOfAnnihilation extends Quest
addStartNpc(KBALDIR);
addTalkId(KBALDIR, KLEMIS);
registerQuestItems(SOA_ORDERS);
addCondMinLevel(MIN_LV, "32733-00.htm");
}
@Override
@@ -63,7 +66,9 @@ public class Q10282_ToTheSeedOfAnnihilation extends Quest
}
case "32734-02.htm":
{
addExpAndSp(player, 1148480, 99110);
giveAdena(player, 212182, true);
giveItems(player, EAR, 5);
addExpAndSp(player, 1148480, 275);
qs.exitQuest(false);
break;
}
@@ -98,7 +103,7 @@ public class Q10282_ToTheSeedOfAnnihilation extends Quest
}
case State.CREATED:
{
htmltext = (player.getLevel() < 84) ? "32733-00.htm" : "32733-01.htm";
htmltext = "32733-01.htm";
break;
}
case State.STARTED:

View File

@@ -26,7 +26,6 @@ import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.NpcSay;
import quests.Q10284_AcquisitionOfDivineSword.Q10284_AcquisitionOfDivineSword;
@@ -103,7 +102,7 @@ public final class Q10285_MeetingSirra extends Quest
if (qs.isMemoState(1) && (qs.getInt("ex") == 2))
{
final L2Npc sirra = addSpawn(SIRRA, -23905, -8790, -5384, 56238, false, 0, false, npc.getInstanceId());
sirra.broadcastPacket(new NpcSay(sirra.getObjectId(), ChatType.NPC_GENERAL, sirra.getId(), NpcStringId.THERE_S_NOTHING_YOU_CAN_T_SAY_I_CAN_T_LISTEN_TO_YOU_ANYMORE));
sirra.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.THERE_S_NOTHING_YOU_CAN_T_SAY_I_CAN_T_LISTEN_TO_YOU_ANYMORE);
qs.set("ex", 3);
qs.setCond(5, true);
htmltext = event;

View File

@@ -26,7 +26,6 @@ import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.NpcSay;
import quests.Q10285_MeetingSirra.Q10285_MeetingSirra;
@@ -91,7 +90,7 @@ public final class Q10286_ReunionWithSirra extends Quest
if (qs.isMemoState(1))
{
final L2Npc sirra = addSpawn(SIRRA, -23905, -8790, -5384, 56238, false, 0, false, npc.getInstanceId());
sirra.broadcastPacket(new NpcSay(sirra.getObjectId(), ChatType.NPC_GENERAL, sirra.getId(), NpcStringId.YOU_ADVANCED_BRAVELY_BUT_GOT_SUCH_A_TINY_RESULT_HOHOHO));
sirra.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.YOU_ADVANCED_BRAVELY_BUT_GOT_SUCH_A_TINY_RESULT_HOHOHO);
qs.set("ex", 1);
qs.setCond(3, true);
htmltext = event;

View File

@@ -31,9 +31,7 @@ import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.model.zone.L2ZoneType;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.NpcSay;
import com.l2jmobius.gameserver.network.serverpackets.TutorialShowHtml;
import com.l2jmobius.gameserver.util.Broadcast;
/**
* Let's Go To The Central Square (10320)
@@ -92,11 +90,14 @@ public final class Q10320_LetsGoToTheCentralSquare extends Quest
}
case "32975-02.html":
{
giveAdena(player, 30, true);
addExpAndSp(player, 30, 5);
qs.exitQuest(false, true);
htmltext = event;
Broadcast.toKnownPlayers(npc, new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getTemplate().getDisplayId(), NpcStringId.WAIT_WAIT_A_MINUTE_I_STILL_HAVE_TIME));
if (qs.isStarted())
{
giveAdena(player, 30, true);
addExpAndSp(player, 30, 5);
qs.exitQuest(false, true);
htmltext = event;
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.WAIT_WAIT_A_MINUTE_I_STILL_HAVE_TIME);
}
break;
}
}

View File

@@ -23,9 +23,7 @@ import com.l2jmobius.gameserver.model.quest.Quest;
import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.NpcSay;
import com.l2jmobius.gameserver.network.serverpackets.TutorialShowHtml;
import com.l2jmobius.gameserver.util.Broadcast;
import quests.Q10320_LetsGoToTheCentralSquare.Q10320_LetsGoToTheCentralSquare;
@@ -78,11 +76,14 @@ public final class Q10321_QualificationsOfTheSeeker extends Quest
}
case "32974-02.html":
{
giveAdena(player, 50, true);
addExpAndSp(player, 40, 5);
qs.exitQuest(false, true);
Broadcast.toKnownPlayers(npc, new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getTemplate().getDisplayId(), NpcStringId.HM_DON_T_JUST_GO_I_STILL_HAVE_TONS_TO_TEACH_YOU));
htmltext = event;
if (qs.isStarted())
{
giveAdena(player, 50, true);
addExpAndSp(player, 40, 5);
qs.exitQuest(false, true);
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.HM_DON_T_JUST_GO_I_STILL_HAVE_TONS_TO_TEACH_YOU);
htmltext = event;
}
break;
}
}

View File

@@ -25,9 +25,7 @@ import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.ExShowScreenMessage;
import com.l2jmobius.gameserver.network.serverpackets.NpcSay;
import com.l2jmobius.gameserver.network.serverpackets.TutorialShowHtml;
import com.l2jmobius.gameserver.util.Broadcast;
import com.l2jmobius.gameserver.util.Util;
import quests.Q10321_QualificationsOfTheSeeker.Q10321_QualificationsOfTheSeeker;
@@ -250,7 +248,7 @@ public final class Q10322_SearchingForTheMysteriousPower extends Quest
giveItems(player, APPRENTICE_ADVENTURERS_BOW, 1);
giveItems(player, APPRENTICE_ADVENTURERS_LONG_SWORD, 1);
addExpAndSp(player, 300, 5);
Broadcast.toKnownPlayers(npc, new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getTemplate().getDisplayId(), NpcStringId.THERE_S_THE_NEXT_TRAINING_STEP));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.THERE_S_THE_NEXT_TRAINING_STEP);
qs.exitQuest(false, true);
break;
}

View File

@@ -71,11 +71,14 @@ public final class Q10324_FindingMagisterGallint extends Quest
}
case "32980-02.html":
{
player.sendPacket(new TutorialShowHtml(npc.getObjectId(), "..\\L2Text\\QT_004_skill_01.htm", TutorialShowHtml.LARGE_WINDOW));
giveAdena(player, 110, true);
addExpAndSp(player, 3100, 5);
qs.exitQuest(false, true);
htmltext = event;
if (qs.isStarted())
{
player.sendPacket(new TutorialShowHtml(npc.getObjectId(), "..\\L2Text\\QT_004_skill_01.htm", TutorialShowHtml.LARGE_WINDOW));
giveAdena(player, 110, true);
addExpAndSp(player, 3100, 5);
qs.exitQuest(false, true);
htmltext = event;
}
break;
}
}

View File

@@ -25,7 +25,6 @@ import com.l2jmobius.gameserver.model.quest.QuestState;
import com.l2jmobius.gameserver.model.quest.State;
import com.l2jmobius.gameserver.network.NpcStringId;
import com.l2jmobius.gameserver.network.serverpackets.ExRotation;
import com.l2jmobius.gameserver.network.serverpackets.NpcSay;
import com.l2jmobius.gameserver.util.Util;
import quests.Q10325_SearchingForNewPower.Q10325_SearchingForNewPower;
@@ -116,7 +115,7 @@ public class Q10326_RespectYourElders extends Quest
{
if (loc_index == 9)
{
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getTemplate().getDisplayId(), NpcStringId.GO_GO_GO_CREEK));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.GO_GO_GO_CREEK);
startQuestTimer("DELETE_NPC", 2000, npc, owner);
break;
}
@@ -139,7 +138,7 @@ public class Q10326_RespectYourElders extends Quest
if (getRandom(100) < 10)
{
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getTemplate().getDisplayId(), NpcStringId.COME_ON_CREEK));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.COME_ON_CREEK);
}
}
}
@@ -171,7 +170,7 @@ public class Q10326_RespectYourElders extends Quest
@Override
public void onMoveFinished(L2Npc npc)
{
npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getTemplate().getDisplayId(), NpcStringId.COME_ON_CREEK));
npc.broadcastSay(ChatType.NPC_GENERAL, NpcStringId.COME_ON_CREEK);
final L2PcInstance owner = npc.getVariables().getObject("OWNER", L2PcInstance.class);
if (owner != null)