# GIMUD - Graphical Interface Multi User Dungeon
# cornelia.npc: Datenbank für die Rüstungshändlerin Cornelia

Name = "Cornelia"
Outfit = (139,95-57-102-115-0)
Home = [32334,31796,7]
Radius = 3

Behaviour = {
ADDRESS,"hello$",!       -> "Welcome to the finest armorshop in the land, %N!"
ADDRESS,"hi$",!          -> *
ADDRESS,!                -> Idle
BUSY,"hello$",!          -> "One moment please, %N.", Queue
BUSY,"hi$",!             -> "One moment please, %N.", Queue
BUSY,!                   -> NOP
VANISH,!                 -> "Good bye. Come back soon."

"bye"           -> "Good bye. Come back soon.", Idle
"farewell"      -> *
"job"           -> "I run this armoury. If you want to proctect your life you'd better buy my wares."
"shop"          -> *
"name"          -> "My name is Cornelia."
"time"          -> "It's %T right now."
"help"          -> "I sell and buy armor, helmets, and shields. Only the dwarfs can make better ones."
"dwarfs"        -> "The ancient dwarfen clan halls are far to the east from here."
"monster"       -> "With my armor you need not fear any monsters!"
"dungeon"       -> "While exploring the dungeons of the land you will learn how important a good armor is."
"sewer"         -> "Sewers are males' business."
"thanks"        -> "You are welcome."
"thank","you"   -> "You are welcome."
"ghostlands"    -> "THE GHOSTLANDS??? Make sure to buy the best protection in store before you get even close to them."

"buy"             -> "What do you need? I sell armor, helmets, shields, and trousers."
"do","you","sell" -> *
"do","you","have" -> *
"offer"           -> "My offers are armor, helmets, trousers, and shields."

"weapon"          -> "Ask Rowenna in the other shop about it."
"helmet"          -> "I am selling leather helmets, chain helmets, brass helmets, and viking helmets. What do you want?"
"armor"           -> "I am selling leather armor, chain armor, and brass armor. What do you need?"
"shield"          -> "I am selling wooden shields, brass shields, and plate shields. What do you want?"
"trousers"        -> "I am selling chain legs and brass legs. What do you need?"
"legs"            -> *

"leather","armor"   -> Type=3361, Amount=1, Price=35,  "Do you want to buy a leather armor for %P gold?", Topic=1
"chain","armor"     -> Type=3358, Amount=1, Price=200, "Do you want to buy a chain armor for %P gold?", Topic=1
"brass","armor"     -> Type=3359, Amount=1, Price=450, "Do you want to buy a brass armor for %P gold?", Topic=1
"leather","helmet"  -> Type=3355, Amount=1, Price=12,  "Do you want to buy a leather helmet for %P gold?", Topic=1
"chain","helmet"    -> Type=3352, Amount=1, Price=52,  "Do you want to buy a chain helmet for %P gold?", Topic=1
"brass","helmet"    -> Type=3354, Amount=1, Price=120, "Do you want to buy a brass helmet for %P gold?", Topic=1
"viking","helmet"   -> Type=3367, Amount=1, Price=265, "Do you want to buy a viking helmet for %P gold?", Topic=1
"wooden","shield"   -> Type=3412, Amount=1, Price=15,  "Do you want to buy a wooden shield for %P gold?", Topic=1
"brass","shield"    -> Type=3411, Amount=1, Price=65,  "Do you want to buy a brass shield for %P gold?", Topic=1
"plate","shield"    -> Type=3410, Amount=1, Price=125, "Do you want to buy a plate shield for %P gold?", Topic=1
"brass","legs"      -> Type=3372, Amount=1, Price=195, "Do you want to buy brass legs for %P gold?", Topic=1
"chain","legs"      -> Type=3558, Amount=1, Price=80,  "Do you want to buy chain legs for %P gold?", Topic=1

%1,1<%1,"leather","armor"   -> Type=3361, Amount=%1, Price=35*%1,  "Do you want to buy %A leather armors for %P gold?", Topic=1
%1,1<%1,"chain","armor"     -> Type=3358, Amount=%1, Price=200*%1, "Do you want to buy %A chain armors for %P gold?", Topic=1
%1,1<%1,"brass","armor"     -> Type=3359, Amount=%1, Price=450*%1, "Do you want to buy %A brass armors for %P gold?", Topic=1
%1,1<%1,"leather","helmet"  -> Type=3355, Amount=%1, Price=12*%1,  "Do you want to buy %A leather helmets for %P gold?", Topic=1
%1,1<%1,"chain","helmet"    -> Type=3352, Amount=%1, Price=52*%1,  "Do you want to buy %A chain helmets for %P gold?", Topic=1
%1,1<%1,"brass","helmet"    -> Type=3354, Amount=%1, Price=120*%1, "Do you want to buy %A brass helmets for %P gold?", Topic=1
%1,1<%1,"viking","helmet"   -> Type=3367, Amount=%1, Price=265*%1, "Do you want to buy %A viking helmets for %P gold?", Topic=1
%1,1<%1,"wooden","shield"   -> Type=3412, Amount=%1, Price=15*%1,  "Do you want to buy %A wooden shields for %P gold?", Topic=1
%1,1<%1,"brass","shield"    -> Type=3411, Amount=%1, Price=65*%1,  "Do you want to buy %A brass shields for %P gold?", Topic=1
%1,1<%1,"plate","shield"    -> Type=3410, Amount=%1, Price=125*%1, "Do you want to buy %A plate shields for %P gold?", Topic=1
%1,1<%1,"brass","legs"      -> Type=3372, Amount=%1, Price=195*%1, "Do you want to buy %A brass legs for %P gold?", Topic=1
%1,1<%1,"chain","legs"      -> Type=3558, Amount=%1, Price=80*%1,  "Do you want to buy %A chain legs for %P gold?", Topic=1

"sell","leather","armor"  -> Type=3361, Amount=1, Price=5,   "Do you want to sell leather armor for %P gold?", Topic=2
"sell","chain","armor"    -> Type=3358, Amount=1, Price=40,  "Do you want to sell chain armor for %P gold?", Topic=2
"sell","brass","armor"    -> Type=3359, Amount=1, Price=112, "Do you want to sell brass armor for %P gold?", Topic=2
"sell","plate","armor"    -> Type=3357, Amount=1, Price=240, "Do you want to sell plate armor for %P gold?", Topic=2
"sell","steel","helmet"   -> Type=3351, Amount=1, Price=293, "Do you want to sell a steel helmet for %P gold?", Topic=2
"sell","chain","helmet"   -> Type=3352, Amount=1, Price=12,  "Do you want to sell a chain helmet for %P gold?", Topic=2
"sell","brass","helmet"   -> Type=3354, Amount=1, Price=30,  "Do you want to sell a brass helmet for %P gold?", Topic=2
"sell","leather","helmet" -> Type=3355, Amount=1, Price=3,   "Do you want to sell a leather helmet for %P gold?", Topic=2
"sell","viking","helmet"  -> Type=3367, Amount=1, Price=66,  "Do you want to sell a viking helmet for %P gold?", Topic=2
"sell","plate","shield"   -> Type=3410, Amount=1, Price=45,  "Do you want to sell a plate shield for %P gold?", Topic=2
"sell","brass","shield"   -> Type=3411, Amount=1, Price=16,  "Do you want to sell a brass shield for %P gold?", Topic=2
"sell","wooden","shield"  -> Type=3412, Amount=1, Price=3,   "Do you want to sell a wooden shield for %P gold?", Topic=2
"sell","battle","shield"  -> Type=3413, Amount=1, Price=60,  "Do you want to sell a battle shield for %P gold?", Topic=2
"sell","brass","legs"     -> Type=3372, Amount=1, Price=49,  "Do you want to sell brass legs for %P gold?", Topic=2
"sell","chain","legs"     -> Type=3558, Amount=1, Price=20,  "Do you want to sell chain legs for %P gold?", Topic=2

"sell", %1,1<%1, "leather","armor"  -> Type=3361, Amount=%1, Price=5*%1,   "Do you want to sell %A leather armors for %P gold?", Topic=2
"sell", %1,1<%1, "chain","armor"    -> Type=3358, Amount=%1, Price=40*%1,  "Do you want to sell %A chain armors for %P gold?", Topic=2
"sell", %1,1<%1, "brass","armor"    -> Type=3359, Amount=%1, Price=112*%1, "Do you want to sell %A brass armors for %P gold?", Topic=2
"sell", %1,1<%1, "plate","armor"    -> Type=3357, Amount=%1, Price=240*%1, "Do you want to sell %A plate armors for %P gold?", Topic=2
"sell", %1,1<%1, "steel","helmet"   -> Type=3351, Amount=%1, Price=293*%1, "Do you want to sell %A steel helmets for %P gold?", Topic=2
"sell", %1,1<%1, "chain","helmet"   -> Type=3352, Amount=%1, Price=12*%1,  "Do you want to sell %A chain helmets for %P gold?", Topic=2
"sell", %1,1<%1, "brass","helmet"   -> Type=3354, Amount=%1, Price=30*%1,  "Do you want to sell %A brass helmets for %P gold?", Topic=2
"sell", %1,1<%1, "leather","helmet" -> Type=3355, Amount=%1, Price=3*%1,   "Do you want to sell %A leather helmets for %P gold?", Topic=2
"sell", %1,1<%1, "viking","helmet"  -> Type=3367, Amount=%1, Price=66*%1,  "Do you want to sell %A viking helmets for %P gold?", Topic=2
"sell", %1,1<%1, "plate","shield"   -> Type=3410, Amount=%1, Price=45*%1,  "Do you want to sell %A plate shields for %P gold?", Topic=2
"sell", %1,1<%1, "brass","shield"   -> Type=3411, Amount=%1, Price=16*%1,  "Do you want to sell %A brass shields for %P gold?", Topic=2
"sell", %1,1<%1, "wooden","shield"  -> Type=3412, Amount=%1, Price=3*%1,   "Do you want to sell %A wooden shields for %P gold?", Topic=2
"sell", %1,1<%1, "battle","shield"  -> Type=3413, Amount=%1, Price=60*%1,  "Do you want to sell %A battle shields for %P gold?", Topic=2
"sell", %1,1<%1, "brass","legs"     -> Type=3372, Amount=%1, Price=49*%1,  "Do you want to sell %A brass legs for %P gold?", Topic=2
"sell", %1,1<%1, "chain","legs"     -> Type=3558, Amount=%1, Price=20*%1,  "Do you want to sell %A chain legs for %P gold?", Topic=2

Topic=1,"yes",CountMoney>=Price -> "Thank you. Here it is.", DeleteMoney, Create(Type)
Topic=1,"yes"                   -> "Sorry, you do not have enough gold."
Topic=1                         -> "Maybe you will buy it another time."

Topic=2,"yes",Count(Type)>=Amount -> "Ok. Here is your money.", Delete(Type), CreateMoney
Topic=2,"yes"                             -> "Sorry, you do not have one."
Topic=2,"yes",Amount>1                    -> "Sorry, you do not have so many."
Topic=2                                   -> "Maybe next time."

"addon",QuestValue(17558)=5,male -> "Ah, you must be the hero Trisha talked about. I'll prepare the shoulder spikes for you. Please give me some time to finish. <giggles>", SetQuestValue(17558,6), SetExpiringQuestValue(17559, 7200000)
"armor",QuestValue(17558)=5,male -> *
"addon",QuestValue(17558)=5,female -> "Ah, you must be the hero Trisha talked about. I'll prepare the shoulder spikes for you. Please give me some time to finish.", SetQuestValue(17558,6), SetExpiringQuestValue(17559, 7200000)
"armor",QuestValue(17558)=5,female -> *

"addon",ExpiringQuestValue(17559)>0 -> "Please give me some time to finish it."
"armor",ExpiringQuestValue(17559)>0 -> *

"addon",ExpiringQuestValue(17559)<0,QuestValue(17558)=6,male -> "Finished! Since you are a man, I thought you probably wanted two. Men always want that little extra status symbol. <giggles>", SetQuestValue(17558,7), AddOutfitAddon(142,1), AddOutfitAddon(134,1), EffectOpp(13)
"armor",ExpiringQuestValue(17559)<0,QuestValue(17558)=6,male -> *
"addon",ExpiringQuestValue(17559)<0,QuestValue(17558)=6,female -> "Finished! Wear it proudly sister like Trisha do.", SetQuestValue(17558,7), AddOutfitAddon(142,1), AddOutfitAddon(134,1), EffectOpp(13)
"armor",ExpiringQuestValue(17559)<0,QuestValue(17558)=6,female -> *

"addon",QuestValue(17558)=7 -> "Sorry, Trisha told me to adorn only one armor for you and you have already received one."
"armor",QuestValue(17558)=7 -> *
}
