def onTalk (Self, npc, player): st = player.getQuestState(qn) npcId = npc.getNpcId() playerCabal = SevenSigns.getInstance().getPlayerCabal(player) playerSeal = SevenSigns.getInstance().getPlayerSeal(player) sealOwnerGnosis = SevenSigns.getInstance().getSealOwner(SevenSigns.SEAL_GNOSIS) periodValidate = SevenSigns.getInstance().isSealValidationPeriod() if playerCabal == SevenSigns.CABAL_NULL : if npcId in [GLUDIN_DAWN,GLUDIO_DAWN,DION_DAWN,GIRAN_DAWN,OREN_DAWN,ADEN_DAWN,HEINE_DAWN,HW_DAWN,GODDARD_DAWN,RUNE_DAWN,SCHUTTGART_DAWN] : htmltext = "dawn_tele-no.htm" else : htmltext = "dusk_tele-no.htm" elif npcId in [GLUDIN_DAWN,GLUDIN_DUSK] : if periodValidate and sealOwnerGnosis and playerSeal == SevenSigns.SEAL_GNOSIS : htmltext = "low_gludin.htm" else : htmltext = "hg_gludin.htm" elif npcId in [GLUDIO_DAWN,GLUDIO_DUSK] : if periodValidate and sealOwnerGnosis and playerSeal == SevenSigns.SEAL_GNOSIS : htmltext = "low_gludio.htm" else : htmltext = "hg_gludio.htm" elif npcId in [DION_DAWN,DION_DUSK] : if periodValidate and sealOwnerGnosis and playerSeal == SevenSigns.SEAL_GNOSIS : htmltext = "low_dion.htm" else : htmltext = "hg_dion.htm" elif npcId in [GIRAN_DAWN,GIRAN_DUSK] : if periodValidate and sealOwnerGnosis and playerSeal == SevenSigns.SEAL_GNOSIS : htmltext = "low_giran.htm" else : htmltext = "hg_giran.htm" elif npcId in [OREN_DAWN,OREN_DUSK] : if periodValidate and sealOwnerGnosis and playerSeal == SevenSigns.SEAL_GNOSIS : htmltext = "low_oren.htm" else : htmltext = "hg_oren.htm" elif npcId in [ADEN_DAWN,ADEN_DUSK] : if periodValidate and sealOwnerGnosis and playerSeal == SevenSigns.SEAL_GNOSIS : htmltext = "low_aden.htm" else : htmltext = "hg_aden.htm" elif npcId in [HEINE_DAWN,HEINE_DUSK] : if periodValidate and sealOwnerGnosis and playerSeal == SevenSigns.SEAL_GNOSIS : htmltext = "low_heine.htm" else : htmltext = "hg_heine.htm" elif npcId in [HW_DAWN,HW_DUSK] : if periodValidate and sealOwnerGnosis and playerSeal == SevenSigns.SEAL_GNOSIS : htmltext = "low_hw.htm" else : htmltext = "hg_hw.htm" elif npcId in [GODDARD_DAWN,GODDARD_DUSK] : if periodValidate and sealOwnerGnosis and playerSeal == SevenSigns.SEAL_GNOSIS : htmltext = "low_goddard.htm" else : htmltext = "hg_goddard.htm" elif npcId in [RUNE_DAWN,RUNE_DUSK] : if periodValidate and sealOwnerGnosis and playerSeal == SevenSigns.SEAL_GNOSIS : htmltext = "low_rune.htm" else : htmltext = "hg_rune.htm" elif npcId in [SCHUTTGART_DAWN,SCHUTTGART_DUSK] : if periodValidate and sealOwnerGnosis and playerSeal == SevenSigns.SEAL_GNOSIS : htmltext = "low_schuttgart.htm" else : htmltext = "hg_schuttgart.htm" else : htmltext = "hg_wrong.htm" st.exitQuest(1) return htmltext
def onTalk(Self, npc, player): st = player.getQuestState(qn) npcId = npc.getNpcId() playerCabal = SevenSigns.getInstance().getPlayerCabal(player) playerSeal = SevenSigns.getInstance().getPlayerSeal(player) sealOwnerGnosis = SevenSigns.getInstance().getSealOwner( SevenSigns.SEAL_GNOSIS) periodValidate = SevenSigns.getInstance().isSealValidationPeriod() if playerCabal == SevenSigns.CABAL_NULL: if npcId in [ GLUDIN_DAWN, GLUDIO_DAWN, DION_DAWN, GIRAN_DAWN, OREN_DAWN, ADEN_DAWN, HEINE_DAWN, HW_DAWN, GODDARD_DAWN, RUNE_DAWN, SCHUTTGART_DAWN ]: htmltext = "dawn_tele-no.htm" else: htmltext = "dusk_tele-no.htm" elif npcId in [GLUDIN_DAWN, GLUDIN_DUSK]: if periodValidate and sealOwnerGnosis and playerSeal == SevenSigns.SEAL_GNOSIS: htmltext = "low_gludin.htm" else: htmltext = "hg_gludin.htm" elif npcId in [GLUDIO_DAWN, GLUDIO_DUSK]: if periodValidate and sealOwnerGnosis and playerSeal == SevenSigns.SEAL_GNOSIS: htmltext = "low_gludio.htm" else: htmltext = "hg_gludio.htm" elif npcId in [DION_DAWN, DION_DUSK]: if periodValidate and sealOwnerGnosis and playerSeal == SevenSigns.SEAL_GNOSIS: htmltext = "low_dion.htm" else: htmltext = "hg_dion.htm" elif npcId in [GIRAN_DAWN, GIRAN_DUSK]: if periodValidate and sealOwnerGnosis and playerSeal == SevenSigns.SEAL_GNOSIS: htmltext = "low_giran.htm" else: htmltext = "hg_giran.htm" elif npcId in [OREN_DAWN, OREN_DUSK]: if periodValidate and sealOwnerGnosis and playerSeal == SevenSigns.SEAL_GNOSIS: htmltext = "low_oren.htm" else: htmltext = "hg_oren.htm" elif npcId in [ADEN_DAWN, ADEN_DUSK]: if periodValidate and sealOwnerGnosis and playerSeal == SevenSigns.SEAL_GNOSIS: htmltext = "low_aden.htm" else: htmltext = "hg_aden.htm" elif npcId in [HEINE_DAWN, HEINE_DUSK]: if periodValidate and sealOwnerGnosis and playerSeal == SevenSigns.SEAL_GNOSIS: htmltext = "low_heine.htm" else: htmltext = "hg_heine.htm" elif npcId in [HW_DAWN, HW_DUSK]: if periodValidate and sealOwnerGnosis and playerSeal == SevenSigns.SEAL_GNOSIS: htmltext = "low_hw.htm" else: htmltext = "hg_hw.htm" elif npcId in [GODDARD_DAWN, GODDARD_DUSK]: if periodValidate and sealOwnerGnosis and playerSeal == SevenSigns.SEAL_GNOSIS: htmltext = "low_goddard.htm" else: htmltext = "hg_goddard.htm" elif npcId in [RUNE_DAWN, RUNE_DUSK]: if periodValidate and sealOwnerGnosis and playerSeal == SevenSigns.SEAL_GNOSIS: htmltext = "low_rune.htm" else: htmltext = "hg_rune.htm" elif npcId in [SCHUTTGART_DAWN, SCHUTTGART_DUSK]: if periodValidate and sealOwnerGnosis and playerSeal == SevenSigns.SEAL_GNOSIS: htmltext = "low_schuttgart.htm" else: htmltext = "hg_schuttgart.htm" else: htmltext = "hg_wrong.htm" st.exitQuest(1) return htmltext
def onTalk (Self, npc, player): st = player.getQuestState(qn) st2 = player.getQuestState("635_InTheDimensionalRift") if not st: return npcId = npc.getNpcId() # ²½¨åªº¤Þ¾ÉªÌ - ©¹¦¸¤¸ªºµõ²ª if npcId in FESTIVALGUIDE : player.teleToLocation(-114796,-179334,-6752) if st2 : st2.setState(State.STARTED) st2.set("cond","1") st.playSound("ItemSound.quest_accept") st.exitQuest(1) return "guide.htm" # ²½¨åªº¤k§Å - ¥X³õ elif npcId == 31132 : player.teleToLocation(-80204,87056,-5154) return "witch.htm" elif npcId == 31133 : player.teleToLocation(-77198,87678,-5182) return "witch.htm" elif npcId == 31134 : player.teleToLocation(-76183,87135,-5179) return "witch.htm" elif npcId == 31135 : player.teleToLocation(-76945,86602,5153) return "witch.htm" elif npcId == 31136 : player.teleToLocation(-79970,85997,-5154) return "witch.htm" elif npcId == 31142 : player.teleToLocation(-79182,111893,-4898) return "witch.htm" elif npcId == 31143 : player.teleToLocation(-76176,112505,-4899) return "witch.htm" elif npcId == 31144 : player.teleToLocation(-75198,111969,-4898) return "witch.htm" elif npcId == 31145 : player.teleToLocation(-75920,111435,-4900) return "witch.htm" elif npcId == 31146 : player.teleToLocation(-78928,110825,-4926) return "witch.htm" # µõ²ª¦u³Æ¹ï¦^¨ì¶Â·tªº²½¨å elif npcId in RIFTPOST : SEALVALIDATIONPERIOD = SevenSigns.getInstance().isSealValidationPeriod() CABAL = SevenSigns.getInstance().getPlayerData(player).getString("cabal") if not SEALVALIDATIONPERIOD : # «Ê¦L¦³®Ä´Á¶¡ if CABAL == "dawn" : # ª±®aÄݩ󾤩ú°}Àç st.setState(State.STARTED) st.set("cond","1") st.getPlayer().teleToLocation(-80157,111344,-4901) if st2 : st2.unset("cond") return "riftpost-1.htm" else : if CABAL == "dusk" : # ª±®aÄÝ©ó¶À©ü°}Àç st.setState(State.STARTED) st.set("cond","1") if st2 : st2.unset("cond") st.getPlayer().teleToLocation(-81261,86531,-5157) return "riftpost-1.htm" else : return "riftpost-2.htm" else : return "riftpost-2.htm" return