• 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 Clubs Dealer

ziggy46802

Active Member
Joined
Aug 19, 2012
Messages
418
Reaction score
27
Here is the ultimate club 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 legs 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).

A lot of the items have weird prices and such, so make sure you check them and agree with them before going ahead and using it (for example, I made amazon armor something you can buy since I plan on making a rare version of amazons drop it very rarely, but thats just me personally, you may want to remove it from the buyable list).

He sells 72 clubs, which is pretty much all but like 2 or 3 of the non-ridiculous ones (weird names). Tested and fully works in the latest 9.6 TFS.

clubs.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({'banana staff'}, 3966, 20000,'banana staff')
shopModule:addBuyableItem({'battle hammer'}, 2417, 350,'battle hammer')
shopModule:addBuyableItem({'bone club'}, 2449, 50,'bone club')
shopModule:addBuyableItem({'club'}, 2382, 20,'club')
shopModule:addBuyableItem({'crowbar'}, 2416, 260,'crowbar')
shopModule:addBuyableItem({'daramanian mace'}, 2439, 150,'daramanian mace')
shopModule:addBuyableItem({'iron hammer'}, 2422, 200,'iron hammer')
shopModule:addBuyableItem({'mace'}, 2398, 90,'mace')
shopModule:addBuyableItem({'morning star'}, 2394, 430,'morning star')
shopModule:addBuyableItem({'scythe'}, 2550, 10,'scythe')
shopModule:addBuyableItem({'staff'}, 2401, 40,'staff')
shopModule:addBuyableItem({'studded club'}, 2448, 40,'studded club')

--lvl 20
shopModule:addBuyableItem({'clerical mace'}, 2423, 540,'clerical mace')
shopModule:addBuyableItem({'fiery clerical mace'}, 7754, 800,'fiery clerical mace')
shopModule:addBuyableItem({'energy clerical mace'}, 7879, 800,'energy clerical mace')
shopModule:addBuyableItem({'earth clerical mace'}, 7864, 800,'earth clerical mace')
shopModule:addBuyableItem({'icy clerical mace'}, 7773, 800,'icy clerical mace')
shopModule:addBuyableItem({'mammoth whopper'}, 7381, 1200,'mammoth whopper')
shopModule:addBuyableItem({'furry club'}, 7432, 4000,'furry club')
shopModule:addBuyableItem({'taurus mace'}, 7425, 2500,'taurus mace')

--lvl 25
shopModule:addBuyableItem({'dragon hammer'},  2434,  8000,  'dragon hammer')
shopModule:addBuyableItem({'diamond sceptre'},  7387,  12000,  'diamond sceptre')
shopModule:addBuyableItem({'brutetamers staff'},  7379,  6000,  'brutetamers staff')

--lvl 30
shopModule:addBuyableItem({'dragonbone staff'},  7430,  12000,  'dragonbone staff')
shopModule:addBuyableItem({'lunar staff'},  7424,  20000,  'lunar staff')
shopModule:addBuyableItem({'sapphire hammer'},  7437,  28000,  'sapphire hammer')
shopModule:addBuyableItem({'spiked squelcher'},  7452,  20000,  'spiked squelcher')
shopModule:addBuyableItem({'skull staff'},  2436,  24000,  'skull staff')

--lvl 35
shopModule:addBuyableItem({'shadow sceptre'},  7451,  40000,  'shadow sceptre')
shopModule:addBuyableItem({'orcish maul'}, 7392,  24000,  'orcish maul')
shopModule:addBuyableItem({'fiery orcish maul'},  7757,  26000,  'fiery orcish maul')
shopModule:addBuyableItem({'energy orcish maul'},  7882,  26000,  'energy orcish maul')
shopModule:addBuyableItem({'earth orcish maul'},  7867,  26000,  'earth orcish maul')
shopModule:addBuyableItem({'icy orcish maul'},  7776,  26000,  'icy orcish maul')
shopModule:addBuyableItem({'crystal mace'},  2445,  95000,  'crystal mace')
shopModule:addBuyableItem({'fiery crystal mace'},  7755,  100000,  'fiery crystal mace')
shopModule:addBuyableItem({'energy crystal mace'},  7880,  100000,  'energy crystal mace')
shopModule:addBuyableItem({'earth crystal mace'},  7865,  100000,  'earth crystal mace')
shopModule:addBuyableItem({'icy crystal mace'},  7774,  100000,  'icy crystal mace')

--lvl 38
shopModule:addBuyableItem({'deepling staff'},  15400,  16000,  'deepling staff')

--lvl 40
shopModule:addBuyableItem({'amber staff'},  7426,  32000,  'amber staff')
shopModule:addBuyableItem({'lich staff'},  3961,  50000,  'lich staff')

--lvl 45
shopModule:addBuyableItem({'chaos mace'},  7427,  36000,  'chaos mace')
shopModule:addBuyableItem({'silver mace'},  2424,  80000,  'silver mace')

--lvl 48
shopModule:addBuyableItem({'deepling squelcher'},  15647,  28000,  'deepling squelcher')

--lvl 50
shopModule:addBuyableItem({'war hammer'},  2391,  10000,  'war hammer')
shopModule:addBuyableItem({'fiery war hammer'},  7758,  12000,  'fiery war hammer')
shopModule:addBuyableItem({'energy war hammer'},  7883,  12000,  'energy war hammer')
shopModule:addBuyableItem({'earth war hammer'},  7868,  12000,  'earth war hammer')
shopModule:addBuyableItem({'icy war hammer'},  7777,  12000,  'icy war hammer')

--lvl 55
shopModule:addBuyableItem({'drachaku'},  11308,  40000,  'drachaku')
shopModule:addBuyableItem({'bonebreaker'},  7428,  40000,  'bonebreaker')
shopModule:addBuyableItem({'queens sceptre'},  7410,  80000,  'queens sceptre')

--lvl 60
shopModule:addBuyableItem({'abyss hammer'},  7414,  80000,  'abyss hammer')
shopModule:addBuyableItem({'cranial basher'},  7415,  120000,  'cranial basher')
shopModule:addBuyableItem({'fiery cranial basher'},  7756,  125000,  'fiery cranial basher')
shopModule:addBuyableItem({'energy cranial baser'},  7881,  125000,  'energy cranial basher')
shopModule:addBuyableItem({'earth cranial basher'},  7866,  125000,  'earth cranial basher')
shopModule:addBuyableItem({'icy cranial basher'},  7775,  125000,  'icy cranial basher')

--lvl 65
shopModule:addBuyableItem({'hammer of wrath'},  2444,  120000,  'hammer of wrath')
shopModule:addBuyableItem({'onyx flail'},  7421,  88000,  'onyx flail')

--lvl 70
shopModule:addBuyableItem({'jade hammer'},  7422,  100000,  'jade hammer')
shopModule:addBuyableItem({'heavy mace'},  2452,  200000,  'heavy mace')

--lvl 75
shopModule:addBuyableItem({'blessed sceptre'},  7429,  160000,  'blessed sceptre')

--lvl 80
shopModule:addBuyableItem({'demonbone'},  7431,  100000,  'demonbone')

--lvl 82
shopModule:addBuyableItem({'snake god\'s sceptre'},  12648,  3000000,  'snake god\'s sceptre')

--lvl 85
shopModule:addBuyableItem({'thunder hammer'},  2421,  2500000,  'thunder hammer')

--lvl 90
shopModule:addBuyableItem({'ornate mace'},  15414,  2000000,  'ornate mace')

--lvl 100
shopModule:addBuyableItem({'obsidian truncheon'},  8928,  5000000,  'obsidian truncheon')
shopModule:addBuyableItem({'the stomper'},  8929,  4000000,  'the stomper')

--lvl 120
shopModule:addBuyableItem({'dark trinity mace'},  8927,  6000000,  'dark trinity mace')
shopModule:addBuyableItem({'mycological mace'},  18452,  8000000,  'mycological mace')

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

--no level req
shopModule:addSellableItem({'banana staff'}, 3966, 1000,'banana staff')
shopModule:addSellableItem({'battle hammer'}, 2417, 120,'battle hammer')
shopModule:addSellableItem({'bone club'}, 2449, 5,'bone club')
shopModule:addSellableItem({'club'}, 2382, 5,'club')
shopModule:addSellableItem({'crowbar'}, 2416, 50,'crowbar')
shopModule:addSellableItem({'daramanian mace'}, 2439, 50,'daramanian mace')
shopModule:addSellableItem({'iron hammer'}, 2422, 9,'iron hammer')
shopModule:addSellableItem({'mace'}, 2398, 30,'mace')
shopModule:addSellableItem({'morning star'}, 2394, 100,'morning star')
shopModule:addSellableItem({'scythe'}, 2550, 3,'scythe')
shopModule:addSellableItem({'staff'}, 2401, 10,'staff')
shopModule:addSellableItem({'studded club'}, 2448, 10,'studded club')

--lvl 20
shopModule:addSellableItem({'clerical mace'}, 2423, 170,'clerical mace')
shopModule:addSellableItem({'fiery clerical mace'}, 7754, 250,'fiery clerical mace')
shopModule:addSellableItem({'energy clerical mace'}, 7879, 250,'energy clerical mace')
shopModule:addSellableItem({'earth clerical mace'}, 7864, 250,'earth clerical mace')
shopModule:addSellableItem({'icy clerical mace'}, 7773, 250,'icy clerical mace')
shopModule:addSellableItem({'mammoth whopper'}, 7381, 300,'mammoth whopper')
shopModule:addSellableItem({'furry club'}, 7432, 1000,'furry club')
shopModule:addSellableItem({'taurus mace'}, 7425, 500,'taurus mace')

--lvl 25
shopModule:addSellableItem({'dragon hammer'},  2434,  2000,  'dragon hammer')
shopModule:addSellableItem({'diamond sceptre'},  7387,  3000,  'diamond sceptre')
shopModule:addSellableItem({'brutetamers staff'},  7379,  1500,  'brutetamers staff')

--lvl 30
shopModule:addSellableItem({'dragonbone staff'},  7430,  3000,  'dragonbone staff')
shopModule:addSellableItem({'lunar staff'},  7424,  5000,  'lunar staff')
shopModule:addSellableItem({'sapphire hammer'},  7437,  7000,  'sapphire hammer')
shopModule:addSellableItem({'spiked squelcher'},  7452,  5000,  'spiked squelcher')
shopModule:addSellableItem({'skull staff'},  2436,  6000,  'skull staff')

--lvl 35
shopModule:addSellableItem({'shadow sceptre'},  7451,  10000,  'shadow sceptre')
shopModule:addSellableItem({'orcish maul'}, 7392,  6000,  'orcish maul')
shopModule:addSellableItem({'fiery orcish maul'},  7757,  8000,  'fiery orcish maul')
shopModule:addSellableItem({'energy orcish maul'},  7882,  8000,  'energy orcish maul')
shopModule:addSellableItem({'earth orcish maul'},  7867,  8000,  'earth orcish maul')
shopModule:addSellableItem({'icy orcish maul'},  7776,  8000,  'icy orcish maul')
shopModule:addSellableItem({'crystal mace'},  2445,  12000,  'crystal mace')
shopModule:addSellableItem({'fiery crystal mace'},  7755,  14000,  'fiery crystal mace')
shopModule:addSellableItem({'energy crystal mace'},  7880,  14000,  'energy crystal mace')
shopModule:addSellableItem({'earth crystal mace'},  7865,  14000,  'earth crystal mace')
shopModule:addSellableItem({'icy crystal mace'},  7774,  14000,  'icy crystal mace')

--lvl 38
shopModule:addSellableItem({'deepling staff'},  15400,  4000,  'deepling staff')

--lvl 40
shopModule:addSellableItem({'amber staff'},  7426,  8000,  'amber staff')
shopModule:addSellableItem({'lich staff'},  3961,  12500,  'lich staff')

--lvl 45
shopModule:addSellableItem({'chaos mace'},  7427,  9000,  'chaos mace')
shopModule:addSellableItem({'silver mace'},  2424,  20000,  'silver mace')

--lvl 48
shopModule:addSellableItem({'deepling squelcher'},  15647,  7000,  'deepling squelcher')

--lvl 50
shopModule:addSellableItem({'war hammer'},  2391,  1200,  'war hammer')
shopModule:addSellableItem({'fiery war hammer'},  7758,  1500,  'fiery war hammer')
shopModule:addSellableItem({'energy war hammer'},  7883,  1500,  'energy war hammer')
shopModule:addSellableItem({'earth war hammer'},  7868,  1500,  'earth war hammer')
shopModule:addSellableItem({'icy war hammer'},  7777,  1500,  'icy war hammer')

--lvl 55
shopModule:addSellableItem({'drachaku'},  11308,  10000,  'drachaku')
shopModule:addSellableItem({'bonebreaker'},  7428,  10000,  'bonebreaker')
shopModule:addSellableItem({'queens sceptre'},  7410,  20000,  'queens sceptre')

--lvl 60
shopModule:addSellableItem({'abyss hammer'},  7414,  20000,  'abyss hammer')
shopModule:addSellableItem({'cranial basher'},  7415,  30000,  'cranial basher')
shopModule:addSellableItem({'fiery cranial basher'},  7756,  32000,  'fiery cranial basher')
shopModule:addSellableItem({'energy cranial baser'},  7881,  32000,  'energy cranial basher')
shopModule:addSellableItem({'earth cranial basher'},  7866,  32000,  'earth cranial basher')
shopModule:addSellableItem({'icy cranial basher'},  7775,  32000,  'icy cranial basher')

--lvl 65
shopModule:addSellableItem({'hammer of wrath'},  2444,  30000,  'hammer of wrath')
shopModule:addSellableItem({'onyx flail'},  7421,  22000,  'onyx flail')

--lvl 70
shopModule:addSellableItem({'jade hammer'},  7422,  25000,  'jade hammer')
shopModule:addSellableItem({'heavy mace'},  2452,  50000,  'heavy mace')

--lvl 75
shopModule:addSellableItem({'blessed sceptre'},  7429,  40000,  'blessed sceptre')

--lvl 80
shopModule:addSellableItem({'demonbone'},  7431,  25000,  'demonbone')

--lvl 82
shopModule:addSellableItem({'snake god\'s sceptre'},  12648,  750000,  'snake god\'s sceptre')

--lvl 85
shopModule:addSellableItem({'thunder hammer'},  2421,  625000,  'thunder hammer')

--lvl 90
shopModule:addSellableItem({'ornate mace'},  15414,  500000,  'ornate mace')

--lvl 100
shopModule:addSellableItem({'obsidian truncheon'},  8928,  1250000,  'obsidian truncheon')
shopModule:addSellableItem({'the stomper'},  8929,  1000000,  'the stomper')

--lvl 120
shopModule:addSellableItem({'dark trinity mace'},  8927,  1500000,  'dark trinity mace')
shopModule:addSellableItem({'mycological mace'},  18452,  2000000,  'mycological mace')

npcHandler:addModule(FocusModule:new())


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:
Made him compatible with the latest 9.6 TFS distro, and added in 9.6 items.

Also added in LUA tags so it is easier to see.
 
Last edited:
Back
Top Bottom