Skip to content
Snippets Groups Projects
Commit 9824b1cb authored by ivantotov's avatar ivantotov
Browse files

Retail-like quest Acts Of Evil (171).

Reviewed by: @Zoey76
parent 8fb802cb
No related branches found
No related tags found
No related merge requests found
Showing
with 35 additions and 249 deletions
......@@ -214,7 +214,6 @@ quests/60_GoodWorkReward/__init__.py
quests/65_CertifiedSoulBreaker/__init__.py
quests/118_ToLeadAndBeLed/__init__.py
quests/123_TheLeaderAndTheFollower/__init__.py
quests/171_ActsOfEvil/__init__.py
quests/178_IconicTrinity/__init__.py
quests/227_TestOfReformer/__init__.py
quests/230_TestOfSummoner/__init__.py
......
<html><body>Guard Alvah:<br>I just received a message from Trader Arodin detailing the success of your mission! He asked me to extend his gratitude to you for your efforts. Good job!<br>Unfortunately, now we have another, even more dangerous problem! Word has come that the ol mahums are planning an all-out attack on Gludin Village! Sir Klaus Jasper discounts the danger of this, but...<br>
<a action="bypass -h Quest 171_ActsOfEvil 30381-04.htm">"It appears that the Turek orcs have joined forces with the ol mahums."</a></body></html>
\ No newline at end of file
<html><body>Guard Alvah:<br>What's that? Ol mahums in the Orc Barracks...? Certainly this proves they are planning an attack! This is most distressing!<br>
... I fear this still won't be enough to persuade Sir Klaus Vasper. We must try to get more information from the patrols that were sent to spy on the ol mahums... They were last known to be hiding from the ol mahums in the<font color="LEVEL"> Ruins of Agony</font>. I fear they may have been killed by the<font color="LEVEL"> Tumran bugbears</font> that roam that desolate place...<br>
Please find out what has become of our patrols. This is of utmost importance! I must know what happened to them!</body></html>
\ No newline at end of file
<html><body>Guard Alvah:<br>
The patrols that we sent to spy on the ol mahums must have gotten some valuable information about them. The last message we got from them said that they were hiding from the ol mahums in the<font color="LEVEL"> Ruins of Agony</font>. I fear that they may have been killed by the<font color="LEVEL"> Tumran bugbears</font> that frequent that desolate place...<br>Please hurry and find out what happened to the patrols!</body></html>
\ No newline at end of file
<html><body>Guard Alvah:<br>
Don't you realize how important this Is? You must find proof of the alliance between Dwarves and ol mahums! Go to the<font color="LEVEL"> Abandoned Camp</font> and check out the<font color="LEVEL"> ol mahum generals</font>. You will find the proof there.</body></html>
\ No newline at end of file
<html><body>Guard Alvah:<br>
Have you found proof of the alliance? What's this? Ol mahum's operation orders? Let me see that... This is unbelievable...! The ol mahums' target is not Gludin Village after all! They intend to seize the Orc Barracks! Those deceitful beasts plan to falsely pledge an alliance with the orcs, send them off to train for the attack on Gludin Village and then seize their unguarded barracks! What treacherous creatures they are!<br>
If the ol mahums are allowed to take the take the western part of Gludin Village and also establish a base in the north, we will be completely cut off!<br>
<a action="bypass -h Quest 171_ActsOfEvil 30381-07.htm">Show him the Weapons Trade Contract.</a></body></html>
\ No newline at end of file
<html><body>Neti:<br>
Please do what you can to clear<font color="LEVEL"> Trader Rolento's</font> name as soon as possible. It Is just appalling that a man of his character could have such scurrilous rumors circulated about him! He would never have supplied weapons to the ol mahums!<br>
Please, go to the<font color="LEVEL"> south entrance of the Wasteland</font> and meet Rolento.</body></html>
\ No newline at end of file
<html><body>Turek Chief Burai:<br>
Go and cut off the heads of the<font color="LEVEL"> ol mahum captains</font>! Bring back at least<font color="LEVEL"> 30</font> of them and I will give you a prize!</body></html>
\ No newline at end of file
# Made by mtrix
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 = "171_ActsOfEvil"
BLADE_MOLD,TYRAS_BILL,RANGERS_REPORT1,RANGERS_REPORT2,RANGERS_REPORT3,RANGERS_REPORT4,\
WEAPON_TRADE_CONTRACT,ATTACK_DIRECTIVES,CERTIFICATE,CARGOBOX,OL_MAHUM_HEAD = range(4239,4250)
ADENA = 57
CHANCE1 = 50
CHANCE11 = 10
CHANCE2 = 100
CHANCE21 = 20
CHANCE22 = 20
CHANCE23 = 20
CHANCE24 = 10
CHANCE25 = 10
CHANCE3 = 50
ALVAH,ARODIN,TYRA,ROLENTO,NETI,BURAI=30381,30207,30420,30437,30425,30617
class Quest (JQuest) :
def __init__(self,id,name,descr):
JQuest.__init__(self,id,name,descr)
self.questItemIds = [RANGERS_REPORT1, RANGERS_REPORT2, RANGERS_REPORT3, RANGERS_REPORT4, OL_MAHUM_HEAD, CARGOBOX, TYRAS_BILL, CERTIFICATE, BLADE_MOLD, WEAPON_TRADE_CONTRACT]
def onAdvEvent (self,event,npc, player) :
htmltext = event
st = self.getQuestState(player, False)
if not st : return
cond = st.getInt("cond")
if st.getState() != State.COMPLETED :
if event == "30381-02.htm" and cond == 0 :
st.setState(State.STARTED)
st.set("cond","1")
st.playSound("ItemSound.quest_accept")
elif event == "30207-02.htm" and cond == 1 :
st.set("cond","2")
elif event == "30381-04.htm" and cond == 4:
st.set("cond","5")
elif event == "30381-07.htm" and cond == 6:
st.set("cond","7")
st.takeItems(WEAPON_TRADE_CONTRACT,-1)
st.playSound("ItemSound.quest_middle")
elif event == "30437-03.htm" and cond == 8:
st.giveItems(CARGOBOX,1)
st.giveItems(CERTIFICATE,1)
st.set("cond","9")
elif event == "30617-04.htm" and cond == 9:
st.takeItems(CERTIFICATE,-1)
st.takeItems(ATTACK_DIRECTIVES,-1)
st.takeItems(CARGOBOX,-1)
st.set("cond","10")
return htmltext
def onTalk (self,npc,player):
htmltext = Quest.getNoQuestMsg(player)
st = self.getQuestState(player, True)
if not st : return htmltext
npcId = npc.getId()
id = st.getState()
level = player.getLevel()
cond = st.getInt("cond")
if npcId==ALVAH :
if id == State.CREATED :
if level > 26:
htmltext = "30381-01.htm"
else :
htmltext = "30381-01a.htm"
st.exitQuest(1)
elif id == State.COMPLETED :
htmltext = Quest.getAlreadyCompletedMsg(player)
elif cond==1 :
htmltext = "30381-02a.htm"
elif cond==4 :
htmltext = "30381-03.htm"
elif cond==5 :
if st.getQuestItemsCount(RANGERS_REPORT1) and st.getQuestItemsCount(RANGERS_REPORT2) and st.getQuestItemsCount(RANGERS_REPORT3) and st.getQuestItemsCount(RANGERS_REPORT4) :
htmltext = "30381-05.htm"
st.takeItems(RANGERS_REPORT1,-1)
st.takeItems(RANGERS_REPORT2,-1)
st.takeItems(RANGERS_REPORT3,-1)
st.takeItems(RANGERS_REPORT4,-1)
st.set("cond","6")
else :
htmltext = "30381-04a.htm"
elif cond==6 :
if st.getQuestItemsCount(WEAPON_TRADE_CONTRACT) and st.getQuestItemsCount(ATTACK_DIRECTIVES) :
htmltext = "30381-06.htm"
else :
htmltext = "30381-05a.htm"
elif cond==7 :
htmltext = "30381-07a.htm"
elif cond==11 :
htmltext = "30381-08.htm"
st.giveItems(ADENA,95000)
st.addExpAndSp(159820,9182)
st.playSound("ItemSound.quest_finish")
st.exitQuest(False)
elif id == State.STARTED :
if npcId==ARODIN :
if cond==1 :
htmltext = "30207-01.htm"
elif cond==2 :
htmltext = "30207-01a.htm"
elif cond==3 :
if st.getQuestItemsCount(TYRAS_BILL) :
st.takeItems(TYRAS_BILL,-1)
htmltext = "30207-03.htm"
st.set("cond","4")
else :
htmltext = "30207-01a.htm"
elif cond==4 :
htmltext = "30207-03a.htm"
elif npcId==TYRA :
if cond==2 :
if st.getQuestItemsCount(BLADE_MOLD)>=20 :
st.takeItems(BLADE_MOLD,-1)
st.giveItems(TYRAS_BILL,1)
htmltext = "30420-01.htm"
st.set("cond","3")
else :
htmltext = "30420-01b.htm"
elif cond==3 :
htmltext = "30420-01a.htm"
elif cond > 3 :
htmltext = "30420-02.htm"
elif npcId==NETI :
if cond==7 :
htmltext = "30425-01.htm"
st.set("cond","8")
elif cond==8 :
htmltext = "30425-02.htm"
elif npcId==ROLENTO :
if cond==8 :
htmltext = "30437-01.htm"
elif cond==9 :
htmltext = "30437-03a.htm"
elif npcId==BURAI :
if cond==9 and st.getQuestItemsCount(CERTIFICATE) and st.getQuestItemsCount(CARGOBOX) and st.getQuestItemsCount(ATTACK_DIRECTIVES) :
htmltext = "30617-01.htm"
if cond==10 :
if st.getQuestItemsCount(OL_MAHUM_HEAD)>=30 :
htmltext = "30617-05.htm"
st.giveItems(ADENA,8000)
st.takeItems(OL_MAHUM_HEAD,-1)
st.set("cond","11")
st.playSound("ItemSound.quest_itemget")
else :
htmltext = "30617-04a.htm"
return htmltext
def onKill(self,npc,player,isPet):
st = self.getQuestState(player, False)
if not st : return
if st.getState() != State.STARTED : return
npcId = npc.getId()
cond = st.getInt("cond")
chance=self.getRandom(100)
if cond==2 and npcId in range(20496,20500) :
blades = st.getQuestItemsCount(BLADE_MOLD)
if chance < CHANCE11 :
st.addSpawn(27190)
if chance < CHANCE1 and blades < 20 :
st.giveItems(BLADE_MOLD,1)
if blades == 19 :
st.playSound("ItemSound.quest_middle")
else :
st.playSound("ItemSound.quest_itemget")
elif cond==5 and npcId == 20062 :
if not st.getQuestItemsCount(RANGERS_REPORT1) and chance < CHANCE2:
st.giveItems(RANGERS_REPORT1,1)
st.playSound("ItemSound.quest_itemget")
elif not st.getQuestItemsCount(RANGERS_REPORT2) and chance < CHANCE21:
st.giveItems(RANGERS_REPORT2,1)
st.playSound("ItemSound.quest_itemget")
elif not st.getQuestItemsCount(RANGERS_REPORT3) and chance < CHANCE22:
st.giveItems(RANGERS_REPORT3,1)
st.playSound("ItemSound.quest_itemget")
elif not st.getQuestItemsCount(RANGERS_REPORT4) and chance < CHANCE23:
st.giveItems(RANGERS_REPORT4,1)
st.playSound("ItemSound.quest_itemget")
elif cond==6 and npcId==20438 :
if not st.getQuestItemsCount(WEAPON_TRADE_CONTRACT) and chance < CHANCE24:
st.giveItems(WEAPON_TRADE_CONTRACT,1)
st.playSound("ItemSound.quest_itemget")
elif not st.getQuestItemsCount(ATTACK_DIRECTIVES) and chance < CHANCE25:
st.giveItems(ATTACK_DIRECTIVES,1)
st.playSound("ItemSound.quest_itemget")
elif cond==10 and npcId==20066 :
heads=st.getQuestItemsCount(OL_MAHUM_HEAD)
if heads < 30 and chance < CHANCE3 :
st.giveItems(OL_MAHUM_HEAD,1)
if heads == 29 :
st.playSound("ItemSound.quest_middle")
else :
st.playSound("ItemSound.quest_itemget")
return
QUEST = Quest(171,qn,"Acts of Evil")
QUEST.addStartNpc(ALVAH)
QUEST.addTalkId(ALVAH)
QUEST.addTalkId(ARODIN)
QUEST.addTalkId(TYRA)
QUEST.addTalkId(ROLENTO)
QUEST.addTalkId(NETI)
QUEST.addTalkId(BURAI)
for i in range(20494,20500)+[20062,20066,20438] :
QUEST.addKillId(i)
\ No newline at end of file
<html><body>Trader Arodin:<br>
Are you a mercenary sent by the guards?<br>
I suppose you know about my situation?<font color="LEVEL"> 20 sword blade molds</font> that were to be delivered to the Dark Elves were stolen by orcs. Dark Elves are very strict about such things... If they don't receive their order on time, they might sever our business relationship. If that happens, we stand to lose vast amounts of adena...<br>
Please help us!<font color="LEVEL"> Recover the cargo stolen by the Turek orcs and deliver it to Dark Elven Trader Tyra</font>. You will find her in her store in the western part of the Altar of Rites.<br>Ah, before you go, let me tell you something interesting. Recently, I heard a rumor...<br>
<a action="bypass -h Quest 171_ActsOfEvil 30207-02.htm">"Tell me about the rumor!"</a>
I suppose you know about my situation? <font color="LEVEL">20 sword blade molds</font> that were to be delivered to the Dark Elves were stolen by orcs. Dark Elves are very strict about such things... If they don't receive their order on time, they might sever our business relationship. If that happens, we stand to lose vast amounts of Adena...<br>
Please help us! <font color="LEVEL">Recover the cargo stolen by the Turek orcs and deliver it to Dark Elven Trader Tyra.</font> You will find her in her store in the western part of the Altar of Rites.<br>
Ah, before you go, let me tell you something interesting. Recently, I heard a rumor...<br>
<a action="bypass -h Quest Q00171_ActsOfEvil 30207-01a.html">"Tell me about the rumor!"</a>
</body></html>
\ No newline at end of file
<html><body>Trader Arodin:<br>
Witnesses said that several ol mahums were with the orcs when they raided the cargo wagon. This is the first I've heard of orcs and ol mahums working cooperatively... Something strange is going on. Please be careful.
Witnesses said that several Ol Mahums were with the orcs when they raided the cargo wagon. This is the first I've heard of orcs and Ol Mahums working cooperatively... Something strange is going on. Please be careful.
</body></html>
\ No newline at end of file
<html><body>Trader Arodin:<br>
You must recover the cargo stolen by<font color="LEVEL"> Turek orcs</font>. The cargo consists of<font color="LEVEL"> 20 sword Blade Molds</font>. When you have recovered all of them, take them to<font color="LEVEL"> Dark Elven Trader Tyra</font>. You will find her in her store in the western part of the Altar of Rites.<br>Have you heard the rumor?<br>
<a action="bypass -h Quest 171_ActsOfEvil 30207-02.htm">"Tell me about the rumor."</a></body></html>
\ No newline at end of file
You must recover the cargo stolen by <font color="LEVEL">Turek orcs</font>. The cargo consists of <font color="LEVEL">20 sword Blade Molds</font>. When you have recovered all of them, take them to <font color="LEVEL">Dark Elven Trader Tyra</font>. You will find her in her store in the western part of the Altar of Rites.<br>
Have you heard the rumor?<br>
<a action="bypass -h Quest Q00171_ActsOfEvil 30207-01a.html">"Tell me about the rumor."</a>
</body></html>
\ No newline at end of file
<html><body>Trader Arodin:<br>
You have recovered all of the molds stolen by the Turek orcs! Thank you so much! Now, <font color="LEVEL">please deliver the recovered cargo to Dark Elven Trader Tyra.</font> You will find her in her store in the western part of the Altar of Rites. Please be careful on your journey.
</body></html>
\ No newline at end of file
<html><body>Trader Arodin:<br>
Good job! You have saved our business relationship with the Dark Elves. Guard Alvah is expecting you. You should report to him right away.</body></html>
\ No newline at end of file
Good job! You have saved our business relationship with the Dark Elves.<br>
<font color="LEVEL">Guard Alvah</font> is expecting you. You should report to him right away.
</body></html>
\ No newline at end of file
<html><body>Trader Arodin:<br>
You're the one who recovered the stolen cargo, aren't you? You look well! I really appreciate what you did for us. Thanks to you, our guild was able to sustain our business relationship with the Dark Elves.</body></html>
\ No newline at end of file
You're the one who recovered the stolen cargo, aren't you? You look well! I really appreciate what you did for us. Thanks to you, our guild was able to sustain our business relationship with the Dark Elves.
</body></html>
\ No newline at end of file
<html><body>Guard Alvah:<br>
We have had many problems lately from the Turek orcs. The worst has been their looting and pillaging! Recently a wagon crossing the Dark Elven Forest was attacked and all the cargo stolen. The Aden Trade Union has filed a formal request for assistance from the Gludio Guards!<br>
Unfortunately, since the ol mahums are constantly trying to sneak into Gludin Village, the guards cannot leave their posts even for a moment! There has been much discussion on this subject, and we have come to the conclusion that our only option at this point is to hire mercenaries to drive out the Turek orcs.<br>
It is quite troubling to be compelled to trust our future to outsiders...<br>
What's that? You are a mercenary? What a stroke of luck! Would you consider helping us?<br>
(Quest for characters level 27 or above)</body></html>
\ No newline at end of file
Unfortunately, since the Ol Mahums are constantly trying to sneak into Gludin Village, the guards cannot leave their posts even for a moment! There has been much discussion on this subject, and we have come to the conclusion that our only option at this point is to hire mercenaries to drive out the Turek orcs.<br>
(This quest can only be undertaken by a character of level 27 or above.)
</body></html>
\ No newline at end of file
<html><body>Guard Alvah:<br>
We have had many problems lately from the Turek orcs. The worst has been their looting and pillaging! Recently a wagon crossing the Dark Elven Forest was attacked and all the cargo stolen. The Aden Trade Union has filed a formal request for assistance from the Gludio Guards!<br>
Unfortunately, since the ol mahums are constantly trying to sneak into Gludin Village, the guards cannot leave their posts even for a moment! There has been much discussion on this subject, and we have come to the conclusion that our only option at this point is to hire mercenaries to drive out the Turek orcs.<br>
Unfortunately, since the Ol Mahums are constantly trying to sneak into Gludin Village, the guards cannot leave their posts even for a moment! There has been much discussion on this subject, and we have come to the conclusion that our only option at this point is to hire mercenaries to drive out the Turek orcs.<br>
It is quite troubling to be compelled to trust our future to outsiders...<br>
What's that? You are a mercenary? What a stroke of luck! Would you consider helping us?<br>
<a action="bypass -h Quest 171_ActsOfEvil 30381-02.htm">"Yes, I will help"</a></body></html>
\ No newline at end of file
<a action="bypass -h Quest Q00171_ActsOfEvil 30381-03.htm">"Yes, I will help."</a>
</body></html>
\ No newline at end of file
<html><body>Guard Alvah:<br>
Excellent! Now listen carefully.<br>
First you must meet with<font color="LEVEL"> Trader Arodin</font> and get the details of the raid that occurred day before yesterday. Determine exactly which items were stolen from the cargo wagon. Trader Arodin can be found in the<font color="LEVEL"> Weapons Store</font>.</body></html>
\ No newline at end of file
First you must meet with <font color="LEVEL">Trader Arodin</font> and get the details of the raid that occurred day before yesterday. Determine exactly which items were stolen from the cargo wagon. Trader Arodin can be found in the
<font color="LEVEL">Weapons Store</font>.
</body></html>
\ No newline at end of file
<html><body>Guard Alvah:<br>
Surely you couldn't have forgotten already!? You must meet with<font color="LEVEL"> Trader Arodin at the Weapons Store</font>. He will tell you exactly which items were stolen from the cargo wagon by the Turek orcs. Please do this quickly, before the guild files a complaint!
Surely you couldn't have forgotten already!? You must meet with <font color="LEVEL">Trader Arodin at the Weapons Store</font>. He will tell you exactly which items were stolen from the cargo wagon by the Turek orcs. Please do this quickly, before the guild files a complaint!
</body></html>
\ No newline at end of file
<html><body>Guard Alvah:<br>
I trust that you met with Trader Arodin and found out what was stolen from the cargo wagon? Good! Now there is just the task of killing the Turek orcs and recovering the cargo!
</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