ziggy46802
Active Member
- Joined
- Aug 19, 2012
- Messages
- 418
- Reaction score
- 27
Here is the ultimate helmets 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 about 50 helmets and was made for 8.60, not sure if the ID's have changed in 9.10 but I know like 5 helmets didnt exist when I tried to make them on my server but they aren't too important in the long run. I put some of the super super rare (golden helmet) items for sale but at ridiculous prices. Well here he is:
helmets.lua
I plan on making an npc for clubs, axes, and I'm working on the "armors" one now as well so just keep watching this forum and I will post them in time, but it takes awhile to make these npcs. Also, please notify me if you find any errors. I quickly went over the whole trade window and it seemed fine but I didn't look at it super closely.
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.
He sells about 50 helmets and was made for 8.60, not sure if the ID's have changed in 9.10 but I know like 5 helmets didnt exist when I tried to make them on my server but they aren't too important in the long run. I put some of the super super rare (golden helmet) items for sale but at ridiculous prices. Well here he is:
helmets.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
-- OTServ event handling functions end
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
-------------------For sale-------------------
--1
shopModule:addBuyableItem({'bandana'}, 5917, 600, 1,'bandana')
shopModule:addBuyableItem({'mystic turban'}, 2663, 600, 1,'mystic turban')
shopModule:addBuyableItem({'leather helmet'}, 2461, 12, 1,'leather helmet')
--2
shopModule:addBuyableItem({'helmet of the deep'}, 5461, 10000, 1,'helmet of the deep')
shopModule:addBuyableItem({'feather headdress'}, 3970, 3400, 1,'feather headdress')
shopModule:addBuyableItem({'charmers tiara'}, 3971, 3600, 1,'charmers tiara')
shopModule:addBuyableItem({'chain helmet'}, 2458, 52, 1,'chain helmet')
shopModule:addBuyableItem({'studded helmet'}, 2482, 63, 1,'studded helmet')
shopModule:addBuyableItem({'sedge hat'}, 12656, 500, 1,'sedge hat')
shopModule:addBuyableItem({'tribal mask'}, 3967, 1000, 1,'tribal mask')
--3
shopModule:addBuyableItem({'hat of the mad'}, 2323, 10000, 1,'hat of the mad')
shopModule:addBuyableItem({'brass helmet'}, 2460, 120, 1,'brass helmet')
shopModule:addBuyableItem({'batwing hat'}, 10016, 32000, 1,'batwing hat')
shopModule:addBuyableItem({'cobra crown'}, 12630, 500000, 1,'cobra crown')
shopModule:addBuyableItem({'pirate hat'}, 6096, 4000, 1,'pirate hat')
shopModule:addBuyableItem({'mage hat'}, 8820, 150, 1,'mage hat')
shopModule:addBuyableItem({'witch hat'}, 10570, 20000, 1,'witch hat')
shopModule:addBuyableItem({'pirate hat'}, 6096, 4000, 1,'pirate hat')
shopModule:addBuyableItem({'cobra crown'}, 12630, 500000, 1,'cobra crown')
--4
shopModule:addBuyableItem({'jade hat'}, 11368, 36000, 1,'jade hat')
shopModule:addBuyableItem({'legion helmet'}, 2480, 88, 1,'legion helmet')
shopModule:addBuyableItem({'viking helmet'}, 2473, 265, 1,'viking helmet')
--5
shopModule:addBuyableItem({'iron helmet'}, 2459, 390, 1,'iron helmet')
shopModule:addBuyableItem({'terra hood'}, 7903, 10000, 1,'terra hood')
shopModule:addBuyableItem({'magma monocle'}, 7900, 10000, 1,'magma monocle')
shopModule:addBuyableItem({'glacier mask'}, 7902, 10000, 1,'glacier mask')
shopModule:addBuyableItem({'soldier helmet'}, 2481, 110, 1,'soldier helmet')
shopModule:addBuyableItem({'yalahari mask'}, 9778, 240000, 1,'yalahari mask')
--6
shopModule:addBuyableItem({'horseman helmet'}, 3969, 1200, 1,'horseman helmet')
shopModule:addBuyableItem({'dwarven helmet'}, 2502, 200000, 1,'dwarven helmet')
shopModule:addBuyableItem({'dark helmet'}, 2490, 1000, 1,'dark helmet')
shopModule:addBuyableItem({'krimhorn helmet'}, 7461, 800, 1,'krimhorn helmet')
shopModule:addBuyableItem({'strange helmet'}, 2479, 2000, 1,'strange helmet')
shopModule:addBuyableItem({'steel helmet'}, 2457, 580, 1,'steel helmet')
shopModule:addBuyableItem({'ragnir helmet'}, 7462, 1600, 1,'ragnir helmet')
--7
shopModule:addBuyableItem({'beholder helmet'}, 3972, 30000, 1,'beholder helmet')
shopModule:addBuyableItem({'devil helmet'}, 2462, 4000, 1,'devil helmet')
shopModule:addBuyableItem({'crown helmet'}, 2491, 10000, 1,'crown helmet')
--8
shopModule:addBuyableItem({'crusader helmet'}, 2497, 24000, 1,'crusader helmet')
shopModule:addBuyableItem({'warrior helmet'}, 2475, 20000, 1,'warrior helmet')
--9
shopModule:addBuyableItem({'elite draken helmet'}, 12645, 800000, 1,'elite draken helmet')
shopModule:addBuyableItem({'dragon scale helmet'}, 2506, 350000, 1,'dragon scale helmet')
shopModule:addBuyableItem({'ceremonial mask'}, 2501, 250000, 1,'ceremonial mask')
shopModule:addBuyableItem({'skull helmet'}, 5741, 160000, 1,'skull helmet')
shopModule:addBuyableItem({'royal helmet'}, 2498, 120000, 1,'royal helmet')
shopModule:addBuyableItem({'zaoan helmet'}, 11302, 400000, 1,'zaoan helmet')
--10
shopModule:addBuyableItem({'demon helmet'}, 2493, 200000, 1,'demon helmet')
shopModule:addBuyableItem({'winged helmet'}, 2474, 2500000, 1,'winged helmet')
--11
shopModule:addBuyableItem({'horned helmet'}, 2496, 3000000, 1,'horned helmet')
--12
shopModule:addBuyableItem({'golden helmet'}, 2471, 10000000, 1,'golden helmet')
-------------------Sell to him-------------------
--1
shopModule:addSellableItem({'bandana'}, 5917, 150, 1,'bandana')
shopModule:addSellableItem({'mystic turban'}, 2663, 150, 1,'mystic turban')
shopModule:addSellableItem({'leather helmet'}, 2461, 4, 1,'leather helmet')
--2
shopModule:addSellableItem({'helmet of the deep'}, 5461, 1000, 1,'helmet of the deep')
shopModule:addSellableItem({'feather headdress'}, 3970, 850, 1,'feather headdress')
shopModule:addSellableItem({'charmers tiara'}, 3971, 900, 1,'charmers tiara')
shopModule:addSellableItem({'chain helmet'}, 2458, 17, 1,'chain helmet')
shopModule:addSellableItem({'studded helmet'}, 2482, 20, 1,'studded helmet')
shopModule:addSellableItem({'sedge hat'}, 12656, 125, 1,'sedge hat')
shopModule:addSellableItem({'tribal mask'}, 3967, 250, 1,'tribal mask')
--3
shopModule:addSellableItem({'hat of the mad'}, 2323, 2500, 1,'hat of the mad')
shopModule:addSellableItem({'brass helmet'}, 2460, 30, 1,'brass helmet')
shopModule:addSellableItem({'batwing hat'}, 10016, 8000, 1,'batwing hat')
shopModule:addSellableItem({'cobra crown'}, 12630, 50000, 1,'cobra crown')
shopModule:addSellableItem({'pirate hat'}, 6096, 1000, 1,'pirate hat')
shopModule:addSellableItem({'mage hat'}, 8820, 50, 1,'mage hat')
shopModule:addSellableItem({'witch hat'}, 10570, 5000, 1,'witch hat')
shopModule:addSellableItem({'pirate hat'}, 6096, 1000, 1,'pirate hat')
shopModule:addSellableItem({'cobra crown'}, 12630, 50000, 1,'cobra crown')
--4
shopModule:addSellableItem({'jade hat'}, 11368, 9000, 1,'jade hat')
shopModule:addSellableItem({'legion helmet'}, 2480, 22, 1,'legion helmet')
shopModule:addSellableItem({'viking helmet'}, 2473, 66, 1,'viking helmet')
--5
shopModule:addSellableItem({'iron helmet'}, 2459, 150, 1,'iron helmet')
shopModule:addSellableItem({'terra hood'}, 7903, 2500, 1,'terra hood')
shopModule:addSellableItem({'magma monocle'}, 7900, 2500, 1,'magma monocle')
shopModule:addSellableItem({'glacier mask'}, 7902, 2500, 1,'glacier mask')
shopModule:addSellablCODEeItem({'soldier helmet'}, 2481, 16, 1,'soldier helmet')
shopModule:addSellableItem({'yalahari mask'}, 9778, 60000, 1,'yalahari mask')
--6
shopModule:addSellableItem({'horseman helmet'}, 3969, 280, 1,'horseman helmet')
shopModule:addSellableItem({'dwarven helmet'}, 2502, 50000, 1,'dwarven helmet')
shopModule:addSellableItem({'dark helmet'}, 2490, 250, 1,'dark helmet')
shopModule:addSellableItem({'krimhorn helmet'}, 7461, 200, 1,'krimhorn helmet')
shopModule:addSellableItem({'strange helmet'}, 2479, 500, 1,'strange helmet')
shopModule:addSellableItem({'steel helmet'}, 2457, 293, 1,'steel helmet')
shopModule:addSellableItem({'ragnir helmet'}, 7462, 400, 1,'ragnir helmet')
--7
shopModule:addSellableItem({'beholder helmet'}, 3972, 7500, 1,'beholder helmet')
shopModule:addSellableItem({'amazon helmet'}, 2499, 20000, 1,'amazon helmet')
shopModule:addSellableItem({'devil helmet'}, 2462, 1000, 1,'devil helmet')
shopModule:addSellableItem({'crown helmet'}, 2491, 2500, 1,'crown helmet')
--8
shopModule:addSellableItem({'crusader helmet'}, 2497, 6000, 1,'crusader helmet')
shopModule:addSellableItem({'warrior helmet'}, 2475, 5000, 1,'warrior helmet')
--9
shopModule:addSellableItem({'elite draken helmet'}, 12645, 200000, 1,'elite draken helmet')
shopModule:addSellableItem({'dragon scale helmet'}, 2506, 87500, 1,'dragon scale helmet')
shopModule:addSellableItem({'ceremonial mask'}, 2501, 62500, 1,'ceremonial mask')
shopModule:addSellableItem({'skull helmet'}, 5741, 40000, 1,'skull helmet')
shopModule:addSellableItem({'royal helmet'}, 2498, 30000, 1,'royal helmet')
shopModule:addSellableItem({'zaoan helmet'}, 11302, 100000, 1,'zaoan helmet')
--10
shopModule:addSellableItem({'demon helmet'}, 2493, 40000, 1,'demon helmet')
shopModule:addSellableItem({'winged helmet'}, 2474, 625000, 1,'winged helmet')
--11
shopModule:addSellableItem({'horned helmet'}, 2496, 75000, 1,'horned helmet')
--12
shopModule:addSellableItem({'golden helmet'}, 2471, 250000, 1,'golden helmet')
npcHandler:addModule(FocusModule:new())
I plan on making an npc for clubs, axes, and I'm working on the "armors" one now as well so just keep watching this forum and I will post them in time, but it takes awhile to make these npcs. Also, please notify me if you find any errors. I quickly went over the whole trade window and it seemed fine but I didn't look at it super closely.
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: