• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

NPC Ultimate Boots Dealer

ziggy46802

Active Member
Joined
Aug 19, 2012
Messages
418
Reaction score
27
Here is the ultimate boots weapons dealer. All of the prices for selling to him are from tibia.wikia.com so they should be correct, but the buy prices I usually just took the sell price and multiplied it by four to make it buyable, but at a semi-ridiculous price. The idea of this npc is to make it so certain rare weapons can exist on a new server before they are looted from extremely hard monsters. It also sets a "ceiling" (like if the buy price is 4000, then you cant sell it to players for more than 4000) and a "floor" (the sell price to the npc would be 1000 in this instance so that, if sold to another player, it would be above 1000 but below the ridiculousness of 4000).

He sells 22 boots and was made for 9.6 and include all boots from 9.6

boots.lua
Lua:
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
function onPlayerEndTrade(cid)				npcHandler:onPlayerEndTrade(cid)			end
function onPlayerCloseChannel(cid)			npcHandler:onPlayerCloseChannel(cid)		end
-- OTServ event handling functions end

local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)

-------------------For sale-------------------

--no level req
shopModule:addBuyableItem({'leather boots'}, 2643, 10,'leather boots')
shopModule:addBuyableItem({'boots of haste'}, 2195, 120000,'boots of haste')
shopModule:addBuyableItem({'coconut shoes'}, 9931, 5000,'coconut shoes')
shopModule:addBuyableItem({'sandals'}, 2642, 2,'sandals')
shopModule:addBuyableItem({'crocodile boots'}, 3982, 4000,'crocodile boots')
shopModule:addBuyableItem({'zaoan shoes'}, 11303, 20000,'zaoan shoes')
shopModule:addBuyableItem({'fur boots'},  7457,  8000, 'fur boots')
shopModule:addBuyableItem({'pirate boots'}, 5462, 12000,'pirate boots')
shopModule:addBuyableItem({'patched boots'}, 2641, 8000,'patched boots')
shopModule:addBuyableItem({'steel boots'}, 2645, 120000,'steel boots')
shopModule:addBuyableItem({'golden boots'}, 2646, 1000000,'golden boots')

--lvl 35
shopModule:addBuyableItem({'lightning boots'}, 7893, 10000,'lightning boots')
shopModule:addBuyableItem({'terra boots'}, 7886, 10000,'terra boots')
shopModule:addBuyableItem({'magma boots'}, 7891, 10000,'magma boots')
shopModule:addBuyableItem({'glacier boots'}, 7892, 10000,'glacier boots')

--lvl 70
shopModule:addBuyableItem({'crystal boots'}, 11117, 2000000,'crystal boots')
shopModule:addBuyableItem({'dragon scale boots'}, 11118, 2000000,'dragon scale boots')
shopModule:addBuyableItem({'guardian boots'}, 11240, 150000,'guardian boots')

--lvl 80
shopModule:addBuyableItem({'draken boots'}, 12646, 160000,'draken boots')

--lvl 130
shopModule:addBuyableItem({'firewalker boots'}, 9933, 200000,'firewalker boots')

--lvl 150
shopModule:addBuyableItem({'depth calcei'}, 15410, 1000000,'depth calcei')
shopModule:addBuyableItem({'prismatic boots'}, 18406, 1500000,'prismatic boots')


-------------------Sell to him-------------------

--no level req
shopModule:addSellableItem({'leather boots'}, 2643, 2,'leather boots')
shopModule:addSellableItem({'boots of haste'}, 2195, 30000,'boots of haste')
shopModule:addSellableItem({'coconut shoes'}, 9931, 500,'coconut shoes')
shopModule:addSellableItem({'pair of soft boots'}, 6132, 500000,'pair of soft boots')
shopModule:addSellableItem({'sandals'}, 2642,'sandals')
shopModule:addSellableItem({'crocodile boots'}, 3982, 1000,'crocodile boots')
shopModule:addSellableItem({'zaoan shoes'}, 11303, 5000,'zaoan shoes')
shopModule:addSellableItem({'fur boots'},  7457,  2000, 'fur boots')
shopModule:addSellableItem({'pirate boots'}, 5462, 3000,'pirate boots')
shopModule:addSellableItem({'patched boots'}, 2641, 2000,'patched boots')
shopModule:addSellableItem({'steel boots'}, 2645, 30000,'steel boots')

--lvl 35
shopModule:addSellableItem({'lightning boots'}, 7893, 2500,'lightning boots')
shopModule:addSellableItem({'terra boots'}, 7886, 2500,'terra boots')
shopModule:addSellableItem({'magma boots'}, 7891, 2500,'magma boots')
shopModule:addSellableItem({'glacier boots'}, 7892, 2500,'glacier boots')

--lvl 70
shopModule:addSellableItem({'crystal boots'}, 11117, 500000,'crystal boots')
shopModule:addSellableItem({'dragon scale boots'}, 11118, 500000,'dragon scale boots')
shopModule:addSellableItem({'guardian boots'}, 11240, 35000,'guardian boots')

--lvl 80
shopModule:addSellableItem({'draken boots'}, 12646, 40000,'draken boots')

--lvl 130
shopModule:addSellableItem({'firewalker boots'}, 9933, 50000,'firewalker boots')

--lvl 150
shopModule:addSellableItem({'depth calcei'}, 15410, 250000,'depth calcei')
shopModule:addSellableItem({'prismatic boots'}, 18406, 375000,'prismatic boots')

npcHandler:addModule(FocusModule:new())

Tested and fully works on latest TFS 9.6, he sells every boot.

I hope some of you get a use out of this, it took a lot of work and helps new servers establish weapons.

And if this helped you at all, rep++ would be nice.
 
Last edited:
Added in 9.6 items and fixed for version 9.6

Also added in LUA tags so that it is easier to see
 
Last edited:
Thank you Ziggy, I really appreciate it. ;)

I must tell you that I'm using allmost all of your scripts hahaha!

So.. Thanks again.
 
Back
Top