# GIMUD - Graphical Interface Multi User Dungeon
# haroun.npc: Datenbank für den Maridhändler Haroun (Magische Gegenstände, Marid)

Name = "Haroun"
Outfit = (80,0-0-0-0-0)
Home = [33108,32525,4]
Radius = 1

Behaviour = {

ADDRESS,"hello$",QuestValue(278)=2,!      -> "Be greeted, human %N. How can a humble djinn be of service?"
ADDRESS,"hi$",QuestValue(278)=2,!         -> *
ADDRESS,"greetings$",QuestValue(278)=2,!  -> *
ADDRESS,"djanni'hah$",QuestValue(278)=2,! -> *
ADDRESS,!                                 -> Idle
BUSY,"hello$",QuestValue(278)=2,!         -> "Please wait, human %N. I'll be with you in a minute.", Queue
BUSY,"hi$",QuestValue(278)=2,!            -> *
BUSY,"greetings$",QuestValue(278)=2,!     -> *
BUSY,"djanni'hah$",QuestValue(278)=2,!    -> *
BUSY,!                                    -> NOP
VANISH                                    -> "Farewell, human."

"bye"           -> "Farewell! May the serene light of the enlightened one rest shine on your travels.", Idle
"farewell"      -> *
"name"          -> "My name is Haroun. At your service."
"haroun"        -> "That is the name my honourable father chose for me."
"job"           -> "I am a merchant. Though I have not chosen this position for myself I have accepted the task with humility and devotion. ...",
                   "If you have the permission of Gabel to trade with me, I can sell you some useful magical equipment."
"permission"    -> "I am not allowed to trade with you unless Gabel gave you the permission to trade with us."

"trade"         -> "It is my mission to trade items on behalf of our community. ...",
                   "Just ask me for my current offers."
"merchant"      -> *
"gabel"			    -> "He is our leader. Not because he desires power or distinction, of course, but because the community needs a guide in spiritual and in worldly matters. ...",
                   "He has accepted this burden with the modesty that is required of a true follower of Daraman."
"king"          -> "We do not have kings. Of the members of our community, Gabel is closest to being what you would consider a leader, but he would resent being called by that presumptuous title."
"djinn"         -> "That is my race. I like to compare it to iron. It has the potential to be forged into the finest steel, but it does need a lot of work and devotion. ...",
                   "Without that it is nothing but worthless scrap metal. Like our master said in the scriptures: Forge thyself! Be a blade of the true creed! (Book VI, chapter 14, verses 3 and 4)."
"efreet"		    -> "Daraman has taught us restraint. But I am sure one day those apostates will pay dearly for their sinful rebellion!"
"marid"		      -> "We are the chosen ones. Those who walk the path to enlightenment with serenity and humility."
"malor"			    -> "That filthy heretic! To me he is the very embodiment of all the evilness and the baseness we djinn must leave behind."
"mal'ouquah"    -> "That is the name of the Efreets' hideout. It certainly is one filthy hotbed of vice and degeneration."
"ashta'daramai" -> "This is the name of the humble abode you are currently visiting. After Daraman had shown him the true way Gabel decided to tear down his former palace and to erect the present structure. ...",
                    "Its name is meant as a tribute to the invaluable service Daraman has done to our race."
"human"         -> "Back in the dark days we used to be enemies, the humans and us. But then a human came and radically changed the way we see things. ...",
                   "He taught us to see your race as brothers. Of course... of course we still have lessons to learn, I suppose."

"zathroth"      -> "An evil, evil god. He was the creator of my race, but he rejected us because we were not evil enough and far too independent to his taste. For this reason the djinn do not worship him anymore, not even those depraved efreet. ...",
                   "It is difficult, you know. We djinn had to learn to find our own way, to create a destiny of our own. And although we are not evil by nature the fact that we were created by this fiend was lying like a curse on us. ...",
                   "For a long time we walked in darkness, filled with hate of ourselves and of all creation. But then everything changed. A human came and made us realise how blind we were. ...",
                   "Praise the gods who have spoken to us through Daraman! That human taught us how we could overcome our grim heritage and heal the scars that marred our souls. Humility and asceticism are the keys to a fuller existence. ...",
                   "The task may be tedious, but the price that awaits the disciples of the true creed is worth it all."

"tibia"         -> "Despite all the evil that stalks this world it is still a source of endless marvel and joy to me. Like the master said: ...",
                   "'Look at the world and reflect in admiration. For there is peace in a sunset and wisdom in the ocean's neverending melody.' (Book I, chapter 3, verses 2 and 3)."
"daraman"	      -> "How could my unworthy tongue ever find words to praise the enlightened one the way he deserves to be praised? Daraman took the veil from our eyes. He made us realise the extent of our misery. ...",
                   "However, he did much more than that. He showed us a way out. He gave meaning to our lives. The service he has done to my race will never be forgotten."
"darashia"      -> "I understand the humans living there are self-indulgent and decadent. I am sure Daraman would disapprove of their ways."
"scarab"        -> "The scarab is an ancient species. It's chitinous shell can be turned into excellent armour."
"edron"         -> "They say the humans have founded impressive communities to the north. I hope their spiritual integrity matches their entrepreneurial spirit."
"thais"         -> *
"venore"        -> *
"kazordoon"     -> *
"carlin"        -> *
"ab'dendriel"   -> *
"ankrahmun"     -> "Ankrahmun has a venerable tradition, but now that heretic fool has acceeded to the throne it has degenerated into a breeding place for wicked heresy."
"pharaoh"       -> "I have heard many a gruesome stories about this presumptuous fool, who calls himself a pharaoh. Such hubris! Daraman himself, who was certainly the most divine mortal that ever walked Tibia, would never have dared to call himself a god."
"palace"        -> "I am a peaceful djinn, but with all those stories I have heard I really feel like visiting the palace and to cleanse this place from all the evil and the misbelief infesting that place."
"ascension"     -> "I have heard this is what the pharaoh has promised his followers. It is sad to see this wicked sinner is still allowed to spread his heresy!"
"rah"           -> "Another one of the pharaoh's confused ideas."
"uthun"			    -> *
"akh"				    -> *

"kha'zeel"		  -> "The Kha'zeel mountains have been created by the gods as a vantage point from where they could watch their creation. ...",
                   "Isn't it uplifting to think that even now we are standing on ground that was blessed by the great creators."
"kha'labal"	    -> "Kha'labal. It makes me sad just to hear that name. Long, long time ago this used to be a garden, you know? ...",
                   "You should have seen it then. You should have seen the springs and the meadows and the flowers. It was a paradise. <sighs>. Oh, this terrible war." 
"melchior"      -> "I remember Malchior. I used to meet him regularly, but strictly in matters of business. He was not really a likeable fellow then. ...",
                   "All money and profit he was, and not as quite as clever as he thought. He made quite a pretty penny by doing business both with us and the efreet. ...",
                   "He thought we wouldn't notice, but the truth is we just chose to look the other way."
"alesar"        -> "Who? Yes, I... I have never... I mean, I don't know who that is." 
"fa'hradin"     -> "Fa'hradin is a learned man, and this alone is enough to make me respect him. However, I sometimes can't help the feeling that he is lacking spiritual strength." 
"bo'ques"       -> "Bo'ques is a cook. Cooking! What a useless craft. If I were Gabel I would have little use for a cook such as him, but perhaps not all djinns are as spiritual as Daraman would have them be."
"lamp"          -> "The lamp is a djinn's resting place of choice."

"weapon"          -> "I'm afraid I do not trade with weapons or armour. Nah'bob only deals with magical equipment."
"armor"           -> *
"armour"          -> *
"wares"           -> "I only deal with magical equipment. Our range of goods include amulets, rings, wands and some special items."
"offer"           -> *
"goods"           -> *
"equipment"       -> *
"magical"         -> *
"do","you","sell" -> *
"do","you","have" -> *

"amulets"        -> "I'm selling and buying bronze amulets, stone skin amulets, elven amulets and garlic necklaces."
"rings"          -> "I'm selling and buying stealth rings, power rings, sword rings, axe rings, and club rings."
"wands"          -> "I'm buying wands of vortex, wands of dragonbreath, wands of plague, wands of cosmic energy and wands of inferno as well as magic light wands."
"rods"           -> "I'm not interested in rods."
"special"        -> "I'm selling and buying magic light wands. I'm currently also looking for mind stones, life crystals and orbs."

"light"                    -> Type=3046, Amount=1, Price=120, "Do you want to buy a magic light wand for %P gold?", Topic=10
"sword","ring"     	       -> Type=3091, Amount=1, Price=500, "Do you want to buy a sword ring for %P gold?", Topic=10
"axe","ring"     	         -> Type=3092, Amount=1, Price=500, "Do you want to buy an axe ring for %P gold?", Topic=10
"club","ring"     	       -> Type=3093, Amount=1, Price=500, "Do you want to buy a club ring for %P gold?", Topic=10
"stone","skin","amulet"    -> Type=3081, Amount=1, Price=5000, "Do you want to buy a stone skin amulet for %P gold?", Topic=10
"elven","amulet"           -> Type=3082, Amount=1, Price=500, "Do you want to buy an elven amulet for %P gold?", Topic=10
"garlic","necklace"        -> Type=3083, Amount=1, Price=100, "Do you want to buy a garlic necklace for %P gold?", Topic=10
"bronze","amulet"     	   -> Type=3056, Amount=1, Price=100, "Do you want to buy a bronze amulet for %P gold?", Topic=10
"stealth","ring"     	     -> Type=3049, Amount=1, Price=5000, "Do you want to buy a stealth ring for %P gold?", Topic=10
"power","ring"     	       -> Type=3050, Amount=1, Price=100, "Do you want to buy a power ring for %P gold?", Topic=10

%1,1<%1,"light"                    -> Type=3046, Amount=%1, Price=120*%1, "Do you want to buy %A magic light wands for %P gold?", Topic=10
%1,1<%1,"power","ring"     	       -> Type=3050, Amount=%1, Price=100*%1, "Do you want to buy %A power rings for %P gold?", Topic=10
%1,1<%1,"bronze","amulet"     	   -> Type=3056, Amount=%1, Price=100*%1, "Do you want to buy %A bronze amulets for %P gold?", Topic=10
%1,1<%1,"sword","ring"     	       -> Type=3091, Amount=%1, Price=500*%1, "Do you want to buy %A sword rings for %P gold?", Topic=10
%1,1<%1,"axe","ring"     	         -> Type=3092, Amount=%1, Price=500*%1, "Do you want to buy %A axe rings for %P gold?", Topic=10
%1,1<%1,"club","ring"     	       -> Type=3093, Amount=%1, Price=500*%1, "Do you want to buy %A club rings for %P gold?", Topic=10
%1,1<%1,"elven","amulet"           -> Type=3082, Amount=%1, Price=500*%1, "Do you want to buy %A elven amulets for %P gold?", Topic=10
%1,1<%1,"garlic","necklace"        -> Type=3083, Amount=%1, Price=100*%1, "Do you want to buy %A garlic necklaces for %P gold?", Topic=10
%1,1<%1,"stone","skin","amulet"    -> Type=3081, Amount=%1, Price=5000*%1, "Do you want to buy %A stone skin amulets for %P gold?", Topic=10
%1,1<%1,"stealth","ring"     	     -> Type=3049, Amount=%1, Price=5000*%1, "Do you want to buy %A stealth rings for %P gold?", Topic=10

"sell","light"                    -> Type=3046, Amount=1, Price=35, "Do you want to sell a magic light wand for %P gold?", Topic=11
"sell","sword","ring"     	      -> Type=3091, Amount=1, Price=100, "Do you want to sell a sword ring for %P gold?", Topic=11
"sell","axe","ring"     	        -> Type=3092, Amount=1, Price=100, "Do you want to sell an axe ring for %P gold?", Topic=11
"sell","club","ring"     	        -> Type=3093, Amount=1, Price=100, "Do you want to sell a club ring for %P gold?", Topic=11
"sell","stone","skin","amulet"    -> Type=3081, Amount=1, Price=500, "Do you want to sell a stone skin amulet for %P gold?", Topic=11
"sell","elven","amulet"           -> Type=3082, Amount=1, Price=100, "Do you want to sell an elven amulet for %P gold?", Topic=11
"sell","garlic","necklace"        -> Type=3083, Amount=1, Price=50, "Do you want to sell a garlic necklace for %P gold?", Topic=11
"sell","bronze","amulet"     	    -> Type=3056, Amount=1, Price=50, "Do you want to sell a bronze amulet for %P gold?", Topic=11
"sell","stealth","ring"     	    -> Type=3049, Amount=1, Price=200, "Do you want to sell a stealth ring for %P gold?", Topic=11
"sell","power","ring"     	      -> Type=3050, Amount=1, Price=50, "Do you want to sell a power ring for %P gold?", Topic=11
"sell","mind","stone"             -> Type=3062, Amount=1, Price=100, "Do you want to sell a mind stone for %P gold?", Topic=11
"sell","life","crystal"           -> Type=3061, Amount=1, Price=50, "Do you want to sell a life crystal for %P gold?", Topic=11
"sell","orb"           	          -> Type=3060, Amount=1, Price=750, "Do you want to sell an orb for %P gold?", Topic=11

"sell",%1,1<%1,"light"                    -> Type=3046, Amount=%1, Price=35*%1, "Do you want to sell %A magic light wands for %P gold?", Topic=11
"sell",%1,1<%1,"power","ring"     	      -> Type=3050, Amount=%1, Price=50*%1, "Do you want to sell %A power rings for %P gold?", Topic=11
"sell",%1,1<%1,"bronze","amulet"     	  -> Type=3056, Amount=%1, Price=50*%1, "Do you want to sell %A bronze amulets for %P gold?", Topic=11
"sell",%1,1<%1,"sword","ring"     	      -> Type=3091, Amount=%1, Price=100*%1, "Do you want to sell %A sword rings for %P gold?", Topic=11
"sell",%1,1<%1,"axe","ring"     	      -> Type=3092, Amount=%1, Price=100*%1, "Do you want to sell %A axe rings for %P gold?", Topic=11
"sell",%1,1<%1,"club","ring"     	      -> Type=3093, Amount=%1, Price=100*%1, "Do you want to sell %A club rings for %P gold?", Topic=11
"sell",%1,1<%1,"elven","amulet"           -> Type=3082, Amount=%1, Price=100*%1, "Do you want to sell %A elven amulets for %P gold?", Topic=11
"sell",%1,1<%1,"garlic","necklace"        -> Type=3083, Amount=%1, Price=50*%1, "Do you want to sell %A garlic necklaces for %P gold?", Topic=11
"sell",%1,1<%1,"stone","skin","amulet"    -> Type=3081, Amount=%1, Price=500*%1, "Do you want to sell %A stone skin amulets for %P gold?", Topic=11
"sell",%1,1<%1,"stealth","ring"           -> Type=3049, Amount=%1, Price=200*%1, "Do you want to sell %A stealth rings for %P gold?", Topic=11
"sell",%1,1<%1,"mind","stone"             -> Type=3062, Amount=%1, Price=100*%1, "Do you want to sell %A mind stones for %P gold?", Topic=11
"sell",%1,1<%1,"life","crystal"           -> Type=3061, Amount=%1, Price=50*%1, "Do you want to sell %A life crystals for %P gold?", Topic=11
"sell",%1,1<%1,"orb"           	          -> Type=3060, Amount=%1, Price=750*%1, "Do you want to sell %A orbs for %P gold?", Topic=11

"sell","wand","of","vortex"            -> Type=3074, Amount=1,  Price=100,   "Do you want to sell a wand of vortex for %P gold?", Topic=11
"sell","wand","of","dragonbreath"      -> Type=3075, Amount=1,  Price=200,   "Do you want to sell a wand of dragonbreath for %P gold?", Topic=11
"sell","wand","of","plague"            -> Type=3072, Amount=1,  Price=1000,   "Do you want to sell a wand of plague for %P gold?", Topic=11
"sell","wand","of","cosmic","energy"   -> Type=3073, Amount=1,  Price=2000,  "Do you want to sell a wand of cosmic energy for %P gold?", Topic=11
"sell","wand","of","inferno"           -> Type=3071, Amount=1,  Price=3000,  "Do you want to sell a wand of inferno for %P gold?", Topic=11

"sell",%1,1<%1,"wand","of","vortex"              -> Type=3074, Amount=%1,  Price=100*%1,   "Do you want to sell %A wands of vortex for %P gold?", Topic=11
"sell",%1,1<%1,"wand","of","dragonbreath"        -> Type=3075, Amount=%1,  Price=200*%1,   "Do you want to sell %A wands of dragonbreath for %P gold?", Topic=11
"sell",%1,1<%1,"wand","of","plague"              -> Type=3072, Amount=%1,  Price=1000*%1,  "Do you want to sell %A wands of plague for %P gold?", Topic=11
"sell",%1,1<%1,"wand","of","cosmic","energy"     -> Type=3073, Amount=%1,  Price=2000*%1,  "Do you want to sell %A wands of cosmic energy for %P gold?", Topic=11
"sell",%1,1<%1,"wand","of","inferno"             -> Type=3071, Amount=%1,  Price=3000*%1,  "Do you want to sell %A wands of inferno for %P gold?", Topic=11

Topic=10,QuestValue(283)<3,!     -> "I'm sorry, human. But you need Gabel's permission to trade with me."
Topic=10,"yes",CountMoney>=Price -> "Thank you. May it bring you luck!", DeleteMoney, Create(Type)
Topic=10,"yes"                   -> "I hate to disappoint you, but it seems you do not have enough gold."
Topic=10                         -> "I understand. Perhaps another time then."

Topic=11,QuestValue(283)<3,!     -> "I'm sorry, human. But you need Gabel's permission to trade with me."
Topic=11,"yes",Count(Type)>=Amount -> "Thank you. Here is your money.", Delete(Type), CreateMoney
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,  "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,  "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,  "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,  "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."
Topic=15,"yes",Amount>1                    -> "You do not have that many."
Topic=15                                   -> "I understand. Perhaps another time then."

}
