From d32157e4cbbe49c71137704fdba4cc63bd91bfe2 Mon Sep 17 00:00:00 2001 From: ErikasKontenis Date: Tue, 10 Dec 2019 00:11:19 +0200 Subject: [PATCH] implement klaus npc --- data/npc/klaus.npc | 54 +++++++++++++++++++++++++++++++++++++++++++ data/world/spawns.xml | 5 ---- 2 files changed, 54 insertions(+), 5 deletions(-) create mode 100644 data/npc/klaus.npc diff --git a/data/npc/klaus.npc b/data/npc/klaus.npc new file mode 100644 index 0000000..4b9b986 --- /dev/null +++ b/data/npc/klaus.npc @@ -0,0 +1,54 @@ +# GIMUD - Graphical Interface Multi User Dungeon + +Name = "Klaus" +Outfit = (96,0-0-0-0) +Home = [31981,32826,2] +Radius = 5 + +Behaviour = { +ADDRESS,"hello$",! -> "Ho matey!", Topic=1 +ADDRESS,"hi$",! -> * +ADDRESS,! -> Idle +BUSY,"hello$",! -> "Wait a moment, %N. I'll be here soon.", Queue +BUSY,"hi$",! -> * +BUSY,! -> NOP +VANISH,! -> "Arrr!" + +"bye" -> "Whenever your throat is dry, you know where to find my tavern.", Idle +"farewell" -> * +"name" -> "I'm Klaus." +"rum" -> "There are people who would kill you for rum. Then again there are people who would kill you anyway." +"raymond striker" -> "Sooner or later he will run out of luck and then we will have his head." +"liberty bay" -> "We have a kind of trade agreement. They make the rum and we plunder it. Har Har Har." +"thais" -> "The Thaian people see themselves as the rulers of the world. If they only knew ... Har Har Har." +"carlin" -> "A city that is run by women. And those wimps in Thais have still not been able to regain control. Har Har Har." +"venore" -> "The Venoreans are the power of the future, trust me." +"king" -> "If I were the king, I'd fill my court with the most beautiful women of the realm. Har Har Har." +"treasure map" -> "I've already given you the complete map. Now you're on your own, matey." +"pirate" -> "Ah, the romantic life of a pirate. Fish for breakfast, storms for lunch and an early death for supper. Har Har Har." +"excalibug" -> "I guess it would come in handy to open some casks. Har Har Har." +"ferumbras" -> "Dead magicians are only good for frightening little children. Har Har Har." + +"gambl" -> "So you care for a civilized game of dice?", Topic=1 +"game" -> * +"dice" -> * + +Topic=1,"yes" -> "Hmmm, would you like to play for money or for a chance to win your own dice?", Topic=3 +Topic=1,"no" -> "Oh come on, don't be a child." + +Topic=3,"money" -> "I thought so. Okay, I will roll a dice. If it shows 6, you will get five times your bet. How much do you want to bet?", Amount=Random(1,6), Topic=2 +Topic=3,"dice" -> "Hehe, good choice. Okay, the price for this game is 100 gold pieces. I will roll a dice. If I roll a 6, you can have my dice. Agreed?", Amount=Random(1,6), Topic=4 + +Topic=6,"yes" -> "Okay, I will roll a dice. If it shows 6, you will get five times your bet. How much do you want to bet?", Amount=Random(1,6), Topic=2 +Topic=6,"no" -> "Oh come on, don't be a child." +Topic=2,%1,0<%1,100>%1,CountMoney>=%1,Amount=6 -> Price=%1*5, "Ok, here we go ... 6! You have won %P, congratulations. One more game?", CreateMoney, EffectMe(27), Topic=6 +Topic=2,%1,0<%1,100>%1,CountMoney>=%1 -> Price=%1, "Ok, here we go ... %A! You have lost. Har Har Har. One more game?", DeleteMoney, EffectMe(27), Topic=6 +Topic=2,%1,0<%1,100>%1 -> "You don't have so much money. How much do you want to bet?", Topic=2 +Topic=2,%1 -> "I accept only bets between 1 and 99 gold. I don't want to ruin you after all. How much do you want to bet?", Topic=2 + +Topic=5,"yes" -> "Okay, the price for this game is 100 gold pieces. I will roll a dice. If I roll a 6, you can have my dice. Agreed?", Amount=Random(1,6), Topic=4 +Topic=5,"no" -> "Oh come on, don't be a child." +Topic=4,"yes",CountMoney>=100,Amount=6 -> Price=100, Type=5792, Amount=1, "Ok, here we go ... 6! You have won a dice, congratulations. One more game?", DeleteMoney, Create(Type), EffectMe(27), Topic=5 +Topic=4,"yes",CountMoney>=100 -> Price=100, "Ok, here we go ... %A! You have lost. Har Har Har. One more game?", DeleteMoney, EffectMe(27), Topic=5 +Topic=4,"yes" -> "You don't have so much money." +} diff --git a/data/world/spawns.xml b/data/world/spawns.xml index 1c2551c..3e855ea 100644 --- a/data/world/spawns.xml +++ b/data/world/spawns.xml @@ -145,11 +145,6 @@ - - - - -