Skip to content
Snippets Groups Projects
Commit 403db933 authored by ivantotov's avatar ivantotov
Browse files

Quest: Test Of The War Spirit (233)

Reviewed by: @Zoey76
parent 711a87e5
No related branches found
No related tags found
No related merge requests found
Showing
with 0 additions and 481 deletions
...@@ -219,7 +219,6 @@ quests/184_Nikolas_Cooperation_Contract/__init__.py ...@@ -219,7 +219,6 @@ quests/184_Nikolas_Cooperation_Contract/__init__.py
quests/185_Nikolas_Cooperation_Consideration/__init__.py quests/185_Nikolas_Cooperation_Consideration/__init__.py
quests/227_TestOfReformer/__init__.py quests/227_TestOfReformer/__init__.py
quests/230_TestOfSummoner/__init__.py quests/230_TestOfSummoner/__init__.py
quests/233_TestOfWarspirit/__init__.py
quests/234_FatesWhisper/__init__.py quests/234_FatesWhisper/__init__.py
quests/236_SeedsOfChaos/__init__.py quests/236_SeedsOfChaos/__init__.py
quests/255_Tutorial/__init__.py quests/255_Tutorial/__init__.py
......
<html><body>Priestess Vivyan:<br>
Oh my... What has an Orc Shaman to do with me? You just name it! I will help you in every way!<br>
<a action="bypass -h Quest 233_TestOfWarspirit 30030_1">Ask about Kiruna the Brave</a>
</body></html>
\ No newline at end of file
<html><body>Priestess Vivyan:<br>
Ah! You mean Commander Kiruna. The only Commander in the Orc Kingdom. She who fell in love with Paladin Gelhaas... The love story of Gelhaas and Kiruna is written in the history of the shrine, and I liked it so much that I read it several times.<br>
Ah! Don't give me that scary look! I bet you Orcs don't like to hear that an Orc fell in love with a Human being. I am so sorry... but, but... Their story... it is so romantic...<br>
<a action="bypass -h Quest 233_TestOfWarspirit 30030_2">Ask about Kiruna's death</a>
</body></html>
\ No newline at end of file
<html><body>Priestess Vivyan:<br>
Kiruna and Gelhaas were 2 Warriors who fought bravely against the army of the devil, Beleth. Their army won every battle, but then one day, Gelhaas was killed by the evil spirits of Beleth. Imagine Kiruna's sorrow when she heard the news that her lover was killed. A few days after the incident took place, it is said that she went to the battlefield with her lips tightly sealed and won a great victory over the army of Beleth.<br>
But unfortunately, in the final battle Kiruna was wounded deeply. She was removed to the shrine for remedy, but in the end she died and was buried beside Gelhaas. Some say that she refused to be treated herself...<br>
Sometimes, the feelings which you call as a sign of weak-mindedness, can be the source of powerfulness. Can't you see...?<br>
<a action="bypass -h Quest 233_TestOfWarspirit 30030_3">Ask the whereabouts of Kiruna's Remains</a>
</body></html>
\ No newline at end of file
<html><body>Priestess Vivyan:<br>
You have found every piece of Kiruna's Remains in that extensive Wastelands? That is awesome! I am really surprised! How devoted you Orcs are in respecting your ancestors!
</body></html>
\ No newline at end of file
<html><body>Trader Sarien:<br>
You finally found out what you wanted from the Ant's Nest. I really appreciate the guts you Orcs have. You'll be successful in business if you could apply the same patience and efforts in it.
</body></html>
\ No newline at end of file
<html><body>Seer Racoy:<br>
Young shaman, have you come to find the remains of Kiruna? Then first listen! The story of the legendary Warrior, Kiruna the brave!<br>
Once in the past, there was a time when the supreme commander of the national army asked for our support during a tough battle with devil Beleth. So the crack contingent of Urutu with Kiruna as its leader, set off to the battlefields. Kiruna and her soldiers fought bravely against the numerous undead and firmly maintained in the front line, defending againt the evil Black magic.<br>
But when the Death Knight Mordreous showed up in the battlefield, all the soliders got frightened and started to retreat from their lines. How could an Orc Warrior possibly back off! It's all because of Beleth's magic.<br>
However, Kiruna knew no fear. She sang out the hymns of victory and killed hundreds of undead until the last one, the death Knight Mordreous!<br>
<a action="bypass -h Quest 233_TestOfWarspirit 30507_1">Ask about Kiruna's death</a>
</body></html>
\ No newline at end of file
<html><body>Seer Racoy:<br>
The place where Kiruna is buried is the Wastelands of Gludio? I wonder if I will be able to find the traces of an ancient heroine in such a deserted area...! Don't give up yet, young shaman. As long as the graces of our forefathers are with us, I am sure you'll be able to find it.
</body></html>
\ No newline at end of file
<html><body>Seer Racoy:<br>
What a pity! Our great ancestor's body has been ripped into pieces by some mere ants! I cannot bring anymore shame to the remains of the dead! Give me the bones of Kiruna. I , Seer Racoy, shall shroud the dead body into a decent shape according to our funeral traditions.<br>
...now, young shaman, take these bones with solemnity. Have courtesy while carrying it. Always remember, no matter what road you shall take in the future. The fighting sprits of the great heroine! The glory of our forefathers who fought for our tribe!
</body></html>
\ No newline at end of file
<html><body>Seer Racoy:<br>
Young shaman, I see that you haven't yet completed the Test of War Spirit. But there is no need to be anxious. I am quite sure. That before long, you shall become one of the greatest Warcryer who praise highest the glory of Paagrio!
</body></html>
\ No newline at end of file
<html><body>Seer Somak:<br>
To pass the test, you must first find the bones of the ancestors who passed away while fighting in a war! Then through a trial thou can win over the power of the spirits to your side!<br>
This place, the kingdom of Aden, is a place where numerous Orc warriors fought and bled! However, now it is a territory where Humans reign, and our glorious history is gradually being forgotten! Isn't it reasonable for us to celebrate the victory we achieved in this land, and collect the remains and place them on the Immortal Plateau!<br>
I, seer Somak investigated the biography of our tribe, which was handed down from mouth to mouth, and found out about 4 warriors. Braki the clever, Kiruna the brave, Toner the super, and Hermort the indomitable! When you find the bones of all 4, bring them to me!<br>
<a action="bypass -h Quest 233_TestOfWarspirit 30510-05a.htm">Ask about Braki the clever</a><br>
<a action="bypass -h Quest 233_TestOfWarspirit 30510-05b.htm">Ask about Kiruna the brave</a><br>
<a action="bypass -h Quest 233_TestOfWarspirit 30510-05c.htm">Ask about Tonar the super</a><br>
<a action="bypass -h Quest 233_TestOfWarspirit 30510-05d.htm">Ask about Hermort the indomitable</a>
</body></html>
\ No newline at end of file
<html><body>Seer Manakia:<br>
The indomitable Hermodt! The greatest Warrior of the Neruga tribe. If you came here for his remains, listen carefully. It is the story of the great Warrior Hermodt.<br>
Hermodt was the tribe's leader when he set off to conquer the serpent family who invaded their territory. He managed to force the serpents out of the territory.<br>
And chased them to the last one, the Queen Gorgon, so that the snake family would never ever think about invading the Orcs again. However during the chase, he was injured by a poisoned arrow shot by the enemy. But he didn't give up and endured the piercing pain until he finally caught the Queen. At the same time, he himself breathed his last breath because of the poison.<br>
Hermodt, he was a true Warrior indeed, who even stopped death from coming until he had killed the last of the enemy!<br>
<a action="bypass -h Quest 233_TestOfWarspirit 30515_1">Ask where the remains lie</a>
</body></html>
\ No newline at end of file
<html><body>Seer Manakia:<br>
Ever since the kingdom of Orcs first fell, Giran, has been ruled by the Humans. But Humans are weak, so the outsiders we once beat have started attacking again! What a mess!<br>
Take this totem to begin with which has our ancestors' spirits within it and it will guide you on your way! In eastern Giran, live medusas who are kin to serpents. Slay them and obtain the remains of Hermodt from them! The medusas split the bones into five pieces and distributed them among several of their kind.<br>
The important remains are held by the Gorgon Queen, Stenoa! There is no doubt that she is the descendent of the Queen that Hermodt killed! I, Seer Manakia, order you to go and kill the Queen of medusas, to revenge the death of Hermodt, and take back his skull! After you've killed the Queen, go after the other medusas as well to recover his rib-bones, backbone, arm bones, and shinbones too!
</body></html>
\ No newline at end of file
<html><body>Seer Manakia:<br>
That was magnificent, young shaman! You have swept the medusas clear out and won back the remains of great hero!<br>
But I am so sorry that our forefather's remains are in such wretched condition! I have no face to see our ancestor's spirit! We are to blame for abandoning our forefather's spirit! I, Seer Manakia shall readjust<font color="LEVEL"> Hermodt's Remains</font>, to a well-preserved shape!<br>
Thou, young man of Orc, even when you pass the Test and become a higher level shaman, never forget! The spirits of our great heroes! The glory of our forefathers who fought for the tribe!
</body></html>
\ No newline at end of file
<html><body>Orim of the Shadow:<br>
Nice to meet you Sorcerer of the Orcs. My name is Orim and I serve the great magician Hardin as my master. What brought you here to this desolated place where the shadows of the green dragon Antharas fall?<br>
<a action="bypass -h Quest 233_TestOfWarspirit 30630_1">Ask him to give the Remains of Braki</a>
</body></html>
\ No newline at end of file
<html><body>Orim of the Shadow:<br>
You are indeed one of the Orcs... So straight forward... That is right. The remains of Braki who you Oaks worship as your hero, is in my hands.<br>
I bet that you will take it from me anyway, even though I resist to give it to you. I am well aware of the Oak's great power. To tell the truth, I don't want to fight you. This is not showing off, so don't take me wrong, but if we fight, I'm telling you, it is not likely that you will survive, either. Therefore, let's prevent from getting involved in a fight which is damaging for both of us.<br>
As you know, the remains of Braki is powerful fetish filled with strong magic. If you can find me a thing that has equal magical power, I shall gladly give you your hero's remains. Don't you think it is reasonable enough?<br>
<a action="bypass -h Quest 233_TestOfWarspirit 30630_2">Accept proposal</a>
</body></html>
\ No newline at end of file
<html><body>Orim of the Shadow:<br>
Shaman of the Oaks, good to see you again. Braki's Remains that I gave you the other day, contained quite powerful magic indeed, but I don't regret giving it away since it went to the right owner.
</body></html>
\ No newline at end of file
<html><body>Seer Pekiron:<br>
It's tragic! I can't believe they damaged the body so badly by splitting them into pieces! Give me the bones. I shall readjust them into a well-preserved shape!<br>
Young sorcerer, thou shall contemplate solemnly when carrying back the bones! The high spirits of the great hero! The glory of our forefathers who fought for our tribe!
</body></html>
\ No newline at end of file
<html><body>Seer Pekiron:<br>
Thou, young shaman, go ahead and finish the Test of the War Spirit, and become a proud Warcryer! Until that day when we march in the battlefield singing the hymns of victory! Tejakar Paagrio!
</body></html>
\ No newline at end of file
# Made by Mr. Have fun! Version 0.2
# rewritten by Rolarga, Version 0.3
# Shadow Weapon Coupons contributed by BiTi for the Official L2J Datapack Project
# Visit http://www.l2jdp.com/forum/ for more details
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
from com.l2jserver.gameserver.network.serverpackets import SocialAction
qn = "233_TestOfWarspirit"
MARK_OF_WARSPIRIT = 2879
VENDETTA_TOTEM = 2880
TAMLIN_ORC_HEAD = 2881
WARSPIRIT_TOTEM = 2882
ORIMS_CONTRACT = 2883
PORTAS_EYE = 2884
BRAKIS_REMAINS1 = 2887
HERMODTS_REMAINS1 = 2901
KIRUNAS_REMAINS1 = 2910
TONARS_REMAINS1 = 2894
BRAKIS_REMAINS2 = 2911
HERMODTS_REMAINS2 = 2913
KIRUNAS_REMAINS2 = 2914
TONARS_REMAINS2 = 2912
EXCUROS_SCALE = 2885
MORDEOS_TALON = 2886
PEKIRONS_TOTEM = 2888
TONARS_SKULL = 2889
TONARS_RIB_BONE = 2890
TONARS_SPINE = 2891
TONARS_ARM_BONE = 2892
TONARS_THIGH_BONE = 2893
MANAKIAS_TOTEM = 2895
HERMODTS_SKULL = 2896
HERMODTS_RIB_BONE = 2897
HERMODTS_SPINE = 2898
HERMODTS_ARM_BONE = 2899
HERMODTS_THIGH_BONE = 2900
RACOYS_TOTEM = 2902
KIRUNAS_SKULL = 2905
KIRUNAS_RIB_BONE = 2906
KIRUNAS_SPINE = 2907
KIRUNAS_ARM_BONE = 2908
KIRUNAS_THIGH_BONE = 2909
INSECT_DIAGRAM_BOOK = 2904
VIVIANTES_LETTER = 2903
SHADOW_WEAPON_COUPON_CGRADE = 8870
NPC=[30030,30436,30507,30510,30515,30630,30649,30682]
STATS=["cond","step","Orim","Racoy","Perkiron","Manakia","Manakia_Queen"]
#npcId=[[accepted values for this part],variable for the current part from the mob,maxcount,chance in %, items to give(one per kill max)]
DROPLIST={
20213:[[2,3,4],"Orim",10,100,[PORTAS_EYE]],
20214:[[2,3,4],"Orim",10,100,[EXCUROS_SCALE]],
20215:[[2,3,4],"Orim",10,100,[MORDEOS_TALON]],
20601:[[1],"step",13,100,[TAMLIN_ORC_HEAD]],
20602:[[1],"step",13,100,[TAMLIN_ORC_HEAD]],
27108:[[2],"Manakia_Queen",1,100,[HERMODTS_SKULL]],
20581:[[2,3,4,5,6],"Perkiron",1,50,[TONARS_RIB_BONE,TONARS_SPINE,TONARS_ARM_BONE,TONARS_SKULL,TONARS_THIGH_BONE]],
20582:[[2,3,4,5,6],"Perkiron",1,50,[TONARS_SKULL,TONARS_ARM_BONE,TONARS_RIB_BONE,TONARS_SPINE,TONARS_THIGH_BONE]],
20158:[[2,3,4,5],"Manakia",1,100,[HERMODTS_RIB_BONE,HERMODTS_SPINE,HERMODTS_ARM_BONE,HERMODTS_THIGH_BONE]],
20089:[[4,5,6,7,8,9],"Racoy",1,100,[[KIRUNAS_THIGH_BONE,KIRUNAS_ARM_BONE],[KIRUNAS_SPINE,KIRUNAS_RIB_BONE],[KIRUNAS_SKULL]]],
20090:[[4,5,6,7,8,9],"Racoy",1,100,[[KIRUNAS_THIGH_BONE,KIRUNAS_ARM_BONE],[KIRUNAS_SPINE,KIRUNAS_RIB_BONE],[KIRUNAS_SKULL]]]
}
# Mob List initialisation for the different Parts
PART2_MOBS = [20601,20602]
PART1_MOBS = []
for mob in DROPLIST.keys():
if mob in PART2_MOBS:
continue
PART1_MOBS.append(mob)
class Quest (JQuest) :
def __init__(self,id,name,descr):
JQuest.__init__(self,id,name,descr)
self.questItemIds = range(2880,2915)
def onEvent (self,event,st) :
htmltext = event
if event == "1" :
htmltext = "30510-05.htm"
for var in STATS:
st.set(var,"1")
st.setState(State.STARTED)
st.set("progress","PART1")
st.playSound("ItemSound.quest_accept")
elif event == "30630_1" :
htmltext = "30630-02.htm"
elif event == "30630_2" :
htmltext = "30630-03.htm"
elif event == "30630_3" :
htmltext = "30630-04.htm"
st.giveItems(ORIMS_CONTRACT,1)
st.set("Orim","2")
elif event == "30682_1" :
htmltext = "30682-02.htm"
st.giveItems(PEKIRONS_TOTEM,1)
st.set("Perkiron","2")
elif event == "30515_1" :
htmltext = "30515-02.htm"
st.giveItems(MANAKIAS_TOTEM,1)
st.set("Manakia","2")
st.set("Manakia_Queen","2")
elif event == "30507_1" :
htmltext = "30507-02.htm"
st.giveItems(RACOYS_TOTEM,1)
st.set("Racoy","2")
elif event == "30030_1" :
htmltext = "30030-02.htm"
elif event == "30030_2" :
htmltext = "30030-03.htm"
elif event == "30030_3" :
htmltext = "30030-04.htm"
st.giveItems(VIVIANTES_LETTER,1)
st.set("Racoy","3")
elif event == "30649_1" :
htmltext = "30649-02.htm"
elif event == "30649_2" :
st.takeItems(WARSPIRIT_TOTEM,-1)
st.takeItems(BRAKIS_REMAINS2,-1)
st.takeItems(HERMODTS_REMAINS2,-1)
st.takeItems(KIRUNAS_REMAINS2,-1)
st.takeItems(TONARS_REMAINS2,-1)
st.addExpAndSp(894888,61408)
st.giveItems(57,161806)
st.giveItems(MARK_OF_WARSPIRIT,1)
st.giveItems(7562,92)
st.getPlayer().sendPacket(SocialAction(st.getPlayer().getObjectId(),3))
htmltext = "30649-03.htm"
for var in STATS:
st.unset(var)
st.exitQuest(False)
st.playSound("ItemSound.quest_finish")
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()
# first time when a player join the quest
if id == State.CREATED:
for var in STATS:
st.set(var,"0")
if player.getClassId().getId() == 0x32:
if player.getLevel() > 38:
htmltext = "30510-04.htm"
else :
htmltext = "30510-03.htm"
st.exitQuest(1)
elif player.getRace().ordinal() == 3:
htmltext = "30510-02.htm"
st.exitQuest(1)
else:
htmltext = "30510-01.htm"
st.exitQuest(1)
return htmltext
# if quest is already State.COMPLETED
elif id == State.COMPLETED:
return Quest.getAlreadyCompletedMsg(player)
# if quest is accepted and in progress
elif id == State.STARTED and st.get("progress") == "PART1":
step=st.getInt("step")
Orim=st.getInt("Orim")
Racoy=st.getInt("Racoy")
Perkiron=st.getInt("Perkiron")
Manakia=st.getInt("Manakia")
#Somak
if npcId == NPC[3]:
if Orim == 6 and Racoy == 11 and Perkiron == 8 and Manakia == 7: # Step 1 finished
htmltext = "30510-07.htm"
st.takeItems(BRAKIS_REMAINS1,1)
st.takeItems(HERMODTS_REMAINS1,1)
st.takeItems(KIRUNAS_REMAINS1,1)
st.takeItems(TONARS_REMAINS1,1)
st.giveItems(VENDETTA_TOTEM,1)
st.setState(State.STARTED)
st.set("progress","PART2")
st.set("cond","3")
else: # shows you again his List
htmltext = "30510-06.htm"
# Orim and his Part, he sends you out to hunt Portas, Mordeos and Excuros
elif npcId == NPC[5]:
if Orim == 1:
htmltext = "30630-01.htm"
elif Orim in [2,3,4]:
htmltext = "30630-05.htm"
elif Orim == 5:
htmltext = "30630-06.htm"
st.takeItems(ORIMS_CONTRACT,-1)
st.takeItems(PORTAS_EYE,-1)
st.takeItems(EXCUROS_SCALE,-1)
st.takeItems(MORDEOS_TALON,-1)
st.giveItems(BRAKIS_REMAINS1,1)
if st.getQuestItemsCount(2887) and st.getQuestItemsCount(2901) and st.getQuestItemsCount(2910) and st.getQuestItemsCount(2894) :
st.set("cond","2")
st.set("Orim","6")
else:
htmltext = "30630-07.htm"
# Racyos Part he sends you into the church and then to the wastelands... after wastelands he give you his item
elif npcId == NPC[2]:
if Racoy == 1:
htmltext = "30507-01.htm"
elif Racoy == 2:
htmltext = "30507-03.htm"
elif Racoy == 3:
htmltext = "30507-04.htm"
elif 10 > Racoy > 3:
htmltext = "30507-05.htm"
elif Racoy == 10:
htmltext = "30507-06.htm"
st.takeItems(RACOYS_TOTEM,-1)
st.takeItems(KIRUNAS_SKULL,-1)
st.takeItems(KIRUNAS_RIB_BONE,-1)
st.takeItems(KIRUNAS_SPINE,-1)
st.takeItems(KIRUNAS_ARM_BONE,-1)
st.takeItems(KIRUNAS_THIGH_BONE,-1)
st.takeItems(INSECT_DIAGRAM_BOOK,-1)
st.giveItems(KIRUNAS_REMAINS1,1)
if st.getQuestItemsCount(2887) and st.getQuestItemsCount(2901) and st.getQuestItemsCount(2910) and st.getQuestItemsCount(2894) :
st.set("cond","2")
st.set("Racoy","11")
else:
htmltext = "30507-07.htm"
# Racoy Part, lady in the church (Viviana)
elif npcId == NPC[0]:
if Racoy == 2: # explainations
htmltext = "30030-01.htm"
elif Racoy == 3: # go to sarien, hurry up
htmltext = "30030-05.htm"
elif 10 > Racoy > 3: # bring more
htmltext = "30030-06.htm"
elif Racoy in [10,11]: # this part is finished, for this npc
htmltext = "30030-07.htm"
# Racoy Part, Wastelands Trader Sarien tells: "Hunt noble ant leaders and bring the items to Racoy"
elif npcId == NPC[1]:
if Racoy == 3: # explanation about hunting noble ants
htmltext = "30436-01.htm"
st.giveItems(INSECT_DIAGRAM_BOOK,1)
st.takeItems(VIVIANTES_LETTER,1)
st.set("Racoy","4")
elif 10 > Racoy > 3: # bring more
htmltext = "30436-02.htm"
elif Racoy in [10,11]: # this part is finished, for this npc
htmltext = "30436-03.htm"
# Perkirons Part, just hunt Lizzardsman near Oren
elif npcId == NPC[7]:
if Perkiron == 1: # explanation
htmltext = "30682-01.htm"
elif Perkiron in [2,3,4,5,6]: # bring more
htmltext = "30682-03.htm"
elif Perkiron == 7: # ah you got anything i need
htmltext = "30682-04.htm"
st.takeItems(PEKIRONS_TOTEM,1)
st.takeItems(TONARS_SKULL,1)
st.takeItems(TONARS_RIB_BONE,1)
st.takeItems(TONARS_SPINE,1)
st.takeItems(TONARS_ARM_BONE,1)
st.takeItems(TONARS_THIGH_BONE,1)
st.giveItems(TONARS_REMAINS1,1)
if st.getQuestItemsCount(2887) and st.getQuestItemsCount(2901) and st.getQuestItemsCount(2910) and st.getQuestItemsCount(2894) :
st.set("cond","2")
st.set("Perkiron","8")
else: # part is finished for this npc
htmltext = "30682-05.htm"
# Manakias Part, hunt Medusas Steona Gorgogon Queen
elif npcId == NPC[4]:
if Manakia == 1: # explanation
htmltext = "30515-01.htm"
elif Manakia == 7: # this part is finished for this npc
htmltext = "30515-05.htm"
elif Manakia == 6 and st.getInt("Manakia_Queen")==3: # ah you got both items i need
htmltext = "30515-04.htm"
st.takeItems(MANAKIAS_TOTEM,1)
st.takeItems(HERMODTS_SKULL,1)
st.takeItems(HERMODTS_RIB_BONE,1)
st.takeItems(HERMODTS_SPINE,1)
st.takeItems(HERMODTS_ARM_BONE,1)
st.takeItems(HERMODTS_THIGH_BONE,1)
st.giveItems(HERMODTS_REMAINS1,1)
if st.getQuestItemsCount(2887) and st.getQuestItemsCount(2901) and st.getQuestItemsCount(2910) and st.getQuestItemsCount(2894) :
st.set("cond","2")
st.set("Manakia","7")
else: # bring me more, because two vars are required , Manakia and Manakia_Queen
htmltext = "30515-03.htm"
elif id == State.STARTED and st.get("progress")=="PART2":
step=st.getInt("step")
if npcId == NPC[3]:
if step == 1: # explain Part 2 again or bring more skulls
htmltext = "30510-08.htm"
elif step == 2: # ah you got the items i need
htmltext = "30510-09.htm"
st.takeItems(VENDETTA_TOTEM,1)
st.takeItems(TAMLIN_ORC_HEAD,st.getQuestItemsCount(TAMLIN_ORC_HEAD))
st.giveItems(WARSPIRIT_TOTEM,1)
st.giveItems(BRAKIS_REMAINS2,1)
st.giveItems(HERMODTS_REMAINS2,1)
st.giveItems(KIRUNAS_REMAINS2,1)
st.giveItems(TONARS_REMAINS2,1)
st.set("cond","5")
st.set("step","3")
else: # this part is finished for this npc
htmltext = "30510-10.htm"
elif npcId == NPC[6] and step == 3:
htmltext = "30649-01.htm" # ah thx.. i will give you the mark of War Spirit
return htmltext
def onKill(self,npc,player,isPet):
st = self.getQuestState(player, False)
if not st : return
npcId=npc.getId()
if (st.getState() == State.STARTED) and (st.get("progress")=="PART1") and not (npcId in PART1_MOBS) : return
if (st.getState() == State.STARTED) and (st.get("progress")=="PART2") and not (npcId in PART2_MOBS) : return
# [accepted values for this part],variable for the current part from the mob,maxcount,chance in %, items to give(one per kill max)=DROPLIST[npcId]
value,var,maxcount,chance,itemList=DROPLIST[npcId]
random=self.getRandom(100)
# return the current value of the var
isValue = st.getInt(var)
if isValue in value and random < chance:
# special part for Noble Ants
if npcId in [20089,20090]:
if not (st.getQuestItemsCount(KIRUNAS_THIGH_BONE) and st.getQuestItemsCount(KIRUNAS_ARM_BONE)) :
list = 0
chance = 70
elif not (st.getQuestItemsCount(KIRUNAS_SPINE) and st.getQuestItemsCount(KIRUNAS_RIB_BONE)) :
list = 1
chance = 40
elif not st.getQuestItemsCount(KIRUNAS_SKULL) :
list = 2
chance = 10
else :
return
if random > chance :
return
for item in itemList[list]:
count = st.getQuestItemsCount(item)
if count >= maxcount : continue
st.giveItems(item,1)
if st.getInt(var) < 9:
isValue = isValue + 1
st.set(var,str(isValue))
if st.getQuestItemsCount(KIRUNAS_SKULL) and st.getInt(var)==9:
st.set(var,"10")
st.playSound("ItemSound.quest_middle")
else :
st.playSound("ItemSound.quest_itemget")
# Drop part for any other mobs
else:
for item in itemList:
count = st.getQuestItemsCount(item)
if count<maxcount:
amount = 1
if item in [EXCUROS_SCALE,MORDEOS_TALON]: amount = 5
if item == [PORTAS_EYE]: amount = 2
st.giveItems(item,amount)
# spawns 5 new medusas around the dead queen *muha*
if npcId == 27108:
for i in range(5):
st.addSpawn(20158)
if st.getQuestItemsCount(item) >= maxcount:
isValue = isValue + 1
st.playSound("ItemSound.quest_middle")
st.set(var,str(isValue))
else:
st.playSound("ItemSound.quest_itemget")
if st.getQuestItemsCount(2881) >= 13:
st.set("cond","4")
return
QUEST = Quest(233,qn,"Test Of Warspirit")
QUEST.addStartNpc(30510)
for npcId in NPC:
QUEST.addTalkId(npcId)
for mobId in PART1_MOBS:
QUEST.addKillId(mobId)
for mobId in PART2_MOBS:
QUEST.addKillId(mobId)
\ 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