Skip to content
Snippets Groups Projects
Commit 00d94d1d authored by Zealar's avatar Zealar
Browse files

BETA: Quest (63) Path Of The Warder from py to Java:

 Patch by: ivantotov
parent c6a568f4
No related branches found
No related tags found
No related merge requests found
Showing
with 51 additions and 244 deletions
...@@ -220,7 +220,6 @@ quests/23_LidiasHeart/__init__.py ...@@ -220,7 +220,6 @@ quests/23_LidiasHeart/__init__.py
quests/25_HidingBehindTheTruth/__init__.py quests/25_HidingBehindTheTruth/__init__.py
quests/60_GoodWorkReward/__init__.py quests/60_GoodWorkReward/__init__.py
quests/61_LawEnforcement/__init__.py quests/61_LawEnforcement/__init__.py
quests/63_PathoftheWarder/__init__.py
quests/64_CertifiedBerserker/__init__.py quests/64_CertifiedBerserker/__init__.py
quests/65_CertifiedSoulBreaker/__init__.py quests/65_CertifiedSoulBreaker/__init__.py
quests/66_CertifiedArbalester/__init__.py quests/66_CertifiedArbalester/__init__.py
......
<html><body>Master Tobias:<br>
I sense a strong aura of powere emanating from you...<br>
<a action="bypass -h Quest 63_PathoftheWarder 30297-03.htm">"What do you mean?"</a>
</body></html>
\ No newline at end of file
<html><body>Master Tobias:<br>
We respect mighty warriors and skilled fighters, not those hyporcrites with their
smooth and oily tongues...<br>
So we respect your race with its courage and strength in battle.<br>
And you yourself are obviously a great and renowned Kamael.<br>
<a action="bypass -h Quest 63_PathoftheWarder 30297-04.htm">"Ah, I see..."</a>
</body></html>
\ No newline at end of file
<html><body>Master Sione:<br>
While you were still training on the Isle of Souls, I was sent to the outer
world to collect information.<br>
Compared to our male counterparts, we female Kamael engage in more subtle and
skillfull combat.<br>
I see that you have gained a bit of combat experience. If you wish to rise to
the next level, come and prove to me that you can control your combat skills.<br>
<a action="bypass -h Quest 63_PathoftheWarder 32195-02.htm">Say that you will take the test to become a Warder.</a>
</body></html>
\ No newline at end of file
# Made by Emperorc
import sys
from com.l2jserver.gameserver.model.quest import State
from com.l2jserver.gameserver.model.quest import QuestState
from com.l2jserver.gameserver.model.quest import Quest as JQuest
qn = "63_PathoftheWarder"
#NPCs
Sione = 32195
Gobie = 32198
Bathis = 30332
Tobias = 30297
#Mobs
Novice = 20782
Patrol = 20053
Lizard = 20919
Tak = 27337
#Items
Order,Chart,Gobie_Rep,Hum_Let,Hum_Rep,DE_Let,DE_Rep,Sione_Rep,Soul_E,Soul_C,Eval = range(9762,9773)
class Quest (JQuest) :
def __init__(self,id,name,descr):
JQuest.__init__(self,id,name,descr)
self.questItemIds = range(9762,9772)
def onEvent (self,event,st) :
htmltext = event
player = st.getPlayer()
if event == "32195-02.htm" :
st.set("cond","1")
st.playSound("ItemSound.quest_accept")
st.setState(State.STARTED)
elif event == "32195-04.htm" :
st.set("cond","2")
st.playSound("ItemSound.quest_middle")
elif event == "32198-02.htm" :
st.set("cond","5")
st.playSound("ItemSound.quest_middle")
st.takeItems(Gobie_Rep,-1)
st.giveItems(Hum_Let,1)
elif event == "30332-01.htm" :
st.giveItems(Hum_Rep,1)
st.takeItems(Hum_Let,-1)
elif event == "30332-03.htm" :
st.set("cond","6")
st.playSound("ItemSound.quest_middle")
elif event == "32198-06.htm" :
st.giveItems(DE_Let,1)
st.set("cond","7")
st.playSound("ItemSound.quest_middle")
elif event == "30297-04.htm" :
st.giveItems(DE_Rep,1)
st.set("cond","8")
st.playSound("ItemSound.quest_middle")
elif event == "32198-09.htm" :
st.giveItems(Sione_Rep,1)
st.set("cond","9")
st.playSound("ItemSound.quest_middle")
elif event == "32198-13.htm" :
st.giveItems(Soul_E,1)
st.set("cond","11")
st.playSound("ItemSound.quest_middle")
return htmltext
def onTalk (self,npc,player):
htmltext = Quest.getNoQuestMsg(player)
st = player.getQuestState(qn)
if not st : return htmltext
npcId = npc.getId()
id = st.getState()
cond = st.getInt("cond")
if id == State.COMPLETED :
if npcId == Gobie:
htmltext = "32198-16.htm"
else:
htmltext = Quest.getAlreadyCompletedMsg(player)
elif npcId == Sione :
if player.getClassId().getId() != 124 or player.getLevel() < 18:
htmltext = "32195-00.htm"
st.exitQuest(1)
elif id == State.CREATED :
htmltext = "32195-01.htm"
elif cond == 1 :
htmltext = "32195-03.htm"
elif cond == 2 :
htmltext = "32195-05.htm"
elif cond == 3 :
htmltext = "32195-06.htm"
st.set("cond","4")
st.playSound("ItemSound.quest_middle")
st.giveItems(Gobie_Rep,1)
st.takeItems(Order,-1)
st.takeItems(Chart,-1)
elif cond >= 4 and cond <9 :
htmltext = "32195-07.htm"
elif cond == 9 :
htmltext = "32195-08.htm"
st.set("cond","10")
st.playSound("ItemSound.quest_middle")
st.takeItems(Sione_Rep,-1)
elif cond == 10 :
htmltext = "32195-09.htm"
elif npcId == Gobie :
if cond == 4 :
htmltext = "32198-01.htm"
elif cond == 5 :
htmltext = "32198-03.htm"
elif cond == 6 :
if st.getQuestItemsCount(Hum_Rep) == 1:
st.takeItems(Hum_Rep,-1)
htmltext = "32198-04.htm"
else:
htmltext = "32198-05.htm"
elif cond == 7 :
htmltext = "32198-07.htm"
elif cond == 8 :
if st.getQuestItemsCount(DE_Let) == 1:
htmltext = "32198-08.htm"
st.takeItems(DE_Rep,-1)
else:
htmltext = "32198-09.htm"
st.giveItems(Sione_Rep,1)
st.set("cond","9")
st.playSound("ItemSound.quest_middle")
elif cond == 9 :
htmltext = "32198-10.htm"
elif cond == 10 :
htmltext = "32198-11.htm"
elif cond == 11 :
htmltext = "32198-14.htm"
elif cond == 12 :
htmltext = "32198-15.htm"
st.takeItems(Soul_C,-1)
isFinished = st.getGlobalQuestVar("1ClassQuestFinished")
if isFinished == "" :
st.addExpAndSp(160267,2967)
st.giveItems(57, 163800)
st.giveItems(Eval,1)
st.playSound("ItemSound.quest_finish")
st.exitQuest(False)
st.saveGlobalQuestVar("1ClassQuestFinished","1")
st.unset("cond")
elif npcId == Bathis :
if cond == 5 :
if st.getQuestItemsCount(Hum_Rep) == 1:
htmltext = "30332-02.htm"
else:
htmltext = "30332-00.htm"
elif cond > 5 :
htmltext = "30332-04.htm"
elif npcId == Tobias :
if cond == 7 :
if st.getQuestItemsCount(DE_Let) == 1:
htmltext = "30297-01.htm"
st.takeItems(DE_Let,-1)
else:
htmltext = "30297-04.htm"
st.giveItems(DE_Rep,1)
st.set("cond","8")
st.playSound("ItemSound.quest_middle")
elif cond == 8 :
htmltext = "30297-05.htm"
return htmltext
def onKill(self,npc,player,isPet):
st = player.getQuestState(qn)
if not st : return
if st.getState() != State.STARTED : return
npcId = npc.getId()
cond = st.getInt("cond")
if npcId == Novice :
if st.getQuestItemsCount(Order) < 10 and cond == 2 :
st.giveItems(Order,1)
if st.getQuestItemsCount(Order) == 10 :
if st.getQuestItemsCount(Chart) == 5 :
st.playSound("ItemSound.quest_middle")
st.set("cond","3")
else:
st.playSound("ItemSound.quest_itemget")
elif npcId == Patrol :
if st.getQuestItemsCount(Chart) < 5 and cond == 2 :
st.giveItems(Chart,1)
if st.getQuestItemsCount(Chart) == 5 :
if st.getQuestItemsCount(Order) == 10 :
st.playSound("ItemSound.quest_middle")
st.set("cond","3")
else:
st.playSound("ItemSound.quest_itemget")
elif npcId == Lizard :
if not st.getQuestItemsCount(Soul_C) and self.getRandom(10) < 2 and cond == 11 :
npc = st.addSpawn(Tak,180000)
elif npcId == Tak :
if not st.getQuestItemsCount(Soul_C) and cond == 11 :
st.playSound("ItemSound.quest_middle")
st.takeItems(Soul_E,-1)
st.giveItems(Soul_C,1)
st.set("cond","12")
return
QUEST = Quest(63,qn,"Path of the Warder")
QUEST.addStartNpc(Sione)
QUEST.addTalkId(Sione)
QUEST.addTalkId(Gobie)
QUEST.addTalkId(Bathis)
QUEST.addTalkId(Tobias)
QUEST.addKillId(Novice)
QUEST.addKillId(Patrol)
QUEST.addKillId(Tak)
QUEST.addKillId(Lizard)
\ No newline at end of file
<html><body>Master Tobias:<br> <html><body>Master Tobias:<br>
(Hand over the document.)<br> (Hand over the document.)<br>
Ah, you are the messenger sent by Gobie! Thank you for coming so far, so fast. Ah, you are the messenger sent by Gobie! Thank you for coming so far, so fast. I will make good use of the information you have provided us.<br>
I will make good use of the information you have provided us.<br> <a action="bypass -h Quest Q00063_PathOfTheWarder 30297-03.html">"Oh, yes... I see."</a>
<a action="bypass -h Quest 63_PathoftheWarder 30297-02.htm">"Oh, yes... I see."</a>
</body></html> </body></html>
\ No newline at end of file
<html><body>Master Tobias:<br>
I sense a strong aura of power emanating from you...<br>
<a action="bypass -h Quest Q00063_PathOfTheWarder 30297-04.html">"What do you mean?"</a>
</body></html>
\ No newline at end of file
<html><body>Master Tobias:<br>
I sense a strong aura of power emanating from you...<br>
<a action="bypass -h Quest Q00063_PathOfTheWarder 30297-04.html">"What do you mean?"</a>
</body></html>
\ No newline at end of file
<html><body>Master Tobias:<br>
We respect mighty warriors and skilled fighters, not those hypocrites with their smooth and oily tongues...<br>
So we respect your race with its courage and strength in battle.<br>
And you yourself are obviously a great and renowned Kamael.<br><br>
<a action="bypass -h Quest Q00063_PathOfTheWarder 30297-06.html">"Ah, I see..."</a>
</body></html>
\ No newline at end of file
<html><body>Master Tobias:<br> <html><body>Master Tobias:<br>
Ah... The document is ready.<br> Ah... The document is ready.<br>
Please deliver this to <font color="LEVEL">Gobie.</font> Please deliver this to <font color="LEVEL">Gobie</font>.
</body></html> </body></html>
\ No newline at end of file
<html><body>Master Tobias:<br>
Ah... The document is ready.<br>
Please deliver this to <font color="LEVEL">Gobie</font>.
</body></html>
\ No newline at end of file
<html><body>Bathis:<br> <html><body>Bathis:<br>
Ah! I see that you are a Kamael...<br> Ah! I see that you are a Kamael...<br>
<a action="bypass -h Quest 63_PathoftheWarder 30332-01.htm">What?</a> <a action="bypass -h Quest Q00063_PathOfTheWarder 30332-03.html">What?</a>
</body></html> </body></html>
\ No newline at end of file
<html><body>Bathis:<br> <html><body>Bathis:<br>
Then get over to <font color="LEVEL">Gobie.</font> Hurry up! I wish to have no business with the Kamael. Be on your way!
</body></html> </body></html>
\ No newline at end of file
<html><body>Bathis:<br> <html><body>Bathis:<br>
It's nothing. I was just talking to myself...<br> It's nothing. I was just talking to myself...<br>
.<br>.<br>.<br> .<br>
.<br>
.<br>
Hmm...you must be the Kamael liaison.<br> Hmm...you must be the Kamael liaison.<br>
First time I've seen a female of your race. Hmmm...well, you seem competent enough.<br> First time I've seen a female of your race. Hmm....well, you seem competent enough.<br>
(Deliver the documents.)<br> (Deliver the documents.)<br>
These are the military documents? Excellent. Take these to your superior.<br> These are the military documents? Excellent. Take these to your superior.<br>
(Bathis suddenly throws the documents. You pick them up.)<br> (Bathis suddenly throws the documents. You pick up them up.)<br><br>
<a action="bypass -h Quest 63_PathoftheWarder 30332-02.htm">"Yes, sir..."</a> <a action="bypass -h Quest Q00063_PathOfTheWarder 30332-05.html">"Yes, sir..."</a>
</body></html> </body></html>
\ No newline at end of file
<html><body>Bathis:<br> <html><body>Bathis:<br>
(There is something about him that makes you cringe with distaste.)<br> (There is something about him that makes you cringe with distaste.)<br>
Why tha expression on your face?<br> Why that expression on your face?<br>
Your job is to do what you're told, soldier.<br> Your job is to do what you're told, soldier.<br>
<a action="bypass -h Quest 63_PathoftheWarder 30332-03.htm">It's nothing.</a> <a action="bypass -h Quest Q00063_PathOfTheWarder 30332-06.html">It's nothing.</a>
</body></html> </body></html>
\ No newline at end of file
<html><body>Bathis:<br>
(There is something about him that makes you cringe with distaste.)<br>
Why that expression on your face?<br>
Your job is to do what you're told, soldier.<br>
<a action="bypass -h Quest Q00063_PathOfTheWarder 30332-06.html">It's nothing.</a>
</body></html>
\ No newline at end of file
<html><body>Bathis:<br>
Then get over to <font color="LEVEL">Gobie</font>. Hurry up!
</body></html>
\ No newline at end of file
<html><body>Bathis:<br>
Is there anything else you want to say to me, Kamael?
</body></html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment