Ir para conteúdo
  • Cadastre-se

(Resolvido)NPC Não Compra Certo Item


Ir para solução Resolvido por Dwarfer,

Posts Recomendados

Bom Dia galera ;) 
então meu problema é o seguinte, eu criei um npc e tudo mais.

coloquei ele pra comprar todos os itens (armors, armas, helmo etc.)

porém quando eu vou vender uma serpent sword (exemplo) ele entende como só sword.

Alguém poderia me dar uma ajuda?

 

servidor é um 7.72

 

Valeu 

 

Spoiler

dofile(getDataDir() .. 'npc/scripts/lib/greeting.lua')

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

-- OTServ event handling functions
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({'sword'}, 2376, 25, 'sword')
shopModule:addSellableItem({'two-handed sword'}, 2377, 450, 'two-handed sword')
shopModule:addSellableItem({'battle axe'}, 2378, 80, 'battle axe')
shopModule:addSellableItem({'dagger'}, 2379, 2, 'dagger')
shopModule:addSellableItem({'hand axe'}, 2380, 5, 'hand axe')
shopModule:addSellableItem({'halberd'}, 2381, 400, 'halberd')
shopModule:addSellableItem({'club'}, 2382, 1, 'club')
shopModule:addSellableItem({'spike sword'}, 2383, 1000,)
shopModule:addSellableItem({'rapier'}, 2384, 5, 'rapier')
shopModule:addSellableItem({'sabre'}, 2385, 12, 'sabre')
shopModule:addSellableItem({'axe'}, 2386, 7, 'axe')
shopModule:addSellableItem({'double axe'}, 2387, 260, 'double axe')
shopModule:addSellableItem({'hatchet'}, 2388, 25, 'hatchet')
shopModule:addSellableItem({'fire sword'}, 2392, 4000, 'fire sword')
shopModule:addSellableItem({'war hammer'}, 2391, 1000, 'war hammer')
shopModule:addSellableItem({'giant sword'}, 2393, 17000, 'giant sword')
shopModule:addSellableItem({'morning star'}, 2394, 100, 'morning star')
shopModule:addSellableItem({'carlin sword'}, 2395, 135, 'carlin sword')
shopModule:addSellableItem({'ice rapier'}, 2396, 1000, 'ice rapier')
shopModule:addSellableItem({'longsword'}, 2397, 51, 'longsword')
shopModule:addSellableItem({'mace'}, 2398, 30, 'mace')
shopModule:addSellableItem({'staff'}, 2401, 1, 'staff')
shopModule:addSellableItem({'silver dagger'}, 2402, 500, 'silver dagger')
shopModule:addSellableItem({'knife'}, 2403, 1, 'knife')
shopModule:addSellableItem({'combat knife'}, 2404, 1, 'kombat knife')
shopModule:addSellableItem({'sickle'}, 2405, 3, 'sickle')
shopModule:addSellableItem({'short sword'}, 2406, 10, 'short sword')
shopModule:addSellableItem({'bright sword'}, 2407, 6000, 'bright sword')
shopModule:addSellableItem({'serpent sword'}, 2409, 900, 'serpent sword')
shopModule:addSellableItem({'poison dagger'}, 2411, 50, 'poison dagger')
shopModule:addSellableItem({'katana'}, 2412, 35, 'katana')
shopModule:addSellableItem({'broad sword'}, 2413, 500, 'broad sword')
shopModule:addSellableItem({'dragon lance'}, 2414, 9000, 'dragon lance')
shopModule:addSellableItem({'crowbar'}, 2416, 50, 'crowbar')
shopModule:addSellableItem({'battle hammer'}, 2417, 120, 'battle hammer')
shopModule:addSellableItem({'golden sickle'}, 2418, 1000, 'golden sickle')
shopModule:addSellableItem({'scimitar'}, 2419, 150, 'scimitar')
shopModule:addSellableItem({'machete'}, 2420, 6, 'machete')
shopModule:addSellableItem({'iron hammer'}, 2422, 9, 'iron hammer')
shopModule:addSellableItem({'crelical mace'}, 2423, 170, 'crelical mace')
shopModule:addSellableItem({'obsidian lance'}, 2425, 500, 'obsidian lance')
shopModule:addSellableItem({'naginata'}, 2426, 2000, 'naginata')
shopModule:addSellableItem({'guardian halberd'}, 2427, 11000, 'guardian halberd')
shopModule:addSellableItem({'orcish axe'}, 2428, 350, 'orcish axe')
shopModule:addSellableItem({'barbarian axe'}, 2429, 185, 'barbarian axe')
shopModule:addSellableItem({'knight axe'}, 2430, 2000, 'knight axe')
shopModule:addSellableItem({'fire axe'}, 2432, 8000, 'fire axe')
shopModule:addSellableItem({'dragon hammer'}, 2434, 2000, 'dragon hammer')
shopModule:addSellableItem({'dwarven axe'}, 2435, 1500, 'dwarven axe')
shopModule:addSellableItem({'skull staff'}, 2436, 6000, 'skull staff')
shopModule:addSellableItem({'daramanian mace'}, 2439, 110, 'daramanian mace')
shopModule:addSellableItem({'daramanian waraxe'}, 2440, 1000, 'daramanian waraxe')
shopModule:addSellableItem({'heavy machete'}, 2442, 90, 'heavy machete')
shopModule:addSellableItem({'war axe'}, 2454, 12000, 'war axe')
shopModule:addSellableItem({'hammer of wrath'}, 2444, 30000, 'hammer of wrath')
shopModule:addSellableItem({'paraoh sword'}, 2446, 23000, 'paraoh sword')
shopModule:addSellableItem({'crystal mace'}, 2445, 12000, 'crystal mace')
shopModule:addSellableItem({'studded club'}, 2448, 10, 'studded club')
shopModule:addSellableItem({'bone club'}, 2449, 80, 'bone club')
shopModule:addSellableItem({'bone sword'}, 2450, 20, 'bone sword')
shopModule:addSellableItem({'djin blade'}, 2451, 15000, 'djin blade')
shopModule:addSellableItem({'crossbow'}, 2455, 160, 'crossbow')
shopModule:addSellableItem({'bow'}, 2456, 130, 'bow')

shopModule:addSellableItem({'plate armor'}, 2463, 400, 'plate armor')
shopModule:addSellableItem({'chain armor'}, 2464, 70, 'chain armor')
shopModule:addSellableItem({'brass armor'}, 2465, 150, 'brass armor')
shopModule:addSellableItem({'golden armor'}, 2466, 20000, 'golden armor')
shopModule:addSellableItem({'leather armor'}, 2467, 12, 'leather armor')
shopModule:addSellableItem({'magic plate armor'}, 2472, 90000, 'magic plate armor')
shopModule:addSellableItem({'knight armor'}, 2476, 5000, 'knight armor')
shopModule:addSellableItem({'scale armor'}, 2483, 75, 'scale armor')
shopModule:addSellableItem({'studded armor'}, 2484, 25, 'studded armor')
shopModule:addSellableItem({'doublet'}, 2485, 3, 'doublet')
shopModule:addSellableItem({'noble armor'}, 2486, 900, 'noble armor')
shopModule:addSellableItem({'crown armor'}, 2487, 12000, 'crown armor')
shopModule:addSellableItem({'dark armor'}, 2489, 400, 'dark armor')
shopModule:addSellableItem({'dragon scale mail'}, 2492, 40000, 'dragon scale mail')
shopModule:addSellableItem({'jacket'}, 2650, 1, 'jacket')
shopModule:addSellableItem({'coat'}, 2651, 1, 'coat')
shopModule:addSellableItem({'red robe'}, 2655, 300, 'red robe')
shopModule:addSellableItem({'blue robe'}, 2656, 10000, 'blue robe')
shopModule:addSellableItem({'simple dress'}, 2657, 50, 'simple dress')


shopModule:addSellableItem({'studded legs'}, 2468, 15, 'studded legs')
shopModule:addSellableItem({'golden legs'}, 2470, 30000, 'golden legs')
shopModule:addSellableItem({'knight legs'}, 2477, 5000, 'knight legs')
shopModule:addSellableItem({'brass legs'}, 2478, 49, 'brass legs')
shopModule:addSellableItem({'crown legs'}, 2488, 12000, 'crown legs')
shopModule:addSellableItem({'plate legs'}, 2647, 115, 'plate legs')
shopModule:addSellableItem({'chain legs'}, 2648, 25, 'chain legs')
shopModule:addSellableItem({'leather legs'}, 2649, 9, 'leather legs')


shopModule:addSellableItem({'steel shield'}, 2509, 80, 'steel shield')
shopModule:addSellableItem({'plate shield'}, 2510, 45, 'plate shield')
shopModule:addSellableItem({'brass shield'}, 2511, 25, 'brass shield')
shopModule:addSellableItem({'wooden shield'}, 2512, 5, 'wooden shield')
shopModule:addSellableItem({'battle shield'}, 2513, 95, 'battle shield')
shopModule:addSellableItem({'mastermind shield'}, 2514,50000, 'mastermind shield')
shopModule:addSellableItem({'guardian shield'}, 2515, 2000, 'guardian shield')
shopModule:addSellableItem({'dragon shield'}, 2516, 4000, 'battle shield')
shopModule:addSellableItem({'beholder shield'}, 2518, 1200, 'beholder shield')
shopModule:addSellableItem({'crown shield'}, 2519, 8000, 'crown shield')
shopModule:addSellableItem({'demon shield'}, 2520, 40000, 'demon shield')
shopModule:addSellableItem({'dark shield'}, 2521, 400, 'dark shield')
shopModule:addSellableItem({'ornamented shield'}, 2524, 1500, 'ornamented shield')
shopModule:addSellableItem({'dwarven shield'}, 2525, 100, 'dwarven shield')
shopModule:addSellableItem({'studded shield'}, 2526, 16, 'studded shield')
shopModule:addSellableItem({'tower shield'}, 2528, 8000, 'tower shield')
shopModule:addSellableItem({'black shield'}, 2529, 800, 'black shield')
shopModule:addSellableItem({'cooper shield'}, 2530, 50, 'cooper shield')
shopModule:addSellableItem({'viking shield'}, 2531, 85, 'viking shield')
shopModule:addSellableItem({'ancient shield'}, 2532, 900, 'ancient shield')
shopModule:addSellableItem({'griffin shield'}, 2533, 3000, 'griffin shield')
shopModule:addSellableItem({'vampire shield'}, 2534, 15000, 'vampire shield')
shopModule:addSellableItem({'castle shield'}, 2535, 5000, 'castle shield')
shopModule:addSellableItem({'medusa shield'}, 2536, 9000, 'medusa shield')
shopModule:addSellableItem({'scarab shield'}, 2540, 2000, 'scarab shield')
shopModule:addSellableItem({'bone shield'}, 2541, 80, 'bone shield')


shopModule:addSellableItem({'steel helmet'}, 2457, 293, 'steel helmet')
shopModule:addSellableItem({'chain helmet'}, 2458, 17, 'chain helmet')
shopModule:addSellableItem({'iron helmet'}, 2459, 150, 'iron helmet')
shopModule:addSellableItem({'brass helmet'}, 2460, 30, 'brass helmet')
shopModule:addSellableItem({'leather helmet'}, 2461, 4, 'leather helmet')
shopModule:addSellableItem({'devil helmet'}, 2462, 1000, 'devil helmet')
shopModule:addSellableItem({'viking helmet'}, 2473, 66, 'viking helmet')
shopModule:addSellableItem({'warrior helmet'}, 2475, 5000, 'warrior helmet')
shopModule:addSellableItem({'strange helmet'}, 2479, 500, 'strange helmet')
shopModule:addSellableItem({'legion helmet'}, 2480, 22, 'legion helmet')
shopModule:addSellableItem({'soldier helmet'}, 2481, 16, 'soldier helmet')
shopModule:addSellableItem({'studded helmet'}, 2482, 20, 'studded helmet')
shopModule:addSellableItem({'dark helmet'}, 2490, 250, 'dark helmet')
shopModule:addSellableItem({'crown helmet'}, 2491, 2500, 'crown helmet')
shopModule:addSellableItem({'demon helmet'}, 2493, 40000, 'demon helmet')
shopModule:addSellableItem({'crusader helmet'}, 2497, 6000, 'crusader helmet')
shopModule:addSellableItem({'royal helmet'}, 2498, 30000, 'royal helmet')
shopModule:addSellableItem({'mystic turban'}, 2663, 150, 'mystic turban')


shopModule:addSellableItem({'crocodile boots'}, 3892, 1000, 'crocodile boots')
shopModule:addSellableItem({'steel boots'}, 2645, 30000, 'steel boots')
shopModule:addSellableItem({'boots of haste'}, 2195, 30000, 'boots of haste')
shopModule:addSellableItem({'leather boots'}, 2643, 2, 'leather boots')
shopModule:addSellableItem({'sandals'}, 2642, 2, 'sandals')


shopModule:addSellableItem({'ancient amulet'}, 2142, 200, 'ancient amulet')
shopModule:addSellableItem({'crystal necklace'}, 2125, 400, 'crystal necklace')
shopModule:addSellableItem({'crystal ring'}, 2124, 250, 'crystal ring')
shopModule:addSellableItem({'demonbone amulet'}, 2136, 32000, 'demonbone amulet')
shopModule:addSellableItem({'emerald bangle'}, 2127, 800, 'emerald bangle')
shopModule:addSellableItem({'golden ring'}, 2179, 8000, 'golden ring')
shopModule:addSellableItem({'platinum amulet'}, 2172500, 'platinum amulet')
shopModule:addSellableItem({'ring of the sky'}, 2123, 30000, 'ring of the sky')
shopModule:addSellableItem({'ruby necklace'}, 2133, 2000, 'ruby necklace')
shopModule:addSellableItem({'scarab amulet'}, 2135, 200, 'scarab amulet')
shopModule:addSellableItem({'silver brooch'}, 2134, 150,'silver brooch')

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

 

Editado por Xekzy (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
  • Solução
Spoiler

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
 
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({'two-handed sword'}, 2377, 450, 'two-handed sword')
shopModule:addSellableItem({'battle axe'}, 2378, 80, 'battle axe')
shopModule:addSellableItem({'hand axe'}, 2380, 5, 'hand axe')
shopModule:addSellableItem({'halberd'}, 2381, 400, 'halberd')
shopModule:addSellableItem({'spike sword'}, 2383, 1000, 'spike sword')
shopModule:addSellableItem({'rapier'}, 2384, 5, 'rapier')
shopModule:addSellableItem({'sabre'}, 2385, 12, 'sabre')
shopModule:addSellableItem({'double axe'}, 2387, 260, 'double axe')
shopModule:addSellableItem({'hatchet'}, 2388, 25, 'hatchet')
shopModule:addSellableItem({'fire sword'}, 2392, 4000, 'fire sword')
shopModule:addSellableItem({'war hammer'}, 2391, 1000, 'war hammer')
shopModule:addSellableItem({'giant sword'}, 2393, 17000, 'giant sword')
shopModule:addSellableItem({'morning star'}, 2394, 100, 'morning star')
shopModule:addSellableItem({'carlin sword'}, 2395, 135, 'carlin sword')
shopModule:addSellableItem({'ice rapier'}, 2396, 1000, 'ice rapier')
shopModule:addSellableItem({'longsword'}, 2397, 51, 'longsword')
shopModule:addSellableItem({'silver dagger'}, 2402, 500, 'silver dagger')
shopModule:addSellableItem({'knife'}, 2403, 1, 'knife')
shopModule:addSellableItem({'combat knife'}, 2404, 1, 'kombat knife')
shopModule:addSellableItem({'sickle'}, 2405, 3, 'sickle')
shopModule:addSellableItem({'short sword'}, 2406, 10, 'short sword')
shopModule:addSellableItem({'bright sword'}, 2407, 6000, 'bright sword')
shopModule:addSellableItem({'serpent sword'}, 2409, 900, 'serpent sword')
shopModule:addSellableItem({'poison dagger'}, 2411, 50, 'poison dagger')
shopModule:addSellableItem({'katana'}, 2412, 35, 'katana')
shopModule:addSellableItem({'broad sword'}, 2413, 500, 'broad sword')
shopModule:addSellableItem({'dragon lance'}, 2414, 9000, 'dragon lance')
shopModule:addSellableItem({'crowbar'}, 2416, 50, 'crowbar')
shopModule:addSellableItem({'battle hammer'}, 2417, 120, 'battle hammer')
shopModule:addSellableItem({'golden sickle'}, 2418, 1000, 'golden sickle')
shopModule:addSellableItem({'scimitar'}, 2419, 150, 'scimitar')
shopModule:addSellableItem({'machete'}, 2420, 6, 'machete')
shopModule:addSellableItem({'iron hammer'}, 2422, 9, 'iron hammer')
shopModule:addSellableItem({'crelical mace'}, 2423, 170, 'crelical mace')
shopModule:addSellableItem({'obsidian lance'}, 2425, 500, 'obsidian lance')
shopModule:addSellableItem({'naginata'}, 2426, 2000, 'naginata')
shopModule:addSellableItem({'guardian halberd'}, 2427, 11000, 'guardian halberd')
shopModule:addSellableItem({'orcish axe'}, 2428, 350, 'orcish axe')
shopModule:addSellableItem({'barbarian axe'}, 2429, 185, 'barbarian axe')
shopModule:addSellableItem({'knight axe'}, 2430, 2000, 'knight axe')
shopModule:addSellableItem({'fire axe'}, 2432, 8000, 'fire axe')
shopModule:addSellableItem({'dragon hammer'}, 2434, 2000, 'dragon hammer')
shopModule:addSellableItem({'dwarven axe'}, 2435, 1500, 'dwarven axe')
shopModule:addSellableItem({'skull staff'}, 2436, 6000, 'skull staff')
shopModule:addSellableItem({'daramanian mace'}, 2439, 110, 'daramanian mace')
shopModule:addSellableItem({'daramanian waraxe'}, 2440, 1000, 'daramanian waraxe')
shopModule:addSellableItem({'heavy machete'}, 2442, 90, 'heavy machete')
shopModule:addSellableItem({'war axe'}, 2454, 12000, 'war axe')
shopModule:addSellableItem({'hammer of wrath'}, 2444, 30000, 'hammer of wrath')
shopModule:addSellableItem({'paraoh sword'}, 2446, 23000, 'paraoh sword')
shopModule:addSellableItem({'crystal mace'}, 2445, 12000, 'crystal mace')
shopModule:addSellableItem({'studded club'}, 2448, 10, 'studded club')
shopModule:addSellableItem({'bone club'}, 2449, 80, 'bone club')
shopModule:addSellableItem({'bone sword'}, 2450, 20, 'bone sword')
shopModule:addSellableItem({'djin blade'}, 2451, 15000, 'djin blade')
shopModule:addSellableItem({'sword'}, 2376, 25, 'sword')
shopModule:addSellableItem({'mace'}, 2398, 30, 'mace')
shopModule:addSellableItem({'axe'}, 2386, 7, 'axe')
shopModule:addSellableItem({'club'}, 2382, 1, 'club')
shopModule:addSellableItem({'dagger'}, 2379, 2, 'dagger')
shopModule:addSellableItem({'staff'}, 2401, 1, 'staff')
shopModule:addSellableItem({'crossbow'}, 2455, 160, 'crossbow')
shopModule:addSellableItem({'bow'}, 2456, 130, 'bow')
shopModule:addSellableItem({'plate armor'}, 2463, 400, 'plate armor')
shopModule:addSellableItem({'chain armor'}, 2464, 70, 'chain armor')
shopModule:addSellableItem({'brass armor'}, 2465, 150, 'brass armor')
shopModule:addSellableItem({'golden armor'}, 2466, 20000, 'golden armor')
shopModule:addSellableItem({'leather armor'}, 2467, 12, 'leather armor')
shopModule:addSellableItem({'magic plate armor'}, 2472, 90000, 'magic plate armor')
shopModule:addSellableItem({'knight armor'}, 2476, 5000, 'knight armor')
shopModule:addSellableItem({'scale armor'}, 2483, 75, 'scale armor')
shopModule:addSellableItem({'studded armor'}, 2484, 25, 'studded armor')
shopModule:addSellableItem({'doublet'}, 2485, 3, 'doublet')
shopModule:addSellableItem({'noble armor'}, 2486, 900, 'noble armor')
shopModule:addSellableItem({'crown armor'}, 2487, 12000, 'crown armor')
shopModule:addSellableItem({'dark armor'}, 2489, 400, 'dark armor')
shopModule:addSellableItem({'dragon scale mail'}, 2492, 40000, 'dragon scale mail')
shopModule:addSellableItem({'jacket'}, 2650, 1, 'jacket')
shopModule:addSellableItem({'coat'}, 2651, 1, 'coat')
shopModule:addSellableItem({'red robe'}, 2655, 300, 'red robe')
shopModule:addSellableItem({'blue robe'}, 2656, 10000, 'blue robe')
shopModule:addSellableItem({'simple dress'}, 2657, 50, 'simple dress')

shopModule:addSellableItem({'studded legs'}, 2468, 15, 'studded legs')
shopModule:addSellableItem({'golden legs'}, 2470, 30000, 'golden legs')
shopModule:addSellableItem({'knight legs'}, 2477, 5000, 'knight legs')
shopModule:addSellableItem({'brass legs'}, 2478, 49, 'brass legs')
shopModule:addSellableItem({'crown legs'}, 2488, 12000, 'crown legs')
shopModule:addSellableItem({'plate legs'}, 2647, 115, 'plate legs')
shopModule:addSellableItem({'chain legs'}, 2648, 25, 'chain legs')
shopModule:addSellableItem({'leather legs'}, 2649, 9, 'leather legs')

shopModule:addSellableItem({'steel shield'}, 2509, 80, 'steel shield')
shopModule:addSellableItem({'plate shield'}, 2510, 45, 'plate shield')
shopModule:addSellableItem({'brass shield'}, 2511, 25, 'brass shield')
shopModule:addSellableItem({'wooden shield'}, 2512, 5, 'wooden shield')
shopModule:addSellableItem({'battle shield'}, 2513, 95, 'battle shield')
shopModule:addSellableItem({'mastermind shield'}, 2514,50000, 'mastermind shield')
shopModule:addSellableItem({'guardian shield'}, 2515, 2000, 'guardian shield')
shopModule:addSellableItem({'dragon shield'}, 2516, 4000, 'battle shield')
shopModule:addSellableItem({'beholder shield'}, 2518, 1200, 'beholder shield')
shopModule:addSellableItem({'crown shield'}, 2519, 8000, 'crown shield')
shopModule:addSellableItem({'demon shield'}, 2520, 40000, 'demon shield')
shopModule:addSellableItem({'dark shield'}, 2521, 400, 'dark shield')
shopModule:addSellableItem({'ornamented shield'}, 2524, 1500, 'ornamented shield')
shopModule:addSellableItem({'dwarven shield'}, 2525, 100, 'dwarven shield')
shopModule:addSellableItem({'studded shield'}, 2526, 16, 'studded shield')
shopModule:addSellableItem({'tower shield'}, 2528, 8000, 'tower shield')
shopModule:addSellableItem({'black shield'}, 2529, 800, 'black shield')
shopModule:addSellableItem({'cooper shield'}, 2530, 50, 'cooper shield')
shopModule:addSellableItem({'viking shield'}, 2531, 85, 'viking shield')
shopModule:addSellableItem({'ancient shield'}, 2532, 900, 'ancient shield')
shopModule:addSellableItem({'griffin shield'}, 2533, 3000, 'griffin shield')
shopModule:addSellableItem({'vampire shield'}, 2534, 15000, 'vampire shield')
shopModule:addSellableItem({'castle shield'}, 2535, 5000, 'castle shield')
shopModule:addSellableItem({'medusa shield'}, 2536, 9000, 'medusa shield')
shopModule:addSellableItem({'scarab shield'}, 2540, 2000, 'scarab shield')
shopModule:addSellableItem({'bone shield'}, 2541, 80, 'bone shield')

shopModule:addSellableItem({'steel helmet'}, 2457, 293, 'steel helmet')
shopModule:addSellableItem({'chain helmet'}, 2458, 17, 'chain helmet')
shopModule:addSellableItem({'iron helmet'}, 2459, 150, 'iron helmet')
shopModule:addSellableItem({'brass helmet'}, 2460, 30, 'brass helmet')
shopModule:addSellableItem({'leather helmet'}, 2461, 4, 'leather helmet')
shopModule:addSellableItem({'devil helmet'}, 2462, 1000, 'devil helmet')
shopModule:addSellableItem({'viking helmet'}, 2473, 66, 'viking helmet')
shopModule:addSellableItem({'warrior helmet'}, 2475, 5000, 'warrior helmet')
shopModule:addSellableItem({'strange helmet'}, 2479, 500, 'strange helmet')
shopModule:addSellableItem({'legion helmet'}, 2480, 22, 'legion helmet')
shopModule:addSellableItem({'soldier helmet'}, 2481, 16, 'soldier helmet')
shopModule:addSellableItem({'studded helmet'}, 2482, 20, 'studded helmet')
shopModule:addSellableItem({'dark helmet'}, 2490, 250, 'dark helmet')
shopModule:addSellableItem({'crown helmet'}, 2491, 2500, 'crown helmet')
shopModule:addSellableItem({'demon helmet'}, 2493, 40000, 'demon helmet')
shopModule:addSellableItem({'crusader helmet'}, 2497, 6000, 'crusader helmet')
shopModule:addSellableItem({'royal helmet'}, 2498, 30000, 'royal helmet')
shopModule:addSellableItem({'mystic turban'}, 2663, 150, 'mystic turban')

shopModule:addSellableItem({'crocodile boots'}, 3892, 1000, 'crocodile boots')
shopModule:addSellableItem({'steel boots'}, 2645, 30000, 'steel boots')
shopModule:addSellableItem({'boots of haste'}, 2195, 30000, 'boots of haste')
shopModule:addSellableItem({'leather boots'}, 2643, 2, 'leather boots')
shopModule:addSellableItem({'sandals'}, 2642, 2, 'sandals')

shopModule:addSellableItem({'ancient amulet'}, 2142, 200, 'ancient amulet')
shopModule:addSellableItem({'crystal necklace'}, 2125, 400, 'crystal necklace')
shopModule:addSellableItem({'crystal ring'}, 2124, 250, 'crystal ring')
shopModule:addSellableItem({'demonbone amulet'}, 2136, 32000, 'demonbone amulet')
shopModule:addSellableItem({'emerald bangle'}, 2127, 800, 'emerald bangle')
shopModule:addSellableItem({'golden ring'}, 2179, 8000, 'golden ring')
shopModule:addSellableItem({'platinum amulet'}, 2172500, 'platinum amulet')
shopModule:addSellableItem({'ring of the sky'}, 2123, 30000, 'ring of the sky')
shopModule:addSellableItem({'ruby necklace'}, 2133, 2000, 'ruby necklace')
shopModule:addSellableItem({'scarab amulet'}, 2135, 200, 'scarab amulet')
shopModule:addSellableItem({'silver brooch'}, 2134, 150,'silver brooch')

npcHandler:addModule(FocusModule:new())
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)

 

 

Contato:

 

Link para o post
Compartilhar em outros sites
Agora, Dwarfer disse:
  Ocultar conteúdo


local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
 
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({'two-handed sword'}, 2377, 450, 'two-handed sword')
shopModule:addSellableItem({'battle axe'}, 2378, 80, 'battle axe')
shopModule:addSellableItem({'hand axe'}, 2380, 5, 'hand axe')
shopModule:addSellableItem({'halberd'}, 2381, 400, 'halberd')
shopModule:addSellableItem({'spike sword'}, 2383, 1000, 'spike sword')
shopModule:addSellableItem({'rapier'}, 2384, 5, 'rapier')
shopModule:addSellableItem({'sabre'}, 2385, 12, 'sabre')
shopModule:addSellableItem({'double axe'}, 2387, 260, 'double axe')
shopModule:addSellableItem({'hatchet'}, 2388, 25, 'hatchet')
shopModule:addSellableItem({'fire sword'}, 2392, 4000, 'fire sword')
shopModule:addSellableItem({'war hammer'}, 2391, 1000, 'war hammer')
shopModule:addSellableItem({'giant sword'}, 2393, 17000, 'giant sword')
shopModule:addSellableItem({'morning star'}, 2394, 100, 'morning star')
shopModule:addSellableItem({'carlin sword'}, 2395, 135, 'carlin sword')
shopModule:addSellableItem({'ice rapier'}, 2396, 1000, 'ice rapier')
shopModule:addSellableItem({'longsword'}, 2397, 51, 'longsword')
shopModule:addSellableItem({'silver dagger'}, 2402, 500, 'silver dagger')
shopModule:addSellableItem({'knife'}, 2403, 1, 'knife')
shopModule:addSellableItem({'combat knife'}, 2404, 1, 'kombat knife')
shopModule:addSellableItem({'sickle'}, 2405, 3, 'sickle')
shopModule:addSellableItem({'short sword'}, 2406, 10, 'short sword')
shopModule:addSellableItem({'bright sword'}, 2407, 6000, 'bright sword')
shopModule:addSellableItem({'serpent sword'}, 2409, 900, 'serpent sword')
shopModule:addSellableItem({'poison dagger'}, 2411, 50, 'poison dagger')
shopModule:addSellableItem({'katana'}, 2412, 35, 'katana')
shopModule:addSellableItem({'broad sword'}, 2413, 500, 'broad sword')
shopModule:addSellableItem({'dragon lance'}, 2414, 9000, 'dragon lance')
shopModule:addSellableItem({'crowbar'}, 2416, 50, 'crowbar')
shopModule:addSellableItem({'battle hammer'}, 2417, 120, 'battle hammer')
shopModule:addSellableItem({'golden sickle'}, 2418, 1000, 'golden sickle')
shopModule:addSellableItem({'scimitar'}, 2419, 150, 'scimitar')
shopModule:addSellableItem({'machete'}, 2420, 6, 'machete')
shopModule:addSellableItem({'iron hammer'}, 2422, 9, 'iron hammer')
shopModule:addSellableItem({'crelical mace'}, 2423, 170, 'crelical mace')
shopModule:addSellableItem({'obsidian lance'}, 2425, 500, 'obsidian lance')
shopModule:addSellableItem({'naginata'}, 2426, 2000, 'naginata')
shopModule:addSellableItem({'guardian halberd'}, 2427, 11000, 'guardian halberd')
shopModule:addSellableItem({'orcish axe'}, 2428, 350, 'orcish axe')
shopModule:addSellableItem({'barbarian axe'}, 2429, 185, 'barbarian axe')
shopModule:addSellableItem({'knight axe'}, 2430, 2000, 'knight axe')
shopModule:addSellableItem({'fire axe'}, 2432, 8000, 'fire axe')
shopModule:addSellableItem({'dragon hammer'}, 2434, 2000, 'dragon hammer')
shopModule:addSellableItem({'dwarven axe'}, 2435, 1500, 'dwarven axe')
shopModule:addSellableItem({'skull staff'}, 2436, 6000, 'skull staff')
shopModule:addSellableItem({'daramanian mace'}, 2439, 110, 'daramanian mace')
shopModule:addSellableItem({'daramanian waraxe'}, 2440, 1000, 'daramanian waraxe')
shopModule:addSellableItem({'heavy machete'}, 2442, 90, 'heavy machete')
shopModule:addSellableItem({'war axe'}, 2454, 12000, 'war axe')
shopModule:addSellableItem({'hammer of wrath'}, 2444, 30000, 'hammer of wrath')
shopModule:addSellableItem({'paraoh sword'}, 2446, 23000, 'paraoh sword')
shopModule:addSellableItem({'crystal mace'}, 2445, 12000, 'crystal mace')
shopModule:addSellableItem({'studded club'}, 2448, 10, 'studded club')
shopModule:addSellableItem({'bone club'}, 2449, 80, 'bone club')
shopModule:addSellableItem({'bone sword'}, 2450, 20, 'bone sword')
shopModule:addSellableItem({'djin blade'}, 2451, 15000, 'djin blade')
shopModule:addSellableItem({'sword'}, 2376, 25, 'sword')
shopModule:addSellableItem({'mace'}, 2398, 30, 'mace')
shopModule:addSellableItem({'axe'}, 2386, 7, 'axe')
shopModule:addSellableItem({'club'}, 2382, 1, 'club')
shopModule:addSellableItem({'dagger'}, 2379, 2, 'dagger')
shopModule:addSellableItem({'staff'}, 2401, 1, 'staff')
shopModule:addSellableItem({'crossbow'}, 2455, 160, 'crossbow')
shopModule:addSellableItem({'bow'}, 2456, 130, 'bow')
shopModule:addSellableItem({'plate armor'}, 2463, 400, 'plate armor')
shopModule:addSellableItem({'chain armor'}, 2464, 70, 'chain armor')
shopModule:addSellableItem({'brass armor'}, 2465, 150, 'brass armor')
shopModule:addSellableItem({'golden armor'}, 2466, 20000, 'golden armor')
shopModule:addSellableItem({'leather armor'}, 2467, 12, 'leather armor')
shopModule:addSellableItem({'magic plate armor'}, 2472, 90000, 'magic plate armor')
shopModule:addSellableItem({'knight armor'}, 2476, 5000, 'knight armor')
shopModule:addSellableItem({'scale armor'}, 2483, 75, 'scale armor')
shopModule:addSellableItem({'studded armor'}, 2484, 25, 'studded armor')
shopModule:addSellableItem({'doublet'}, 2485, 3, 'doublet')
shopModule:addSellableItem({'noble armor'}, 2486, 900, 'noble armor')
shopModule:addSellableItem({'crown armor'}, 2487, 12000, 'crown armor')
shopModule:addSellableItem({'dark armor'}, 2489, 400, 'dark armor')
shopModule:addSellableItem({'dragon scale mail'}, 2492, 40000, 'dragon scale mail')
shopModule:addSellableItem({'jacket'}, 2650, 1, 'jacket')
shopModule:addSellableItem({'coat'}, 2651, 1, 'coat')
shopModule:addSellableItem({'red robe'}, 2655, 300, 'red robe')
shopModule:addSellableItem({'blue robe'}, 2656, 10000, 'blue robe')
shopModule:addSellableItem({'simple dress'}, 2657, 50, 'simple dress')

shopModule:addSellableItem({'studded legs'}, 2468, 15, 'studded legs')
shopModule:addSellableItem({'golden legs'}, 2470, 30000, 'golden legs')
shopModule:addSellableItem({'knight legs'}, 2477, 5000, 'knight legs')
shopModule:addSellableItem({'brass legs'}, 2478, 49, 'brass legs')
shopModule:addSellableItem({'crown legs'}, 2488, 12000, 'crown legs')
shopModule:addSellableItem({'plate legs'}, 2647, 115, 'plate legs')
shopModule:addSellableItem({'chain legs'}, 2648, 25, 'chain legs')
shopModule:addSellableItem({'leather legs'}, 2649, 9, 'leather legs')

shopModule:addSellableItem({'steel shield'}, 2509, 80, 'steel shield')
shopModule:addSellableItem({'plate shield'}, 2510, 45, 'plate shield')
shopModule:addSellableItem({'brass shield'}, 2511, 25, 'brass shield')
shopModule:addSellableItem({'wooden shield'}, 2512, 5, 'wooden shield')
shopModule:addSellableItem({'battle shield'}, 2513, 95, 'battle shield')
shopModule:addSellableItem({'mastermind shield'}, 2514,50000, 'mastermind shield')
shopModule:addSellableItem({'guardian shield'}, 2515, 2000, 'guardian shield')
shopModule:addSellableItem({'dragon shield'}, 2516, 4000, 'battle shield')
shopModule:addSellableItem({'beholder shield'}, 2518, 1200, 'beholder shield')
shopModule:addSellableItem({'crown shield'}, 2519, 8000, 'crown shield')
shopModule:addSellableItem({'demon shield'}, 2520, 40000, 'demon shield')
shopModule:addSellableItem({'dark shield'}, 2521, 400, 'dark shield')
shopModule:addSellableItem({'ornamented shield'}, 2524, 1500, 'ornamented shield')
shopModule:addSellableItem({'dwarven shield'}, 2525, 100, 'dwarven shield')
shopModule:addSellableItem({'studded shield'}, 2526, 16, 'studded shield')
shopModule:addSellableItem({'tower shield'}, 2528, 8000, 'tower shield')
shopModule:addSellableItem({'black shield'}, 2529, 800, 'black shield')
shopModule:addSellableItem({'cooper shield'}, 2530, 50, 'cooper shield')
shopModule:addSellableItem({'viking shield'}, 2531, 85, 'viking shield')
shopModule:addSellableItem({'ancient shield'}, 2532, 900, 'ancient shield')
shopModule:addSellableItem({'griffin shield'}, 2533, 3000, 'griffin shield')
shopModule:addSellableItem({'vampire shield'}, 2534, 15000, 'vampire shield')
shopModule:addSellableItem({'castle shield'}, 2535, 5000, 'castle shield')
shopModule:addSellableItem({'medusa shield'}, 2536, 9000, 'medusa shield')
shopModule:addSellableItem({'scarab shield'}, 2540, 2000, 'scarab shield')
shopModule:addSellableItem({'bone shield'}, 2541, 80, 'bone shield')

shopModule:addSellableItem({'steel helmet'}, 2457, 293, 'steel helmet')
shopModule:addSellableItem({'chain helmet'}, 2458, 17, 'chain helmet')
shopModule:addSellableItem({'iron helmet'}, 2459, 150, 'iron helmet')
shopModule:addSellableItem({'brass helmet'}, 2460, 30, 'brass helmet')
shopModule:addSellableItem({'leather helmet'}, 2461, 4, 'leather helmet')
shopModule:addSellableItem({'devil helmet'}, 2462, 1000, 'devil helmet')
shopModule:addSellableItem({'viking helmet'}, 2473, 66, 'viking helmet')
shopModule:addSellableItem({'warrior helmet'}, 2475, 5000, 'warrior helmet')
shopModule:addSellableItem({'strange helmet'}, 2479, 500, 'strange helmet')
shopModule:addSellableItem({'legion helmet'}, 2480, 22, 'legion helmet')
shopModule:addSellableItem({'soldier helmet'}, 2481, 16, 'soldier helmet')
shopModule:addSellableItem({'studded helmet'}, 2482, 20, 'studded helmet')
shopModule:addSellableItem({'dark helmet'}, 2490, 250, 'dark helmet')
shopModule:addSellableItem({'crown helmet'}, 2491, 2500, 'crown helmet')
shopModule:addSellableItem({'demon helmet'}, 2493, 40000, 'demon helmet')
shopModule:addSellableItem({'crusader helmet'}, 2497, 6000, 'crusader helmet')
shopModule:addSellableItem({'royal helmet'}, 2498, 30000, 'royal helmet')
shopModule:addSellableItem({'mystic turban'}, 2663, 150, 'mystic turban')

shopModule:addSellableItem({'crocodile boots'}, 3892, 1000, 'crocodile boots')
shopModule:addSellableItem({'steel boots'}, 2645, 30000, 'steel boots')
shopModule:addSellableItem({'boots of haste'}, 2195, 30000, 'boots of haste')
shopModule:addSellableItem({'leather boots'}, 2643, 2, 'leather boots')
shopModule:addSellableItem({'sandals'}, 2642, 2, 'sandals')

shopModule:addSellableItem({'ancient amulet'}, 2142, 200, 'ancient amulet')
shopModule:addSellableItem({'crystal necklace'}, 2125, 400, 'crystal necklace')
shopModule:addSellableItem({'crystal ring'}, 2124, 250, 'crystal ring')
shopModule:addSellableItem({'demonbone amulet'}, 2136, 32000, 'demonbone amulet')
shopModule:addSellableItem({'emerald bangle'}, 2127, 800, 'emerald bangle')
shopModule:addSellableItem({'golden ring'}, 2179, 8000, 'golden ring')
shopModule:addSellableItem({'platinum amulet'}, 2172500, 'platinum amulet')
shopModule:addSellableItem({'ring of the sky'}, 2123, 30000, 'ring of the sky')
shopModule:addSellableItem({'ruby necklace'}, 2133, 2000, 'ruby necklace')
shopModule:addSellableItem({'scarab amulet'}, 2135, 200, 'scarab amulet')
shopModule:addSellableItem({'silver brooch'}, 2134, 150,'silver brooch')

npcHandler:addModule(FocusModule:new())
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)

 

 

Funcionou !! Obrigado @Dwarfer ;) 

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo