From e576c77f5f5fac0ae3c924918305d24bb28f6fa0 Mon Sep 17 00:00:00 2001 From: ErikasKontenis Date: Fri, 13 Dec 2019 21:04:55 +0200 Subject: [PATCH] finished first barbarian addon part --- data/npc/ajax.npc | 21 +++++++++++++++ data/npc/bron.npc | 64 +++++++++++++++++++++++++++++++++++++++++++-- data/npc/haroun.npc | 8 +++--- data/npc/yaman.npc | 8 +++--- 4 files changed, 91 insertions(+), 10 deletions(-) diff --git a/data/npc/ajax.npc b/data/npc/ajax.npc index 1674e98..f13f419 100644 --- a/data/npc/ajax.npc +++ b/data/npc/ajax.npc @@ -6,6 +6,10 @@ Home = [32417,31583,7] Radius = 3 Behaviour = { +ADDRESS,"hello$",QuestValue(17532)=2,ExpiringQuestValue(17533)<0,! -> "You back. You know, you right. Brother is right. Fist not always good. Tell him that!", SetQuestValue(17532,3), Idle +ADDRESS,"hi$",QuestValue(17532)=2,ExpiringQuestValue(17533)<0,! -> * +ADDRESS,"hello$",ExpiringQuestValue(17533)>0,! -> "Head aches. GO AWAY!", SetExpiringQuestValue(17533, 3600000), Idle +ADDRESS,"hi$",ExpiringQuestValue(17533)>0,! -> * ADDRESS,"hello$",! -> "Whatcha do in my place?" ADDRESS,"hi$",! -> * ADDRESS,! -> Idle @@ -20,4 +24,21 @@ VANISH,! -> NOP "fight" -> "You. Weak." "job" -> "No time for such a stupid thing." "name" -> "Ajax." + +"MINE",QuestValue(17532)=1 -> "YOURS? WHAT IS YOURS! NOTHING IS YOURS! IS MINE! GO AWAY, YES?!", EffectOpp(16), Burning(50,10), Topic=1 +Topic=1,"no" -> "YOU STUPID! STUBBORN! I KILL YOU! WILL LEAVE NOW?!", Topic=2 +Topic=1 -> "BYE!!!", Idle +Topic=2,"no" -> "ARRRRRRRRRR! YOU ME DRIVE MAD! HOW I MAKE YOU GO??", Topic=3 +Topic=2 -> "ARRRRRRRRRR!!!", Idle +Topic=3,"no" -> "I GIVE YOU NO!", Topic=4 +Topic=3 -> "ARRRRRRRRRR!!!", Idle +Topic=4,"say","please" -> "Please? What you mean please? Like I say please you say bye? Please?", Topic=5 +Topic=4 -> "ARRRRRRRRRR!!!", Idle +Topic=5,"yes" -> "Oh. Easy. Okay. Please is good. Now don't say anything. Head aches.", SetQuestValue(17532,2), SetExpiringQuestValue(17533, 3600000), Idle +Topic=5 -> "ARRRRRRRRRR!!!", Idle + +"Gelagos",QuestValue(17532)=5 -> "Annoying kid. Bro hates him, but talking no help. Bro needs fighting spirit!" +"fighting","spirit",QuestValue(17532)=5 -> "If you want to help bro, bring him fighting spirit. Magic fighting spirit. Ask Djinn." + +"present",QuestValue(17532)=12 -> "Bron gave me present. Ugly, but nice from him. Me want to give present too. You help me?" } diff --git a/data/npc/bron.npc b/data/npc/bron.npc index 58f091d..ea1666c 100644 --- a/data/npc/bron.npc +++ b/data/npc/bron.npc @@ -6,16 +6,76 @@ Home = [32366,31628,7] Radius = 2 Behaviour = { -ADDRESS,"hello$",! -> "Hello, %N." +ADDRESS,"hello$",QuestValue(17532)=6,! -> "Oh no! Was that really me? This is so embarassing, I have no idea what has gotten into me. Was that the fighting spirit you gave me?", SetQuestValue(17532,7), Topic=4 +ADDRESS,"hi$",QuestValue(17532)=6,! -> * +ADDRESS,"hello$",! -> "Welcome to my humble hut, %N." ADDRESS,"hi$",! -> * ADDRESS,! -> Idle BUSY,"hello$",! -> "Wait, %N.", Queue BUSY,"hi$",! -> * BUSY,! -> NOP -VANISH,! -> NOP +VANISH,! -> "Bye." "bye" -> "Bye, %N.", Idle "farewell" -> * +"violence",QuestValue(17532)=0 -> "Convincing Ajax that it is not always necessary to use brute force... this would be such an achievement. Definitely a hard task though. ...", + "Listen, I simply have to ask, maybe a stranger can influence him better than I can. Would you help me with my brother?", Topic=1 +Topic=1,"yes" -> "Really! That is such an incredibly nice offer! I already have a plan. You have to teach him that sometimes words are stronger than fists. ...", + "Maybe you can provoke him with something to get angry, like saying... 'MINE!' or something. But beware, I'm sure that he will try to hit you. ...", + "Don't do this if you feel weak or ill. He will probably want to make you leave by using violence, but just stay strong and refuse to give up. ...", + "If he should ask what else is necessary to make you leave, tell him to 'say please'. Afterwards, do leave and return to him one hour later. ...", + "This way he might learn that violence doesn't always help, but that a friendly word might just do the trick. ...", + "Have you understood everything I told you and are really willing to take this risk?", Topic=2 +Topic=1 -> "Maybe another time." +Topic=2,"yes" -> "You are indeed not only well educated, but also very courageous. I wish you good luck, you are my last hope.", SetQuestValue(17532,1) +Topic=2 -> "Maybe another time." + +"Brother","is","right","Fist","not","always","good",QuestValue(17532)=3 -> "Oh! He really said that? I am so proud of you, %N. These are really good news. Everything would be great... if only there wasn't this person near my house.", SetQuestValue(17532,4) +"person",QuestValue(17532)=4 -> "This... person... makes me want to... say something bad... must... control myself. I really don't know what to do anymore....", + "I wonder if Ajax has an idea. Could you ask him about Gelagos?", Topic=3 +"gelagos",QuestValue(17532)=4 -> * +"gelagos" -> "This... person... makes me want to... say something bad... must... control myself." +Topic=3,"yes" -> "Again, I have to thank you for your selfless offer to help me. I hope that Ajax can come up with something, now that he has experienced the power of words.", SetQuestValue(17532,5) +Topic=3 -> "Maybe another time." + +"fighting","spirit",QuestValue(17532)=5,Count(5884)>=1 -> "Fighting spirit? What am I supposed to do with this fi... - oh! I feel strange... ME MIGHTY! ME WILL CHASE OFF ANNOYING KIDS!GROOOAARR!! RRRRRRRRRRRRAAAAAAAGE!!", DeleteAmount(5884, 1), SetQuestValue(17532,6), Idle +"fighting","spirit" -> "No, no, no. I don't need any fighting spirit never." + +Topic=4,"yes" -> "I'm impressed... I am sure this was Ajax' idea. I would love to give him a present, but if I leave my hut to gather ingredients, he will surely notice. ...", + "Would you maybe help me again, one last time, my friend? I assure you that your efforts will not be in vain.", Topic=5 +Topic=4 -> "Of course not you my educated friend. I can't believe how this happened. I would love to give Ajax a present, but if I leave my hut to gather ingredients, he will surely notice. ...", + "Would you maybe help me again, one last time, my friend? I assure you that your efforts will not be in vain.", Topic=5 + +"help",QuestValue(17532)=7 -> "Oh, you came to help me to make a present for Ajax?", Topic=5 +"present",QuestValue(17532)=7 -> * +Topic=5,"yes" -> "Great! You see, I really would love to sew a nice shirt for him. I just need a few things for that, so please listen closely: ...", + "He loves green and red, so I will need about 50 pieces of red cloth - like the material heroes make their capes of - and 50 pieces of the green cloth Djinns like. ...", + "Secondly, I need about 10 rolls of spider silk yarn. I think mermaids can yarn silk of large spiders to create a smooth thread. ...", + "The only remaining thing needed would be a bottle of warrior's sweat to spray it over the shirt... he just loves this smell. ...", + "Have you understood everything I told you and are willing to handle this task?", Topic=6 +Topic=5 -> "Hmmm. If you wish to help another time to make a present I will be waiting for you." +Topic=6,"yes" -> "Thank you, my friend! Come back to me once you have collected 50 pieces of red cloth and 50 pieces of green cloth.", SetQuestValue(17532,8) +Topic=6 -> "Hmmm. If you wish to help another time to make a present I will be waiting for you." +"cloth",QuestValue(17532)=8 -> "Have you really managed to fulfill the task and brought me 50 pieces of red cloth and 50 pieces of green cloth?", Topic=7 +Topic=7,"yes",Count(5911)>=50,Count(5910)>=50 -> "Terrific! I will start to trim it while you gather 10 rolls of spider silk. I'm sure that Ajax will love it.", DeleteAmount(5911,50), DeleteAmount(5910,50), SetQuestValue(17532,9) +Topic=7,"yes" -> "Sorry, you do not have so many." +Topic=7 -> "Maybe another time." + +"rolls","of","spider","silk",QuestValue(17532)=9 -> "Oh, did you bring 10 rolls of spider silk yarn for me?", Topic=8 +Topic=8,"yes",Count(5886)>=10 -> "I'm impressed! You really managed to get spider silk yarn for me! I will immediately start to work on this shirt. Please don't forget to bring me warrior's sweat!", DeleteAmount(5886,10), SetQuestValue(17532,10) +Topic=8,"yes" -> "Sorry, you do not have so many." +Topic=8 -> "Maybe another time." + +"sweat",QuestValue(17532)=10 -> "Were you able to get hold of a flask with pure warrior's sweat?", Topic=9 +Topic=9,"yes",Count(5885)>=1 -> "Good work, %N! Now I can finally finish this present for Ajax. Because you were such a great help, I have also a present for you. Will you accept it?", DeleteAmount(5885,1), SetQuestValue(17532,11), Topic=10 +Topic=9,"yes" -> "Sorry, you do not have it." +Topic=9 -> "Maybe another time." + +"present",QuestValue(17532)=11 -> "Because you were such a great help, I have also a present for you. Will you accept it?", Topic=10 +"help",QuestValue(17532)=11 -> * +Topic=10,"yes" -> "I have kept this traditional barbarian wig safe for many years now. It is now yours! I hope you will wear it proudly, friend.", AddOutfitAddon(147,2), AddOutfitAddon(143,2), SetQuestValue(17532,12) +Topic=10 -> "Okey, ask for it when you feel ready, friend." + } diff --git a/data/npc/haroun.npc b/data/npc/haroun.npc index ebdf9c4..819d45f 100644 --- a/data/npc/haroun.npc +++ b/data/npc/haroun.npc @@ -173,28 +173,28 @@ Topic=11,"yes" -> "You do not have one." Topic=11,"yes",Amount>1 -> "You do not have that many." Topic=11 -> "I understand. Perhaps another time then." -"fighting","spirit" -> Type=3392, Amount=2, "Do you want to trade %A royal helmets for fighting spirit?", Topic=12 +"fighting","spirit" -> Type=3392, Amount=2, "I need two royal helmets to extract one container of fighting spirit. Would you like me to perform the extraction?", Topic=12 Topic=12,QuestValue(283)<3,! -> "I'm sorry, human. But you need Gabel's permission to trade with me." Topic=12,"yes",Count(Type)>=Amount -> "Here you are.", Delete(Type), Type=5884, Amount=1, Create(Type) Topic=12,"yes" -> "You do not have one." Topic=12,"yes",Amount>1 -> "You do not have that many." Topic=12 -> "I understand. Perhaps another time then." -"magic","sulphur" -> Type=3280, Amount=3, "Do you want to trade %A fire swords for magic sulphur?", Topic=13 +"magic","sulphur" -> Type=3280, Amount=3, "I need three fire sword to extract one magic sulphur. Would you like me to perform the extraction?", Topic=13 Topic=13,QuestValue(283)<3,! -> "I'm sorry, human. But you need Gabel's permission to trade with me." Topic=13,"yes",Count(Type)>=Amount -> "Here you are.", Delete(Type), Type=5904, Amount=1, Create(Type) Topic=13,"yes" -> "You do not have one." Topic=13,"yes",Amount>1 -> "You do not have that many." Topic=13 -> "I understand. Perhaps another time then." -"warrior","sweat" -> Type=3369, Amount=4, "Do you want to trade %A warrior helmets for flask of warrior's sweat?", Topic=14 +"warrior","sweat" -> Type=3369, Amount=4, "I need four warrior helmets to extract one flask of warrior's sweat. Would you like me to perform the extraction?", Topic=14 Topic=14,QuestValue(283)<3,! -> "I'm sorry, human. But you need Gabel's permission to trade with me." Topic=14,"yes",Count(Type)>=Amount -> "Here you are.", Delete(Type), Type=5885, Amount=1, Create(Type) Topic=14,"yes" -> "You do not have one." Topic=14,"yes",Amount>1 -> "You do not have that many." Topic=14 -> "I understand. Perhaps another time then." -"chicken","wing" -> Type=3079, Amount=1, "Do you want to trade %A boots of haste for enchanted chicken wing?", Topic=15 +"chicken","wing" -> Type=3079, Amount=1, "I need one pair of boots of haste to extract one enchanted chicken wing. Would you like me to perform the extraction?", Topic=15 Topic=15,QuestValue(283)<3,! -> "I'm sorry, human. But you need Gabel's permission to trade with me." Topic=15,"yes",Count(Type)>=Amount -> "Here you are.", Delete(Type), Type=5891, Amount=1, Create(Type) Topic=15,"yes" -> "You do not have one." diff --git a/data/npc/yaman.npc b/data/npc/yaman.npc index be714cd..9064134 100644 --- a/data/npc/yaman.npc +++ b/data/npc/yaman.npc @@ -159,28 +159,28 @@ Topic=11,"yes" -> "You do not have one, human!" Topic=11,"yes",Amount>1 -> "You do not have that many, human!" Topic=11 -> "As you wish." -"fighting","spirit" -> Type=3392, Amount=2, "Do you want to trade %A royal helmets for fighting spirit?", Topic=12 +"fighting","spirit" -> Type=3392, Amount=2, "I need two royal helmets to extract one container of fighting spirit. Would you like me to perform the extraction?", Topic=12 Topic=12,QuestValue(288)<3,! -> "I'm sorry, but you don't have Malor's permission to trade with me." Topic=12,"yes",Count(Type)>=Amount -> "Good. Here you are.", Delete(Type), Type=5884, Amount=1, Create(Type) Topic=12,"yes" -> "You do not have one, human!" Topic=12,"yes",Amount>1 -> "You do not have that many, human!" Topic=12 -> "As you wish." -"magic","sulphur" -> Type=3280, Amount=3, "Do you want to trade %A fire swords for magic sulphur?", Topic=13 +"magic","sulphur" -> Type=3280, Amount=3, "I need three fire sword to extract one magic sulphur. Would you like me to perform the extraction?", Topic=13 Topic=13,QuestValue(288)<3,! -> "I'm sorry, but you don't have Malor's permission to trade with me." Topic=13,"yes",Count(Type)>=Amount -> "Good. Here you are.", Delete(Type), Type=5904, Amount=1, Create(Type) Topic=13,"yes" -> "You do not have one, human!" Topic=13,"yes",Amount>1 -> "You do not have that many, human!" Topic=13 -> "As you wish." -"warrior","sweat" -> Type=3369, Amount=4, "Do you want to trade %A warrior helmets for flask of warrior's sweat?", Topic=14 +"warrior","sweat" -> Type=3369, Amount=4, "I need four warrior helmets to extract one flask of warrior's sweat. Would you like me to perform the extraction?", Topic=14 Topic=14,QuestValue(288)<3,! -> "I'm sorry, but you don't have Malor's permission to trade with me." Topic=14,"yes",Count(Type)>=Amount -> "Good. Here you are.", Delete(Type), Type=5885, Amount=1, Create(Type) Topic=14,"yes" -> "You do not have one, human!" Topic=14,"yes",Amount>1 -> "You do not have that many, human!" Topic=14 -> "As you wish." -"chicken","wing" -> Type=3079, Amount=1, "Do you want to trade %A boots of haste for enchanted chicken wing?", Topic=15 +"chicken","wing" -> Type=3079, Amount=1, "I need one pair of boots of haste to extract one enchanted chicken wing. Would you like me to perform the extraction?", Topic=15 Topic=15,QuestValue(288)<3,! -> "I'm sorry, but you don't have Malor's permission to trade with me." Topic=15,"yes",Count(Type)>=Amount -> "Good. Here you are.", Delete(Type), Type=5891, Amount=1, Create(Type) Topic=15,"yes" -> "You do not have one, human!"