witam poszukuje npc amullet sellera, zeby sprzedawal/kupowal aole, i wszytskie inne amulety oprocz tych sacred tree amuletow, ssa itp.(ktore bardzo mocno redukuja obrazenia) oraz zeby sprzedawal/kupowal ringi oprocz might ringow ;p
Follow along with the video below to see how to install our site as a web app on your home screen.
Notka: This feature may not be available in some browsers.
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandlernCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandlernCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandlernCreatureSay(cid, type, msg) end
function onThink() npcHandlernThink() end
-- OTServ event handling functions end
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
shopModule:addBuyableItem({'sword ring'}, 2207, 200, 'sword ring')
shopModule:addBuyableItem({'club ring'}, 2209, 200, 'club ring')
shopModule:addBuyableItem({'axe ring'}, 2208, 200, 'axe ring')
shopModule:addBuyableItem({'power ring'}, 2166, 200, 'power ring')
shopModule:addBuyableItem({'energy ring'}, 2167, 500, 'energy ring')
shopModule:addBuyableItem({'life ring'}, 2168, 1500, 'life ring')
shopModule:addBuyableItem({'time ring'}, 2169, 1000, 'time ring')
shopModule:addBuyableItem({'might ring'}, 2164, 2000, 'might ring')
shopModule:addBuyableItem({'ring of healing'}, 2214, 3000, 'ring of healing')
shopModule:addBuyableItem({'stealth ring'}, 2165, 1000, 'stealth ring')
shopModule:addBuyableItem({'stone skin amulet'}, 2197, 2000, 'stone skin amulet')
shopModule:addBuyableItem({'protection amulet'}, 2200, 200, 'protection amulet')
shopModule:addBuyableItem({'elven amulet'}, 2198, 500, 'elven amulet')
shopModule:addBuyableItem({'platinum amulet'}, 2171, 2000, 'platinum amulet')
shopModule:addBuyableItem({'dragon necklace'}, 2201, 1000, 'dragon necklace')
shopModule:addBuyableItem({'garlic necklace'}, 2199, 500, 'garlic necklace')
shopModule:addBuyableItem({'dwarven ring'}, 2213, 2000, 'dwarven ring')
shopModule:addSellableItem({'Black Pearl'}, 2144, 300, 'Black Pearl')
shopModule:addSellableItem({'White Pearl'}, 2143, 200, 'White Pearl')
shopModule:addSellableItem({'Talon'}, 2151, 400, 'Talon')
shopModule:addSellableItem({'Small Topaz'}, 9970, 200, 'Small Topaz')
shopModule:addSellableItem({'Small Sapphire'}, 2146, 250, 'Small Sapphire')
shopModule:addSellableItem({'Small Ruby'}, 2147, 250, 'Small Ruby')
shopModule:addSellableItem({'Small Emerald'}, 2149, 250, 'Small Emerald')
shopModule:addSellableItem({'Small Diamond'}, 2145, 300, 'Small Diamond')
shopModule:addSellableItem({'Small Amethyst'}, 2150, 200, 'Small Amethyst')
shopModule:addSellableItem({'Scarab coin'}, 2159, 1000, 'Scarab coin')
npcHandler:addModule(FocusModule:new())