tfs 0.4 amuletseller npc

myszku

Active User
Zarejestrowany
Dołączył
Kwiecień 25, 2009
Posty
93
Liczba reakcji
1
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
 
Odp: tfs 0.4 amuletseller npc

no wiesz takiego na zawo?anie jak ty sobie wyobrazi?e? to na bank nikt ci nie pode?le. Ale zawsze mo?esz troszke pokombinowa? w skrypcie i sam takiego zrobi? to nie jest trudne a bedziesz mial frajdy po pachy!

Ja moge ci podrzucic swojego jubilera ale on skupuje kryszta?y i sprzedaje ringi

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



-- OTServ event handling functions start
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
-- 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())
 
Back
Do góry