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
shopModule:addSellableItem({'dragon scale mail'}, 2492, 40000, 1, 'dragon scale mail')
shopModule:addSellableItem({'dwarven armor'}, 2503, 30000, 1, 'dwarven armor')
shopModule:addSellableItem({'glacier rope'}, 7897, 11000, 1, 'glacier rope')
shopModule:addSellableItem({'golden armor'}, 2466, 20000, 1, 'golden armor')
shopModule:addSellableItem({'hibiscus dress'}, 8873, 3000, 1, 'hibiscus dress')
shopModule:addSellableItem({'leopard armor'}, 3968, 1000, 1, 'leopard armor')
shopModule:addSellableItem({'lightning robe'}, 7898, 11000, 1, 'lightning robe')
shopModule:addSellableItem({'magma coat'}, 7899, 11000, 1, 'magma coat')
shopModule:addSellableItem({'mammoth fur cape'}, 7463, 6000, 1, 'mammoth fur cape')
shopModule:addSellableItem({'paladin armor'}, 8891, 15000, 1, 'paladin armor')
shopModule:addSellableItem({'pirate shirt'}, 6095, 500, 1, 'pirate shirt')
shopModule:addSellableItem({'skullcracker armor'}, 8889, 18000, 1, 'skullcracker armor')
shopModule:addSellableItem({'terra mantle'}, 7884, 11000, 1, 'terra mantle')
shopModule:addSellableItem({'glacier kilt'}, 7896, 11000, 1, 'glacier kilt')
shopModule:addSellableItem({'ligtning legs'}, 7895, 11000, 1, 'lightning legs')
shopModule:addSellableItem({'magma legs'}, 7894, 11000, 1, 'magma legs')
shopModule:addSellableItem({'mammoth fur short'}, 7464, 850, 1, 'mammoth fur shorts')
shopModule:addSellableItem({'pirate knee breeches'}, 5918, 200, 1, 'pirate knee breeches')
shopModule:addSellableItem({'terra legs'}, 7885, 11000, 1, 'terra legs')
shopModule:addSellableItem({'bone shield'}, 2541, 80, 1, 'bone shield')
shopModule:addSellableItem({'dark shield'}, 2521, 400, 1, 'dark shield')
shopModule:addSellableItem({'demon shield'}, 2520, 30000, 1, 'demon shield')
shopModule:addSellableItem({'medusa shield'}, 2536, 9000, 1, 'medusa shield')
shopModule:addSellableItem({'nore shield'}, 7460, 1500, 1, 'norse shield')
shopModule:addSellableItem({'scarab shield'}, 2540, 2000, 1, 'scarab shield')
shopModule:addSellableItem({'spellbook of enlightenment'}, 4000, 8900, 1, 'spellbook of enlightenment')
shopModule:addSellableItem({'tortoise shield'}, 6131, 150, 1, 'tortoise shield')
shopModule:addSellableItem({'beholder helmet'}, 3972, 7500, 1, 'beholder helmet')
shopModule:addSellableItem({'devil helmet'}, 2462, 1000, 1, 'devil helmet')
shopModule:addSellableItem({'glacier mask'}, 7902, 2500, 1, 'glacier mask')
shopModule:addSellableItem({'krimhorn helmet'}, 7461, 200, 1, 'krimhorn helmet')
shopModule:addSellableItem({'lightning headband'}, 7901, 2500, 1, 'lightning headband')
shopModule:addSellableItem({'magma monocle'}, 7900, 2500, 1, 'magma monocle')
shopModule:addSellableItem({'pirate hat'}, 6096, 1000, 1, 'pirate hat')
shopModule:addSellableItem({'ragnir helmet'}, 7462, 400, 1, 'ragnir helmet')
shopModule:addSellableItem({'skull helmet'}, 5741, 40000, 1, 'skull helmet')
shopModule:addSellableItem({'terra hood'}, 7903, , 1, 'terra hood')
shopModule:addSellableItem({'crocodile boots'}, 3892, 1000, 1, 'crocodile boots')
shopModule:addSellableItem({'fur boots'}, 7457, 2000, 1, 'fur boots')
shopModule:addSellableItem({'glacier shoes'}, 7892, 2500, 1, 'glacier shoes')
shopModule:addSellableItem({'lightning boots'}, 7893, 2500, 1, 'lightning boots')
shopModule:addSellableItem({'magma boots'}, 7891, 2500, 1, 'magma boots')
shopModule:addSellableItem({'patched boots'}, 2641, 2000, 1, 'patched boots')
shopModule:addSellableItem({'pirate boots'}, 5462, 3000, 1, 'pirate boots')
shopModule:addSellableItem({'steel boots'}, 2645, 30000, 1, 'steel boots')
shopModule:addSellableItem({'terra boots'}, 7886, 2500, 1, 'terra boots')
shopModule:addSellableItem({'amber staff'}, 7426, 8000, 1, 'amber staff')
shopModule:addSellableItem({'beatslayer axe'}, 3962, 1500, 1, 'beatslayer axe')
shopModule:addSellableItem({'brutetamer's staff'}, 7379, 1500, 1, 'brutetamer's staff')
shopModule:addSellableItem({'chaos mace'}, 7427, 12000, 1, 'chaos mace')
shopModule:addSellableItem({'cranial basher'}, 7415, 30000, 1, 'cranial basher')
shopModule:addSellableItem({'crystal sword'}, 7449, 600, 1, 'crystal sword')
shopModule:addSellableItem({'daramanian mace'}, 2439, 110, 1, 'daramanian mace')
shopModule:addSellableItem({'daramanian waraxe'}, 2440, 1000, 1, 'daramanian waraxe')
shopModule:addSellableItem({'demonrage sword'}, 7382, 36000, 1, 'demonrage sword')
shopModule:addSellableItem({'diamond sceptre'}, 7387, 3000, 1, 'diamond sceptre')
shopModule:addSellableItem({'dragon slayer'}, 7402, 15000, 1, 'dragon slayer')
shopModule:addSellableItem({'dragonbone staff'}, 7430, 3000, 1, 'dragonbone staff')
shopModule:addSellableItem({'dreaded cleaver'}, 7419, 10000, 1, 'dreaded cleaver')
shopModule:addSellableItem({'furry club'}, 7432, 1000, 1, 'furry club')
shopModule:addSellableItem({'guardian halberd'}, 2427, 11000, 1, 'guardian halberd')
shopModule:addSellableItem({'heavy machete'}, 2442, 90, 1, 'heavy machete')
shopModule:addSellableItem({'heroic axe'}, 7389, 30000, 1, 'heroic axe')
shopModule:addSellableItem({'lunar staff'}, 7424, 5000, 1, 'lunar staff')
shopModule:addSellableItem({'mammoth whopper'}, 7381, 300, 1, 'mammoth whopper')
shopModule:addSellableItem({'mercenary sword'}, 7386, 12000, 1, 'mercenary sword')
shopModule:addSellableItem({'mystic blade'}, 7384, 30000, 1, 'mystic blade')
shopModule:addSellableItem({'nightmare blade'}, 7418, 35000, 1, 'nightmare blade')
shopModule:addSellableItem({'noble axe'}, 7456, 6000, 1, 'noble axe')
shopModule:addSellableItem({'ornamented axe'}, , 11000, 1, 'ornamented axe')
shopModule:addSellableItem({'relic sword'}, 7383, 25000, 1, 'relic sword')
shopModule:addSellableItem({'ornamented axe'}, 7411, 11000, 1, 'ornamented axe')
shopModule:addSellableItem({'sapphire hammer'}, 7437, 7000, 1, 'sapphire hammer')
shopModule:addSellableItem({'silver dagger'}, 2402, 500, 1, 'silver dagger')
shopModule:addSellableItem({'taurus mace'}, 7425, 500, 1, 'taurus mace')
shopModule:addSellableItem({'war axe'}, 2454, 9000, 1, 'war axe')
shopModule:addSellableItem({'wyvern fang'}, 7408, 1500, 1, 'wyvern fang')
shopModule:addSellableItem({'earth dragon slayer'}, 7858, 15000, 1, 'dragon slayer')
shopModule:addSellableItem({'energy dragon slayer'}, 7873, 15000, 1, 'dragon slayer')
shopModule:addSellableItem({'fiery dragon slayer'}, 7748, 15000, 1, 'dragon slayer')
shopModule:addSellableItem({'icy dragon slayer'}, 7767, 15000, 1, 'dragon slayer')
shopModule:addSellableItem({'earth mystic blade'}, 7856, 30000, 1, 'mystic blade')
shopModule:addSellableItem({'energy mystic blade'}, 7871, 30000, 1, 'mystic blade')
shopModule:addSellableItem({'fiery mystic blade'}, 7746, 30000, 1, 'mystic blade')
shopModule:addSellableItem({'icy mystic blade'}, 7765, 30000, 1, 'mystic blade')
shopModule:addSellableItem({'earth war axe'}, 2863, 9000, 1, 'war axe')
shopModule:addSellableItem({'energy war axe'}, 2878, 9000, 1, 'war axe')
shopModule:addSellableItem({'fiery war axe'}, 2753, 9000, 1, 'war axe')
shopModule:addSellableItem({'icy war axe'}, 2772, 9000, 1, 'war axe')
shopModule:addSellableItem({'ancient amulet'}, 2142, 200, 1, 'ancient amulet')
shopModule:addSellableItem({'crystal necklace'}, 2125, 400, 1, 'crystal necklace')
shopModule:addSellableItem({'crystal ring'}, 2124, 250, 1, 'crystal ring')
shopModule:addSellableItem({'death ring'}, 6300, 1000, 1, 'death ring')
shopModule:addSellableItem({'demonbone amulet'}, 2136, 32000, 1, 'demonbone amulet')
shopModule:addSellableItem({'emerald bangle'}, 2127, 800, 1, 'emerald bangle')
shopModule:addSellableItem({'golden ring'}, 2179, 8000, 1, 'golden ring')
shopModule:addSellableItem({'platinum amulet'}, 2171, 2500, 1, 'platinum amulet')
shopModule:addSellableItem({'ring of the sky'}, 2123, 30000, 1, 'ring of the sky')
shopModule:addSellableItem({'ruby necklace'}, 2133, 2000, 1, 'ruby necklace')
shopModule:addSellableItem({'scarab amulet'}, 2135, 200, 1, 'scarab amulet')
shopModule:addSellableItem({'silver brooch'}, 2134, 150, 1, 'silver brooch')
shopModule:addSellableItem({'light shovel'}, 5710, 300, 1, 'light shovel')
shopModule:addSellableItem({'doll'},2100 , 200, 1, 'doll')
shopModule:addSellableItem({'pirate voodoo doll'}, 5810, 500, 1, 'pirate voodoo doll')
shopModule:addSellableItem({'voodoo doll'}, 3955, 400, 1, 'voodoo doll')
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
Créditos: Sentielo
Este modelo segue o usado atualmente pelo Tfs!
Veja mais aqui:
http://www.xtibia.com/forum/npc-Pack-Tfs-U...12-t103541.html