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

ziggy46802

Active Member
Joined
Aug 19, 2012
Messages
418
Reaction score
27
Here is the ultimate axe 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 77 axes and was made for 9.60, tested and fully works in the latest TFS version of 9.60. He sells every single axe that exist in tibia.

axes.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({'axe'}, 2386, 20,'axe')
shopModule:addBuyableItem({'battle axe'}, 2378, 235,'battle axe')
shopModule:addBuyableItem({'golden sickle'}, 2418, 4000,'golden sickle')
shopModule:addBuyableItem({'hand axe'}, 2380, 8,'hand axe')
shopModule:addBuyableItem({'hatchet'}, 2388, 85,'hatchet')
shopModule:addBuyableItem({'orcish axe'}, 2428, 1400,'orcish axe')
shopModule:addBuyableItem({'ripper lance'}, 3964, 2000,'ripper lance')
shopModule:addBuyableItem({'sickle'}, 2405, 7,'sickle')
shopModule:addBuyableItem({'steel axe'}, 8601, 150,'steel axe')
shopModule:addBuyableItem({'daramanian axe'}, 2441, 100,'daramanian axe')


--lvl 20
shopModule:addBuyableItem({'barbarian axe'}, 2429, 590,'barbarian axe')
shopModule:addBuyableItem({'fiery barbarian axe'}, 7749, 1000,'fiery barbarian axe')
shopModule:addBuyableItem({'energy barbarian axe'}, 7874, 1000,'energy barbarian axe')
shopModule:addBuyableItem({'earth barbarian axe'}, 7859, 1000,'earth barbarian axe')
shopModule:addBuyableItem({'icy barbarian axe'}, 7768, 1000,'icy barbarian axe')
shopModule:addBuyableItem({'dwarven axe'}, 2435, 6000,'dwarven axe')
shopModule:addBuyableItem({'obsidian lance'}, 2425, 3000,'obsidian lance')

--lvl 25
shopModule:addBuyableItem({'knight axe'}, 2430, 8000,'knight axe')
shopModule:addBuyableItem({'fiery knight axe'}, 7750, 10000,'fiery knight axe')
shopModule:addBuyableItem({'earth knight axe'}, 7860, 10000,'earth knight axe')
shopModule:addBuyableItem({'energy knight axe'}, 7875, 10000,'energy knight axe')
shopModule:addBuyableItem({'icy knight axe'}, 7769, 10000,'icy knight axe')
shopModule:addBuyableItem({'daramanian waraxe'}, 2440, 4000,'daramanian waraxe')
shopModule:addBuyableItem({'double axe'}, 2387, 1040,'double axe')
shopModule:addBuyableItem({'naginata'}, 2426, 8000,'naginata')
shopModule:addBuyableItem({'halberd'}, 2381, 1600,'halberd')
shopModule:addBuyableItem({'zaoan halberd'}, 11323, 1200,'zaoan halberd')
shopModule:addBuyableItem({'heavy trident'}, 13838, 8000,'heavy trident')

--lvl 30
shopModule:addBuyableItem({'glorious axe'}, 7454, 12000,'glorious axe')
shopModule:addBuyableItem({'beastslayer axe'}, 3962, 6000,'beastslayer axe')

--lvl 35
shopModule:addBuyableItem({'headchopper'}, 7380, 24000,'headchopper')
shopModule:addBuyableItem({'fiery headchopper'}, 7752, 26000,'fiery headchopper')
shopModule:addBuyableItem({'energy headchopper'}, 7877, 26000,'energy headchopper')
shopModule:addBuyableItem({'earth headchopper'}, 7862, 26000,'earth headchopper')
shopModule:addBuyableItem({'icy headchopper'}, 7771, 26000,'icy headchopper')
shopModule:addBuyableItem({'fire axe'}, 2432, 32000,'fire axe')
shopModule:addBuyableItem({'noble axe'}, 7456, 40000,'noble axe')

--lvl 40
shopModule:addBuyableItem({'dreaded cleaver'}, 7419, 60000,'dreaded cleaver')
shopModule:addBuyableItem({'titan axe'}, 7413, 16000,'titan axe')
shopModule:addBuyableItem({'warrior\'s axe'}, 15451, 44000,'warrior\'s axe')

--lvl 45
shopModule:addBuyableItem({'butcher\'s axe'}, 7412, 72000,'butcher\'s axe')
shopModule:addBuyableItem({'angelic axe'}, 7436, 20000,'angelic axe')

--lvl 50
shopModule:addBuyableItem({'ornamented axe'}, 7411, 500000,'ornamented axe')
shopModule:addBuyableItem({'guardian axe'}, 15454, 36000,'guardian axe')
shopModule:addBuyableItem({'twin axe'}, 2447, 60000,'twin axe')

--lvl 55
shopModule:addBuyableItem({'guardian halberd'}, 2427, 44000,'guardian halberd')
shopModule:addBuyableItem({'vile axe'}, 7388, 120000,'vile axe')

--lvl 60
shopModule:addBuyableItem({'drakinata'}, 11305, 40000,'drakinata')
shopModule:addBuyableItem({'dragon lance'}, 2414,36000 ,'dragon lance')
shopModule:addBuyableItem({'heroic axe'}, 7389, 120000,'heroic axe')
shopModule:addBuyableItem({'fiery heroic axe'}, 7751, 125000,'fiery heroic axe')
shopModule:addBuyableItem({'energy heroic axe'}, 7876, 125000,'energy heroic axe')
shopModule:addBuyableItem({'earth heroic axe'}, 7861, 125000,'earth heroic axe')
shopModule:addBuyableItem({'icy heroic axe'}, 7770, 125000,'icy heroic axe')

--lvl 65
shopModule:addBuyableItem({'war axe'}, 2454, 48000,'war axe')
shopModule:addBuyableItem({'fiery war axe'}, 7753, 50000,'fiery war axe')
shopModule:addBuyableItem({'energy war axe'}, 7878, 50000,'energy war axe')
shopModule:addBuyableItem({'earth war axe'}, 7863, 50000,'earth war axe')
shopModule:addBuyableItem({'icy war axe'}, 7772, 50000,'icy war axe')
shopModule:addBuyableItem({'ravenwing'}, 7433, 160000,'ravenwing')

--lvl 70
shopModule:addBuyableItem({'hive scythe'}, 15492, 68000,'hive scythe')
shopModule:addBuyableItem({'reaper\'s axe'}, 7420, 120000,'reaper\'s axe')
shopModule:addBuyableItem({'ravager\'s axe'}, 2443, 120000,'ravager\'s axe')

--lvl 75
shopModule:addBuyableItem({'ruthless axe'}, 6553, 300000,'ruthless axe')
shopModule:addBuyableItem({'royal axe'}, 7434, 160000,'royal axe')

--lvl 80
shopModule:addBuyableItem({'deepling axe'}, 15404, 200000,'deepling axe')
shopModule:addBuyableItem({'mythril axe'}, 7455, 250000,'mythril axe')

--lvl 85
shopModule:addBuyableItem({'executioner'}, 7453, 220000,'executioner')
shopModule:addBuyableItem({'impaler'}, 7435, 220000,'impaler')

--lvl 90
shopModule:addBuyableItem({'stonecutter axe'}, 2431, 300000,'stonecutter axe')

--lvl 95
shopModule:addBuyableItem({'great axe'}, 2415, 1500000,'great axe')

--lvl 110
shopModule:addBuyableItem({'hellforged axe'}, 8924, 3000000,'hellforged axe')

--lvl 120
shopModule:addBuyableItem({'crystalline axe'}, 18451, 4000000,'crystalline axe')
shopModule:addBuyableItem({'demonwing axe'}, 8926, 2000000,'demonwing axe')

--lvl 130
shopModule:addBuyableItem({'solar axe'}, 8925, 5000000,'solar axe')


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

--no level req
shopModule:addSellableItem({'axe'}, 2386, 7,'axe')
shopModule:addSellableItem({'battle axe'}, 2378, 80,'battle axe')
shopModule:addSellableItem({'golden sickle'}, 2418, 1000,'golden sickle')
shopModule:addSellableItem({'hand axe'}, 2380, 4,'hand axe')
shopModule:addSellableItem({'hatchet'}, 2388, 25,'hatchet')
shopModule:addSellableItem({'orcish axe'}, 2428, 350,'orcish axe')
shopModule:addSellableItem({'ripper lance'}, 3964, 500,'ripper lance')
shopModule:addSellableItem({'sickle'}, 2405, 3,'sickle')
shopModule:addSellableItem({'steel axe'}, 8601, 50,'steel axe')
shopModule:addSellableItem({'daramanian axe'}, 2441, 30,'daramanian axe')


--lvl 20
shopModule:addSellableItem({'barbarian axe'}, 2429, 150,'barbarian axe')
shopModule:addSellableItem({'fiery barbarian axe'}, 7749, 200,'fiery barbarian axe')
shopModule:addSellableItem({'energy barbarian axe'}, 7874, 200,'energy barbarian axe')
shopModule:addSellableItem({'earth barbarian axe'}, 7859, 200,'earth barbarian axe')
shopModule:addSellableItem({'icy barbarian axe'}, 7768, 200,'icy barbarian axe')
shopModule:addSellableItem({'dwarven axe'}, 2435, 1500,'dwarven axe')
shopModule:addSellableItem({'obsidian lance'}, 2425, 500,'obsidian lance')

--lvl 25
shopModule:addSellableItem({'knight axe'}, 2430, 2000,'knight axe')
shopModule:addSellableItem({'fiery knight axe'}, 7750, 2200,'fiery knight axe')
shopModule:addSellableItem({'earth knight axe'}, 7860, 2200,'earth knight axe')
shopModule:addSellableItem({'energy knight axe'}, 7875, 2200,'energy knight axe')
shopModule:addSellableItem({'icy knight axe'}, 7769, 2200,'icy knight axe')
shopModule:addSellableItem({'daramanian waraxe'}, 2440, 1000,'daramanian waraxe')
shopModule:addSellableItem({'double axe'}, 2387, 260,'double axe')
shopModule:addSellableItem({'naginata'}, 2426, 2000,'naginata')
shopModule:addSellableItem({'halberd'}, 2381, 400,'halberd')
shopModule:addSellableItem({'zaoan halberd'}, 11323, 500,'zaoan halberd')
shopModule:addSellableItem({'heavy trident'}, 13838, 2000,'heavy trident')

--lvl 30
shopModule:addSellableItem({'glorious axe'}, 7454, 3000,'glorious axe')
shopModule:addSellableItem({'beastslayer axe'}, 3962, 1500,'beastslayer axe')

--lvl 35
shopModule:addSellableItem({'headchopper'}, 7380, 6000,'headchopper')
shopModule:addSellableItem({'fiery headchopper'}, 7752, 8000,'fiery headchopper')
shopModule:addSellableItem({'energy headchopper'}, 7877, 8000,'energy headchopper')
shopModule:addSellableItem({'earth headchopper'}, 7862, 8000,'earth headchopper')
shopModule:addSellableItem({'icy headchopper'}, 7771, 8000,'icy headchopper')
shopModule:addSellableItem({'fire axe'}, 2432, 8000,'fire axe')
shopModule:addSellableItem({'noble axe'}, 7456, 10000,'noble axe')

--lvl 40
shopModule:addSellableItem({'dreaded cleaver'}, 7419, 15000,'dreaded cleaver')
shopModule:addSellableItem({'titan axe'}, 7413, 4000,'titan axe')
shopModule:addSellableItem({'warrior\'s axe'}, 15451, 11000,'warrior\'s axe')

--lvl 45
shopModule:addSellableItem({'butcher\'s axe'}, 7412, 18000,'butcher\'s axe')
shopModule:addSellableItem({'angelic axe'}, 7436, 5000,'angelic axe')

--lvl 50
shopModule:addSellableItem({'ornamented axe'}, 7411, 20000,'ornamented axe')
shopModule:addSellableItem({'guardian axe'}, 15454, 9000,'guardian axe')
shopModule:addSellableItem({'twin axe'}, 2447, 15000,'twin axe')

--lvl 55
shopModule:addSellableItem({'guardian halberd'}, 2427, 11000,'guardian halberd')
shopModule:addSellableItem({'vile axe'}, 7388, 30000,'vile axe')

--lvl 60
shopModule:addSellableItem({'drakinata'}, 11305, 10000,'drakinata')
shopModule:addSellableItem({'dragon lance'}, 2414, 9000,'dragon lance')
shopModule:addSellableItem({'heroic axe'}, 7389, 30000,'heroic axe')
shopModule:addSellableItem({'fiery heroic axe'}, 7751, 32000,'fiery heroic axe')
shopModule:addSellableItem({'energy heroic axe'}, 7876, 32000,'energy heroic axe')
shopModule:addSellableItem({'earth heroic axe'}, 7861, 32000,'earth heroic axe')
shopModule:addSellableItem({'icy heroic axe'}, 7770, 32000,'icy heroic axe')

--lvl 65
shopModule:addSellableItem({'war axe'}, 2454, 12000,'war axe')
shopModule:addSellableItem({'fiery war axe'}, 7753, 13000,'fiery war axe')
shopModule:addSellableItem({'energy war axe'}, 7878, 13000,'energy war axe')
shopModule:addSellableItem({'earth war axe'}, 7863, 13000,'earth war axe')
shopModule:addSellableItem({'icy war axe'}, 7772, 13000,'icy war axe')
shopModule:addSellableItem({'ravenwing'}, 7433, 40000,'ravenwing')

--lvl 70
shopModule:addSellableItem({'hive scythe'}, 15492, 17000,'hive scythe')
shopModule:addSellableItem({'reaper\'s axe'}, 7420, 30000,'reaper\'s axe')
shopModule:addSellableItem({'ravager\'s axe'}, 2443, 30000,'ravager\'s axe')

--lvl 75
shopModule:addSellableItem({'ruthless axe'}, 6553, 45000,'ruthless axe')
shopModule:addSellableItem({'royal axe'}, 7434, 40000,'royal axe')

--lvl 80
shopModule:addSellableItem({'deepling axe'}, 15404, 50000,'deepling axe')
shopModule:addSellableItem({'mythril axe'}, 7455, 62500,'mythril axe')

--lvl 85
shopModule:addSellableItem({'executioner'}, 7453, 55000,'executioner')
shopModule:addSellableItem({'impaler'}, 7435, 55000,'impaler')

--lvl 90
shopModule:addSellableItem({'stonecutter axe'}, 2431, 75000,'stonecutter axe')

--lvl 95
shopModule:addSellableItem({'great axe'}, 2415, 375000,'great axe')

--lvl 110
shopModule:addSellableItem({'hellforged axe'}, 8924, 750000,'hellforged axe')

--lvl 120
shopModule:addSellableItem({'crystalline axe'}, 18451, 1000000,'crystalline axe')
shopModule:addSellableItem({'demonwing axe'}, 8926, 500000,'demonwing axe')

--lvl 130
shopModule:addSellableItem({'solar axe'}, 8925, 1250000,'solar axe')


npcHandler:addModule(FocusModule:new())

If your looking for an xml script for an npc to go along with this, Fragster gave an example below which I give him credit for and will post here.

Fragster.xml
XML:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Fragster" script="data/npc/scripts/axes.lua" walkinterval="5000" floorchange="0">
    <health now="100" max="100"/>
   <look type="134" head="96" body="114" legs="94" feet="114" addons="3"/>
    <parameters>
        <parameter key="message_greet" value="Welcome |PLAYERNAME| I'm {axe} delear" />
 
 
 
    </parameters>
</npc>

I hope some of you get a use out of this, it took a lot of work and helps new servers establish weapons. And like I said up top, he sells every single axe that exists in tibia.

And if this helped you at all, rep++ would be nice.
 
Last edited:
Added in every single axe that exists in tibia, updated to version 9.6 and works in latest TFS 9.6 version

Also added in LUA tags so it is easier to see

To all the spammers suggesting it be compiled into one thread

Why dont you make an npc that BUYS and SELLS SEVENTY SEVEN items then talk.
 
Last edited:
There is too much information about each npc to compile all 9 of them into one thread.

Each NPC took 4-5 hours to make so I wish for each one to have it's own thread to discuss things about (like prices on high end weapons).
 
Last edited:
almost all servers come with premade npc xml codes that are just the default basically looktypes, just use one of those there really is no need for an xml code that would basically just give you a preset looktype
 
meybe this work on tfs 0.4 dev?

- - - Updated - - -

fragster.xml

XML:
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Fragster" script="data/npc/scripts/axes.lua" walkinterval="5000" floorchange="0">
    <health now="100" max="100"/>
   <look type="134" head="96" body="114" legs="94" feet="114" addons="3"/>
    <parameters>
        <parameter key="message_greet" value="Welcome |PLAYERNAME| I'm {axe} delear" />
 
 
 
    </parameters>
</npc>
 
That should work just fine fragster, thank you for providing an example.

I posted it at the top for people to use if they need an xml script to go along with it.
 
Back
Top