First commit
This commit is contained in:
		
							
								
								
									
										132
									
								
								app/SabrehavenServer/data/npc/simon.npc
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										132
									
								
								app/SabrehavenServer/data/npc/simon.npc
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,132 @@
 | 
			
		||||
# GIMUD - Graphical Interface Multi User Dungeon
 | 
			
		||||
# simon.npc: Datenbank f<>r den Bettler Simon auf der Insel Fibula
 | 
			
		||||
 | 
			
		||||
Name = "Simon the Beggar"
 | 
			
		||||
Outfit = (153,116-123-32-40-3)
 | 
			
		||||
Home = [32186,32468,7]
 | 
			
		||||
Radius = 4
 | 
			
		||||
 | 
			
		||||
Behaviour = {
 | 
			
		||||
ADDRESS,"hello$",! -> "Hello %N. I am a poor man. Please help me."
 | 
			
		||||
ADDRESS,"hi$",!    -> *
 | 
			
		||||
ADDRESS,!          -> Idle
 | 
			
		||||
BUSY,"hello$",!    -> "Please wait, %N.", Queue
 | 
			
		||||
BUSY,"hi$",!       -> *
 | 
			
		||||
BUSY,!             -> NOP
 | 
			
		||||
VANISH,!           -> "Have a nice day."
 | 
			
		||||
 | 
			
		||||
"bye"      -> "Have a nice day.", Idle
 | 
			
		||||
"farewell" -> *
 | 
			
		||||
"job"      -> "I have no job. I am a beggar."
 | 
			
		||||
"beggar"   -> "I have no gold and no job, so I am a beggar."
 | 
			
		||||
"gold"     -> "I need gold. I love gold. I need help."
 | 
			
		||||
"name"     -> "My name is Simon. I am a very poor man."
 | 
			
		||||
"simon"    -> "I am Simon. The poorest human all over the continent."
 | 
			
		||||
 | 
			
		||||
"help"   -> Price=100, "I need gold. Can you spend me %P gold pieces?", Topic=1
 | 
			
		||||
Topic=1,"yes",CountMoney>=Price -> DeleteMoney, Price=500, "Thank you very much. Can you spend me %P more gold pieces? I will give you a nice hint.", Topic=2
 | 
			
		||||
Topic=1,"yes"                   -> "You've not enough money for me."
 | 
			
		||||
Topic=1                         -> "Hmm, maybe next time."
 | 
			
		||||
Topic=2,"yes",CountMoney>=Price -> DeleteMoney, Price=200, "That's great! I have stolen something from Dermot. You can buy it for %P gold. Do you want to buy it?", Topic=3
 | 
			
		||||
Topic=2,"yes"                   -> "Sorry, that's not enough."
 | 
			
		||||
Topic=2                         -> "It was your decision."
 | 
			
		||||
Topic=3,"yes",CountMoney>=Price -> DeleteMoney, "Now you own the hot key.", Data=3940, Create(2968)
 | 
			
		||||
Topic=3,"yes"                   -> "Pah! I said 200 gold. You don't have so much."
 | 
			
		||||
Topic=3                         -> "Ok. No problem. I'll find another buyer."
 | 
			
		||||
 | 
			
		||||
"dermot"   -> "The magistrate of the village. I heard he is selling something for the Fibula Dungeon."
 | 
			
		||||
"village"  -> "To the north is the village Fibula. A very small village."
 | 
			
		||||
"key"      -> "Key? There are a lot of keys. Please change the topic."
 | 
			
		||||
"dungeon"  -> "I heard a lot about the Fibula Dungeon. But I never was there."
 | 
			
		||||
"fibula"   -> "I hate Fibula. Too many wolves are here."
 | 
			
		||||
"timur"    -> "I hate Timur. He is too expensive. But sometimes I find maces and hatchets. Timur is buying these items."
 | 
			
		||||
"wolf"     -> "Please kill them ... ALL."
 | 
			
		||||
"flute"    -> "Har, har. The stupid Dermot lost his flute. I know that some minotaurs have it in their treasure room."
 | 
			
		||||
"minotaurs"-> "Very rich monsters. But they are too strong for me. However, there are even stronger monsters."
 | 
			
		||||
"minos"    -> *
 | 
			
		||||
"treasure" -> "I know there are two rooms. And I know you can pass only the first door. The second door can't be opened."
 | 
			
		||||
"giant","spider" -> "I know that terrible monster. It killed the fishers on the isle to the north."
 | 
			
		||||
"monster"  -> "The strongest monster I know is the giant spider."
 | 
			
		||||
"jetty"    -> "I hate this jetty. I have never seen a ship here."
 | 
			
		||||
"ship"     -> "There is a large sea-monster outside. I think there is no gritty captain to sail in this quarter."
 | 
			
		||||
"tibia"    -> "Hehe, do you have a shovel? I can sell you a shovel if you want to return to Tibia."
 | 
			
		||||
 | 
			
		||||
"shovel"   -> Type=3457, Amount=1, Price=50, "Do you want to buy a shovel for %P gold?", Topic=4
 | 
			
		||||
 | 
			
		||||
Topic=4,"yes",CountMoney>=Price -> "Here you are.", DeleteMoney, Create(Type)
 | 
			
		||||
Topic=4,"yes"                   -> "Come back, when you have enough money."
 | 
			
		||||
Topic=4                         -> "Hmm, but next time."
 | 
			
		||||
 | 
			
		||||
"addon",QuestValue(17563)<6 -> "My beard should not bother you my friend."
 | 
			
		||||
"outfit",QuestValue(17563)<6 -> *
 | 
			
		||||
"beard",QuestValue(17563)<6 -> *
 | 
			
		||||
 | 
			
		||||
"addon",QuestValue(17563)=6 -> "Haha, that beard is - well, not fake, but there's a trick behind it. I noticed people tend to be more generous towards a poor gramps. Want to know my trick?", Topic=5
 | 
			
		||||
"outfit",QuestValue(17563)=6 -> *
 | 
			
		||||
"beard",QuestValue(17563)=6 -> *
 | 
			
		||||
Topic=5,"yes",male -> "I can mix a secret potion which will increase your facial hair growth enormeously. I call it 'Instabeard'. However, it requires certain ingredients. ...",
 | 
			
		||||
				"For the small fee of 20000 gold pieces I will help you mix this potion. Just bring me 100 pieces of ape fur, which are necessary to create this potion. ...",
 | 
			
		||||
				"Do we have a deal?", Topic=6
 | 
			
		||||
Topic=5,"yes",female -> "I can mix a secret potion which increases facial hair growth enormeously. I call it 'Instabeard'. However, I fear it works only for men. ...",
 | 
			
		||||
				"Even if it worked on girls, I'd rather not be responsible for you ruining your pretty face. I have an idea though. If you help me brew one of these potions, I sell something nice to you. ...",
 | 
			
		||||
				"I still have a pretty gypsy dress and a pearl necklace somewhere, which you could wear instead of this ragged skirt. For the small fee of 20000 gold pieces, it'd be yours. ...",
 | 
			
		||||
				"You only have to bring me 100 pieces of ape fur, so I can brew the potion. Do we have a deal?", Topic=6
 | 
			
		||||
Topic=5 -> "Maybe another time."
 | 
			
		||||
Topic=6,"yes" -> "Great! Come back to me once you have the 100 pieces of ape fur and I'll do my part of the deal.", SetQuestValue(17563,7)
 | 
			
		||||
Topic=6 -> "Maybe another time."
 | 
			
		||||
 | 
			
		||||
"ape","fur",QuestValue(17563)=7 -> Type=5883, Amount=100, Price=20000, "Have you brought me the 100 pieces of ape fur and 20000 gold pieces?", Topic=7
 | 
			
		||||
"20000",QuestValue(17563)=7 -> *
 | 
			
		||||
"mission",QuestValue(17563)=7 -> *
 | 
			
		||||
"task",QuestValue(17563)=7 -> *
 | 
			
		||||
"outfit",QuestValue(17563)=7 -> *
 | 
			
		||||
"addon",QuestValue(17563)=7 -> *
 | 
			
		||||
Topic=7,"yes",Count(Type)>=Amount,CountMoney>=Price,male -> "Ahh! Very good. I will start mixing the potion immediately. Come back later. Bye bye.", Delete(Type), DeleteMoney, SetQuestValue(17563,8), Idle
 | 
			
		||||
Topic=7,"yes",Count(Type)>=Amount,CountMoney>=Price,female -> "Ahh! Very good. I will start mixing the potion immediately and sell it to some poor foo- eh, man. Goodbye.", Delete(Type), DeleteMoney, SetQuestValue(17563,8), Idle
 | 
			
		||||
Topic=7,"yes" -> "You do not have all the required items."
 | 
			
		||||
Topic=7 -> "Maybe another time."
 | 
			
		||||
 | 
			
		||||
"addon",QuestValue(17563)=8,male -> "Hmm, I'm not done yet with your potion. But here, let me sprinkle a few drops of my own potion on your face... there you go. Now you just have to wait.", SetQuestValue(17563,9), SetExpiringQuestValue(17565, 432000000), Idle
 | 
			
		||||
"outfit",QuestValue(17563)=8,male -> *
 | 
			
		||||
"beard",QuestValue(17563)=8,male -> *
 | 
			
		||||
 | 
			
		||||
"addon",ExpiringQuestValue(17565)>0 -> "Hmm, hmmm, I think you already have a little more hair than the last time I saw you. Just be patient and don't shave. I'm gonna check the progress for you."
 | 
			
		||||
"outfit",ExpiringQuestValue(17565)>0 -> *
 | 
			
		||||
"beard",ExpiringQuestValue(17565)>0 -> *
 | 
			
		||||
 | 
			
		||||
"outfit",ExpiringQuestValue(17565)<0,QuestValue(17563)=9 -> "Aha! I can see it! Now that you've waited patiently without shaving, your beard is perfect! All thanks to my, err, potion. Yes. Goodbye!", AddOutfitAddon(157,2), AddOutfitAddon(153,2), SetQuestValue(17563,10), EffectOpp(13), Idle
 | 
			
		||||
 | 
			
		||||
"gypsy","dress",QuestValue(17563)=8,female -> "Oh, I'm sorry... I almost forgot! Okay, okay... here is your promised dress. I'm sure it will look so much better on you than on me- I mean, my, err, sister.", AddOutfitAddon(157,2), AddOutfitAddon(153,2), SetQuestValue(17563,10), EffectOpp(13), Idle
 | 
			
		||||
"outfit",QuestValue(17563)=8,female -> *
 | 
			
		||||
"addon",QuestValue(17563)=8,female -> *
 | 
			
		||||
 | 
			
		||||
"staff",QuestValue(17563)<10 -> "No, no. It's mine, get your own one!"
 | 
			
		||||
 | 
			
		||||
"outfit",QuestValue(17563)=10 -> "No, no. Our deal is finished, no complaining now, I don't have time all day. And no, you can't have my staff.", SetQuestValue(17563,11)
 | 
			
		||||
"addon",QuestValue(17563)=10 -> *
 | 
			
		||||
 | 
			
		||||
"staff",QuestValue(17563)=11 -> "I said, no! Or well - I have a suggestion to make. Will you listen?", Topic=8
 | 
			
		||||
"addon",QuestValue(17563)=11 -> *
 | 
			
		||||
"outfit",QuestValue(17563)=11 -> *
 | 
			
		||||
"mission",QuestValue(17563)=11 -> *
 | 
			
		||||
"task",QuestValue(17563)=11 -> *
 | 
			
		||||
Topic=8,"yes" -> "When I was wandering around in Tibia, I lost my favourite staff somewhere in the northern ruins in Edron. ...",
 | 
			
		||||
				"Uh, don't ask me what I was doing there... sort of a pilgrimage. Well anyway, if you could bring that staff back to me, I promise I'll give you my current one. ...",
 | 
			
		||||
				"What do you say?", Topic=9
 | 
			
		||||
Topic=8 -> "Maybe another time."
 | 
			
		||||
Topic=9,"yes" -> "Good! Come back to me once you have retrieved my staff. Good luck.", SetQuestValue(17563,12), Idle
 | 
			
		||||
Topic=9 -> "Maybe another time."
 | 
			
		||||
 | 
			
		||||
"staff",QuestValue(17563)=12 -> Type=6107, Amount=1, "Did you bring my favourite staff??", Topic=10
 | 
			
		||||
"mission",QuestValue(17563)=12 -> *
 | 
			
		||||
"task",QuestValue(17563)=12 -> *
 | 
			
		||||
"outfit",QuestValue(17563)=12 -> *
 | 
			
		||||
"addon",QuestValue(17563)=12 -> *
 | 
			
		||||
Topic=10,"yes",Count(Type)>=Amount -> "Yes!! That's it! I'm so glad! Here, you can have my other one. Thanks!", Delete(Type), AddOutfitAddon(157,1), AddOutfitAddon(153,1), SetQuestValue(17563,13), EffectOpp(13), Idle
 | 
			
		||||
Topic=10,"yes" -> "You don't have it."
 | 
			
		||||
Topic=10 -> "Maybe another time."
 | 
			
		||||
 | 
			
		||||
"mission",QuestValue(17563)=13 -> "Nah, nothing new."
 | 
			
		||||
"task",QuestValue(17563)=13 -> *
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user