From 954a9681cee68089bab7c450647270276af37132 Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Mon, 3 Aug 2015 22:09:19 +0000 Subject: [PATCH] Minor change at Backup Seekers quest. --- .../Q10329_BackupSeekers.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/trunk/dist/game/data/scripts/quests/Q10329_BackupSeekers/Q10329_BackupSeekers.java b/trunk/dist/game/data/scripts/quests/Q10329_BackupSeekers/Q10329_BackupSeekers.java index eeafeb864c..ac6b829b2c 100644 --- a/trunk/dist/game/data/scripts/quests/Q10329_BackupSeekers/Q10329_BackupSeekers.java +++ b/trunk/dist/game/data/scripts/quests/Q10329_BackupSeekers/Q10329_BackupSeekers.java @@ -114,7 +114,7 @@ public class Q10329_BackupSeekers extends Quest htmltext = event; qs.setMemoState(1); final L2Npc bart = addSpawn(BART, BART_SPAWN_1, false, 300000); - bart.broadcastPacket(new NpcSay(bart.getObjectId(), ChatType.NPC_GENERAL, bart.getTemplate().getDisplayId(), NpcStringId.I_WILL_GUIDE_YOU_FOLLOW_ME)); + bart.broadcastPacket(new NpcSay(bart.getObjectId(), ChatType.NPC_GENERAL, bart.getId(), NpcStringId.I_WILL_GUIDE_YOU_FOLLOW_ME)); startQuestTimer("MOVE_DELAY", 500, bart, player); break; } @@ -148,7 +148,7 @@ public class Q10329_BackupSeekers extends Quest { if (loc_index == 5) { - npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getTemplate().getDisplayId(), NpcStringId.TALK_TO_THAT_APPRENTICE_AND_GET_ON_KUKURI)); + npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.TALK_TO_THAT_APPRENTICE_AND_GET_ON_KUKURI)); startQuestTimer("DELETE_NPC", 2000, npc, owner); break; } @@ -159,7 +159,7 @@ public class Q10329_BackupSeekers extends Quest { if (loc_index == 11) { - npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getTemplate().getDisplayId(), NpcStringId.THIS_IS_IT_FOR_ME)); + npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.THIS_IS_IT_FOR_ME)); startQuestTimer("DELETE_NPC", 2000, npc, owner); break; } @@ -183,7 +183,7 @@ public class Q10329_BackupSeekers extends Quest if (getRandom(100) < 10) { - npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getTemplate().getDisplayId(), NpcStringId.HEY_KID_HURRY_UP_AND_FOLLOW_ME)); + npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.HEY_KID_HURRY_UP_AND_FOLLOW_ME)); } } } @@ -202,8 +202,8 @@ public class Q10329_BackupSeekers extends Quest npc.broadcastInfo(); addMoveToDesire(npc, BART_LOC_1[0], 0); npc.getVariables().set("MOVE_INDEX", 0); - npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getTemplate().getDisplayId(), NpcStringId.YOU_MUST_BE_THE_ONE_KAKAI_TALKED_ABOUT)); - npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getTemplate().getDisplayId(), NpcStringId.YOU_SHOULD_RIDE_KUKURI_TO_GO_TO_YE_SAGIRA)); + npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.YOU_MUST_BE_THE_ONE_KAKAI_TALKED_ABOUT)); + npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.YOU_SHOULD_RIDE_KUKURI_TO_GO_TO_YE_SAGIRA)); break; } else if (qs.isMemoState(2)) @@ -213,8 +213,8 @@ public class Q10329_BackupSeekers extends Quest npc.broadcastInfo(); addMoveToDesire(npc, BART_LOC_2[0], 0); npc.getVariables().set("MOVE_INDEX", 0); - npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getTemplate().getDisplayId(), NpcStringId.OPEN_YOUR_MAP_WHEN_YOU_ARRIVE_AT_YE_SAGIRA)); - npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getTemplate().getDisplayId(), NpcStringId.IT_S_HARD_TO_TELL_WHERE_YOU_ARE_AT_WITHOUT_A_MAP_IN_YE_SAGIRA)); + npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.OPEN_YOUR_MAP_WHEN_YOU_ARRIVE_AT_YE_SAGIRA)); + npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.IT_S_HARD_TO_TELL_WHERE_YOU_ARE_AT_WITHOUT_A_MAP_IN_YE_SAGIRA)); break; } break; @@ -228,7 +228,7 @@ public class Q10329_BackupSeekers extends Quest { qs.setMemoState(2); final L2Npc bart = addSpawn(BART, BART_SPAWN_2, false, 300000); - bart.broadcastPacket(new NpcSay(bart.getObjectId(), ChatType.NPC_GENERAL, bart.getTemplate().getDisplayId(), NpcStringId.I_WILL_GUIDE_YOU_FOLLOW_ME)); + bart.broadcastPacket(new NpcSay(bart.getObjectId(), ChatType.NPC_GENERAL, bart.getId(), NpcStringId.I_WILL_GUIDE_YOU_FOLLOW_ME)); startQuestTimer("MOVE_DELAY", 500, bart, player); break; } @@ -255,7 +255,7 @@ public class Q10329_BackupSeekers extends Quest { npc.setHeading(Util.calculateHeadingFrom(npc, owner)); npc.broadcastPacket(new ExRotation(npc.getObjectId(), npc.getHeading())); - npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getTemplate().getDisplayId(), NpcStringId.HEY_KID_HURRY_UP_AND_FOLLOW_ME)); + npc.broadcastPacket(new NpcSay(npc.getObjectId(), ChatType.NPC_GENERAL, npc.getId(), NpcStringId.HEY_KID_HURRY_UP_AND_FOLLOW_ME)); startQuestTimer("CHECK_PLAYER", 1200, npc, owner); } }