HolySaint 11 Опубликовано 20 сентября, 2018 (изменено) Всем привет. Сборка l2jlovely стоит обычный баффер с профилями и всеми баффами и все работает как надо, но хотел поставить на сервер Pet Buffer т.к не знаю как сток переделать что бы еще и пета баффал отдельным профилем. Скачал с шары чей не знаю начал переделывать вызывает начальный диалог и страницу выбора баффов, но вот при выборе этих баффов не чего не происходит в ГС не каких ошибок нет. import sys from ru.catssoftware.gameserver.model.actor.instance import L2PcInstance from java.util import Iterator from ru.catssoftware.gameserver.datatables import SkillTable from ru.catssoftware import L2DatabaseFactory from ru.catssoftware.gameserver.model.quest import State from ru.catssoftware.gameserver.model.quest import QuestState from ru.catssoftware.gameserver.model.quest.jython import QuestJython as JQuest qn = "916_pet_buffer" NPC = [40004] min_level = 1 max_level = 90 min_prise = 25000 prise_ID = 57 QuestId = 916 QuestName = "pet_buffer" QuestDesc = "custom" InitialHtml = "buff.htm" buff_prise = 25000 Chant_prise = 25000 song_prise = 25000 Dance_prise = 25000 Hero_prise = 25000 Noble_prise = 25000 Summon_prise = 25000 Prophecy_prise = 25000 Full_buff_f1_prise = 200000 Full_buff_f2_prise = 400000 Full_buff_f3_prise = 600000 Full_buff_m1_prise = 200000 Full_buff_m2_prise = 400000 Full_buff_m3_prise = 600000 all_song_prise = 100000 all_dance_prise = 100000 print "importing custom: 916_pet_buffer OK" class Quest (JQuest) : def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) def onEvent(self,event,st): htmltext = event count=st.getQuestItemsCount(prise_ID) if count < min_prise : htmltext = "<html><head><body>У вас не достаточно денег.</body></html>" if st.getPlayer().getLevel() < min_level : htmltext = "<html><head><body>У вас слишком маленький уровень.</body></html>" if st.getPlayer().getLevel() < max_level : htmltext = "<html><head><body>У вас слишком высокий уровень.</body></html>" else: st.takeItems(prise_ID,0) st.getPlayer().setTarget(st.getPlayer().getPet()) #Full buff fighter 3p if event == "124": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Full_buff_f3_prise) SkillTable.getInstance().getInfo(1068,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1086,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1077,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1242,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1268,4).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1035,4).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1036,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1045,6).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1388,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(364,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(4699,13).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) st.getPlayer().getPet().setCurrentHpMp(st.getPlayer().getPet().getMaxHp(), st.getPlayer().getPet().getMaxMp()) return "buff.htm" st.setState(COMPLETED) #Full buff fighter 2p if event == "125": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Full_buff_f2_prise) SkillTable.getInstance().getInfo(1068,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1086,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1077,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1242,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1268,4).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1035,4).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1036,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) st.getPlayer().getPet().setCurrentHpMp(st.getPlayer().getPet().getMaxHp(), st.getPlayer().getPet().getMaxMp()) return "buff.htm" st.setState(COMPLETED) #Full buff fighter 1p if event == "126": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Full_buff_f1_prise) SkillTable.getInstance().getInfo(1068,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1086,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1077,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1242,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1268,4).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) st.getPlayer().getPet().setCurrentHpMp(st.getPlayer().getPet().getMaxHp(), st.getPlayer().getPet().getMaxMp()) return "buff.htm" st.setState(COMPLETED) #Full buff mage 3p if event == "120": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Full_buff_m3_prise) SkillTable.getInstance().getInfo(1085,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1059,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1078,6).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1048,6).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1303,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1035,4).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1062,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(273,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(276,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(4703,13).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(349,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(363,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(365,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1413,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1036,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(396,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) st.getPlayer().getPet().setCurrentHpMp(st.getPlayer().getPet().getMaxHp(), st.getPlayer().getPet().getMaxMp()) return "buff.htm" st.setState(COMPLETED) #Full buff mage 2p if event == "121": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Full_buff_m2_prise) SkillTable.getInstance().getInfo(1085,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1059,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1078,6).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1048,6).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1303,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1035,4).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1062,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(273,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(276,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(4703,13).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(349,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) st.getPlayer().getPet().setCurrentHpMp(st.getPlayer().getPet().getMaxHp(), st.getPlayer().getPet().getMaxMp()) return "buff.htm" st.setState(COMPLETED) #Full buff mage 1p if event == "122": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Full_buff_m1_prise) SkillTable.getInstance().getInfo(1085,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1059,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1078,6).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1048,6).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1303,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) st.getPlayer().getPet().setCurrentHpMp(st.getPlayer().getPet().getMaxHp(), st.getPlayer().getPet().getMaxMp()) return "buff.htm" st.setState(COMPLETED) #All Song if event == "130": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,all_song_prise) SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(270,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(265,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(306,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(308,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(305,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(363,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(349,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(364,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) st.getPlayer().getPet().setCurrentHpMp(st.getPlayer().getPet().getMaxHp(), st.getPlayer().getPet().getMaxMp()) return "all_song.htm" st.setState(COMPLETED) #All dance if event == "131": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,all_dance_prise) SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(277,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(272,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(273,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(276,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(309,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(311,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(307,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(310,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(365,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) st.getPlayer().getPet().setCurrentHpMp(st.getPlayer().getPet().getMaxHp(), st.getPlayer().getPet().getMaxMp()) return "all_song.htm" st.setState(COMPLETED) #Cancel if event == "666": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.getPlayer().getPet().stopAllEffects() return "cancel.htm" st.setState(COMPLETED) #Restore if event == "665": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.getPlayer().getPet().setCurrentHpMp(st.getPlayer().getPet().getMaxHp(), st.getPlayer().getPet().getMaxMp()) st.getPlayer().getPet().setCurrentCp(st.getPlayer().getPet().getMaxCp()) return "cancel.htm" st.setState(COMPLETED) if event == "2": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1068,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack.htm" st.setState(COMPLETED) if event == "3": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_defence.htm" st.setState(COMPLETED) if event == "4": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1085,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack2.htm" st.setState(COMPLETED) if event == "5": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1078,6).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_defence.htm" st.setState(COMPLETED) if event == "6": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1073,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_support.htm" st.setState(COMPLETED) if event == "7": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_support.htm" st.setState(COMPLETED) if event == "8": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1077,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack.htm" st.setState(COMPLETED) if event == "9": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1043,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack2.htm" st.setState(COMPLETED) if event == "10": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1035,4).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_defence.htm" st.setState(COMPLETED) if event == "11": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1191,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_resist2.htm" st.setState(COMPLETED) if event == "12": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1062,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack.htm" st.setState(COMPLETED) if event == "13": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1044,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_support.htm" st.setState(COMPLETED) if event == "14": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1243,6).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_defence.htm" st.setState(COMPLETED) if event == "15": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1242,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack.htm" st.setState(COMPLETED) if event == "16": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1240,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack.htm" st.setState(COMPLETED) if event == "17": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1032,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_resist.htm" st.setState(COMPLETED) if event == "18": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1045,6).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_support.htm" st.setState(COMPLETED) if event == "19": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1048,6).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_support.htm" st.setState(COMPLETED) if event == "20": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1086,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack.htm" st.setState(COMPLETED) if event == "21": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1036,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_defence.htm" st.setState(COMPLETED) if event == "22": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1388,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack.htm" st.setState(COMPLETED) if event == "23": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_defence.htm" st.setState(COMPLETED) if event == "24": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1392,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_resist.htm" st.setState(COMPLETED) if event == "25": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1182,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_resist2.htm" st.setState(COMPLETED) if event == "26": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1189,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_resist2.htm" st.setState(COMPLETED) if event == "27": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1393,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_resist.htm" st.setState(COMPLETED) if event == "28": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1033,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_resist2.htm" st.setState(COMPLETED) if event == "29": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1352,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_resist.htm" st.setState(COMPLETED) if event == "30": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Prophecy_prise) SkillTable.getInstance().getInfo(1356,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack2.htm" st.setState(COMPLETED) if event == "31": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_defence.htm" st.setState(COMPLETED) if event == "32": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1257,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_support.htm" st.setState(COMPLETED) if event == "33": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1259,4).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_resist.htm" st.setState(COMPLETED) if event == "34": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1304,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_defence.htm" st.setState(COMPLETED) if event == "35": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_support.htm" st.setState(COMPLETED) if event == "36": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1303,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack2.htm" st.setState(COMPLETED) if event == "37": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1354,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_resist.htm" st.setState(COMPLETED) if event == "38": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1353,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_resist.htm" st.setState(COMPLETED) if event == "39": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Prophecy_prise) SkillTable.getInstance().getInfo(1355,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack2.htm" st.setState(COMPLETED) if event == "40": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1059,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack2.htm" st.setState(COMPLETED) if event == "41": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1268,4).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_support.htm" st.setState(COMPLETED) if event == "42": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Prophecy_prise) SkillTable.getInstance().getInfo(1357,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack2.htm" st.setState(COMPLETED) #CHANTS if event == "43": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1006,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer.htm" st.setState(COMPLETED) if event == "44": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1009,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer.htm" st.setState(COMPLETED) if event == "45": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1007,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer.htm" st.setState(COMPLETED) if event == "47": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1002,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer.htm" st.setState(COMPLETED) if event == "60": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1252,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer.htm" st.setState(COMPLETED) if event == "61": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1253,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer.htm" st.setState(COMPLETED) if event == "62": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1309,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer.htm" st.setState(COMPLETED) if event == "63": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1251,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer2.htm" st.setState(COMPLETED) if event == "64": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1308,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer2.htm" st.setState(COMPLETED) if event == "65": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1391,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer2.htm" st.setState(COMPLETED) if event == "66": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1310,4).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer2.htm" st.setState(COMPLETED) if event == "67": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1390,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer2.htm" st.setState(COMPLETED) if event == "68": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1284,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer2.htm" st.setState(COMPLETED) if event == "69": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1362,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer2.htm" st.setState(COMPLETED) if event == "70": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Prophecy_prise) SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer3.htm" st.setState(COMPLETED) if event == "71": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Prophecy_prise) SkillTable.getInstance().getInfo(1413,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer3.htm" st.setState(COMPLETED) #Overlord if event == "48": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1003,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_overlord.htm" st.setState(COMPLETED) if event == "49": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1005,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_overlord.htm" st.setState(COMPLETED) if event == "50": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1008,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_overlord.htm" st.setState(COMPLETED) if event == "51": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1260,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_overlord.htm" st.setState(COMPLETED) if event == "52": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1004,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_overlord.htm" st.setState(COMPLETED) if event == "53": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1250,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_overlord.htm" st.setState(COMPLETED) if event == "54": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1261,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_overlord.htm" st.setState(COMPLETED) if event == "55": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1249,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_overlord2.htm" st.setState(COMPLETED) if event == "56": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1282,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_overlord2.htm" st.setState(COMPLETED) if event == "57": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1364,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_overlord2.htm" st.setState(COMPLETED) if event == "58": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1365,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_overlord2.htm" st.setState(COMPLETED) if event == "59": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Prophecy_prise) SkillTable.getInstance().getInfo(1414,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_overlord2.htm" st.setState(COMPLETED) #Songs if event == "72": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song.htm" st.setState(COMPLETED) if event == "73": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(270,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song.htm" st.setState(COMPLETED) if event == "74": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song.htm" st.setState(COMPLETED) if event == "75": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song.htm" st.setState(COMPLETED) if event == "76": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(265,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song.htm" st.setState(COMPLETED) if event == "77": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song.htm" st.setState(COMPLETED) if event == "78": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song.htm" st.setState(COMPLETED) if event == "79": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(306,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song2.htm" st.setState(COMPLETED) if event == "80": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song2.htm" st.setState(COMPLETED) if event == "81": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(308,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song2.htm" st.setState(COMPLETED) if event == "82": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(305,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song2.htm" st.setState(COMPLETED) if event == "83": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(363,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song2.htm" st.setState(COMPLETED) if event == "84": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(349,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song2.htm" st.setState(COMPLETED) if event == "85": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(364,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song2.htm" st.setState(COMPLETED) if event == "86": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Dance_prise) SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_dance.htm" st.setState(COMPLETED) if event == "87": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Dance_prise) SkillTable.getInstance().getInfo(277,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_dance.htm" st.setState(COMPLETED) if event == "88": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Dance_prise) SkillTable.getInstance().getInfo(272,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_dance.htm" st.setState(COMPLETED) if event == "89": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Dance_prise) SkillTable.getInstance().getInfo(273,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_dance.htm" st.setState(COMPLETED) if event == "90": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Dance_prise) SkillTable.getInstance().getInfo(276,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_dance.htm" st.setState(COMPLETED) if event == "91": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Dance_prise) SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_dance.htm" st.setState(COMPLETED) if event == "92": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Dance_prise) SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_dance.htm" st.setState(COMPLETED) if event == "93": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Dance_prise) SkillTable.getInstance().getInfo(309,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_dance2.htm" st.setState(COMPLETED) if event == "94": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Dance_prise) SkillTable.getInstance().getInfo(311,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_dance2.htm" st.setState(COMPLETED) if event == "95": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Dance_prise) SkillTable.getInstance().getInfo(307,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_dance2.htm" st.setState(COMPLETED) if event == "96": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Dance_prise) SkillTable.getInstance().getInfo(310,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_dance2.htm" st.setState(COMPLETED) if event == "97": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Dance_prise) SkillTable.getInstance().getInfo(365,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_dance2.htm" st.setState(COMPLETED) #Noble if event == "98": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Noble_prise) SkillTable.getInstance().getInfo(396,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_noble.htm" st.setState(COMPLETED) if event == "99": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Noble_prise) SkillTable.getInstance().getInfo(395,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_noble.htm" st.setState(COMPLETED) if event == "101": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Noble_prise) SkillTable.getInstance().getInfo(1325,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_noble.htm" st.setState(COMPLETED) if event == "102": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Noble_prise) SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_noble.htm" st.setState(COMPLETED) if event == "103": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Summon_prise) SkillTable.getInstance().getInfo(4702,13).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_summon.htm" st.setState(COMPLETED) if event == "104": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Summon_prise) SkillTable.getInstance().getInfo(4703,13).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_summon.htm" st.setState(COMPLETED) if event == "105": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Summon_prise) SkillTable.getInstance().getInfo(4699,13).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_summon.htm" st.setState(COMPLETED) if event == "106": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Summon_prise) SkillTable.getInstance().getInfo(4700,13).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_summon.htm" st.setState(COMPLETED) if htmltext != event: st.setState(COMPLETED) st.exitQuest(1) return htmltext def onTalk (self,npc,player): st = player.getQuestState(qn) htmltext = "<html><head><body>I have nothing to say to you</body></html>" return InitialHtml QUEST = Quest(QuestId,qn,QuestDesc) QUEST.addStartNpc(916) QUEST.addTalkId(916) [/spoler] Вся переделка была в изменение импортов и удалении строчки 1311 st.setState(STARTED) т.к из-за этого высыпалась ошибка в ГС [20.09.18 08:54:43] C:\x100\game\data\scripts\custom\916_pet_buffer\__init__.py Traceback (innermost last): File "__init__.py", line 1312, in onTalk NameError: STARTED at org.python.core.Py.NameError(Unknown Source) at org.python.core.PyFrame.getglobal(Unknown Source) at org.python.pycode.serializable._pyx1537422524820.onTalk$4(__init__.py:1312) at org.python.pycode.serializable._pyx1537422524820.call_function(__init__.py) at org.python.core.PyTableCode.call(Unknown Source) at org.python.core.PyTableCode.call(Unknown Source) at org.python.core.PyTableCode.call(Unknown Source) at org.python.core.PyFunction.__call__(Unknown Source) at org.python.core.PyMethod.__call__(Unknown Source) at org.python.core.PyObject.__call__(Unknown Source) at org.python.core.PyObject._jcallexc(Unknown Source) at org.python.core.PyObject._jcall(Unknown Source) at org.python.proxies.main$Quest$14.onTalk(Unknown Source) at ru.catssoftware.gameserver.model.quest.Quest.notifyTalk(Quest.java:501) at ru.catssoftware.gameserver.model.actor.instance.L2NpcInstance.showQuestWindow(L2NpcInstance.java:1602) at ru.catssoftware.gameserver.model.actor.instance.L2NpcInstance.onBypassFeedback(L2NpcInstance.java:1083) at ru.catssoftware.gameserver.network.clientpackets.RequestBypassToServer.runImpl(RequestBypassToServer.java:165) at ru.catssoftware.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:62) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) pet buffer.zip Изменено 20 сентября, 2018 пользователем HolySaint Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
HolySaint 11 Опубликовано 20 сентября, 2018 Все спойлеры в кучу собрало, хотя писал отдельно. Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
FORD 33 Опубликовано 20 сентября, 2018 В загрузках найди nps для люцероподобных. Там есть бафер, у него есть переключение (персонаж\пэт) 1 Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
HolySaint 11 Опубликовано 20 сентября, 2018 19 минут назад, FORD сказал: В загрузках найди nps для люцероподобных. Там есть бафер, у него есть переключение (персонаж\пэт) Переделал как там и все заработало! Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
Jackie 2 Опубликовано 18 декабря, 2018 [WARN 10:59:55]: Server\game\data\scripts\custom\916_pet_buffer\__init__.py Traceback (innermost last): File "__init__.py", line 1313, in onTalk NameError: STARTED at org.python.core.Py.NameError(Unknown Source) at org.python.core.PyFrame.getglobal(Unknown Source) at org.python.pycode.serializable._pyx1545119972003.onTalk$4(__init__.py:1313) at org.python.pycode.serializable._pyx1545119972003.call_function(__init__.py) at org.python.core.PyTableCode.call(Unknown Source) at org.python.core.PyTableCode.call(Unknown Source) at org.python.core.PyTableCode.call(Unknown Source) at org.python.core.PyFunction.__call__(Unknown Source) at org.python.core.PyMethod.__call__(Unknown Source) at org.python.core.PyObject.__call__(Unknown Source) at org.python.core.PyObject._jcallexc(Unknown Source) at org.python.core.PyObject._jcall(Unknown Source) at org.python.proxies.main$Quest$16.onTalk(Unknown Source) at ru.catssoftware.gameserver.model.quest.Quest.notifyTalk(Quest.java:501) at ru.catssoftware.gameserver.model.actor.instance.L2NpcInstance.showQuestWindow(L2NpcInstance.java:1606) at ru.catssoftware.gameserver.model.actor.instance.L2NpcInstance.onBypassFeedback(L2NpcInstance.java:1087) at ru.catssoftware.gameserver.network.clientpackets.RequestBypassToServer.runImpl(RequestBypassToServer.java:172) at ru.catssoftware.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:67) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Help Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
Jackie 2 Опубликовано 30 ноября, 2019 (изменено) В 20.09.2018 в 11:40, HolySaint сказал: Всем привет. Сборка l2jlovely стоит обычный баффер с профилями и всеми баффами и все работает как надо, но хотел поставить на сервер Pet Buffer т.к не знаю как сток переделать что бы еще и пета баффал отдельным профилем. Скачал с шары чей не знаю начал переделывать вызывает начальный диалог и страницу выбора баффов, но вот при выборе этих баффов не чего не происходит в ГС не каких ошибок нет. скрипт (Показать контент) import sys from ru.catssoftware.gameserver.model.actor.instance import L2PcInstance from java.util import Iterator from ru.catssoftware.gameserver.datatables import SkillTable from ru.catssoftware import L2DatabaseFactory from ru.catssoftware.gameserver.model.quest import State from ru.catssoftware.gameserver.model.quest import QuestState from ru.catssoftware.gameserver.model.quest.jython import QuestJython as JQuest qn = "916_pet_buffer" NPC = [40004] min_level = 1 max_level = 90 min_prise = 25000 prise_ID = 57 QuestId = 916 QuestName = "pet_buffer" QuestDesc = "custom" InitialHtml = "buff.htm" buff_prise = 25000 Chant_prise = 25000 song_prise = 25000 Dance_prise = 25000 Hero_prise = 25000 Noble_prise = 25000 Summon_prise = 25000 Prophecy_prise = 25000 Full_buff_f1_prise = 200000 Full_buff_f2_prise = 400000 Full_buff_f3_prise = 600000 Full_buff_m1_prise = 200000 Full_buff_m2_prise = 400000 Full_buff_m3_prise = 600000 all_song_prise = 100000 all_dance_prise = 100000 print "importing custom: 916_pet_buffer OK" class Quest (JQuest) : def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr) def onEvent(self,event,st): htmltext = event count=st.getQuestItemsCount(prise_ID) if count < min_prise : htmltext = "<html><head><body>У вас не достаточно денег.</body></html>" if st.getPlayer().getLevel() < min_level : htmltext = "<html><head><body>У вас слишком маленький уровень.</body></html>" if st.getPlayer().getLevel() < max_level : htmltext = "<html><head><body>У вас слишком высокий уровень.</body></html>" else: st.takeItems(prise_ID,0) st.getPlayer().setTarget(st.getPlayer().getPet()) #Full buff fighter 3p if event == "124": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Full_buff_f3_prise) SkillTable.getInstance().getInfo(1068,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1086,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1077,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1242,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1268,4).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1035,4).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1036,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1045,6).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1388,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(364,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(4699,13).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) st.getPlayer().getPet().setCurrentHpMp(st.getPlayer().getPet().getMaxHp(), st.getPlayer().getPet().getMaxMp()) return "buff.htm" st.setState(COMPLETED) #Full buff fighter 2p if event == "125": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Full_buff_f2_prise) SkillTable.getInstance().getInfo(1068,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1086,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1077,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1242,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1268,4).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1035,4).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1036,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) st.getPlayer().getPet().setCurrentHpMp(st.getPlayer().getPet().getMaxHp(), st.getPlayer().getPet().getMaxMp()) return "buff.htm" st.setState(COMPLETED) #Full buff fighter 1p if event == "126": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Full_buff_f1_prise) SkillTable.getInstance().getInfo(1068,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1086,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1077,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1242,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1268,4).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) st.getPlayer().getPet().setCurrentHpMp(st.getPlayer().getPet().getMaxHp(), st.getPlayer().getPet().getMaxMp()) return "buff.htm" st.setState(COMPLETED) #Full buff mage 3p if event == "120": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Full_buff_m3_prise) SkillTable.getInstance().getInfo(1085,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1059,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1078,6).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1048,6).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1303,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1035,4).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1062,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(273,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(276,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(4703,13).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(349,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(363,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(365,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1413,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1036,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(396,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) st.getPlayer().getPet().setCurrentHpMp(st.getPlayer().getPet().getMaxHp(), st.getPlayer().getPet().getMaxMp()) return "buff.htm" st.setState(COMPLETED) #Full buff mage 2p if event == "121": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Full_buff_m2_prise) SkillTable.getInstance().getInfo(1085,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1059,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1078,6).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1048,6).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1303,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1035,4).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1062,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(273,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(276,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(4703,13).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(349,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) st.getPlayer().getPet().setCurrentHpMp(st.getPlayer().getPet().getMaxHp(), st.getPlayer().getPet().getMaxMp()) return "buff.htm" st.setState(COMPLETED) #Full buff mage 1p if event == "122": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Full_buff_m1_prise) SkillTable.getInstance().getInfo(1085,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1059,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1078,6).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1048,6).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1303,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) st.getPlayer().getPet().setCurrentHpMp(st.getPlayer().getPet().getMaxHp(), st.getPlayer().getPet().getMaxMp()) return "buff.htm" st.setState(COMPLETED) #All Song if event == "130": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,all_song_prise) SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(270,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(265,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(306,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(308,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(305,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(363,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(349,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(364,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) st.getPlayer().getPet().setCurrentHpMp(st.getPlayer().getPet().getMaxHp(), st.getPlayer().getPet().getMaxMp()) return "all_song.htm" st.setState(COMPLETED) #All dance if event == "131": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,all_dance_prise) SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(277,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(272,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(273,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(276,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(309,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(311,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(307,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(310,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) SkillTable.getInstance().getInfo(365,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) st.getPlayer().getPet().setCurrentHpMp(st.getPlayer().getPet().getMaxHp(), st.getPlayer().getPet().getMaxMp()) return "all_song.htm" st.setState(COMPLETED) #Cancel if event == "666": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.getPlayer().getPet().stopAllEffects() return "cancel.htm" st.setState(COMPLETED) #Restore if event == "665": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.getPlayer().getPet().setCurrentHpMp(st.getPlayer().getPet().getMaxHp(), st.getPlayer().getPet().getMaxMp()) st.getPlayer().getPet().setCurrentCp(st.getPlayer().getPet().getMaxCp()) return "cancel.htm" st.setState(COMPLETED) if event == "2": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1068,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack.htm" st.setState(COMPLETED) if event == "3": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1040,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_defence.htm" st.setState(COMPLETED) if event == "4": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1085,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack2.htm" st.setState(COMPLETED) if event == "5": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1078,6).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_defence.htm" st.setState(COMPLETED) if event == "6": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1073,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_support.htm" st.setState(COMPLETED) if event == "7": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1204,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_support.htm" st.setState(COMPLETED) if event == "8": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1077,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack.htm" st.setState(COMPLETED) if event == "9": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1043,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack2.htm" st.setState(COMPLETED) if event == "10": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1035,4).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_defence.htm" st.setState(COMPLETED) if event == "11": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1191,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_resist2.htm" st.setState(COMPLETED) if event == "12": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1062,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack.htm" st.setState(COMPLETED) if event == "13": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1044,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_support.htm" st.setState(COMPLETED) if event == "14": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1243,6).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_defence.htm" st.setState(COMPLETED) if event == "15": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1242,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack.htm" st.setState(COMPLETED) if event == "16": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1240,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack.htm" st.setState(COMPLETED) if event == "17": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1032,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_resist.htm" st.setState(COMPLETED) if event == "18": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1045,6).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_support.htm" st.setState(COMPLETED) if event == "19": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1048,6).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_support.htm" st.setState(COMPLETED) if event == "20": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1086,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack.htm" st.setState(COMPLETED) if event == "21": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1036,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_defence.htm" st.setState(COMPLETED) if event == "22": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1388,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack.htm" st.setState(COMPLETED) if event == "23": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1389,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_defence.htm" st.setState(COMPLETED) if event == "24": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1392,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_resist.htm" st.setState(COMPLETED) if event == "25": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1182,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_resist2.htm" st.setState(COMPLETED) if event == "26": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1189,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_resist2.htm" st.setState(COMPLETED) if event == "27": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1393,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_resist.htm" st.setState(COMPLETED) if event == "28": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1033,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_resist2.htm" st.setState(COMPLETED) if event == "29": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1352,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_resist.htm" st.setState(COMPLETED) if event == "30": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Prophecy_prise) SkillTable.getInstance().getInfo(1356,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack2.htm" st.setState(COMPLETED) if event == "31": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1087,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_defence.htm" st.setState(COMPLETED) if event == "32": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1257,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_support.htm" st.setState(COMPLETED) if event == "33": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1259,4).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_resist.htm" st.setState(COMPLETED) if event == "34": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1304,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_defence.htm" st.setState(COMPLETED) if event == "35": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1397,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_support.htm" st.setState(COMPLETED) if event == "36": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1303,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack2.htm" st.setState(COMPLETED) if event == "37": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1354,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_resist.htm" st.setState(COMPLETED) if event == "38": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1353,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_resist.htm" st.setState(COMPLETED) if event == "39": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Prophecy_prise) SkillTable.getInstance().getInfo(1355,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack2.htm" st.setState(COMPLETED) if event == "40": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1059,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack2.htm" st.setState(COMPLETED) if event == "41": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,buff_prise) SkillTable.getInstance().getInfo(1268,4).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_support.htm" st.setState(COMPLETED) if event == "42": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Prophecy_prise) SkillTable.getInstance().getInfo(1357,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "buff_attack2.htm" st.setState(COMPLETED) #CHANTS if event == "43": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1006,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer.htm" st.setState(COMPLETED) if event == "44": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1009,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer.htm" st.setState(COMPLETED) if event == "45": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1007,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer.htm" st.setState(COMPLETED) if event == "47": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1002,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer.htm" st.setState(COMPLETED) if event == "60": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1252,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer.htm" st.setState(COMPLETED) if event == "61": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1253,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer.htm" st.setState(COMPLETED) if event == "62": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1309,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer.htm" st.setState(COMPLETED) if event == "63": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1251,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer2.htm" st.setState(COMPLETED) if event == "64": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1308,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer2.htm" st.setState(COMPLETED) if event == "65": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1391,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer2.htm" st.setState(COMPLETED) if event == "66": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1310,4).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer2.htm" st.setState(COMPLETED) if event == "67": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1390,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer2.htm" st.setState(COMPLETED) if event == "68": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1284,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer2.htm" st.setState(COMPLETED) if event == "69": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1362,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer2.htm" st.setState(COMPLETED) if event == "70": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Prophecy_prise) SkillTable.getInstance().getInfo(1363,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer3.htm" st.setState(COMPLETED) if event == "71": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Prophecy_prise) SkillTable.getInstance().getInfo(1413,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_warcryer3.htm" st.setState(COMPLETED) #Overlord if event == "48": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1003,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_overlord.htm" st.setState(COMPLETED) if event == "49": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1005,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_overlord.htm" st.setState(COMPLETED) if event == "50": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1008,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_overlord.htm" st.setState(COMPLETED) if event == "51": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1260,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_overlord.htm" st.setState(COMPLETED) if event == "52": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1004,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_overlord.htm" st.setState(COMPLETED) if event == "53": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1250,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_overlord.htm" st.setState(COMPLETED) if event == "54": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1261,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_overlord.htm" st.setState(COMPLETED) if event == "55": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1249,3).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_overlord2.htm" st.setState(COMPLETED) if event == "56": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1282,2).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_overlord2.htm" st.setState(COMPLETED) if event == "57": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1364,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_overlord2.htm" st.setState(COMPLETED) if event == "58": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Chant_prise) SkillTable.getInstance().getInfo(1365,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_overlord2.htm" st.setState(COMPLETED) if event == "59": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Prophecy_prise) SkillTable.getInstance().getInfo(1414,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "chant_overlord2.htm" st.setState(COMPLETED) #Songs if event == "72": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(267,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song.htm" st.setState(COMPLETED) if event == "73": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(270,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song.htm" st.setState(COMPLETED) if event == "74": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(268,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song.htm" st.setState(COMPLETED) if event == "75": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(269,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song.htm" st.setState(COMPLETED) if event == "76": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(265,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song.htm" st.setState(COMPLETED) if event == "77": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(264,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song.htm" st.setState(COMPLETED) if event == "78": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(266,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song.htm" st.setState(COMPLETED) if event == "79": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(306,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song2.htm" st.setState(COMPLETED) if event == "80": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(304,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song2.htm" st.setState(COMPLETED) if event == "81": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(308,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song2.htm" st.setState(COMPLETED) if event == "82": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(305,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song2.htm" st.setState(COMPLETED) if event == "83": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(363,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song2.htm" st.setState(COMPLETED) if event == "84": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(349,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song2.htm" st.setState(COMPLETED) if event == "85": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,song_prise) SkillTable.getInstance().getInfo(364,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_song2.htm" st.setState(COMPLETED) if event == "86": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Dance_prise) SkillTable.getInstance().getInfo(274,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_dance.htm" st.setState(COMPLETED) if event == "87": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Dance_prise) SkillTable.getInstance().getInfo(277,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_dance.htm" st.setState(COMPLETED) if event == "88": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Dance_prise) SkillTable.getInstance().getInfo(272,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_dance.htm" st.setState(COMPLETED) if event == "89": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Dance_prise) SkillTable.getInstance().getInfo(273,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_dance.htm" st.setState(COMPLETED) if event == "90": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Dance_prise) SkillTable.getInstance().getInfo(276,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_dance.htm" st.setState(COMPLETED) if event == "91": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Dance_prise) SkillTable.getInstance().getInfo(271,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_dance.htm" st.setState(COMPLETED) if event == "92": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Dance_prise) SkillTable.getInstance().getInfo(275,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_dance.htm" st.setState(COMPLETED) if event == "93": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Dance_prise) SkillTable.getInstance().getInfo(309,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_dance2.htm" st.setState(COMPLETED) if event == "94": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Dance_prise) SkillTable.getInstance().getInfo(311,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_dance2.htm" st.setState(COMPLETED) if event == "95": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Dance_prise) SkillTable.getInstance().getInfo(307,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_dance2.htm" st.setState(COMPLETED) if event == "96": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Dance_prise) SkillTable.getInstance().getInfo(310,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_dance2.htm" st.setState(COMPLETED) if event == "97": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Dance_prise) SkillTable.getInstance().getInfo(365,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_dance2.htm" st.setState(COMPLETED) #Noble if event == "98": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Noble_prise) SkillTable.getInstance().getInfo(396,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_noble.htm" st.setState(COMPLETED) if event == "99": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Noble_prise) SkillTable.getInstance().getInfo(395,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_noble.htm" st.setState(COMPLETED) if event == "101": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Noble_prise) SkillTable.getInstance().getInfo(1325,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_noble.htm" st.setState(COMPLETED) if event == "102": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Noble_prise) SkillTable.getInstance().getInfo(1323,1).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_noble.htm" st.setState(COMPLETED) if event == "103": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Summon_prise) SkillTable.getInstance().getInfo(4702,13).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_summon.htm" st.setState(COMPLETED) if event == "104": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Summon_prise) SkillTable.getInstance().getInfo(4703,13).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_summon.htm" st.setState(COMPLETED) if event == "105": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Summon_prise) SkillTable.getInstance().getInfo(4699,13).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_summon.htm" st.setState(COMPLETED) if event == "106": if st.getPlayer().getPet() == None : return "no_pet.htm" st.setState(COMPLETED) else: st.takeItems(prise_ID,Summon_prise) SkillTable.getInstance().getInfo(4700,13).getEffects(st.getPlayer().getPet(),st.getPlayer().getPet()) return "song_summon.htm" st.setState(COMPLETED) if htmltext != event: st.setState(COMPLETED) st.exitQuest(1) return htmltext def onTalk (self,npc,player): st = player.getQuestState(qn) htmltext = "<html><head><body>I have nothing to say to you</body></html>" return InitialHtml QUEST = Quest(QuestId,qn,QuestDesc) QUEST.addStartNpc(916) QUEST.addTalkId(916) [/spoler] Вся переделка была в изменение импортов и удалении строчки 1311 st.setState(STARTED) т.к из-за этого высыпалась ошибка в ГС ошибка (Показать контент) [20.09.18 08:54:43] C:\x100\game\data\scripts\custom\916_pet_buffer\__init__.py Traceback (innermost last): File "__init__.py", line 1312, in onTalk NameError: STARTED at org.python.core.Py.NameError(Unknown Source) at org.python.core.PyFrame.getglobal(Unknown Source) at org.python.pycode.serializable._pyx1537422524820.onTalk$4(__init__.py:1312) at org.python.pycode.serializable._pyx1537422524820.call_function(__init__.py) at org.python.core.PyTableCode.call(Unknown Source) at org.python.core.PyTableCode.call(Unknown Source) at org.python.core.PyTableCode.call(Unknown Source) at org.python.core.PyFunction.__call__(Unknown Source) at org.python.core.PyMethod.__call__(Unknown Source) at org.python.core.PyObject.__call__(Unknown Source) at org.python.core.PyObject._jcallexc(Unknown Source) at org.python.core.PyObject._jcall(Unknown Source) at org.python.proxies.main$Quest$14.onTalk(Unknown Source) at ru.catssoftware.gameserver.model.quest.Quest.notifyTalk(Quest.java:501) at ru.catssoftware.gameserver.model.actor.instance.L2NpcInstance.showQuestWindow(L2NpcInstance.java:1602) at ru.catssoftware.gameserver.model.actor.instance.L2NpcInstance.onBypassFeedback(L2NpcInstance.java:1083) at ru.catssoftware.gameserver.network.clientpackets.RequestBypassToServer.runImpl(RequestBypassToServer.java:165) at ru.catssoftware.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:62) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) pet buffer.zip такая же проблема , подскажите как быть:? Год прошел, никто так и не ответил. Изменено 30 ноября, 2019 пользователем Jackie Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
Jackie 2 Опубликовано 19 мая, 2020 В 30.11.2019 в 17:49, Jackie сказал: такая же проблема , подскажите как быть:? Год прошел, никто так и не ответил. Need help! Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
Jackie 2 Опубликовано 5 июня, 2020 (изменено) проблема актуальна. Изменено 5 июня, 2020 пользователем Jackie Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты