Skip to content
Snippets Groups Projects
Commit c59a8674 authored by Adry_85's avatar Adry_85
Browse files

BETA: Retail like quest '''Defeat the Elrokian Raiders!''' (688).

parent 9cd43b1c
No related branches found
No related tags found
No related merge requests found
Showing
with 43 additions and 128 deletions
......@@ -686,7 +686,7 @@ quests/660_AidingtheFloranVillage/__init__.py
quests/661_TheHarvestGroundsSafe/__init__.py
quests/662_AGameOfCards/__init__.py
quests/663_SeductiveWhispers/__init__.py
quests/688_DefeatTheElrokianRaiders/__init__.py
quests/Q00688_DefeatTheElrokianRaiders/Q00688_DefeatTheElrokianRaiders.java
quests/Q00690_JudesRequest/Q00690_JudesRequest.java
quests/Q00691_MatrasSuspiciousRequest/Q00691_MatrasSuspiciousRequest.java
quests/Q00692_HowtoOpposeEvil/Q00692_HowtoOpposeEvil.java
......
<html><body>Dinn:<br>
You're not someone who is skilled enough and brave enough to handle my tasks.<br>
(This quest can be undertaken by characters level 75 and above)</body></html>
\ No newline at end of file
<html><body>Dinn:<br>
Hey, you there -- Sir Adventurer! May I speak to you for a moment?<br>
Have you heard of the Elrokian brigands hiding in the Primeval Plains? The wharf merchants and I are beset by them.<br>
Sales haven't been good, and since those thieves don't look like they'll go away any time soon on their own, it's been as bad a time around here as I can remember.<br>
<a action="bypass -h Quest 688_DefeatTheElrokianRaiders 32105-02.htm">"Find out more details."</a></body></html>
\ No newline at end of file
<html><body>Dinn:<br>
At first, they stole only small items. But success has made them bold, and lately they have organized themselves into armed groups that raid even in broad daylight.<br>
The merchants on the wharf are understandably on edge. Despite standing constant watch over their wares, they have not the skill or weaponry to defend themselves against such formidable adversaries.<br>
But you, my fine young adventurer, you look like you might have a chance. Please, please help us. Eliminate these Elrokian brigands and we will reward you as richly as we can!<br>
<a action="bypass -h Quest 688_DefeatTheElrokianRaiders 32105-03.htm">"Pledge your services to catch the thieves."</a></body></html>
\ No newline at end of file
<html><body>Dinn:<br>
You don't have enough items yet.<br>
Please, whatever it takes, rid us of these troublesome thieves! As long as you bring me their necklaces, I'll make sure that you are well compensated for your time.<br>
The Elrokian raiders have set up camp in the<font color="LEVEL"> Primeval Plains</FONT>. Travel south along this road, and I'm certain that you'll find them.</body></html>
\ No newline at end of file
<html><body>Dinn:<br>
Eh? You caught them? Ah, it finally feels like a weight has been lifted! First of all let me offer you a reward equal to the number of necklaces you've brought. If you have more than 100 necklaces, I can also give you a bounty collected by our local merchants.<br>
Truth be told, I was prepared to offer the reward money myself, but when our merchants caught wind of your efforts, they insisted on contributing funds to the cause themselves. A noble act on their part, I dare say!<br>
It is entirely your choice whether to collect the per necklace bounty or accept the merchant's donation.<br>
<a action="bypass -h Quest 688_DefeatTheElrokianRaiders 32105-06.htm">"Take the per necklace bounty."</a><br>
<a action="bypass -h Quest 688_DefeatTheElrokianRaiders 32105-07.htm">"Take the merchants' donation."</a></body></html>
\ No newline at end of file
<html><body>Dinn:<br>
Here, please take this reward. It's miniscule compared to all you've done for us, but this is the best we can do, and please know it comes from the bottom of our hearts.<br>
Word has reached me that there are still many Elrokian raiders in the Primeval Plains, and their numbers are increasing. What do you think? Now that you've gained some experience, would you like to keep catching the thieves?<br>
<a action="bypass -h Quest 688_DefeatTheElrokianRaiders None">"Continue to capture the Elrokian raiders."</a><br>
<a action="bypass -h Quest 688_DefeatTheElrokianRaiders 32105-08.htm">"Quit."</a></body></html>
\ No newline at end of file
<html><body>Dinn:<br>
You have done a fantastic job! I know how difficult it must have been to collect 100 necklaces, and here you are donating them with no strings attached. I can't tell you how grateful we are!<br>
Here, please tkae this reward. It's miniscule compared to all you've done for us, but this is the best we can do, and please know it comes from the bottom of our hearts.<br>
Word has reached me that there are still many Elrokian raiders in the Primeval Plains, and their numbers are increasing. What do you think? Now that you've gained some experience, would you like to keep catching the thieves?<br>
<a action="bypass -h Quest 688_DefeatTheElrokianRaiders None">"Continue to capture the Elrokian raiders."</a><br>
<a action="bypass -h Quest 688_DefeatTheElrokianRaiders 32105-08.htm">"Collect the balance of your reward and quit."</a></body></html>
\ No newline at end of file
# Created by Gigiikun
import sys
from com.l2jserver import Config
from com.l2jserver.gameserver.model.quest import State
from com.l2jserver.gameserver.model.quest import QuestState
from com.l2jserver.gameserver.model.quest.jython import QuestJython as JQuest
qn = "688_DefeatTheElrokianRaiders"
#Settings: drop chance in %
DROP_CHANCE = 50
DINOSAUR_FANG_NECKLACE = 8785
class Quest (JQuest) :
def __init__(self,id,name,descr):
JQuest.__init__(self,id,name,descr)
self.questItemIds = [DINOSAUR_FANG_NECKLACE]
def onEvent (self,event,st) :
htmltext = event
count = st.getQuestItemsCount(DINOSAUR_FANG_NECKLACE)
if event == "None" :
return
elif event == "32105-03.htm" :
st.set("cond","1")
st.setState(State.STARTED)
st.playSound("ItemSound.quest_accept")
elif event == "32105-08.htm" :
if count > 0 :
st.takeItems(DINOSAUR_FANG_NECKLACE,-1)
st.giveItems(57,count*3000)
st.playSound("ItemSound.quest_finish")
st.exitQuest(1)
elif event == "32105-06.htm" :
st.takeItems(DINOSAUR_FANG_NECKLACE,-1)
st.giveItems(57,count*3000)
elif event == "32105-07.htm" :
if count >= 100 :
st.takeItems(DINOSAUR_FANG_NECKLACE,100)
st.giveItems(57,450000)
else :
htmltext = "32105-04.htm"
return htmltext
def onTalk (self, npc, player):
st = player.getQuestState(qn)
htmltext = Quest.getNoQuestMsg(player)
if st :
cond = st.getInt("cond")
count = st.getQuestItemsCount(DINOSAUR_FANG_NECKLACE)
if cond == 0 :
if player.getLevel() >= 75 :
htmltext = "32105-01.htm"
else :
htmltext = "32105-00.htm"
st.exitQuest(1)
elif st.getState() == State.STARTED :
if count == 0 :
htmltext = "32105-04.htm"
else :
htmltext = "32105-05.htm"
return htmltext
def onKill (self, npc, player,isPet):
partyMember = self.getRandomPartyMember(player,"1")
if not partyMember: return
st = partyMember.getQuestState(qn)
if st :
if st.getState() == State.STARTED :
npcId = npc.getNpcId()
cond = st.getInt("cond")
count = st.getQuestItemsCount(DINOSAUR_FANG_NECKLACE)
if cond == 1 :
chance = DROP_CHANCE*Config.RATE_QUEST_DROP
numItems, chance = divmod(chance,100)
if self.getRandom(100) < chance :
numItems += 1
if numItems :
if int(count + numItems)/100 > int(count)/100 :
st.playSound("ItemSound.quest_middle")
else :
st.playSound("ItemSound.quest_itemget")
st.giveItems(DINOSAUR_FANG_NECKLACE,int(numItems))
return
QUEST = Quest(688,qn,"Defeat the Elrokian Raiders")
QUEST.addStartNpc(32105)
QUEST.addTalkId(32105)
QUEST.addKillId(22214)
<html><body>Trader Dinn:<br>
Hey, you there -- Sir Adventurer! May I speak to you for a moment?<br>Have you heard of the Elrokian brigands hiding in the Primeval Plains? The wharf merchants and I are beset by them.<br>Sales haven't been good, and since those thieves don't look like they'll go away any time soon on their own, it's been as bad a time around here as I can remember.<br>
<a action="bypass -h Quest Q00688_DefeatTheElrokianRaiders 32105-02.htm">Find out more details.</a>
</body></html>
<html><body>Dinn:<br>
At first, they stole only small items. But success has made them bold, and lately they have organized themselves into armed groups that raid even in broad daylight.<br>The merchants on the wharf are understandably on edge. Despite standing constant watch over their wares, they have not the skill or weaponry to defend themselves against such formidable adversaries.<br>But you, my fine young adventurer, you look like you might have a chance. Please, please help us. Eliminate these Elrokian brigands and we will reward you as richly as we can!<br>
<a action="bypass -h Quest Q00688_DefeatTheElrokianRaiders 32105-03.html">Pledge your services to catch the thieves.</a>
</body></html>
<html><body>Dinn:<br>
Gods be praised! Now that I know that you are willing to help us, I finally feel like I'll be able to sleep soundly tonight.<br>
According to a trustworthy source, the Elrokian thieves who raid our wharf all wear necklaces that contain a<font color="LEVEL"> dinosaur fang pendant</font>. Bring me those necklaces as proof that you have captured them; I'll reward you based on the number of necklaces you bring. If you bring back more than 100 necklaces, I can also give you the donations collected from the merchants here.<br>
Please, whatever it takes, rid us of these troublesome thieves! As long as you bring me their necklaces, I'll make sure that you are well compensated for your time.<br>
The Elrokian raiders have set up camp in the<font color="LEVEL"> Primeval Plains</FONT>. Travel south along this road, and I'm certain that you'll find them.</body></html>
\ No newline at end of file
Gods be praised! Now that I know that you are willing to help us, I finally feel like I'll be able to sleep soundly tonight.<br>According to a trustworthy source, the Elrokian thieves who raid our wharf all wear necklaces that contain a <font color="LEVEL">dinosaur fang pendant</font>. Bring me those necklaces as proof that you have captured them; I'll reward you based on the number of necklaces you bring. If you bring back more than 100 necklaces, I can also give you the donations collected from the merchants here.<br>Please, whatever it takes, rid us of these troublesome thieves! As long as you bring me their necklaces, I'll make sure that you are well compensated for your time.<br>The Elrokian raiders have set up camp in the <font color="LEVEL">Primeval Plains</font>. Travel south along this road, and I'm certain that you'll find them.
</body></html>
<html><body>Dinn:<br>
The weather is hot, and evil abounds... These are troubled days, I can assure you! Ah, I wish you could help us, my friend, but to my eye you are still too inexperienced for this kind of fight. Oh, that you were but a few seasons older! Well, we will simply have to persevere as best we know how...<br>(Only characters level 75 and above may take on this quest.)
</body></html>
<html><body>Dinn:<br>
Eh? You caught them? Ah, it finally feels like a weight has been lifted! First of all, let me offer you a reward equal to the number of necklaces you've brought. If you have more than 100 necklaces, I can also give you a bounty collected by our local merchants.<br>Truth be told, I was prepared to offer the reward money myself, but when our merchants caught wind of your efforts, they insisted on contributing funds to the cause themselves. A noble act on their part, I dare say!<br>It is entirely your choice whether to collect the per necklace bounty or accept the merchant's donation.<br>
<a action="bypass -h Quest Q00688_DefeatTheElrokianRaiders 32105-06.html">Take the per necklace bounty.</a><br>
<a action="bypass -h Quest Q00688_DefeatTheElrokianRaiders donation">Take the merchants' donation.</a>
</body></html>
<html><body>Dinn:<br>
My utmost thanks! Since you've already made a good start of it, how about trying your hand at catching even more thieves? I assure you, we'll never forget such a great service!<br>
<a action="bypass -h Quest Q00688_DefeatTheElrokianRaiders 32105-10.html">Agree to catch more thieves.</a><br>
<a action="bypass -h Quest Q00688_DefeatTheElrokianRaiders 32105-11.html">Quit.</a>
</body></html>
<html><body>Dinn:<br>
Hmm... By my count, these necklaces are short of the 100 mark. Thanks for your efforts, but I have sworn that I would not accept any donation less than that total.<br>Even good intentions should be governed by some rules to prevent potential problems in the future. If you could acquire some more necklaces to bring the total to 100, we would truly be in your debt.
</body></html>
<html><body>Dinn:<br>
You have done a fantastic job! I know how difficult it must have been to collect 100 necklaces, and here you are donating them with no strings attached. I can't tell you how grateful we are!<br>Here, please take this reward. It's miniscule compared to all you've done for us, but this is the best we can do, and please know it comes from the bottom of our hearts. <br>Word has reached me that there are still many Elrokian raiders in the Primeval Plains, and their numbers are increasing. What do you think? Now that you've gained some experience, would you like to keep catching the thieves?<br>
<a action="bypass -h Quest Q00688_DefeatTheElrokianRaiders 32105-10.html">Continue to capture the Elrokian raiders.</a><br>
<a action="bypass -h Quest Q00688_DefeatTheElrokianRaiders 32105-11.html">Collect the balance of your reward and quit.</a>
</body></html>
<html><body>Dinn:<br>
Please accept my apologies -- the amount of money we've managed to scrape together is far too small compared to what you've done for us. But we have few merchants, and many of them have been robbed by thieves. I blush to say it, but this is really the best we can do...<br>I know you have no expectation of payment, but we wanted to do something to show our gratitude. Since the amount is miniscule, I added some to it myself. Please accept this.<br>Were a hardy adventurer like yourself to keep capturing the raiders, I'm sure that our merchants' situation would dramatically improve... What do you say? Will you continue your efforts on our behalf?<br>
<a action="bypass -h Quest Q00688_DefeatTheElrokianRaiders 32105-10.html">Continue to capture the Elrokian raiders.</a><br>
<a action="bypass -h Quest Q00688_DefeatTheElrokianRaiders 32105-11.html">Collect the balance of your reward and quit.</a>
</body></html>
<html><body>Dinn:<br>
Then travel to the <font color="LEVEL">Primeval Plains</font> and defeat the <font color="LEVEL">Elrokian</font> assault force. Collect their necklaces as proof of your victory. Remember: the more necklaces you bring back to me, the better for all of us.
</body></html>
<html><body>Dinn:<br>
Very well, then. I am saddened that you have chosen not to continue. If you change your mind, please don't hesitate to return!</body></html>
\ No newline at end of file
Very well, then. I am saddened that you have chosen not to continue. If you change your mind, please don't hesitate to return!
</body></html>
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