Skip to content
Snippets Groups Projects
Commit 2e956e30 authored by ivantotov's avatar ivantotov
Browse files

Quest: Art Of Persuasion (184)

Reviewed by: @Zoey76
parent 403db933
No related branches found
No related tags found
No related merge requests found
Showing
with 31 additions and 250 deletions
......@@ -215,7 +215,6 @@ quests/118_ToLeadAndBeLed/__init__.py
quests/123_TheLeaderAndTheFollower/__init__.py
quests/171_ActsOfEvil/__init__.py
quests/178_IconicTrinity/__init__.py
quests/184_Nikolas_Cooperation_Contract/__init__.py
quests/185_Nikolas_Cooperation_Consideration/__init__.py
quests/227_TestOfReformer/__init__.py
quests/230_TestOfSummoner/__init__.py
......
<html><body>Destroyed Device:<br>
You see something shiny in the pile of broken pieces. <br>
<a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32366-06.htm">Examine it.</a>
</body></html>
\ No newline at end of file
<html><body>Alarm System:<br>
As the alarm rings, a window for the passcode pops up. On the screen you see the number 120, which begins counting down. It looks like the alarm system will be activated in about 2 minutes unless the passcode is successfully entered.<br>
<a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-02.htm">Enter the passcode.</a>
</body></html>
\ No newline at end of file
<html><body>Alarm System:<br>
########################<br>
Enter the passcode for communication.<br>
Passcode :| <br>
########################<br>
The first number is...
<table border="0" border color="white" width="65" height="65"><tr>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-03.htm">1</a></td>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-03.htm">2</a></td>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract correct_32367-03.htm">3</a></td></tr><tr>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-03.htm">4</a></td>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-03.htm">5</a></td>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-03.htm">6</a></td></tr><tr>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-03.htm">7</a></td>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-03.htm">8</a></td>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-03.htm">9</a></td></tr></table>
</body></html>
\ No newline at end of file
<html><body>Alarm System:<br>
########################<br>
Enter the passcode for communication.<br>
Passcode : *| <br>########################<br>
The second number is...
<table border="0" border color="white" width="65" height="65"><tr>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract correct_32367-04.htm">1</a></td>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-04.htm">2</a></td>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-04.htm">3</a></td></tr><tr>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-04.htm">4</a></td>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-04.htm">5</a></td>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-04.htm">6</a></td></tr><tr>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-04.htm">7</a></td>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-04.htm">8</a></td>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-04.htm">9</a></td></tr></table>
</body></html>
\ No newline at end of file
<html><body>Alarm System:<br>
########################<br>
Enter the passcode for communication.<br>
Passcode : **| <br>########################<br>
The third number is... <table border="0" border color="white" width="65" height="65"><tr>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-05.htm">1</a></td>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-05.htm">2</a></td>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-05.htm">3</a></td></tr><tr>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-05.htm">4</a></td>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-05.htm">5</a></td>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-05.htm">6</a></td></tr><tr>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-05.htm">7</a></td>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-05.htm">8</a></td>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract correct_32367-05.htm">9</a></td></tr></table>
</body></html>
\ No newline at end of file
<html><body>Alarm System:<br>
########################<br>
Enter the passcode for communication.<br>
Passcode : ***| <br>########################<br>
The fourth number is...
<table border="0" border color="white" width="65" height="65"><tr>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-06.htm">1</a></td>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-06.htm">2</a></td>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-06.htm">3</a></td></tr><tr>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-06.htm">4</a></td>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-06.htm">5</a></td>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract correct_32367-07.htm">6</a></td></tr><tr>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-06.htm">7</a></td>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-06.htm">8</a></td>
<td width="20" height="20" align="center"><a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-06.htm">9</a></td></tr></table>
</body></html>
\ No newline at end of file
<html><body>Alarm System:<br>
########################<br>
Enter passcode for communication.<br>
Passcode : **** <br>
########################<br>
Validation has failed.<br><br>
<a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 32367-02.htm">Re-enter passcode.</a>
</body></html>
\ No newline at end of file
<html><body>Alarm System:<br>
########################<br>
Enter the passcode for communication.<br>
Passcode : **** <br>
########################<br>
Validation completed. Alarm has been disabled.
</body></html>
\ No newline at end of file
# Made by Kerberos v1.0 on 2009/21/02
# this script is part of the Official L2J Datapack Project.
# Visit http://www.l2jdp.com/forum for more details.
import sys
import time
from com.l2jserver.gameserver.instancemanager import QuestManager
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
from com.l2jserver.gameserver.network.serverpackets import NpcSay
qn = "184_Nikolas_Cooperation_Contract"
#NPCs
Nikola = 30621
Lorain = 30673
Device = 32366
Alarm = 32367
#Items
Certificate = 10362
Metal = 10359
BrokenMetal = 10360
NicolasMap = 10361
class Quest (JQuest) :
def __init__(self,id,name,descr):
JQuest.__init__(self,id,name,descr)
self.questItemIds = [NicolasMap,BrokenMetal,Metal]
def onAdvEvent (self,event,npc, player) :
st = self.getQuestState(player, False)
if not st: return
htmltext = event
if event == "30621-01.htm":
if player.getLevel() < 40 :
htmltext = "30621-00.htm"
elif event == "30621-04.htm" :
st.playSound("ItemSound.quest_accept")
st.set("cond","1")
st.giveItems(NicolasMap,1)
elif event == "30673-03.htm" :
st.playSound("ItemSound.quest_middle")
st.set("cond","2")
st.takeItems(NicolasMap,-1)
elif event == "30673-05.htm" :
st.playSound("ItemSound.quest_middle")
st.set("cond","3")
elif event == "30673-09.htm" :
if st.getQuestItemsCount(BrokenMetal) :
htmltext = "30673-10.htm"
elif st.getQuestItemsCount(Metal) :
st.giveItems(Certificate,1)
if player.getLevel() < 50 :
st.addExpAndSp(203717,14032)
st.giveItems(57,72527)
st.exitQuest(False)
st.playSound("ItemSound.quest_finish")
elif event == "32366-02.htm" :
alarm = st.addSpawn(32367,16491,113563,-9064)
st.set("step","1")
st.playSound("ItemSound3.sys_siren")
self.startQuestTimer("1",60000, alarm, player)
time.sleep(1)
player.sendPacket(NpcSay(alarm.getObjectId(), 0, alarm.getId(), "Intruder Alert! The alarm will self-destruct in 2 minutes."))
elif event == "32366-05.htm" :
st.unset("step")
st.playSound("ItemSound.quest_middle")
st.set("cond","5")
st.giveItems(BrokenMetal,1)
elif event == "32366-06.htm" :
st.unset("step")
st.playSound("ItemSound.quest_middle")
st.set("cond","4")
st.giveItems(Metal,1)
elif event == "32367-02.htm" :
st.set("pass","0")
elif event[0:7] == "correct" :
st.set("pass",str(st.getInt("pass")+1))
htmltext = event[8:]
if htmltext == "32367-07.htm":
if st.getInt("pass") == 4 :
st.set("step","3")
self.cancelQuestTimer("1",npc,player)
self.cancelQuestTimer("2",npc,player)
self.cancelQuestTimer("3",npc,player)
self.cancelQuestTimer("4",npc,player)
st.unset("pass")
npc.deleteMe()
else :
htmltext == "32367-06.htm"
elif event == "1" :
player.sendPacket(NpcSay(npc.getObjectId(), 0, npc.getId(), "The alarm will self-destruct in 60 seconds. Enter passcode to override."))
self.startQuestTimer("2",30000, npc, player)
return
elif event == "2" :
player.sendPacket(NpcSay(npc.getObjectId(), 0, npc.getId(), "The alarm will self-destruct in 30 seconds. Enter passcode to override."))
self.startQuestTimer("3",20000, npc, player)
return
elif event == "3" :
player.sendPacket(NpcSay(npc.getObjectId(), 0, npc.getId(), "The alarm will self-destruct in 10 seconds. Enter passcode to override."))
self.startQuestTimer("4",10000, npc, player)
return
elif event == "4" :
player.sendPacket(NpcSay(npc.getObjectId(), 0, npc.getId(), "Recorder crushed."))
npc.deleteMe()
st.set("step","2")
return
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()
cond = st.getInt("cond")
if id == State.COMPLETED:
htmltext = Quest.getAlreadyCompletedMsg(player)
elif id == State.STARTED:
if npcId == Nikola :
if not cond :
if player.getLevel() < 40 :
htmltext = "30621-00.htm"
else :
htmltext = "30621-01.htm"
elif cond == 1 :
htmltext = "30621-05.htm"
elif npcId == Lorain:
if cond == 1 :
htmltext = "30673-01.htm"
elif cond == 2 :
htmltext = "30673-04.htm"
elif cond == 3 :
htmltext = "30673-06.htm"
elif cond in [4,5] :
htmltext = "30673-07.htm"
elif npcId == Device:
step = st.getInt("step")
if cond == 3 :
if not step:
htmltext = "32366-01.htm"
elif step == 1 :
htmltext = "32366-02.htm"
elif step == 2 :
htmltext = "32366-04.htm"
elif step == 3 :
htmltext = "32366-03.htm"
return htmltext
QUEST = Quest(184,qn,"Nikola's Cooperation - Contract")
QUEST.addTalkId(Nikola)
QUEST.addTalkId(Lorain)
QUEST.addTalkId(Device)
QUEST.addTalkId(Alarm)
\ No newline at end of file
<html><body>Maestro Nikola:<br>
Why did you come to see me?<br>
<a action="bypass -h Quest Q00184_ArtOfPersuasion 30621-03.htm">"I came here to offer you something."</a><br>
<a action="bypass -h Quest Q00185_NikolasCooperation 30621-03.htm">"I came here to tell you something."</a>
</body></html>
<html><body>Maestro Nikola:<br>
Why did you come to see me? This place is far too dangerous for someone so inexperienced.<br>
(Only characters level 40 and above are permitted to undertake this quest.)
</body></html>
\ No newline at end of file
<html><body>Maestro Nikola:<br>
What's in it for me? I think you are just wasting your time here...<br>
<a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 30621-02.htm">"The Tower of Cruma is no place to explore alone. I know you and Lorain have your differences, but can't you set them aside for the sake of the work at hand?"</a>
<a action="bypass -h Quest Q00184_ArtOfPersuasion 30621-04.htm">"The Tower of Cruma is no place to explore alone. I know you and Lorain have your differences, but can't you set them aside for the sake of the work at hand?"</a>
</body></html>
\ No newline at end of file
<html><body>Maestro Nikola:<br>
What's in it for me? I think you are just wasting your time here...<br>
(Only characters level 40 and above are permitted to undertake this quest.)
Don't you think that it's too soon for you to join us?<br>
(Only characters level 40 and above are permitted to undertake this quest.)
</body></html>
\ No newline at end of file
<html><body>Maestro Nikola:<br>
Work together? Undoubtedly she has made some minor strides in her studies that might possibly be of use to me, but... <br>
Work together? Undoubtedly she has made some minor strides in her studies that might possibly be of use to me, but...<br>
My pride would never allow me to conclude some sort of agreement with her. In fact, I can barely stand to even speak to her!<br>
Unfortunate, perhaps... <br>
<a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 30621-03.htm">"Perhaps you could enter into a contract with me, not with her. Then I will also make a separate contract with her. With me as a go-between you won't have to deal directly with each other."</a>
Unfortunate, perhaps...<br>
<a action="bypass -h Quest Q00184_ArtOfPersuasion 30621-05.htm">"Perhaps you could enter into a contract with me, not with her. Then I will also make a separate contract with her. With me as a go-between you won't have to deal directly with each other."</a>
</body></html>
\ No newline at end of file
......@@ -2,5 +2,5 @@
Hmm. An intriguing suggestion... Very well! Let us conclude a contract together.<br>
My condition, however, is that you share all information you discover about the matter.<br>
What is your condition?<br>
<a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 30621-04.htm">"Give me the information about the district that you failed to explore."</a>
<a action="bypass -h Quest Q00184_ArtOfPersuasion 30621-06.htm">"Give me the information about the district that you failed to explore."</a>
</body></html>
\ No newline at end of file
<html><body>Maestro Nikola:<br>
Ah, that is easily done. Here is the map showing the location of that district. Lorain will be able to find the place easily.
Ah, that is easily done. Here is the map showing the location of that district. Lorain will be able to find the place easily.<br>
Please note that Cruma Tower is not accessible after level 56.
</body></html>
\ No newline at end of file
<html><body>Researcher Lorain:<br>
Well! Where is the place we're looking for? Did that coward tell you?<br>
<a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 30673-02.htm">Tell her about the contract with Nikola.
</a></body></html>
\ No newline at end of file
<a action="bypass -h Quest Q00184_ArtOfPersuasion 30673-02.html">Tell her about the contract with Nikola.</a>
</body></html>
\ No newline at end of file
<html><body>Researcher Lorain:<br>
Hmm, I must admit that you did better than I expected. I am satisfied. As long as our work can continue...<br>
Now then, show me the map. I need to study it to see where we should search.<br>
<a action="bypass -h Quest 184_Nikolas_Cooperation_Contract 30673-03.htm">Give her the map.</a>
<a action="bypass -h Quest Q00184_ArtOfPersuasion 30673-03.html">Give her the map.</a>
</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