Launian
Tsuki~
- Joined
- Jul 7, 2008
- Messages
- 34
- Reaction score
- 1
I'll keep it short: this npc buys all the new Creature Products that were implemented on the 8.54 Update (now including Spider Fangs! lol)
The prices were all taken from TibiaWikia. Feel free to change any of this script.
On data/npc/scripts, create a file named "Newitems_buyer.lua" and paste this there:
Make your own XML file, since I can't think of any good name and/or outfit for it.
Thanks to Snow for the id of the Spider Fangs
Hope it helps someone.
The prices were all taken from TibiaWikia. Feel free to change any of this script.
On data/npc/scripts, create a file named "Newitems_buyer.lua" and paste this there:
Lua:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
shopModule:addSellableItem({''}, 11207, 10, 'Acorn')
shopModule:addSellableItem({''}, 10548, 200, 'Ancient Stone')
shopModule:addSellableItem({''}, 11208, 50, 'Antlers')
shopModule:addSellableItem({''}, 11210, 15, 'Badger Fur')
shopModule:addSellableItem({''}, 10561, 190, 'Black Hood')
shopModule:addSellableItem({''}, 10549, 100, 'Bloody Pincers')
shopModule:addSellableItem({''}, 10583, 200, 'Boggy Dreads')
shopModule:addSellableItem({''}, 11315, 150, 'Bone Shoulderplate')
shopModule:addSellableItem({''}, 11188, 210, 'Bony Tail')
shopModule:addSellableItem({''}, 11231, 180, 'Book of Necromantic Rituals')
shopModule:addSellableItem({''}, 10562, 120, 'Book of Prayers')
shopModule:addSellableItem({''}, 10572, 180, 'Broken Gladiator Shield')
shopModule:addSellableItem({''}, 11329, 100, 'Broken Halberd')
shopModule:addSellableItem({''}, 10605, 30, 'Bunch of Troll Hair')
shopModule:addSellableItem({''}, 10604, 800, 'Bundle of Cursed Straw')
shopModule:addSellableItem({''}, 11211, 50, 'Carniphila Seeds')
shopModule:addSellableItem({''}, 11186, 35, 'Carrion Worm Fang')
shopModule:addSellableItem({''}, 11212, 28, 'Centipede Leg')
shopModule:addSellableItem({''}, 10550, 15, 'Cobra Tongue')
shopModule:addSellableItem({''}, 11213, 45, 'Compass')
shopModule:addSellableItem({''}, 11320, 700, 'Corrupted Flag')
shopModule:addSellableItem({''}, 11183, 35, 'Crab Pincers')
shopModule:addSellableItem({''}, 10554, 280, 'Cultish Mask')
shopModule:addSellableItem({''}, 10555, 150, 'Cultish Robe')
shopModule:addSellableItem({''}, 11321, 320, 'Cursed Shoulder Spikes')
shopModule:addSellableItem({''}, 10573, 55, 'Cyclops Toe')
shopModule:addSellableItem({''}, 11214, 48, 'Dark Rosary')
shopModule:addSellableItem({''}, 10563, 80, 'Demonic Skeletal Hand')
shopModule:addSellableItem({''}, 11355, 175, 'Dragon Priest\'s Wandtip')
shopModule:addSellableItem({''}, 11187, 150, 'Elder Beholder Tentacle')
shopModule:addSellableItem({''}, 10551, 45, 'Elvish Talisman')
shopModule:addSellableItem({''}, 11217, 360, 'Essence of a Bad Dream')
shopModule:addSellableItem({''}, 10552, 375, 'Fiery Heart')
shopModule:addSellableItem({''}, 10564, 30, 'Frosty Ear of a Troll')
shopModule:addSellableItem({''}, 10577, 280, 'Frosty Heart')
shopModule:addSellableItem({''}, 10574, 160, 'Frost Giant Pelt')
shopModule:addSellableItem({''}, 10565, 90, 'Gauze Bandage')
shopModule:addSellableItem({''}, 10571, 200, 'Gear Crystal')
shopModule:addSellableItem({''}, 11360, 700, 'Ghastly Dragon Head')
shopModule:addSellableItem({''}, 10606, 90, 'Ghostly Tissue')
shopModule:addSellableItem({''}, 11191, 380, 'Giant Eye')
shopModule:addSellableItem({''}, 11194, 55, 'Half-Digested Piece of Meat')
shopModule:addSellableItem({''}, 10575, 85, 'Half-Eaten Brain')
shopModule:addSellableItem({''}, 10599, 115, 'Haunted Piece of Wood')
shopModule:addSellableItem({''}, 10553, 500, 'Hellhound Slobber')
shopModule:addSellableItem({''}, 11215, 475, 'Hellspawn Tail')
shopModule:addSellableItem({''}, 11326, 550, 'High Guard Flag')
shopModule:addSellableItem({''}, 11327, 130, 'High Guard Shoulderplates')
shopModule:addSellableItem({''}, 11193, 600, 'Hydra Head')
shopModule:addSellableItem({''}, 11366, 80, 'Lancer Beetle Shell')
shopModule:addSellableItem({''}, 11328, 500, 'Legionnaire Flags')
shopModule:addSellableItem({''}, 10607, 60, 'Lion\'s Mane')
shopModule:addSellableItem({''}, 10608, 10, 'Lump of Dirt')
shopModule:addSellableItem({''}, 11216, 130, 'Lump of Earth')
shopModule:addSellableItem({''}, 11232, 100, 'Mammoth Tusk')
shopModule:addSellableItem({''}, 11209, 320, 'Metal Spike')
shopModule:addSellableItem({''}, 10578, 420, 'Mutated Bat Ear')
shopModule:addSellableItem({''}, 11219, 50, 'Mutated Flesh')
shopModule:addSellableItem({''}, 10584, 150, 'Mutated Rat Tail')
shopModule:addSellableItem({''}, 10576, 700, 'Mystical Hourglass')
shopModule:addSellableItem({''}, 11225, 75, 'Nettle Blossom')
shopModule:addSellableItem({''}, 11109, 150, 'Orc Tooth')
shopModule:addSellableItem({''}, 11331, 250, 'Petrified Scream')
shopModule:addSellableItem({''}, 11190, 15, 'Piece of Crocodile Leather')
shopModule:addSellableItem({''}, 10579, 420, 'Piece of Dead Brain')
shopModule:addSellableItem({''}, 10580, 550, 'Piece of Hellfire Armor')
shopModule:addSellableItem({''}, 10557, 45, 'Piece of Scarab Shell')
shopModule:addSellableItem({''}, 10609, 10, 'Pig Foot')
shopModule:addSellableItem({''}, 10556, 50, 'Poisonous Slime')
shopModule:addSellableItem({''}, 10566, 30, 'Polar Bear Paw')
shopModule:addSellableItem({''}, 11202, 30, 'Rotten Piece of Cloth')
shopModule:addSellableItem({''}, 11222, 400, 'Sabretooth')
shopModule:addSellableItem({''}, 11367, 20, 'Sandcrawler Shell')
shopModule:addSellableItem({''}, 10547, 280, 'Scarab Pincers')
shopModule:addSellableItem({''}, 10567, 25, 'Scorpion Tail')
shopModule:addSellableItem({''}, 11223, 450, 'Scythe Leg')
shopModule:addSellableItem({''}, 10582, 520, 'Sea Serpent Scale')
shopModule:addSellableItem({''}, 11318, 25, 'Shaggy Tail')
shopModule:addSellableItem({''}, 11221, 500, 'Shiny Stone')
shopModule:addSellableItem({''}, 11203, 35, 'Silky Fur')
shopModule:addSellableItem({''}, 11185, 50, 'Skunk Tail')
shopModule:addSellableItem({''}, 10610, 400, 'Snake Skin')
shopModule:addSellableItem({''}, 8859, 10, 'Spader Fangs')
shopModule:addSellableItem({''}, 11319, 100, 'Spiked Iron Ball')
shopModule:addSellableItem({''}, 10558, 95, 'Spooky Blue Eye')
shopModule:addSellableItem({''}, 11189, 120, 'Stone Wing')
shopModule:addSellableItem({''}, 11220, 600, 'Strand of Medusa Hair')
shopModule:addSellableItem({''}, 11204, 50, 'Striped Fur')
shopModule:addSellableItem({''}, 11226, 100, 'Sulphurous Stone')
shopModule:addSellableItem({''}, 10602, 20, 'Swamp Grass')
shopModule:addSellableItem({''}, 11192, 80, 'Tarantula Egg')
shopModule:addSellableItem({''}, 10600, 120, 'Tattered Piece of Robe')
shopModule:addSellableItem({''}, 11365, 60, 'Terramite Legs')
shopModule:addSellableItem({''}, 11363, 170, 'Terramite Shell')
shopModule:addSellableItem({''}, 11184, 95, 'Terrorbird Beak')
shopModule:addSellableItem({''}, 11218, 150, 'Thick Fur')
shopModule:addSellableItem({''}, 10559, 100, 'Thorn')
shopModule:addSellableItem({''}, 11361, 200, 'Undead Heart')
shopModule:addSellableItem({''}, 11227, 480, 'Unholy Bone')
shopModule:addSellableItem({''}, 10601, 275, 'Vampire Teeth')
shopModule:addSellableItem({''}, 10570, 460, 'War Crystal')
shopModule:addSellableItem({''}, 11316, 200, 'Warmaster\'s Wristguards')
shopModule:addSellableItem({''}, 11229, 30, 'Warwolf Fur')
shopModule:addSellableItem({''}, 11308, 250, 'Waver\'s Wantip')
shopModule:addSellableItem({''}, 11228, 380, 'Werewolf Fur')
shopModule:addSellableItem({''}, 11322, 110, 'Widow\'s Mandibles')
shopModule:addSellableItem({''}, 11224, 800, 'Winged Tails')
shopModule:addSellableItem({''}, 11206, 20, 'Winter Wolf Fur')
shopModule:addSellableItem({''}, 10568, 60, 'Witch Broom')
shopModule:addSellableItem({''}, 11230, 15, 'Wool')
shopModule:addSellableItem({''}, 10581, 400, 'Wyrm Scale')
shopModule:addSellableItem({''}, 10560, 265, 'Wyvern Talismans')
shopModule:addSellableItem({''}, 11325, 150, 'Zaogun\'s Shoulderplates')
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
Make your own XML file, since I can't think of any good name and/or outfit for it.
Thanks to Snow for the id of the Spider Fangs
Hope it helps someone.
Last edited: