From 5b2b9267bd9dce0b91051ee265986c7e131a17c9 Mon Sep 17 00:00:00 2001 From: ErikasKontenis Date: Sat, 11 Apr 2020 12:15:03 +0300 Subject: [PATCH] add young vocation tasks --- New Text Document.txt | 2 +- data/XML/quests.xml | 12 ++++++++++++ .../scripts/killing_in_the_name_of.lua | 5 +++++ data/npc/daniel.npc | 2 +- data/npc/galuna.npc | 13 +++++++++++++ data/npc/gen-t-distance-s.ndb | 12 ++++++++++++ data/npc/gen-t-wands-free-s.ndb | 18 +++++++++++++++++- data/npc/perac.npc | 13 +++++++++++++ data/npc/sam.npc | 16 ++++++++++++++++ data/npc/xed.npc | 13 +++++++++++++ 10 files changed, 103 insertions(+), 3 deletions(-) diff --git a/New Text Document.txt b/New Text Document.txt index 8fcf217..d07fbdb 100644 --- a/New Text Document.txt +++ b/New Text Document.txt @@ -1 +1 @@ -next: 17644 \ No newline at end of file +next: 17653 \ No newline at end of file diff --git a/data/XML/quests.xml b/data/XML/quests.xml index 0b947ac..6508ec7 100644 --- a/data/XML/quests.xml +++ b/data/XML/quests.xml @@ -443,4 +443,16 @@ + + + + + + + + + + + + diff --git a/data/creaturescripts/scripts/killing_in_the_name_of.lua b/data/creaturescripts/scripts/killing_in_the_name_of.lua index dc9069b..3a8b0bd 100644 --- a/data/creaturescripts/scripts/killing_in_the_name_of.lua +++ b/data/creaturescripts/scripts/killing_in_the_name_of.lua @@ -42,6 +42,11 @@ local tasks = { ['rotworm'] = {taskerStorage = 17632, progressStorage = 17635, killsRequired = 150}, ['carrion worm'] = {taskerStorage = 17632, progressStorage = 17635, killsRequired = 150}, ['cyclops'] = {taskerStorage = 17632, progressStorage = 17636, killsRequired = 500}, + + -- Young Vocation Tasks + ['amazon'] = {taskerStorage = 17644, progressStorage = 17645, killsRequired = 50}, + ['orc'] = {taskerStorage = 17649, progressStorage = 17648, killsRequired = 50}, + ['minotaur'] = {taskerStorage = 17652, progressStorage = 17651, killsRequired = 50}, } function onKill(player, target) diff --git a/data/npc/daniel.npc b/data/npc/daniel.npc index fc068e7..10945f6 100644 --- a/data/npc/daniel.npc +++ b/data/npc/daniel.npc @@ -106,7 +106,7 @@ Topic=3,"cyclop" -> Amount=17636, "We've successfully driven the minotaurs off t # Speaks "task",QuestValue(17632)>0 -> "Your current task is in progress. Follow the status of your task in the quest log. If you wish to cancel your in-progress task then don't be afraid and feel free to cancel." -Topic=4,"yes" -> "I'm pleased with your eagerness. Good luck!", SetQuestValue(17632,Amount), SetQuestValue(Amount,0) +Topic=4,"yes" -> "I'm pleased with your eagerness. Good luck!", SetQuestValue(17632,Amount), SetQuestValue(Amount,0), SetQuestValue(17607,1) Topic=4 -> "Maybe next time." "cancel",QuestValue(17632)>0 -> "Are you sure you want to cancel your current task?", Topic=6 diff --git a/data/npc/galuna.npc b/data/npc/galuna.npc index 7d38ad4..9e2d319 100644 --- a/data/npc/galuna.npc +++ b/data/npc/galuna.npc @@ -54,4 +54,17 @@ VANISH,! -> "Good bye." Topic=1,"yes",CountMoney>=Price -> "Here you are.", DeleteMoney, Create(Type) Topic=1,"yes" -> "Come back, when you have enough money." Topic=1 -> "Hmm, but next time." + +"task",QuestValue(17647)=0,paladin -> Amount=17648, "Young paladin, I see you need ammunition but those are too expensive, right. Hmm... I can't give you for free. ...", + "However, if you could kill 50 orcs to prove your trustworthy willingness I will reward you the bow and 200 arrows. Deal?", Topic=120 + +"task",QuestValue(17648)=50,QuestValue(17647)=1,paladin -> "Well done, %N. Here is your bow and arrows!", SetQuestValue(17647,2), SetQuestValue(17649,0), Type=3350, Amount=1, Create(Type), Type=3447, Amount=200, Create(Type) + +"task",QuestValue(17649)>0 -> "I see you are still in progress with your task." + +Topic=120,"yes" -> "Very well young paladin. Come back once you are done.", SetQuestValue(17649,Amount), SetQuestValue(Amount,0), SetQuestValue(17647,1) +Topic=120 -> "As you wish." + +"task" -> "I don't have any tasks for you right now." + } diff --git a/data/npc/gen-t-distance-s.ndb b/data/npc/gen-t-distance-s.ndb index baf94d9..2d31890 100644 --- a/data/npc/gen-t-distance-s.ndb +++ b/data/npc/gen-t-distance-s.ndb @@ -23,3 +23,15 @@ Topic=34,"yes",CountMoney>=Price -> "Here you are.", DeleteMoney, Create(Type) Topic=34,"yes" -> "Come back, when you have enough money." Topic=34 -> "Hmm, but next time." + +"task",QuestValue(17647)=0,paladin -> Amount=17648, "Young paladin, I see you need ammunition but those are too expensive, right. Hmm... I can't give you for free. ...", + "However, if you could kill 50 orcs to prove your trustworthy willingness I will reward you the bow and 200 arrows. Deal?", Topic=120 + +"task",QuestValue(17648)=50,paladin -> "Well done, %N. Here is your bow and arrows!", SetQuestValue(QuestValue(17649),51), SetQuestValue(17649,0), Type=3350, Amount=1, Create(Type), Type=3447, Amount=200, Create(Type) + +"task",QuestValue(17649)>0 -> "I see you are still in progress with your task." + +Topic=120,"yes" -> "Very well young paladin. Come back once you are done.", SetQuestValue(17649,Amount), SetQuestValue(Amount,0), SetQuestValue(17647,1) +Topic=120 -> "As you wish." + +"task" -> "I don't have any tasks for you right now." \ No newline at end of file diff --git a/data/npc/gen-t-wands-free-s.ndb b/data/npc/gen-t-wands-free-s.ndb index 192013e..7c21b09 100644 --- a/data/npc/gen-t-wands-free-s.ndb +++ b/data/npc/gen-t-wands-free-s.ndb @@ -44,4 +44,20 @@ druid,"snakebite","rod",QuestValue(333)<1 -> "Oh, is this your first snakebite Topic=92,"yes",CountMoney>=Price -> "Here you are.", DeleteMoney, Create(Type) Topic=92,"yes" -> "Sorry, you don't have enough gold." -Topic=92 -> "You don't know what you're missing." \ No newline at end of file +Topic=92 -> "You don't know what you're missing." + +"task",QuestValue(17646)=0,druid -> Amount=17645, "Young druid, I see you wan't your second rod but those are too expensive, right. Hmm... I can't give you one for free. ...", + "However, if you could kill 50 amazons to prove your trustworthy willingness I will reward you the moonlight rod. Deal?", Topic=120 + +"task",QuestValue(17646)=0,sorcerer -> Amount=17645, "Young sorcerer, I see you wan't your second wand but those are too expensive, right. Hmm... I can't give you one for free. ...", + "However, if you could kill 50 amazons to prove your trustworthy willingness I will reward you the wand of dragonbreath. Deal?", Topic=120 + +"task",QuestValue(17645)=50,QuestValue(17646)=1,druid -> "Well done, %N. Here is your moonlight rod!", SetQuestValue(17646,2), SetQuestValue(17644,0), Type=3070, Amount=1,Create(Type) +"task",QuestValue(17645)=50,QuestValue(17646)=1,sorcerer -> "Well done, %N. Here is your wand of dragonbreath!", SetQuestValue(17646,2), SetQuestValue(17644,0), Type=3075, Amount=1,Create(Type) + +"task",QuestValue(17644)>0 -> "I see you are still in progress with your task." + +Topic=120,"yes" -> "Very well young mage. Come back once you are done.", SetQuestValue(17644,Amount), SetQuestValue(Amount,0), SetQuestValue(17646,1) +Topic=120 -> "As you wish." + +"task" -> "I don't have any tasks for you right now." \ No newline at end of file diff --git a/data/npc/perac.npc b/data/npc/perac.npc index c5be314..5b93c2f 100644 --- a/data/npc/perac.npc +++ b/data/npc/perac.npc @@ -45,4 +45,17 @@ VANISH,! -> "Good bye." Topic=1,"yes",CountMoney>=Price -> "Here you are.", DeleteMoney, Create(Type) Topic=1,"yes" -> "Come back, when you have enough money." Topic=1 -> "Hmm, but next time." + +"task",QuestValue(17647)=0,paladin -> Amount=17648, "Young paladin, I see you need ammunition but those are too expensive, right. Hmm... I can't give you for free. ...", + "However, if you could kill 50 orcs to prove your trustworthy willingness I will reward you the bow and 200 arrows. Deal?", Topic=120 + +"task",QuestValue(17648)=50,QuestValue(17647)=1,paladin -> "Well done, %N. Here is your bow and arrows!", SetQuestValue(17647,2), SetQuestValue(17649,0), Type=3350, Amount=1, Create(Type), Type=3447, Amount=200, Create(Type) + +"task",QuestValue(17649)>0 -> "I see you are still in progress with your task." + +Topic=120,"yes" -> "Very well young paladin. Come back once you are done.", SetQuestValue(17649,Amount), SetQuestValue(Amount,0), SetQuestValue(17647,1) +Topic=120 -> "As you wish." + +"task" -> "I don't have any tasks for you right now." + } diff --git a/data/npc/sam.npc b/data/npc/sam.npc index 6cd7d63..5a8789e 100644 --- a/data/npc/sam.npc +++ b/data/npc/sam.npc @@ -193,4 +193,20 @@ Topic=5,"no" -> "What a pity." "addon",QuestValue(17542)=6 -> "Sorry, Gregor told me to adorn only one helmet for you and you have already received one." "adorned","helmet",QuestValue(17542)=6 -> * +"task",QuestValue(17650)=0,knight -> Amount=17651, "Young knight, I see you need decent weapon but those are too expensive, right. Hmm... I can't give you for free. ...", + "However, if you could kill 50 minotaurs to prove your trustworthy willingness I will reward you the weapon of your choose. Deal?", Topic=120 + +"task",QuestValue(17651)=50,QuestValue(17650)=1,knight -> "Well done, %N. Which type of weapon do you use the most: axe, sword or club?", Topic=121 +Topic=121,"axe" -> "Very well. I have some spare barbarian axe for you!", SetQuestValue(17650,2), SetQuestValue(17652,0), Type=3317, Amount=1, Create(Type) +Topic=121,"sword" -> "Very well. I have some spare serpent sword for you!", SetQuestValue(17650,2), SetQuestValue(17652,0), Type=3297, Amount=1, Create(Type) +Topic=121,"club" -> "Very well. I have some spare clerical mace for you!", SetQuestValue(17650,2), SetQuestValue(17652,0), Type=3311, Amount=1, Create(Type) +Topic=121 -> "If you can't decide right now you can come later." + +"task",QuestValue(17652)>0 -> "I see you are still in progress with your task." + +Topic=120,"yes" -> "Very well young knight. Come back once you are done.", SetQuestValue(17652,Amount), SetQuestValue(Amount,0), SetQuestValue(17650,1) +Topic=120 -> "As you wish." + +"task" -> "I don't have any tasks for you right now." + } diff --git a/data/npc/xed.npc b/data/npc/xed.npc index 0ea66bc..ff8e92e 100644 --- a/data/npc/xed.npc +++ b/data/npc/xed.npc @@ -62,4 +62,17 @@ VANISH,! -> "Goodbye, and may the gods be with you." Topic=1,"yes",CountMoney>=Price -> "Here you are.", DeleteMoney, Create(Type) Topic=1,"yes" -> "Come back, when you have enough money." Topic=1 -> "Hmm, but next time." + +"task",QuestValue(17647)=0,paladin -> Amount=17648, "Young paladin, I see you need ammunition but those are too expensive, right. Hmm... I can't give you for free. ...", + "However, if you could kill 50 orcs to prove your trustworthy willingness I will reward you the bow and 200 arrows. Deal?", Topic=120 + +"task",QuestValue(17648)=50,QuestValue(17647)=1,paladin -> "Well done, %N. Here is your bow and arrows!", SetQuestValue(17647,2), SetQuestValue(17649,0), Type=3350, Amount=1, Create(Type), Type=3447, Amount=200, Create(Type) + +"task",QuestValue(17649)>0 -> "I see you are still in progress with your task." + +Topic=120,"yes" -> "Very well young paladin. Come back once you are done.", SetQuestValue(17649,Amount), SetQuestValue(Amount,0), SetQuestValue(17647,1) +Topic=120 -> "As you wish." + +"task" -> "I don't have any tasks for you right now." + }