Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local npc = NPC({
- name = "Beatrice",
- messages = {
- greet = "Hello, hiho, and ashari Player. Looking forward to {trade} with you.",
- farewell = "See you later, |PLAYERNAME|.",
- walkway = "See you later, |PLAYERNAME|.",
- sendTrade = "Of course, just browse through my wares. {Footballs} have to be purchased separately."
- },
- keywords = {
- ["job"] = "I'm selling all kind of useful equipment.",
- ["name"] = "I'm called Beatrice.",
- [{"equipament", "offer"}] = "My inventory of general goods and paperware is large, ask me for a trade to take a look.",
- ["time"] = "It's |TIME| right now.",
- ["king tibianus"] = "I've seen him once. What a handsome man!",
- ["edron"] = "It's the best place to live at.",
- ["thais"] = "We are no longer in need for supplies from there.",
- ["carlin"] = "Even though they rebelled against our king, the city is supposed to be very lovely.",
- ["venore"] = "I'm somewhat nervous about the Venorean traders. They've been trying to buy my shop for years, and they are becoming more and more aggressive.",
- ["Ferumbras"] = "I vaguely remember that name.",
- ["Excalibug"] = "That's just a myth like the screwdriver of Kurik or the endless casket of mana potions.",
- ["Orshabaal"] = {
- "I've heard a dragon or something like that with the name Orshabaal often ravages the northern part of our isle ...",
- "If it were not for the soldiers here, I'd be worried, but I'm sure the army will keep us safe ...",
- "If these adventurers weren't always scaring away that beast before the army can intervene, we'd be rid of this creature for years."
- },
- ["army"] = "I supply them with some basic stuff.",
- ["tibia"] = "I don't like travelling much. I prefer to live in the safety of our city.",
- ["news"] = "There are always rumours about the dangers in the far North of Edron.",
- },
- voices = {
- timeout = 16,
- chance = 100,
- "Selling general goods and paperware! Come to my shop!"
- },
- shop = {
- {id = 2532, buy = 5000, sell = 900, name='Ancient Shield'},
- {id = 2489, buy = 1500, sell = 400, name='Dark Armor'},
- {id = 2490, buy = 1000, sell = 250, name='Dark Helmet'},
- {id = 2396, buy = 5000, sell = 0, name='Ice Rapier'},
- {id = 2409, buy = 6000, sell = 900, name='Serpent Sword'},
- {id = 2529, buy = 0, sell = 800, name='Black Shield'},
- {id = 7428, buy = 0, sell = 10000, name='Bonebreaker'},
- {id = 2434, buy = 0, sell = 2000, name='Dragon Hammer'},
- {id = 7419, buy = 0, sell = 15000, name='Dreaded Cleaver'},
- {id = 7860, buy = 0, sell = 2000, name='Earth Knight Axe'},
- {id = 7875, buy = 0, sell = 2000, name='Energy Knight Axe'},
- {id = 7750, buy = 0, sell = 2000, name='Fiery Knight Axe'},
- {id = 2393, buy = 0, sell = 17000, name='Giant Sword'},
- {id = 7407, buy = 0, sell = 8000, name='Haunted Blade'},
- {id = 7769, buy = 0, sell = 2000, name='Icy Knight Axe'},
- {id = 2476, buy = 0, sell = 5000, name='Knight Armor'},
- {id = 2430, buy = 0, sell = 2000, name='Knight Axe'},
- {id = 2477, buy = 0, sell = 5000, name='Knight Legs'},
- {id = 2663, buy = 0, sell = 150, name='Mystic Turban'},
- {id = 7421, buy = 0, sell = 22000, name='Onyx Flail'},
- {id = 7411, buy = 0, sell = 20000, name='Ornamented Axe'},
- {id = 2411, buy = 0, sell = 50, name='Poison Dagger'},
- {id = 2436, buy = 0, sell = 6000, name='Skull Staff'},
- {id = 2479, buy = 0, sell = 500, name='Strange Helmet'},
- {id = 7413, buy = 0, sell = 4000, name='Titan Axe'},
- {id = 2528, buy = 0, sell = 8000, name='Tower Shield'},
- {id = 2534, buy = 0, sell = 15000, name='Vampire Shield'},
- {id = 2475, buy = 0, sell = 5000, name='Warrior Helmet'},
- {id = 2201, buy = 1000, sell = 100, name = 'Dragon Necklace'},
- {id = 2213, buy = 2000, sell = 100, name = 'Dwarven Ring'},
- {id = 2167, buy = 2000, sell = 100, name = 'Energy Ring'},
- {id = 2168, buy = 900, sell = 50, name = 'Life Ring'},
- {id = 2164, buy = 5000, sell = 250, name = 'Might Ring'},
- {id = 2200, buy = 700, sell = 100, name = 'Protection Amulet'},
- {id = 2216, buy = 2000, sell = 100, name = 'Ring of Healing'},
- {id = 2170, buy = 100, sell = 50, name = 'Silver Amulet'},
- {id = 2161, buy = 100, sell = 30, name = 'Strange Talisman'},
- {id = 2169, buy = 2000, sell = 100, name = 'Time Ring'},
- {id = 2327, buy = 0, sell = 100, name = 'Ankh'},
- {id = 18412, buy = 0, sell = 6500, name = 'Glacial Rod'},
- {id = 2183, buy = 0, sell = 3000, name = 'Hailstorm Rod'},
- {id = 2186, buy = 0, sell = 200, name = 'Moonlight Rod'},
- {id = 18411, buy = 0, sell = 6000, name = 'Muck Rod'},
- {id = 2194, buy = 0, sell = 50, name = 'Mysterious Fetish'},
- {id = 2185, buy = 0, sell = 1000, name = 'Necrotic Rod'},
- {id = 8911, buy = 0, sell = 1500, name = 'Northwind Rod'},
- {id = 2182, buy = 0, sell = 100, name = 'Snakebite Rod'},
- {id = 8912, buy = 0, sell = 3600, name = 'Springsprout Rod'},
- {id = 2181, buy = 0, sell = 2000, name = 'Terra Rod'},
- {id = 8910, buy = 0, sell = 4400, name = 'Underworld Rod'},
- {id = 2208, sell = 100, buy = 500, name = 'Axe Ring'},
- {id = 2209, sell = 100, buy = 500, name = 'Club Ring'},
- {id = 2166, sell = 50, buy = 100, name = 'Power Ring'},
- {id = 2165, sell = 200, buy = 5000, name = 'Stealth Ring'},
- }
- })
- npc.topicHandler:addTopic({
- word = {"footballs", "football"},
- answer = "Do you want to buy a football for 111 gold?",
- topics = {
- {
- word = "yes",
- answer = "Here it is.",
- reset = true,
- condition = {
- topicCondition.haveMoney(111, "You don't have enough money."),
- },
- action = {
- topicAction.giveItem(2109, 1),
- topicAction.removeMoney(111)
- },
- },
- {
- word = "no",
- answer = "Oh, but it's fun to play!",
- reset = true
- }
- }
- })
- function onCreatureAppear(cid) npc:onCreatureAppear(cid) end
- function onCreatureDisappear(cid) npc:onCreatureDisappear(cid) end
- function onCreatureSay(cid, type, msg) npc:onCreatureSay(cid, type, msg) end
- function onThink() npc:onThink() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement