|
@@ -17,11 +17,14 @@ MARK_OF_WARSPIRIT_ID = 2879
|
|
|
MARK_OF_GLORY_ID = 3203
|
|
|
MARK_OF_CHAMPION_ID = 3276
|
|
|
MARK_OF_LORD_ID = 3390
|
|
|
-HIGH_PREFECT_PENATUS = 7513
|
|
|
-HIGH_PREFECT_KARIA = 7681
|
|
|
-HIGH_PREFECT_GARVARENTZ = 7704
|
|
|
-HIGH_PREFECT_LADANZA = 7865
|
|
|
-HIGH_PREFECT_TUSHKU = 7913
|
|
|
+HIGH_PREFECT_PENATUS = 30513
|
|
|
+HIGH_PREFECT_KARIA = 30681
|
|
|
+HIGH_PREFECT_GARVARENTZ = 30704
|
|
|
+HIGH_PREFECT_LADANZA = 30865
|
|
|
+HIGH_PREFECT_TUSHKU = 30913
|
|
|
+HIGH_PREFECT_AKLAN = 31288
|
|
|
+HIGH_PREFECT_LAMBAC = 31326
|
|
|
+
|
|
|
|
|
|
class Quest (JQuest) :
|
|
|
|
|
@@ -35,61 +38,61 @@ class Quest (JQuest) :
|
|
|
ClassId = st.getPlayer().getClassId()
|
|
|
Level = st.getPlayer().getLevel()
|
|
|
|
|
|
- if event == "7513-01.htm":
|
|
|
- return "7513-01.htm"
|
|
|
+ if event == "30513-01.htm":
|
|
|
+ return "30513-01.htm"
|
|
|
|
|
|
- if event == "7513-02.htm":
|
|
|
- return "7513-02.htm"
|
|
|
+ if event == "30513-02.htm":
|
|
|
+ return "30513-02.htm"
|
|
|
|
|
|
- if event == "7513-03.htm":
|
|
|
- return "7513-03.htm"
|
|
|
+ if event == "30513-03.htm":
|
|
|
+ return "30513-03.htm"
|
|
|
|
|
|
- if event == "7513-04.htm":
|
|
|
- return "7513-04.htm"
|
|
|
+ if event == "30513-04.htm":
|
|
|
+ return "30513-04.htm"
|
|
|
|
|
|
- if event == "7513-05.htm":
|
|
|
- return "7513-05.htm"
|
|
|
+ if event == "30513-05.htm":
|
|
|
+ return "30513-05.htm"
|
|
|
|
|
|
- if event == "7513-06.htm":
|
|
|
- return "7513-06.htm"
|
|
|
+ if event == "30513-06.htm":
|
|
|
+ return "30513-06.htm"
|
|
|
|
|
|
- if event == "7513-07.htm":
|
|
|
- return "7513-07.htm"
|
|
|
+ if event == "30513-07.htm":
|
|
|
+ return "30513-07.htm"
|
|
|
|
|
|
- if event == "7513-08.htm":
|
|
|
- return "7513-08.htm"
|
|
|
+ if event == "30513-08.htm":
|
|
|
+ return "30513-08.htm"
|
|
|
|
|
|
- if event == "7513-09.htm":
|
|
|
- return "7513-09.htm"
|
|
|
+ if event == "30513-09.htm":
|
|
|
+ return "30513-09.htm"
|
|
|
|
|
|
- if event == "7513-10.htm":
|
|
|
- return "7513-10.htm"
|
|
|
+ if event == "30513-10.htm":
|
|
|
+ return "30513-10.htm"
|
|
|
|
|
|
- if event == "7513-11.htm":
|
|
|
- return "7513-11.htm"
|
|
|
+ if event == "30513-11.htm":
|
|
|
+ return "30513-11.htm"
|
|
|
|
|
|
- if event == "7513-12.htm":
|
|
|
- return "7513-12.htm"
|
|
|
+ if event == "30513-12.htm":
|
|
|
+ return "30513-12.htm"
|
|
|
|
|
|
- if event == "7513-13.htm":
|
|
|
- return "7513-13.htm"
|
|
|
+ if event == "30513-13.htm":
|
|
|
+ return "30513-13.htm"
|
|
|
|
|
|
- if event == "7513-14.htm":
|
|
|
- return "7513-14.htm"
|
|
|
+ if event == "30513-14.htm":
|
|
|
+ return "30513-14.htm"
|
|
|
|
|
|
- if event == "7513-15.htm":
|
|
|
- return "7513-15.htm"
|
|
|
+ if event == "30513-15.htm":
|
|
|
+ return "30513-15.htm"
|
|
|
|
|
|
if event == "class_change_48":
|
|
|
if ClassId in [ClassId.orcMonk]:
|
|
|
if Level <= 39:
|
|
|
if st.getQuestItemsCount(MARK_OF_CHALLENGER_ID) == 0 or st.getQuestItemsCount(MARK_OF_GLORY_ID) == 0 or st.getQuestItemsCount(MARK_OF_DUELIST_ID) == 0:
|
|
|
- htmltext = "7513-16.htm"
|
|
|
+ htmltext = "30513-16.htm"
|
|
|
else:
|
|
|
- htmltext = "7513-17.htm"
|
|
|
+ htmltext = "30513-17.htm"
|
|
|
elif Level >= 40:
|
|
|
if st.getQuestItemsCount(MARK_OF_CHALLENGER_ID) == 0 or st.getQuestItemsCount(MARK_OF_GLORY_ID) == 0 or st.getQuestItemsCount(MARK_OF_DUELIST_ID) == 0:
|
|
|
- htmltext = "7513-18.htm"
|
|
|
+ htmltext = "30513-18.htm"
|
|
|
else:
|
|
|
st.takeItems(MARK_OF_CHALLENGER_ID,1)
|
|
|
st.takeItems(MARK_OF_GLORY_ID,1)
|
|
@@ -98,18 +101,18 @@ class Quest (JQuest) :
|
|
|
st.player.setBaseClass(48)
|
|
|
st.player.broadcastUserInfo()
|
|
|
st.playSound("ItemSound.quest_fanfare_2")
|
|
|
- htmltext = "7513-19.htm"
|
|
|
+ htmltext = "30513-19.htm"
|
|
|
|
|
|
if event == "class_change_46":
|
|
|
if ClassId in [ClassId.orcRaider]:
|
|
|
if Level <= 39:
|
|
|
if st.getQuestItemsCount(MARK_OF_CHALLENGER_ID) == 0 or st.getQuestItemsCount(MARK_OF_GLORY_ID) == 0 or st.getQuestItemsCount(MARK_OF_CHAMPION_ID) == 0:
|
|
|
- htmltext = "7513-20.htm"
|
|
|
+ htmltext = "30513-20.htm"
|
|
|
else:
|
|
|
- htmltext = "7513-21.htm"
|
|
|
+ htmltext = "30513-21.htm"
|
|
|
elif Level >= 40:
|
|
|
if st.getQuestItemsCount(MARK_OF_CHALLENGER_ID) == 0 or st.getQuestItemsCount(MARK_OF_GLORY_ID) == 0 or st.getQuestItemsCount(MARK_OF_CHAMPION_ID) == 0:
|
|
|
- htmltext = "7513-22.htm"
|
|
|
+ htmltext = "30513-22.htm"
|
|
|
else:
|
|
|
st.takeItems(MARK_OF_CHALLENGER_ID,1)
|
|
|
st.takeItems(MARK_OF_GLORY_ID,1)
|
|
@@ -118,18 +121,18 @@ class Quest (JQuest) :
|
|
|
st.player.setBaseClass(46)
|
|
|
st.player.broadcastUserInfo()
|
|
|
st.playSound("ItemSound.quest_fanfare_2")
|
|
|
- htmltext = "7513-23.htm"
|
|
|
+ htmltext = "30513-23.htm"
|
|
|
|
|
|
if event == "class_change_51":
|
|
|
if ClassId in [ClassId.orcShaman]:
|
|
|
if Level <= 39:
|
|
|
if st.getQuestItemsCount(MARK_OF_PILGRIM_ID) == 0 or st.getQuestItemsCount(MARK_OF_GLORY_ID) == 0 or st.getQuestItemsCount(MARK_OF_LORD_ID) == 0:
|
|
|
- htmltext = "7513-24.htm"
|
|
|
+ htmltext = "30513-24.htm"
|
|
|
else:
|
|
|
- htmltext = "7513-25.htm"
|
|
|
+ htmltext = "30513-25.htm"
|
|
|
elif Level >= 40:
|
|
|
if st.getQuestItemsCount(MARK_OF_PILGRIM_ID) == 0 or st.getQuestItemsCount(MARK_OF_GLORY_ID) == 0 or st.getQuestItemsCount(MARK_OF_LORD_ID) == 0:
|
|
|
- htmltext = "7513-26.htm"
|
|
|
+ htmltext = "30513-26.htm"
|
|
|
else:
|
|
|
st.takeItems(MARK_OF_PILGRIM_ID,1)
|
|
|
st.takeItems(MARK_OF_GLORY_ID,1)
|
|
@@ -138,18 +141,18 @@ class Quest (JQuest) :
|
|
|
st.player.setBaseClass(51)
|
|
|
st.player.broadcastUserInfo()
|
|
|
st.playSound("ItemSound.quest_fanfare_2")
|
|
|
- htmltext = "7513-27.htm"
|
|
|
+ htmltext = "30513-27.htm"
|
|
|
|
|
|
if event == "class_change_52":
|
|
|
if ClassId in [ClassId.orcShaman]:
|
|
|
if Level <= 39:
|
|
|
if st.getQuestItemsCount(MARK_OF_PILGRIM_ID) == 0 or st.getQuestItemsCount(MARK_OF_GLORY_ID) == 0 or st.getQuestItemsCount(MARK_OF_WARSPIRIT_ID) == 0:
|
|
|
- htmltext = "7513-28.htm"
|
|
|
+ htmltext = "30513-28.htm"
|
|
|
else:
|
|
|
- htmltext = "7513-29.htm"
|
|
|
+ htmltext = "30513-29.htm"
|
|
|
elif Level >= 40:
|
|
|
if st.getQuestItemsCount(MARK_OF_PILGRIM_ID) == 0 or st.getQuestItemsCount(MARK_OF_GLORY_ID) == 0 or st.getQuestItemsCount(MARK_OF_WARSPIRIT_ID) == 0:
|
|
|
- htmltext = "7513-30.htm"
|
|
|
+ htmltext = "30513-30.htm"
|
|
|
else:
|
|
|
st.takeItems(MARK_OF_PILGRIM_ID,1)
|
|
|
st.takeItems(MARK_OF_GLORY_ID,1)
|
|
@@ -158,7 +161,7 @@ class Quest (JQuest) :
|
|
|
st.player.setBaseClass(52)
|
|
|
st.player.broadcastUserInfo()
|
|
|
st.playSound("ItemSound.quest_fanfare_2")
|
|
|
- htmltext = "7513-31.htm"
|
|
|
+ htmltext = "30513-31.htm"
|
|
|
|
|
|
st.setState(COMPLETED)
|
|
|
st.exitQuest(1)
|
|
@@ -172,31 +175,31 @@ class Quest (JQuest) :
|
|
|
ClassId = st.getPlayer().getClassId()
|
|
|
|
|
|
# orcs got accepted
|
|
|
- if npcId == HIGH_PREFECT_PENATUS or HIGH_PREFECT_GARVARENTZ or HIGH_PREFECT_KARIA or HIGH_PREFECT_LADANZA or HIGH_PREFECT_TUSHKU and Race in [Race.orc]:
|
|
|
+ if Race in [Race.orc]:
|
|
|
if ClassId in [ClassId.orcMonk]:
|
|
|
- htmltext = "7513-01.htm"
|
|
|
+ htmltext = "30513-01.htm"
|
|
|
st.setState(STARTED)
|
|
|
return htmltext
|
|
|
elif ClassId in [ClassId.orcRaider]:
|
|
|
- htmltext = "7513-05.htm"
|
|
|
+ htmltext = "30513-05.htm"
|
|
|
st.setState(STARTED)
|
|
|
return htmltext
|
|
|
elif ClassId in [ClassId.orcShaman]:
|
|
|
- htmltext = "7513-09.htm"
|
|
|
+ htmltext = "30513-09.htm"
|
|
|
st.setState(STARTED)
|
|
|
return htmltext
|
|
|
elif ClassId in [ClassId.destroyer, ClassId.tyrant, ClassId.overlord, ClassId.warcryer]:
|
|
|
- htmltext = "7513-32.htm"
|
|
|
+ htmltext = "30513-32.htm"
|
|
|
st.setState(COMPLETED)
|
|
|
st.exitQuest(1)
|
|
|
return htmltext
|
|
|
elif ClassId in [ClassId.orcFighter, ClassId.orcMage]:
|
|
|
- htmltext = "7513-33.htm"
|
|
|
+ htmltext = "30513-33.htm"
|
|
|
st.setState(COMPLETED)
|
|
|
st.exitQuest(1)
|
|
|
return htmltext
|
|
|
else:
|
|
|
- htmltext = "7513-34.htm"
|
|
|
+ htmltext = "30513-34.htm"
|
|
|
st.setState(COMPLETED)
|
|
|
st.exitQuest(1)
|
|
|
return htmltext
|
|
@@ -205,23 +208,27 @@ class Quest (JQuest) :
|
|
|
else:
|
|
|
st.setState(COMPLETED)
|
|
|
st.exitQuest(1)
|
|
|
- return "7513-34.htm"
|
|
|
+ return "30513-34.htm"
|
|
|
|
|
|
-QUEST = Quest(7513,"7513_penatus_occupation_change","village_master")
|
|
|
+QUEST = Quest(30513,"30513_penatus_occupation_change","village_master")
|
|
|
CREATED = State('Start', QUEST)
|
|
|
STARTED = State('Started', QUEST)
|
|
|
COMPLETED = State('Completed', QUEST)
|
|
|
|
|
|
QUEST.setInitialState(CREATED)
|
|
|
|
|
|
-QUEST.addStartNpc(7513)
|
|
|
-QUEST.addStartNpc(7681)
|
|
|
-QUEST.addStartNpc(7704)
|
|
|
-QUEST.addStartNpc(7865)
|
|
|
-QUEST.addStartNpc(7913)
|
|
|
-
|
|
|
-STARTED.addTalkId(7513)
|
|
|
-STARTED.addTalkId(7681)
|
|
|
-STARTED.addTalkId(7704)
|
|
|
-STARTED.addTalkId(7865)
|
|
|
-STARTED.addTalkId(7913)
|
|
|
+QUEST.addStartNpc(30513)
|
|
|
+QUEST.addStartNpc(30681)
|
|
|
+QUEST.addStartNpc(30704)
|
|
|
+QUEST.addStartNpc(30865)
|
|
|
+QUEST.addStartNpc(30913)
|
|
|
+QUEST.addStartNpc(31288)
|
|
|
+QUEST.addStartNpc(31326)
|
|
|
+
|
|
|
+STARTED.addTalkId(30513)
|
|
|
+STARTED.addTalkId(30681)
|
|
|
+STARTED.addTalkId(30704)
|
|
|
+STARTED.addTalkId(30865)
|
|
|
+STARTED.addTalkId(30913)
|
|
|
+STARTED.addTalkId(31288)
|
|
|
+STARTED.addTalkId(31326)
|