# GIMUD - Graphical Interface Multi User Dungeon Name = "Duncan" Outfit = (151,38-23-0-116-1) Home = [32330,32605,7] Radius = 3 Behaviour = { ADDRESS,"hello$",! -> "Hi %N, come closer. Have a look at my wares and such." ADDRESS,"hi$",! -> * ADDRESS,! -> Idle BUSY,"hello$",! -> "Wait, %N.", Queue BUSY,"hi$",! -> * BUSY,! -> NOP VANISH,! -> "Bye" "bye" -> "Good bye.", Idle "farewell" -> * "do","you","sell" -> "Well erm, currently we are a little short on weapons and the like, but I still have pirate tapestries for sale." "wares" -> * "offer" -> * "pirate tapestry" -> Type=5615, Amount=1, Price=40, "Do you want to buy a pirate tapestry for %P gold?", Topic=1 %1,1<%1,"pirate tapestry" -> Type=5615, Amount=%1, Price=40*%1, "Do you want to buy %A pirate tapestries for %P gold?", Topic=1 Topic=1,"yes",CountMoney>=Price -> "Here you go. Those would fit nicely into your house, showing that you're a fan and supporter and all that.", DeleteMoney, Create(Type) Topic=1,"yes" -> "Come back when you have enough money." Topic=1 -> "Maybe next time." "mission",QuestValue(17520)=1,QuestValue(17523)=0 -> "I need a new quality atlas for our captains. Only one of the best will do it. I heard the explorers society sells the best, but only to members of a certain rank. You will have to get this rank or ask a high ranking member to buy it for you.", SetQuestValue(17523,1) "mission",QuestValue(17523)=1 -> Type=6108, Amount=1, "Did you get an atlas of the explorers society as I requested?", Topic=2 "atlas",QuestValue(17523)=1 -> * Topic=2,"yes",Count(Type)>=Amount -> "Indeed, what a fine work... the book I mean. Your work was acceptable all in all.", Delete(Type), SetQuestValue(17523,2) Topic=2,"yes" -> "Sorry, you do not have it." Topic=2 -> "Maybe another time." "mission" -> "Sorry, I don't have any missions for you." }