diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/events/HeavyMedal/HeavyMedal.java b/L2J_DataPack_BETA/dist/game/data/scripts/events/HeavyMedal/HeavyMedal.java index 8e025229b52ae50fb999a55e72672c030707b16b..67f308106d1d0b340312643a16ecd944c7599a76 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/events/HeavyMedal/HeavyMedal.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/events/HeavyMedal/HeavyMedal.java @@ -183,7 +183,7 @@ public class HeavyMedal extends Quest st.takeItems(BADGES[level - 1], -1); } st.giveItems(BADGES[level], 1); - st.playSound("Itemsound.quest_itemget"); + st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET); level++; } htmltext = "31229-" + event.toLowerCase() + "-" + String.valueOf(level) + ".htm"; diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/events/TheValentineEvent/TheValentineEvent.java b/L2J_DataPack_BETA/dist/game/data/scripts/events/TheValentineEvent/TheValentineEvent.java index fbc28e149f924bdb163b3ecc1402cbc128d1bb83..d198e63eb65ca4734ac19e598aedcfa4e90f5836 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/events/TheValentineEvent/TheValentineEvent.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/events/TheValentineEvent/TheValentineEvent.java @@ -106,7 +106,7 @@ public class TheValentineEvent extends Quest else { st.giveItems(_recipe, 1); - st.playSound("Itemsound.quest_itemget"); + st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET); st.setState(State.COMPLETED); } } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/handlers/skillhandlers/Sow.java b/L2J_DataPack_BETA/dist/game/data/scripts/handlers/skillhandlers/Sow.java index ea85f942f9dcdfdefb100ad71d6b098fc83665ca..589bbe5ed60492e4b5f6b0020bcc6c689bbf932c 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/handlers/skillhandlers/Sow.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/handlers/skillhandlers/Sow.java @@ -23,11 +23,11 @@ import com.l2jserver.gameserver.handler.ISkillHandler; import com.l2jserver.gameserver.model.L2Object; import com.l2jserver.gameserver.model.actor.L2Character; import com.l2jserver.gameserver.model.actor.instance.L2MonsterInstance; +import com.l2jserver.gameserver.model.quest.Quest.QuestSound; import com.l2jserver.gameserver.model.skills.L2Skill; import com.l2jserver.gameserver.model.skills.L2SkillType; import com.l2jserver.gameserver.network.SystemMessageId; import com.l2jserver.gameserver.network.serverpackets.ActionFailed; -import com.l2jserver.gameserver.network.serverpackets.PlaySound; import com.l2jserver.gameserver.network.serverpackets.SystemMessage; import com.l2jserver.util.Rnd; @@ -89,7 +89,7 @@ public class Sow implements ISkillHandler SystemMessage sm; if (calcSuccess(activeChar, target, seedId)) { - activeChar.sendPacket(new PlaySound("Itemsound.quest_itemget")); + activeChar.sendPacket(QuestSound.ITEMSOUND_QUEST_ITEMGET.getPacket()); target.setSeeded(activeChar.getActingPlayer()); sm = SystemMessage.getSystemMessage(SystemMessageId.THE_SEED_WAS_SUCCESSFULLY_SOWN); } diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/106_ForgottenTruth/__init__.py b/L2J_DataPack_BETA/dist/game/data/scripts/quests/106_ForgottenTruth/__init__.py index 14438ea070f58bec7123e2c6df26d4ddfb53e73c..733074911ec6fadf9cf23a316493c9e4f842395c 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/106_ForgottenTruth/__init__.py +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/106_ForgottenTruth/__init__.py @@ -122,7 +122,7 @@ class Quest (JQuest) : if self.getRandom(100) < 20 : if st.getQuestItemsCount(ANCIENT_SCROLL) == 0 : st.giveItems(ANCIENT_SCROLL,1) - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") elif st.getQuestItemsCount(ANCIENT_CLAY_TABLET) == 0 : st.giveItems(ANCIENT_CLAY_TABLET,1) st.playSound("ItemSound.quest_middle") diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/211_TrialOfChallenger/__init__.py b/L2J_DataPack_BETA/dist/game/data/scripts/quests/211_TrialOfChallenger/__init__.py index ad39c333a5470c3488e6f4e59798adf182145545..8b65d77dee27682d3afba2fa98e3f091612cb8d0 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/211_TrialOfChallenger/__init__.py +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/211_TrialOfChallenger/__init__.py @@ -44,11 +44,11 @@ class Quest (JQuest) : htmltext = "30645-02.htm" st.takeItems(LETTER_OF_KASH,1) st.set("cond","4") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") elif event == "30647_1" : if st.getQuestItemsCount(BROKEN_KEY) == 1 : st.giveItems(SCROLL_OF_SHYSLASSY,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") if self.getRandom(10) < 2 : htmltext = "30647-03.htm" st.takeItems(BROKEN_KEY,1) @@ -60,23 +60,23 @@ class Quest (JQuest) : st.giveItems(MANTICOR_SKIN_GAITERS_PATTERN,1) st.giveItems(GAUNTLET_OF_REPOSE_OF_THE_SOUL_PATTERN,1) st.giveItems(IRON_BOOTS_DESIGN,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") elif n > 70 : st.giveItems(TOME_OF_BLOOD_PAGE,1) st.giveItems(ELVEN_NECKLACE_BEADS,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") elif n > 40 : st.giveItems(WHITE_TUNIC_PATTERN,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") else: st.giveItems(IRON_BOOTS_DESIGN,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") else: htmltext = "30647-02.htm" n = self.getRandom(1000)+1 st.takeItems(BROKEN_KEY,1) st.giveItems(ADENA,n) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") else: htmltext = "30647-04.htm" st.takeItems(BROKEN_KEY,1) @@ -124,7 +124,7 @@ class Quest (JQuest) : st.takeItems(SCROLL_OF_SHYSLASSY,1) st.giveItems(LETTER_OF_KASH,1) st.set("cond","3") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") elif npcId == 30644 and cond == 1 and st.getQuestItemsCount(LETTER_OF_KASH) == 1 : htmltext = "30644-08.htm" elif npcId == 30644 and cond >= 7 : @@ -137,7 +137,7 @@ class Quest (JQuest) : htmltext = "30645-04.htm" st.takeItems(WATCHERS_EYE1,1) st.set("cond","6") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") elif npcId == 30645 and cond == 6 : htmltext = "30645-05.htm" elif npcId == 30645 and cond >= 7 : @@ -163,14 +163,14 @@ class Quest (JQuest) : htmltext = "30535-01.htm" st.addRadar(176560,-184969,-3729); st.set("cond","8") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") else: htmltext = "30535-03.htm" elif npcId == 30535 and cond == 8 : htmltext = "30535-02.htm" st.addRadar(176560,-184969,-3729); st.set("cond","9") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") return htmltext def onKill(self,npc,player,isPet): diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/212_TrialOfDuty/__init__.py b/L2J_DataPack_BETA/dist/game/data/scripts/quests/212_TrialOfDuty/__init__.py index 9706126c28a8b3488d578dd775b6bd08c88eddac..7f95628aee1a3e1102df3331db3ac606db288020 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/212_TrialOfDuty/__init__.py +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/212_TrialOfDuty/__init__.py @@ -193,7 +193,7 @@ class Quest (JQuest) : if cond == 2 : if self.getRandom(50)<2 : st.addSpawn(27119,npc,True,0) - st.playSound("Itemsound.quest_before_battle") + st.playSound("ItemSound.quest_before_battle") elif npcId == 27119 : if cond == 2 and st.getQuestItemsCount(OLD_KNIGHT_SWORD) > 0 : st.giveItems(KNIGHTS_TEAR,1) @@ -225,7 +225,7 @@ class Quest (JQuest) : if cond == 7 : if self.getRandom(100)<33 : st.addSpawn(30656,npc.getX(),npc.getY(),npc.getZ(),npc.getHeading(),True,300000) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") st.set("cond","8") elif npcId == 20577 : if cond == 11 and st.getQuestItemsCount(MILITAS_ARTICLE) < 20 : diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/213_TrialOfSeeker/__init__.py b/L2J_DataPack_BETA/dist/game/data/scripts/quests/213_TrialOfSeeker/__init__.py index 9ffebaf3436af7a0f18179cc902fb1109a46b46f..86960ca685c536ab62250e3ac168bd56fa95fbb0 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/213_TrialOfSeeker/__init__.py +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/213_TrialOfSeeker/__init__.py @@ -49,13 +49,13 @@ class Quest (JQuest) : st.takeItems(DUFNERS_LETTER_ID,1) st.giveItems(TERYS_ORDER1_ID,1) st.set("cond","2") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") elif event == "30064-06.htm" : st.takeItems(MYSTERIOUS_RUNESTONE_ID,1) st.takeItems(TERYS_ORDER1_ID,1) st.giveItems(TERYS_ORDER2_ID,1) st.set("cond","4") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") elif event == "30064-10.htm" : st.takeItems(OL_MAHUM_RUNESTONE_ID,1) st.takeItems(TUREK_RUNESTONE_ID,1) @@ -65,7 +65,7 @@ class Quest (JQuest) : st.giveItems(TERYS_LETTER_ID,1) st.giveItems(TERYS_BOX_ID,1) st.set("cond","6") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") elif event == "30064-18.htm" : if st.getPlayer().getLevel()<35 : htmltext = "30064-17.htm" @@ -86,25 +86,25 @@ class Quest (JQuest) : st.takeItems(VIKTORS_LETTER_ID,st.getQuestItemsCount(VIKTORS_LETTER_ID)) st.giveItems(VIKTORS_REQUEST_ID,1) st.set("cond","9") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") elif event == "30684-15.htm" : st.takeItems(VIKTORS_REQUEST_ID,1) st.takeItems(MEDUSAS_SCALES_ID,st.getQuestItemsCount(MEDUSAS_SCALES_ID)) st.giveItems(SILENS_RUNESTONE_ID,1) st.giveItems(ANALYSIS_REQUEST_ID,1) st.set("cond","11") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") elif event == "30715-02.htm" : st.takeItems(SILENS_RUNESTONE_ID,1) st.takeItems(ANALYSIS_REQUEST_ID,1) st.giveItems(MARINAS_LETTER_ID,1) st.set("cond","12") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") elif event == "30715-05.htm" : st.takeItems(EXPERIMENT_TOOLS_ID,1) st.giveItems(ANALYSIS_RESULT_ID,1) st.set("cond","14") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") return htmltext @@ -160,7 +160,7 @@ class Quest (JQuest) : st.giveItems(LIST_OF_HOST_ID,1) st.takeItems(TERYS_ORDER3_ID,1) st.set("cond","16") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") elif npcId == 30064 and cond == 1 : htmltext = "30064-01.htm" elif npcId == 30064 and cond == 2 : @@ -178,7 +178,7 @@ class Quest (JQuest) : st.takeItems(VIKTORS_LETTER_ID,1) st.giveItems(HAWKEYES_LETTER_ID,1) st.set("cond","8") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") elif npcId == 30064 and cond == 8 : htmltext = "30064-13.htm" elif npcId == 30064 and (cond>8 and cond<14) : @@ -196,7 +196,7 @@ class Quest (JQuest) : st.takeItems(ABYSS_RUNESTONE4_ID,1) st.giveItems(TERYS_REPORT_ID,1) st.set("id","18") #should be cond - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") elif npcId == 30064 and cond == 17 and st.getInt("id") == 18 : htmltext = "30064-24.htm" elif npcId == 30684 and cond == 6 : @@ -242,7 +242,7 @@ class Quest (JQuest) : if self.getRandom(100) < chance : st.giveItems(item,1) if count+1 == maxqty : - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") if cond == 4: if st.getQuestItemsCount(OL_MAHUM_RUNESTONE_ID)+st.getQuestItemsCount(TUREK_RUNESTONE_ID)+st.getQuestItemsCount(ANT_RUNESTONE_ID)+st.getQuestItemsCount(TURAK_BUGBEAR_RUNESTONE_ID)==4 : st.set("cond",str(cond+1)) @@ -254,7 +254,7 @@ class Quest (JQuest) : else: st.set("cond",str(cond+1)) else : - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") return QUEST = Quest(213,qn,"Trial Of Seeker") diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/216_TrialOfGuildsman/__init__.py b/L2J_DataPack_BETA/dist/game/data/scripts/quests/216_TrialOfGuildsman/__init__.py index 91ecc0148fc9ffe37fb681ee19bb8bb9513ebb27..3f7032f897871c03e7ef2046b46789c57a422324 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/216_TrialOfGuildsman/__init__.py +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/216_TrialOfGuildsman/__init__.py @@ -287,11 +287,11 @@ class Quest (JQuest) : if st.getInt("cond") >= 1 and st.getQuestItemsCount(ALLTRANS_INSTRUCTIONS_ID) == 1 and st.getQuestItemsCount(PINTERS_INSTRUCTIONS_ID) == 1 : if st.getQuestItemsCount(AMBER_BEAD_ID) < 70 : st.giveItems(AMBER_BEAD_ID,5) - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") if st.getQuestItemsCount(AMBER_BEAD_ID) >= 70 : st.playSound("ItemSound.quest_middle") else: - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") return diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/217_TestimonyOfTrust/__init__.py b/L2J_DataPack_BETA/dist/game/data/scripts/quests/217_TestimonyOfTrust/__init__.py index 4992246242b190b97894437e4a6f428e12c28a30..82b2a56d9da3a81c08352c1ed1b56987f1b10e87 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/217_TestimonyOfTrust/__init__.py +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/217_TestimonyOfTrust/__init__.py @@ -277,12 +277,12 @@ class Quest (JQuest) : if npcId in [ 20036,20044 ] and st.getQuestItemsCount(BREATH_OF_WINDS_ID) == 0 : st.set("id",str(st.getInt("id")+1)) if self.getRandom(100)<(st.getInt("id")*33) : - st.playSound("Itemsound.quest_before_battle") + st.playSound("ItemSound.quest_before_battle") st.addSpawn(27120,npc.getX(),npc.getY(),npc.getZ(),600000) elif npcId in [ 20013,20019 ] and st.getQuestItemsCount(SEED_OF_VERDURE_ID) == 0 : st.set("id",str(st.getInt("id")+1)) if self.getRandom(100)<(st.getInt("id")*33) : - st.playSound("Itemsound.quest_before_battle") + st.playSound("ItemSound.quest_before_battle") st.addSpawn(27121,npc.getX(),npc.getY(),npc.getZ(),600000) elif cond == 14 : # Condition 14 get 10 Parasite of lota parasite = st.getQuestItemsCount(PARASITE_OF_LOTA_ID) @@ -291,9 +291,9 @@ class Quest (JQuest) : st.giveItems(PARASITE_OF_LOTA_ID,1) if parasite+1 == 10 : st.set("cond","15") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") else: - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") elif cond in [ 2,6,19 ] and npcId in DROPLIST.keys() : required,item,maxqty=DROPLIST[npcId] count = st.getQuestItemsCount(item) @@ -315,21 +315,21 @@ class Quest (JQuest) : # Check if player got all the items of condition 6 and set the condition to 7 if st.getQuestItemsCount(BASILISK_PLASMA_ID) and st.getQuestItemsCount(HONEY_DEW_ID) and st.getQuestItemsCount(STAKATO_ICHOR_ID) : st.set("cond","7") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") else: - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") elif npcId in [ 27120,27121 ] : # Condition 2 kill the Luel of Zephy and Aktea of the Woods # Check if player got all the items of condition 2 and set the condition to 3 if st.getQuestItemsCount(SEED_OF_VERDURE_ID) and st.getQuestItemsCount(BREATH_OF_WINDS_ID) : st.set("cond","3") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") else : - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") elif npcId == 20213 : # Condition 19 Porta st.set("cond","20") st.playSound("ItemSound.quest_middle") else: - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") return QUEST = Quest(217,qn,"Testimony Of Trust") diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/219_TestimonyOfFate/__init__.py b/L2J_DataPack_BETA/dist/game/data/scripts/quests/219_TestimonyOfFate/__init__.py index e847abd54021d3ee83d50d6597be679b4e93588b..0263d1138e0f688ff87363ce8263e42ef1f02204 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/219_TestimonyOfFate/__init__.py +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/219_TestimonyOfFate/__init__.py @@ -277,142 +277,142 @@ class Quest (JQuest) : st.giveItems(KASANDRAS_REMAINS_ID,1) st.takeItems(METHEUS_FUNERAL_JAR_ID,1) st.set("cond","3") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") elif npcId == 20158 : if st.getInt("cond") >=1 and st.getQuestItemsCount(IXIAS_LIST_ID) and st.getQuestItemsCount(MEDUSA_ICHOR_ID) < 10 : if self.getRandom(2) == 1 : if st.getQuestItemsCount(MEDUSA_ICHOR_ID) == 9 : st.giveItems(MEDUSA_ICHOR_ID,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") if st.getQuestItemsCount(MEDUSA_ICHOR_ID)>=10 and st.getQuestItemsCount(M_SPIDER_FLUIDS_ID)>=10 and st.getQuestItemsCount(DEAD_SEEKER_DUNG_ID)>=10 and st.getQuestItemsCount(TYRANTS_BLOOD_ID)>=10 and st.getQuestItemsCount(NIGHTSHADE_ROOT_ID)>=10 : st.set("cond","7") else: st.giveItems(MEDUSA_ICHOR_ID,1) - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") elif npcId == 20233 : if st.getInt("cond") >=1 and st.getQuestItemsCount(IXIAS_LIST_ID) and st.getQuestItemsCount(M_SPIDER_FLUIDS_ID) < 10 : if self.getRandom(2) == 1 : if st.getQuestItemsCount(M_SPIDER_FLUIDS_ID) == 9 : st.giveItems(M_SPIDER_FLUIDS_ID,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") if st.getQuestItemsCount(MEDUSA_ICHOR_ID)>=10 and st.getQuestItemsCount(M_SPIDER_FLUIDS_ID)>=10 and st.getQuestItemsCount(DEAD_SEEKER_DUNG_ID)>=10 and st.getQuestItemsCount(TYRANTS_BLOOD_ID)>=10 and st.getQuestItemsCount(NIGHTSHADE_ROOT_ID)>=10 : st.set("cond","7") else: st.giveItems(M_SPIDER_FLUIDS_ID,1) - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") elif npcId == 20202 : if st.getInt("cond") >=1 and st.getQuestItemsCount(IXIAS_LIST_ID) and st.getQuestItemsCount(DEAD_SEEKER_DUNG_ID) < 10 : if self.getRandom(2) == 1 : if st.getQuestItemsCount(DEAD_SEEKER_DUNG_ID) == 9 : st.giveItems(DEAD_SEEKER_DUNG_ID,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") if st.getQuestItemsCount(MEDUSA_ICHOR_ID)>=10 and st.getQuestItemsCount(M_SPIDER_FLUIDS_ID)>=10 and st.getQuestItemsCount(DEAD_SEEKER_DUNG_ID)>=10 and st.getQuestItemsCount(TYRANTS_BLOOD_ID)>=10 and st.getQuestItemsCount(NIGHTSHADE_ROOT_ID)>=10 : st.set("cond","7") else: st.giveItems(DEAD_SEEKER_DUNG_ID,1) - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") elif npcId == 20192 : if st.getInt("cond") >=1 and st.getQuestItemsCount(IXIAS_LIST_ID) and st.getQuestItemsCount(TYRANTS_BLOOD_ID) < 10 : if self.getRandom(2) == 1 : if st.getQuestItemsCount(TYRANTS_BLOOD_ID) == 9 : st.giveItems(TYRANTS_BLOOD_ID,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") if st.getQuestItemsCount(MEDUSA_ICHOR_ID)>=10 and st.getQuestItemsCount(M_SPIDER_FLUIDS_ID)>=10 and st.getQuestItemsCount(DEAD_SEEKER_DUNG_ID)>=10 and st.getQuestItemsCount(TYRANTS_BLOOD_ID)>=10 and st.getQuestItemsCount(NIGHTSHADE_ROOT_ID)>=10 : st.set("cond","7") else: st.giveItems(TYRANTS_BLOOD_ID,1) - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") elif npcId == 20193 : if st.getInt("cond") >=1 and st.getQuestItemsCount(IXIAS_LIST_ID) and st.getQuestItemsCount(TYRANTS_BLOOD_ID) < 10 : if self.getRandom(10) < 6 : if st.getQuestItemsCount(TYRANTS_BLOOD_ID) == 9 : st.giveItems(TYRANTS_BLOOD_ID,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") if st.getQuestItemsCount(MEDUSA_ICHOR_ID)>=10 and st.getQuestItemsCount(M_SPIDER_FLUIDS_ID)>=10 and st.getQuestItemsCount(DEAD_SEEKER_DUNG_ID)>=10 and st.getQuestItemsCount(TYRANTS_BLOOD_ID)>=10 and st.getQuestItemsCount(NIGHTSHADE_ROOT_ID)>=10 : st.set("cond","7") else: st.giveItems(TYRANTS_BLOOD_ID,1) - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") elif npcId == 20230 : if st.getInt("cond") >=1 and st.getQuestItemsCount(IXIAS_LIST_ID) and st.getQuestItemsCount(NIGHTSHADE_ROOT_ID) < 10 : if self.getRandom(10) < 3 : if st.getQuestItemsCount(NIGHTSHADE_ROOT_ID) == 9 : st.giveItems(NIGHTSHADE_ROOT_ID,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") if st.getQuestItemsCount(MEDUSA_ICHOR_ID)>=10 and st.getQuestItemsCount(M_SPIDER_FLUIDS_ID)>=10 and st.getQuestItemsCount(DEAD_SEEKER_DUNG_ID)>=10 and st.getQuestItemsCount(TYRANTS_BLOOD_ID)>=10 and st.getQuestItemsCount(NIGHTSHADE_ROOT_ID)>=10 : st.set("cond","7") else: st.giveItems(NIGHTSHADE_ROOT_ID,1) - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") elif npcId == 20157 : if st.getInt("cond") >=1 and st.getQuestItemsCount(IXIAS_LIST_ID) and st.getQuestItemsCount(NIGHTSHADE_ROOT_ID) < 10 : if self.getRandom(10) < 4 : if st.getQuestItemsCount(NIGHTSHADE_ROOT_ID) == 9 : st.giveItems(NIGHTSHADE_ROOT_ID,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") if st.getQuestItemsCount(MEDUSA_ICHOR_ID)>=10 and st.getQuestItemsCount(M_SPIDER_FLUIDS_ID)>=10 and st.getQuestItemsCount(DEAD_SEEKER_DUNG_ID)>=10 and st.getQuestItemsCount(TYRANTS_BLOOD_ID)>=10 and st.getQuestItemsCount(NIGHTSHADE_ROOT_ID)>=10 : st.set("cond","7") else: st.giveItems(NIGHTSHADE_ROOT_ID,1) - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") elif npcId == 20232 : if st.getInt("cond") >=1 and st.getQuestItemsCount(IXIAS_LIST_ID) and st.getQuestItemsCount(NIGHTSHADE_ROOT_ID) < 10 : if self.getRandom(10) < 5 : if st.getQuestItemsCount(NIGHTSHADE_ROOT_ID) == 9 : st.giveItems(NIGHTSHADE_ROOT_ID,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") if st.getQuestItemsCount(MEDUSA_ICHOR_ID)>=10 and st.getQuestItemsCount(M_SPIDER_FLUIDS_ID)>=10 and st.getQuestItemsCount(DEAD_SEEKER_DUNG_ID)>=10 and st.getQuestItemsCount(TYRANTS_BLOOD_ID)>=10 and st.getQuestItemsCount(NIGHTSHADE_ROOT_ID)>=10 : st.set("cond","7") else: st.giveItems(NIGHTSHADE_ROOT_ID,1) - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") elif npcId == 20234 : if st.getInt("cond") >=1 and st.getQuestItemsCount(IXIAS_LIST_ID) and st.getQuestItemsCount(NIGHTSHADE_ROOT_ID) < 10 : if self.getRandom(10) < 6 : if st.getQuestItemsCount(NIGHTSHADE_ROOT_ID) == 9 : st.giveItems(NIGHTSHADE_ROOT_ID,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") if st.getQuestItemsCount(MEDUSA_ICHOR_ID)>=10 and st.getQuestItemsCount(M_SPIDER_FLUIDS_ID)>=10 and st.getQuestItemsCount(DEAD_SEEKER_DUNG_ID)>=10 and st.getQuestItemsCount(TYRANTS_BLOOD_ID)>=10 and st.getQuestItemsCount(NIGHTSHADE_ROOT_ID)>=10 : st.set("cond","7") else: st.giveItems(NIGHTSHADE_ROOT_ID,1) - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") elif npcId == 27079 : if st.getInt("cond") >=1 and st.getQuestItemsCount(PALUS_CHARM_ID) and st.getQuestItemsCount(ARKENIAS_NOTE_ID) and st.getQuestItemsCount(TIMIRIRAN_SAP_ID) == 0 and st.getQuestItemsCount(TIMIRIRAN_SEED_ID) and st.getQuestItemsCount(BLACK_WILLOW_LEAF_ID) == 0 : st.giveItems(BLACK_WILLOW_LEAF_ID,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") elif npcId == 20554 : if st.getInt("cond") >=1 and st.getQuestItemsCount(PALUS_CHARM_ID) and st.getQuestItemsCount(ARKENIAS_NOTE_ID) and st.getQuestItemsCount(RED_FAIRY_DUST_ID) == 0 and st.getQuestItemsCount(PIXY_GARNET_ID) and st.getQuestItemsCount(GRANDIS_SKULL_ID) < 10 : if st.getQuestItemsCount(GRANDIS_SKULL_ID) == 9 : st.giveItems(GRANDIS_SKULL_ID,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") else: st.giveItems(GRANDIS_SKULL_ID,1) - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") elif npcId == 20600 : if st.getInt("cond") >=1 and st.getQuestItemsCount(PALUS_CHARM_ID) and st.getQuestItemsCount(ARKENIAS_NOTE_ID) and st.getQuestItemsCount(RED_FAIRY_DUST_ID) == 0 and st.getQuestItemsCount(PIXY_GARNET_ID) and st.getQuestItemsCount(KARUL_BUGBEAR_SKULL_ID) < 10 : if st.getQuestItemsCount(KARUL_BUGBEAR_SKULL_ID) == 9 : st.giveItems(KARUL_BUGBEAR_SKULL_ID,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") else: st.giveItems(KARUL_BUGBEAR_SKULL_ID,1) - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") elif npcId == 20270 : if st.getInt("cond") >=1 and st.getQuestItemsCount(PALUS_CHARM_ID) and st.getQuestItemsCount(ARKENIAS_NOTE_ID) and st.getQuestItemsCount(RED_FAIRY_DUST_ID) == 0 and st.getQuestItemsCount(PIXY_GARNET_ID) and st.getQuestItemsCount(BREKA_OVERLORD_SKULL_ID) < 10 : if st.getQuestItemsCount(BREKA_OVERLORD_SKULL_ID) == 9 : st.giveItems(BREKA_OVERLORD_SKULL_ID,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") else: st.giveItems(BREKA_OVERLORD_SKULL_ID,1) - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") elif npcId == 20582 : if st.getInt("cond") >=1 and st.getQuestItemsCount(PALUS_CHARM_ID) and st.getQuestItemsCount(ARKENIAS_NOTE_ID) and st.getQuestItemsCount(RED_FAIRY_DUST_ID) == 0 and st.getQuestItemsCount(PIXY_GARNET_ID) and st.getQuestItemsCount(LETO_OVERLORD_SKULL_ID) < 10 : if st.getQuestItemsCount(LETO_OVERLORD_SKULL_ID) == 9 : st.giveItems(LETO_OVERLORD_SKULL_ID,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") else: st.giveItems(LETO_OVERLORD_SKULL_ID,1) - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") return QUEST = Quest(219,qn,"Testimony Of Fate") diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/220_TestimonyOfGlory/__init__.py b/L2J_DataPack_BETA/dist/game/data/scripts/quests/220_TestimonyOfGlory/__init__.py index 385f267b14afdc7ae588f082f34a522626521e47..0f70e5602e20a9883d2a0dd673b3f4bc4845b9bb 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/220_TestimonyOfGlory/__init__.py +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/220_TestimonyOfGlory/__init__.py @@ -154,13 +154,13 @@ class Quest (JQuest) : htmltext = "30501-09.htm" st.giveItems(KASMANS_LETTER3,1) elif event == "30615-04.htm" : # Chief of Breka Orcs - st.playSound("Itemsound.quest_before_battle") + st.playSound("ItemSound.quest_before_battle") st.addSpawn(27080,80117,120039,-2259) st.addSpawn(27081,80058,120038,-2259) st.giveItems(GLOVE_OF_VOLTAR,1) st.takeItems(MANAKIAS_LETTER1,1) elif event == "30616-04.htm" : # Chief of Enku Orcs - st.playSound("Itemsound.quest_before_battle") + st.playSound("ItemSound.quest_before_battle") st.addSpawn(27082,19456,192245,-3730) st.addSpawn(27082,19539,192343,-3728) st.addSpawn(27082,19500,192449,-3729) @@ -168,7 +168,7 @@ class Quest (JQuest) : st.giveItems(GLOVE_OF_KEPRA,1) st.takeItems(MANAKIAS_LETTER2,1) elif event == "30617-04.htm" : # Chief of Turek Orcs - st.playSound("Itemsound.quest_before_battle") + st.playSound("ItemSound.quest_before_battle") st.addSpawn(27083,-94292,110781,-3701) st.addSpawn(27083,-94293,110861,-3701) st.giveItems(GLOVE_OF_BURAI,1) @@ -291,7 +291,7 @@ class Quest (JQuest) : htmltext = "30615-02.htm" elif st.getQuestItemsCount(GLOVE_OF_VOLTAR) : htmltext = "30615-05.htm" - st.playSound("Itemsound.quest_before_battle") + st.playSound("ItemSound.quest_before_battle") st.addSpawn(27080,80117,120039,-2259) st.addSpawn(27081,80058,120038,-2259) elif st.getQuestItemsCount(PASHIKAS_HEAD) and st.getQuestItemsCount(VULTUS_HEAD) : @@ -301,9 +301,9 @@ class Quest (JQuest) : st.takeItems(VULTUS_HEAD,1) if st.getQuestItemsCount(SCEPTER_OF_BREKA) and st.getQuestItemsCount(SCEPTER_OF_ENKU) and st.getQuestItemsCount(SCEPTER_OF_VUKU) and st.getQuestItemsCount(SCEPTER_OF_TUREK) and st.getQuestItemsCount(SCEPTER_OF_TUNATH) : st.set("cond","5") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") else : - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") elif st.getQuestItemsCount(SCEPTER_OF_BREKA) : htmltext = "30615-07.htm" else : @@ -313,7 +313,7 @@ class Quest (JQuest) : htmltext = "30616-02.htm" elif st.getQuestItemsCount(GLOVE_OF_KEPRA) : htmltext = "30616-05.htm" - st.playSound("Itemsound.quest_before_battle") + st.playSound("ItemSound.quest_before_battle") st.addSpawn(27082,17710,189813,-3581) st.addSpawn(27082,17674,189798,-3581) st.addSpawn(27082,17770,189852,-3581) @@ -324,9 +324,9 @@ class Quest (JQuest) : st.takeItems(ENKU_OVERLORD_HEAD,4) if st.getQuestItemsCount(SCEPTER_OF_BREKA) and st.getQuestItemsCount(SCEPTER_OF_ENKU) and st.getQuestItemsCount(SCEPTER_OF_VUKU) and st.getQuestItemsCount(SCEPTER_OF_TUREK) and st.getQuestItemsCount(SCEPTER_OF_TUNATH) : st.set("cond","5") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") else : - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") elif st.getQuestItemsCount(SCEPTER_OF_ENKU) : htmltext = "30616-07.htm" else : @@ -336,7 +336,7 @@ class Quest (JQuest) : htmltext = "30617-02.htm" elif st.getQuestItemsCount(GLOVE_OF_BURAI) : htmltext = "30617-05.htm" - st.playSound("Itemsound.quest_before_battle") + st.playSound("ItemSound.quest_before_battle") st.addSpawn(27083,-94292,110781,-3701) st.addSpawn(27083,-94293,110861,-3701) elif st.getQuestItemsCount(MAKUM_BUGBEAR_HEAD) == 2 : @@ -345,9 +345,9 @@ class Quest (JQuest) : st.takeItems(MAKUM_BUGBEAR_HEAD,2) if st.getQuestItemsCount(SCEPTER_OF_BREKA) and st.getQuestItemsCount(SCEPTER_OF_ENKU) and st.getQuestItemsCount(SCEPTER_OF_VUKU) and st.getQuestItemsCount(SCEPTER_OF_TUREK) and st.getQuestItemsCount(SCEPTER_OF_TUNATH) : st.set("cond","5") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") else : - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") elif st.getQuestItemsCount(SCEPTER_OF_TUREK) : htmltext = "30617-07.htm" else : @@ -370,9 +370,9 @@ class Quest (JQuest) : st.takeItems(DRIKOS_CONTRACT,1) if st.getQuestItemsCount(SCEPTER_OF_BREKA) and st.getQuestItemsCount(SCEPTER_OF_ENKU) and st.getQuestItemsCount(SCEPTER_OF_VUKU) and st.getQuestItemsCount(SCEPTER_OF_TUREK) and st.getQuestItemsCount(SCEPTER_OF_TUNATH) : st.set("cond","5") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") else : - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") else : htmltext = "30619-04.htm" elif st.getQuestItemsCount(SCEPTER_OF_VUKU) : @@ -453,11 +453,11 @@ class Quest (JQuest) : if count+1 == maxquanty : # Check if got enough number of items if st.getQuestItemsCount(MANASHEN_SHARD) == maxquanty and st.getQuestItemsCount(TYRANT_TALON) == maxquanty and st.getQuestItemsCount(GUARDIAN_BASILISK_FANG) == maxquanty : st.set("cond","2") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") else : - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") else : - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") elif cond == 4 and npcId in DROPLIST_COND_4.keys(): required,item,maxquanty=DROPLIST_COND_4[npcId] count = st.getQuestItemsCount(item) @@ -465,23 +465,23 @@ class Quest (JQuest) : if npcId == 20234 : st.giveItems(item,1) if count+1 == maxquanty : # Check if got enough number of items - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") else : - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") else : st.giveItems(item,1) if count+1 == maxquanty : # Check if got enough number of items if npcId in [ 27080, 27081 ] : if st.getQuestItemsCount(PASHIKAS_HEAD) and st.getQuestItemsCount(VULTUS_HEAD) : st.takeItems(required,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") else : - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") else : st.takeItems(required,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") else : - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") elif cond == 6 and npcId in DROPLIST_COND_6.keys(): required,item,maxquanty,chance=DROPLIST_COND_6[npcId] count = st.getQuestItemsCount(item) @@ -491,14 +491,14 @@ class Quest (JQuest) : if count+1 == maxquanty : # Check if got enough number of items if st.getQuestItemsCount(TIMAK_ORC_HEAD) == maxquanty and st.getQuestItemsCount(TAMLIN_ORC_SKULL) == maxquanty : st.set("cond","7") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") else : - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") else : - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") elif cond == 9 and st.getQuestItemsCount(TANAPIS_ORDER1) and st.getQuestItemsCount(SCEPTER_OF_TANTOS) == 0 : if npcId in [ 20778, 20779 ] : - # st.playSound("Itemsound.quest_before_battle") + # st.playSound("ItemSound.quest_before_battle") st.addSpawn(27086) #st.addSpawn(27086, 11839,-106261,-3550,300000) return "Revenant of Tantos Chief has spawned at X=11839 Y=-106261 Z=-3550" @@ -507,7 +507,7 @@ class Quest (JQuest) : elif npcId == 27086 : st.giveItems(SCEPTER_OF_TANTOS,1) st.set("cond","10") - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") return QUEST = Quest(220,qn,"Testimony Of Glory") diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/223_TestOfChampion/__init__.py b/L2J_DataPack_BETA/dist/game/data/scripts/quests/223_TestOfChampion/__init__.py index 725add4b0bc2ab91ea1f4004b1b6bbdeabbc55c6..1ffe7b3487ead4a6f675a9f951b285d8be040af2 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/223_TestOfChampion/__init__.py +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/223_TestOfChampion/__init__.py @@ -70,13 +70,13 @@ class Quest (JQuest) : htmltext = "30624-10.htm" st.giveItems(ASCALONS_LETTER2,1) st.takeItems(MASONS_LETTER,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") st.set("cond","5") elif event == "30624_3" : htmltext = "30624-14.htm" st.giveItems(ASCALONS_LETTER3,1) st.takeItems(GROOTS_LETTER,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") st.set("cond","9") elif event == "30625_1" : htmltext = "30625-02.htm" @@ -84,13 +84,13 @@ class Quest (JQuest) : htmltext = "30625-03.htm" st.giveItems(IRON_ROSE_RING,1) st.takeItems(ASCALONS_LETTER1,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") st.set("cond","2") elif event == "30093_1" : htmltext = "30093-02.htm" st.giveItems(WHITE_ROSE_INSIGNIA,1) st.takeItems(ASCALONS_LETTER2,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") st.set("cond","6") elif event == "30196_1" : htmltext = "30196-02.htm" @@ -98,14 +98,14 @@ class Quest (JQuest) : htmltext = "30196-03.htm" st.giveItems(MOUENS_ORDER1,1) st.takeItems(ASCALONS_LETTER3,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") st.set("cond","10") elif event == "30196_3" : htmltext = "30196-06.htm" st.giveItems(MOUENS_ORDER2,1) st.takeItems(MOUENS_ORDER1,1) st.takeItems(ROAD_RATMAN_HEAD,-1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") st.set("cond","12") return htmltext @@ -168,7 +168,7 @@ class Quest (JQuest) : st.giveItems(MASONS_LETTER,1) st.takeItems(IRON_ROSE_RING,1) st.takeItems(BLOODY_AXE_HEAD,-1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") st.set("cond","4") elif npcId == 30625 and st.getInt("cond") == 4 : htmltext = "30625-06.htm" @@ -180,7 +180,7 @@ class Quest (JQuest) : htmltext = "30093-03.htm" elif npcId == 30093 and st.getInt("cond") == 7 : htmltext = "30093-04.htm" - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") st.set("cond","8") st.giveItems(GROOTS_LETTER,1) st.takeItems(WHITE_ROSE_INSIGNIA,1) @@ -204,7 +204,7 @@ class Quest (JQuest) : st.giveItems(MOUENS_LETTER,1) st.takeItems(MOUENS_ORDER2,1) st.takeItems(LETO_LIZARDMAN_FANG1,st.getQuestItemsCount(LETO_LIZARDMAN_FANG1)) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") st.set("cond","14") elif npcId == 30196 and st.getInt("cond") == 14 : htmltext = "30196-09.htm" @@ -221,7 +221,7 @@ class Quest (JQuest) : if cond == step and st.getQuestItemsCount(itemid) < maxcount and self.getRandom(100) < chance: if st.getQuestItemsCount(itemid) == (maxcount-1): st.giveItems(itemid,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") if cond == 6: h_egg = st.getQuestItemsCount(HARPYS_EGG1) m_ven = st.getQuestItemsCount(MEDUSA_VENOM1) @@ -232,7 +232,7 @@ class Quest (JQuest) : st.set("cond",str(cond+1)) else: st.giveItems(itemid,1) - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") return QUEST = Quest(223,qn,"Test Of Champion") diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/224_TestOfSagittarius/__init__.py b/L2J_DataPack_BETA/dist/game/data/scripts/quests/224_TestOfSagittarius/__init__.py index 0ad7be06c3ce55837165b99b6ffbc4e0303f3d87..d99024721ea4a47b3ab615c4ccbadab17ae85a19 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/224_TestOfSagittarius/__init__.py +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/224_TestOfSagittarius/__init__.py @@ -74,13 +74,13 @@ DROPLIST={ } def giveMiddle(st,itemid,step): st.giveItems(itemid,1) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") st.set("step",str(step+1)) return def giveNormal(st,itemid): st.giveItems(itemid,1) - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") return @@ -244,7 +244,7 @@ class Quest (JQuest) : if ((st.getQuestItemsCount(itemid)-120)*5)> self.getRandom(100) : st.addSpawn(27090,npc,True,0) st.takeItems(itemid, st.getQuestItemsCount(itemid)) - st.playSound("Itemsound.quest_before_battle") + st.playSound("ItemSound.quest_before_battle") else: giveNormal(st,itemid) elif dropcondition == 3 : diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/225_TestOfSearcher/__init__.py b/L2J_DataPack_BETA/dist/game/data/scripts/quests/225_TestOfSearcher/__init__.py index 563d70da02a53be4a6818f1d6d1eaecb37587e8f..383feeda006ee2aa40e0771745e3d2b22bf57c3b 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/225_TestOfSearcher/__init__.py +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/225_TestOfSearcher/__init__.py @@ -266,7 +266,7 @@ class Quest (JQuest) : if st.getQuestItemsCount(MAKELS_MAP) ==1 and st.getQuestItemsCount(SOLTS_MAP) ==1 : st.set("cond",str(cond+1)) else: - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") elif npcId==20551: if st.getQuestItemsCount(SOLTS_MAP) ==0: st.giveItems(itemid,1) @@ -277,7 +277,7 @@ class Quest (JQuest) : if st.getQuestItemsCount(MAKELS_MAP) ==1 and st.getQuestItemsCount(SOLTS_MAP) ==1 : st.set("cond",str(cond+1)) else: - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") else: st.giveItems(itemid,1) if count==maxcount-1: @@ -286,7 +286,7 @@ class Quest (JQuest) : if npcId == 27093: st.giveItems(STRANGE_MAP,1) else: - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") if npcId==20781 and random<30 and count<maxcount: st.addSpawn(27094,npc.getX(),npc.getY(),npc.getZ(),npc.getHeading(),True,300000) return diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/226_TestOfHealer/__init__.py b/L2J_DataPack_BETA/dist/game/data/scripts/quests/226_TestOfHealer/__init__.py index b248e8152f6bf533d9a1809072b8f35ae3ade04d..9ea3a9c0b84e16f1050102d4a075d72d6dfcc410 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/226_TestOfHealer/__init__.py +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/226_TestOfHealer/__init__.py @@ -128,7 +128,7 @@ class Quest (JQuest) : st.addSpawn(27122) st.addSpawn(LETO_LEADER) st.set("cond","11") - st.playSound("Itemsound.quest_before_battle") + st.playSound("ItemSound.quest_before_battle") elif event == "30665_1" : htmltext = "30665-02.htm" st.takeItems(SECRET_LETTER1,1) @@ -241,21 +241,21 @@ class Quest (JQuest) : st.addSpawn(LETO_ASSASSIN) st.addSpawn(LETO_ASSASSIN) st.addSpawn(LETO_ASSASSIN) - st.playSound("Itemsound.quest_before_battle") + st.playSound("ItemSound.quest_before_battle") st.set("cond","14") elif st.getInt("cond")==15 or st.getInt("cond")==16: htmltext = "30661-02.htm" st.addSpawn(LETO_SNIPER) st.addSpawn(LETO_SNIPER) st.addSpawn(LETO_SNIPER) - st.playSound("Itemsound.quest_before_battle") + st.playSound("ItemSound.quest_before_battle") st.set("cond","16") elif st.getInt("cond")==17 or st.getInt("cond")==18: htmltext = "30661-03.htm" st.addSpawn(LETO_WIZARD) st.addSpawn(LETO_WIZARD) st.addSpawn(LETO_LORD) - st.playSound("Itemsound.quest_before_battle") + st.playSound("ItemSound.quest_before_battle") st.set("cond","18") elif st.getInt("cond") == 19 : htmltext = "30661-04.htm" @@ -285,7 +285,7 @@ class Quest (JQuest) : st.giveItems(item,1) if next_condition != 0: st.set("cond",next_condition) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") return QUEST = Quest(226,qn,"Test Of Healer") diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/230_TestOfSummoner/__init__.py b/L2J_DataPack_BETA/dist/game/data/scripts/quests/230_TestOfSummoner/__init__.py index 53e82350ebd13f660d6e08b21f7c9602afe9cf04..fa3734e869601c39490941ed54e249f92e7b7d34 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/230_TestOfSummoner/__init__.py +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/230_TestOfSummoner/__init__.py @@ -324,7 +324,7 @@ class Quest (JQuest) : st.set(var,"3") st.giveItems(progress,1) st.takeItems(start,1) - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") self.inProgressDuelMobs[npcId] = [player, player.getPet(), False] #mark the attack return @@ -341,9 +341,9 @@ class Quest (JQuest) : if st.getInt(var) == value and count < 30 and random < chance: st.giveItems(item,1) if count == 29: - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") else: - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") # Part for npc summon death (duels part). Some of this must run for all players. else : # if npcId in DROPLIST_SUMMON.keys(): var,start,progress,foul,defeat,victory = DROPLIST_SUMMON[npcId] @@ -375,7 +375,7 @@ class Quest (JQuest) : st.set(var,"6") st.giveItems(victory,1) # if he wons without cheating, set stat won and give victory crystal st.getPlayer().removeNotifyQuestOfDeath(st) - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") # if a foul has occured, find the player who had the duel in progress and give a foul crystal else : foulPlayer = self.inProgressDuelMobs[npcId][0] diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/231_TestOfMaestro/__init__.py b/L2J_DataPack_BETA/dist/game/data/scripts/quests/231_TestOfMaestro/__init__.py index 2b044135b2edb76bb6b27c9c5c8ede80a7e92579..c8700b603fdce008660efa9e4fbc39d61ff794a2 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/231_TestOfMaestro/__init__.py +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/231_TestOfMaestro/__init__.py @@ -227,14 +227,14 @@ class Quest (JQuest) : if progress == progress_drop and count < maxcount : st.giveItems(item,1) if count == maxcount-1 : - st.playSound("Itemsound.quest_middle") + st.playSound("ItemSound.quest_middle") itemcount=0 for id in [WEIRD_BEES_NEEDLE,MARSH_SPIDERS_WEB,BLOOD_OF_LEECH]: itemcount+=st.getQuestItemsCount(id) if npcId==27133 or itemcount>29: st.set("progress",str(progress+1)) else: - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") return QUEST = Quest(231,qn,"Test Of Maestro") diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/234_FatesWhisper/__init__.py b/L2J_DataPack_BETA/dist/game/data/scripts/quests/234_FatesWhisper/__init__.py index b41a83081c4a11faf8381e14dbf84c226c9da8b0..3fb057a216cf0d9655084efd9f8a5cb63280f281 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/234_FatesWhisper/__init__.py +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/234_FatesWhisper/__init__.py @@ -268,7 +268,7 @@ class Quest (JQuest) : if npcId ==NPC[8] and st.getQuestItemsCount(REIRIAS_SOUL_ORB)==0 : htmltext = "31027-01.htm" st.giveItems(REIRIAS_SOUL_ORB,1) - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") elif cond==2 : # Kernon's Chest if npcId == NPC[5] and st.getQuestItemsCount(KERMONS_INFERNIUM_SCEPTER)==0 : @@ -297,7 +297,7 @@ class Quest (JQuest) : if player.getActiveWeaponItem() and player.getActiveWeaponItem().getItemId() == PIPETTE_KNIFE and st.getQuestItemsCount(RED_PIPETTE_KNIFE) == 0: st.giveItems(RED_PIPETTE_KNIFE,1) st.takeItems(PIPETTE_KNIFE,1) - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") return def onKill(self,npc,player,isPet): @@ -321,7 +321,7 @@ class Quest (JQuest) : stw = PartyQuestMembers[Rnd.get(len(PartyQuestMembers))] stw.giveItems(dropId,1) stw.takeItems(WHITE_CLOTH,1) - stw.playSound("Itemsound.quest_itemget") + stw.playSound("ItemSound.quest_itemget") if stw.getQuestItemsCount(dropId) >= 30: stw.set("cond","9") else: @@ -333,7 +333,7 @@ class Quest (JQuest) : if value == 8 and st.getQuestItemsCount(dropId) < 30: st.giveItems(dropId,1) st.takeItems(WHITE_CLOTH,1) - st.playSound("Itemsound.quest_itemget") + st.playSound("ItemSound.quest_itemget") if st.getQuestItemsCount(dropId) >= 30: st.set("cond","9") return diff --git a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00504_CompetitionfortheBanditStronghold/Q00504_CompetitionfortheBanditStronghold.java b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00504_CompetitionfortheBanditStronghold/Q00504_CompetitionfortheBanditStronghold.java index b0b52e100eeff98316e3f68c7491d4b1aa991eb2..a67af2bc02adc6d17f4272fba0712520d1edab5e 100644 --- a/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00504_CompetitionfortheBanditStronghold/Q00504_CompetitionfortheBanditStronghold.java +++ b/L2J_DataPack_BETA/dist/game/data/scripts/quests/Q00504_CompetitionfortheBanditStronghold/Q00504_CompetitionfortheBanditStronghold.java @@ -154,15 +154,13 @@ public final class Q00504_CompetitionfortheBanditStronghold extends Quest st.giveItems(TARLK_AMULET, 1); if (st.getQuestItemsCount(TARLK_AMULET) < 30) { - st.playSound("Itemsound.quest_itemget"); + st.playSound(QuestSound.ITEMSOUND_QUEST_ITEMGET); } else { - st.playSound("Itemsound.quest_middle"); - st.set("cond", "2"); + st.setCond(2, true); } } - return null; }