ziggy46802
Active Member
- Joined
- Aug 19, 2012
- Messages
- 418
- Reaction score
- 27
Here is the ultimate sword 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 81 swords and was made for 9.60, tested in the latest TFS 9.6 and fully works. He sells every single sword that is on tibia.wikia.com, the higher up 80+ level swords I kind of made up ridiculous prices, to make them buyeable, but to a certain extent. 5mil for a warlord sword is a bit much... well, here he is:
swords.lua
I hope some of you get a use out of this, it took a lot of work and helps new servers establish weapons. The lower level weapons' prices are perfect so they should work out well for new servers.
And if this helped you at all, rep++ would be nice. This took many hours to do.
He sells 81 swords and was made for 9.60, tested in the latest TFS 9.6 and fully works. He sells every single sword that is on tibia.wikia.com, the higher up 80+ level swords I kind of made up ridiculous prices, to make them buyeable, but to a certain extent. 5mil for a warlord sword is a bit much... well, here he is:
swords.lua
LUA:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
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
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
-------------------For sale-------------------
--no level req
shopModule:addBuyableItem({'bone sword'}, 2450, 75,'bone sword')
shopModule:addBuyableItem({'broad sword'}, 2413, 2000, 'broad sword')
shopModule:addBuyableItem({'carlin sword'}, 2395, 473,'carlin sword')
shopModule:addBuyableItem({'combat knife'}, 2404, 20,'combat knife')
shopModule:addBuyableItem({'dagger'}, 2379, 5,'dagger')
shopModule:addBuyableItem({'spike sword'}, 2383, 8000,'spike sword')
shopModule:addBuyableItem({'earth spike sword'}, 7854, 10000, 'earth spike sword')
shopModule:addBuyableItem({'energy spike sword'}, 7869, 10000, 'energy spike sword')
shopModule:addBuyableItem({'fiery spike sword'}, 7744, 10000, 'fiery spike sword')
shopModule:addBuyableItem({'icy spike sword'}, 7763, 10000, 'icy spike sword')
shopModule:addBuyableItem({'heavy machete'}, 2442, 400, 'heavy machete')
shopModule:addBuyableItem({'ice rapier'}, 2396, 5000,'ice rapier')
shopModule:addBuyableItem({'jagged sword'}, 8602, 150,'jagged sword')
shopModule:addBuyableItem({'katana'}, 2412, 100, 'katana')
shopModule:addBuyableItem({'knife'}, 2403, 10, 'knife')
shopModule:addBuyableItem({'longsword'}, 2397, 160,'longsword')
shopModule:addBuyableItem({'machete'}, 2420, 35,'machete')
shopModule:addBuyableItem({'poison dagger'}, 2411, 200, 'poison dagger')
shopModule:addBuyableItem({'rapier'}, 2384, 15,'rapier')
shopModule:addBuyableItem({'sabre'}, 2385, 25,'sabre')
shopModule:addBuyableItem({'scimitar'}, 2419, 600, 'scimitar')
shopModule:addBuyableItem({'serpent sword'}, 2409, 6000,'serpent sword')
shopModule:addBuyableItem({'short sword'}, 2406, 30,'short sword')
shopModule:addBuyableItem({'silver dagger'}, 2402, 4000, 'silver dagger')
shopModule:addBuyableItem({'sword'}, 2376, 85,'sword')
shopModule:addBuyableItem({'templar scytheblade'}, 3963, 800, 'templar scytheblade')
--lvl 20
shopModule:addBuyableItem({'crimson sword'}, 7385, 12000, 'crimson sword')
shopModule:addBuyableItem({'two handed sword'}, 2377, 950,'two handed sword')
shopModule:addBuyableItem({'twin hooks'}, 11309, 1100,'twin hooks')
--lvl 25
shopModule:addBuyableItem({'crystal sword'}, 7449, 2400, 'crystal sword')
shopModule:addBuyableItem({'wyvern fang'}, 7408, 6000, 'wyvern fang')
--lvl 30
shopModule:addBuyableItem({'haunted blade'}, 7407, 32000, 'haunted blade')
shopModule:addBuyableItem({'fire sword'}, 2392, 16000, 'fire sword')
shopModule:addBuyableItem({'epee'}, 2438, 32000, 'epee')
shopModule:addBuyableItem({'bright sword'}, 2407, 24000, 'bright sword')
--lvl 35
shopModule:addBuyableItem({'blacksteel sword'}, 7406, 24000, 'blacksteel sword')
shopModule:addBuyableItem({'fiery blacksteel sword'}, 7747, 30000, 'fiery blacksteel sword')
shopModule:addBuyableItem({'icy blacksteel sword'}, 7766, 30000, 'icy blacksteel sword')
shopModule:addBuyableItem({'energy blacksteel sword'}, 7872, 30000, 'energy blacksteel sword')
shopModule:addBuyableItem({'earth blacksteel sword'}, 7857, 30000, 'earth blacksteel sword')
shopModule:addBuyableItem({'djinn blade'}, 2451, 60000, 'djinn blade')
--lvl 40
shopModule:addBuyableItem({'assassin dagger'}, 7404, 80000, 'assassin dagger')
shopModule:addBuyableItem({'mercenary sword'}, 7386, 48000, 'mercenary sword')
--lvl 45
shopModule:addBuyableItem({'dragon slayer'}, 7402, 60000, 'dragon slayer')
shopModule:addBuyableItem({'pharaoh sword'}, 2446, 100000, 'pharaoh sword')
shopModule:addBuyableItem({'icy dragon slayer'}, 7767, 65000, 'icy dragon slayer')
shopModule:addBuyableItem({'fiery dragon slayer'}, 7748, 65000, 'fiery dragon slayer')
shopModule:addBuyableItem({'earth dragon slayer'}, 7858, 65000, 'earth dragon slayer')
shopModule:addBuyableItem({'energy dragon slayer'}, 7873, 65000, 'energy dragon slayer')
--lvl 50
shopModule:addBuyableItem({'relic sword'}, 7383, 100000, 'relic sword')
shopModule:addBuyableItem({'fiery relic sword'}, 7745, 120000, 'fiery relic sword')
shopModule:addBuyableItem({'icy relic sword'}, 7764, 120000, 'icy relic sword')
shopModule:addBuyableItem({'energy relic sword'}, 7870, 120000, 'energy relic sword')
shopModule:addBuyableItem({'earth relic sword'}, 7855, 120000, 'earth relic sword')
shopModule:addBuyableItem({'thaian sword'}, 7391, 64000, 'thaian sword')
shopModule:addBuyableItem({'sais'}, 11306, 66000, 'sais')
--lvl 55
shopModule:addBuyableItem({'giant sword'}, 2393, 68000, 'giant sword')
shopModule:addBuyableItem({'bloody edge'}, 7416, 120000, 'bloody edge')
shopModule:addBuyableItem({'zaoan sword'}, 11307, 120000, 'zaoan sword')
--lvl 58
shopModule:addBuyableItem({'twiceslicer'}, 12613, 112000, 'twiceslicer')
--lvl 60
shopModule:addBuyableItem({'mystic blade'}, 7384, 120000, 'mystic blade')
shopModule:addBuyableItem({'icy mystic blade'}, 7765, 125000, 'icy mystic blade')
shopModule:addBuyableItem({'fiery mystic blade'}, 7746, 125000, 'fiery mystic blade')
shopModule:addBuyableItem({'energy mystic blade'}, 7871, 125000, 'energy mystic blade')
shopModule:addBuyableItem({'earth mystic blade'}, 7856, 125000, 'earth mystic blade')
shopModule:addBuyableItem({'demonrage sword'}, 7382, 144000, 'demonrage sword')
--lvl 62
shopModule:addBuyableItem({'crystalline sword'}, 18450, 250000, 'crystalline sword')
--lvl 65
shopModule:addBuyableItem({'berserker'}, 7403, 160000, 'berserker')
shopModule:addBuyableItem({'runed sword'}, 7417, 180000, 'runed sword')
--lvl 70
shopModule:addBuyableItem({'nightmare blade'}, 7418, 140000, 'nightmare blade')
shopModule:addBuyableItem({'havoc blade'}, 7405, 200000, 'havoc blade')
--lvl 75
shopModule:addBuyableItem({'the justice seeker'}, 7405, 160000, 'the justice seeker')
shopModule:addBuyableItem({'the avenger'}, 6528, 250000, 'the avenger')
--lvl 80
shopModule:addBuyableItem({'magic sword'}, 2400, 1000000, 'magic sword')
--lvl 82
shopModule:addBuyableItem({'blade of corruption'}, 12649, 240000, 'blade of corruption')
--lvl 100
shopModule:addBuyableItem({'emerald sword'}, 8930, 2800000, 'emerald sword')
shopModule:addBuyableItem({'the calamity'}, 8932, 3000000, 'the calamity')
--lvl 120
shopModule:addBuyableItem({'warlord sword'}, 2408, 4000000, 'warlord sword')
shopModule:addBuyableItem({'shiny blade'}, 18465, 5000000, 'shiny blade')
--lvl 140
shopModule:addBuyableItem({'magic long sword'}, 2390, 5000000, 'magic long sword')
shopModule:addBuyableItem({'the epiphany'}, 8931, 4500000, 'the epiphany')
-------------------Sell to him-------------------
--no level req
shopModule:addSellableItem({'bone sword'}, 2450, 20,'bone sword')
shopModule:addSellableItem({'broad sword'}, 2413, 500, 'broad sword')
shopModule:addSellableItem({'carlin sword'}, 2395, 118,'carlin sword')
shopModule:addSellableItem({'combat knife'}, 2404, 5,'combat knife')
shopModule:addSellableItem({'dagger'}, 2379, 2,'dagger')
shopModule:addSellableItem({'spike sword'}, 2383, 1000,'spike sword')
shopModule:addSellableItem({'earth spike sword'}, 7854, 1000, 'earth spike sword')
shopModule:addSellableItem({'energy spike sword'}, 7869, 1000, 'energy spike sword')
shopModule:addSellableItem({'fiery spike sword'}, 7744, 1000, 'fiery spike sword')
shopModule:addSellableItem({'icy spike sword'}, 7763, 1000, 'icy spike sword')
shopModule:addSellableItem({'heavy machete'}, 2442, 90, 'heavy machete')
shopModule:addSellableItem({'ice rapier'}, 2396, 1000,'ice rapier')
shopModule:addSellableItem({'jagged sword'}, 8602, 50,'jagged sword')
shopModule:addSellableItem({'katana'}, 2412, 35, 'katana')
shopModule:addSellableItem({'knife'}, 2403, 1, 'knife')
shopModule:addSellableItem({'longsword'}, 2397, 51,'longsword')
shopModule:addSellableItem({'machete'}, 2420, 6,'machete')
shopModule:addSellableItem({'poison dagger'}, 2411, 50, 'poison dagger')
shopModule:addSellableItem({'rapier'}, 2384, 5,'rapier')
shopModule:addSellableItem({'sabre'}, 2385, 12,'sabre')
shopModule:addSellableItem({'scimitar'}, 2419, 150, 'scimitar')
shopModule:addSellableItem({'serpent sword'}, 2409, 900,'serpent sword')
shopModule:addSellableItem({'short sword'}, 2406, 10,'short sword')
shopModule:addSellableItem({'silver dagger'}, 2402, 500, 'silver dagger')
shopModule:addSellableItem({'sword'}, 2376, 25,'sword')
shopModule:addSellableItem({'templar scytheblade'}, 3963, 200, 'templar scytheblade')
--lvl 20
shopModule:addSellableItem({'crimson sword'}, 7385, 610, 'crimson sword')
shopModule:addSellableItem({'two handed sword'}, 2377, 450,'two handed sword')
shopModule:addSellableItem({'twin hooks'}, 11309, 500,'twin hooks')
--lvl 25
shopModule:addSellableItem({'crystal sword'}, 7449, 600, 'crystal sword')
shopModule:addSellableItem({'wyvern fang'}, 7408, 1500, 'wyvern fang')
--lvl 30
shopModule:addSellableItem({'haunted blade'}, 7407, 8000, 'haunted blade')
shopModule:addSellableItem({'fire sword'}, 2392, 4000, 'fire sword')
shopModule:addSellableItem({'epee'}, 2438, 8000, 'epee')
shopModule:addSellableItem({'bright sword'}, 2407, 6000, 'bright sword')
--lvl 35
shopModule:addSellableItem({'blacksteel sword'}, 7406, 6000, 'blacksteel sword')
shopModule:addSellableItem({'fiery blacksteel sword'}, 7747, 6000, 'fiery blacksteel sword')
shopModule:addSellableItem({'icy blacksteel sword'}, 7766, 6000, 'icy blacksteel sword')
shopModule:addSellableItem({'energy blacksteel sword'}, 7872, 6000, 'energy blacksteel sword')
shopModule:addSellableItem({'earth blacksteel sword'}, 7857, 6000, 'earth blacksteel sword')
shopModule:addSellableItem({'djinn blade'}, 2451, 15000, 'djinn blade')
--lvl 40
shopModule:addSellableItem({'assassin dagger'}, 7404, 20000, 'assassin dagger')
shopModule:addSellableItem({'mercenary sword'}, 7386, 12000, 'mercenary sword')
--lvl 45
shopModule:addSellableItem({'dragon slayer'}, 7402, 15000, 'dragon slayer')
shopModule:addSellableItem({'pharaoh sword'}, 2446, 23000, 'pharaoh sword')
shopModule:addSellableItem({'icy dragon slayer'}, 7767, 18000, 'icy dragon slayer')
shopModule:addSellableItem({'fiery dragon slayer'}, 7748, 18000, 'fiery dragon slayer')
shopModule:addSellableItem({'earth dragon slayer'}, 7858, 18000, 'earth dragon slayer')
shopModule:addSellableItem({'energy dragon slayer'}, 7873, 18000, 'energy dragon slayer')
--lvl 50
shopModule:addSellableItem({'relic sword'}, 7383, 30000, 'relic sword')
shopModule:addSellableItem({'fiery relic sword'}, 7745, 30000, 'fiery relic sword')
shopModule:addSellableItem({'icy relic sword'}, 7764, 30000, 'icy relic sword')
shopModule:addSellableItem({'energy relic sword'}, 7870, 30000, 'energy relic sword')
shopModule:addSellableItem({'earth relic sword'}, 7855, 30000, 'earth relic sword')
shopModule:addSellableItem({'thaian sword'}, 7391, 16000, 'thaian sword')
shopModule:addSellableItem({'sais'}, 11306, 16500, 'sais')
--lvl 55
shopModule:addSellableItem({'giant sword'}, 2393, 17000, 'giant sword')
shopModule:addSellableItem({'bloody edge'}, 7416, 30000, 'bloody edge')
shopModule:addSellableItem({'zaoan sword'}, 11307, 30000, 'zaoan sword')
--lvl 58
shopModule:addSellableItem({'twiceslicer'}, 12613, 28000, 'twiceslicer')
--lvl 60
shopModule:addSellableItem({'mystic blade'}, 7384, 120000, 'mystic blade')
shopModule:addSellableItem({'icy mystic blade'}, 7765, 30000, 'icy mystic blade')
shopModule:addSellableItem({'fiery mystic blade'}, 7746, 30000, 'fiery mystic blade')
shopModule:addSellableItem({'energy mystic blade'}, 7871, 30000, 'energy mystic blade')
shopModule:addSellableItem({'earth mystic blade'}, 7856, 30000, 'earth mystic blade')
shopModule:addSellableItem({'demonrage sword'}, 7382, 36000, 'demonrage sword')
--lvl 62
shopModule:addSellableItem({'crystalline sword'}, 18450, 75000, 'crystalline sword')
--lvl 65
shopModule:addSellableItem({'berserker'}, 7403, 40000, 'berserker')
shopModule:addSellableItem({'runed sword'}, 7417, 45000, 'runed sword')
--lvl 70
shopModule:addSellableItem({'nightmare blade'}, 7418, 35000, 'nightmare blade')
shopModule:addSellableItem({'havoc blade'}, 7405, 50000, 'havoc blade')
--lvl 75
shopModule:addSellableItem({'the justice seeker'}, 7405, 40000, 'the justice seeker')
shopModule:addSellableItem({'the avenger'}, 6528, 62500, 'the avenger')
--lvl 80
shopModule:addSellableItem({'magic sword'}, 2400, 250000, 'magic sword')
--lvl 82
shopModule:addSellableItem({'blade of corruption'}, 12649, 60000, 'blade of corruption')
--lvl 100
shopModule:addSellableItem({'emerald sword'}, 8930, 700000, 'emerald sword')
shopModule:addSellableItem({'the calamity'}, 8932, 750000, 'the calamity')
--lvl 120
shopModule:addSellableItem({'warlord sword'}, 2408, 1000000, 'warlord sword')
shopModule:addSellableItem({'shiny blade'}, 18465, 1250000, 'shiny blade')
--lvl 140
shopModule:addSellableItem({'magic long sword'}, 2390, 1250000, 'magic long sword')
shopModule:addSellableItem({'the epiphany'}, 8931, 1125000, 'the epiphany')
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. The lower level weapons' prices are perfect so they should work out well for new servers.
And if this helped you at all, rep++ would be nice. This took many hours to do.
Last edited: