Synnical
Mapper
So I saw @God Mythera posted a version of this at: https://otland.net/threads/tfs-0-3-6-0-4-item-seller-v1-0.240846/#post-2336531
I am by no means a scripter, far from it just simple enough to input extra items so if i forgot any information please be gentle
I took his version a while back and modified to include most items in-game that are sell-able, as well as sorted them and most items are accurate to real tibia prices, however some like gems I slacked on.
Add to actions.xml
actions/scripts/others/magicalpearl.lua
I am by no means a scripter, far from it just simple enough to input extra items so if i forgot any information please be gentle
I took his version a while back and modified to include most items in-game that are sell-able, as well as sorted them and most items are accurate to real tibia prices, however some like gems I slacked on.
Add to actions.xml
Code:
<action itemid="24116" script="other/magicalpearl.lua" />
actions/scripts/others/magicalpearl.lua
Code:
local items = {
-- Amulets
[2136] = 33000, -- [Demonbone Amulet] = PriceOfItem
[2171] = 2000, -- [Platinum Amulet] = PriceOfItem
[2125] = 500, -- [Crystal Necklace] = PriceOfItem
[2173] = 40000, -- [Amulet Of Loss] = PriceOfItem
[2172] = 0100, -- [Bronze Amulet] = PriceOfItem
[2170] = 0100, -- [Silver Amulet] = PriceOfItem
[2161] = 0100, -- [Strange Talisman] = PriceOfItem
[2197] = 0100, -- [Stone Skin Amulet] = PriceOfItem
[2198] = 0100, -- [Elven Amulet] = PriceOfItem
[2199] = 0100, -- [Garlic Necklace] = PriceOfItem
[2200] = 0100, -- [Protection Amulet] = PriceOfItem
[2201] = 0100, -- [Dragon Necklace] = PriceOfItem
[2130] = 3000, -- [Golden Amulet] = PriceOfItem
[2131] = 3000, -- [Star Amulet] = PriceOfItem
[2133] = 2000, -- [Ruby Necklace] = PriceOfItem
[2135] = 0200, -- [Scarab Amulet] = PriceOfItem
[2142] = 0200, -- [Ancient Amulet] = PriceOfItem
[7887] = 2500, -- [Terra Amulet] = PriceOfItem
[7888] = 2500, -- [Glacier Amulet] = PriceOfItem
[7889] = 2500, -- [Lightning Pendant] = PriceOfItem
[7890] = 2500, -- [Magma Amulet] = PriceOfItem
[15403] = 3000, -- [Necklace Of The Deep] = PriceOfItem
[23541] = 5000, -- [Gearwheel Chain] = PriceOfItem
[23554] = 2000, -- [Glooth Amulet] = PriceOfItem
-- Helmets
[2491] = 3000, -- [Crown Helmet] = PriceOfItem
[3972] = 15500, -- [Beholder Helmet] = PriceOfItem
[2462] = 700, -- [Devil Helmet] = PriceOfItem
[7902] = 2500, -- [Glacier Mask] = PriceOfItem
[7461] = 600, -- [Krimhorn Helmet] = PriceOfItem
[7901] = 2500, -- [Lightning Headband] = PriceOfItem
[7900] = 2500, -- [Magma Monocle] = PriceOfItem
[6096] = 700, -- [Pirate Hat] = PriceOfItem
[7462] = 900, -- [Devil Helmet] = PriceOfItem
[5741] = 40000, -- [Skull Helmet] = PriceOfItem
[7903] = 2500, -- [Terra Hood] = PriceOfItem
[2498] = 30000, -- [Royal Helmet] = PriceOfItem
[7459] = 1500, -- [Pair Of Earmuffs] = PriceOfItem
[3971] = 900, -- [Charmer's Tiara] = PriceOfItem
[2490] = 250, -- [Dark Helmet] = PriceOfItem
[2482] = 20, -- [Studded Helmet] = PriceOfItem
[2481] = 20, -- [Soldier Helmet] = PriceOfItem
[2479] = 500, -- [Strange Helmet] = PriceOfItem
[2475] = 6000, -- [Warrior Helmet] = PriceOfItem
[2473] = 60, -- [Viking Helmet] = PriceOfItem
[2457] = 293, -- [Steel Helmet] = PriceOfItem
[2458] = 17, -- [Chain Helmet] = PriceOfItem
[2459] = 150, -- [Iron Helmet] = PriceOfItem
[2460] = 30, -- [Brass Helmet] = PriceOfItem
[2497] = 6000, -- [Crusader Helmet] = PriceOfItem
[2323] = 5000, -- [Hat Of The Mad] = PriceOfItem
[5917] = 150, -- [Bandana] = PriceOfItem
[23536] = 11000, -- [Rubber Cap] = PriceOfItem
[20132] = 2000, -- [Helmet Of The Lost] = PriceOfItem
-- Armors
[2487] = 12000, -- [Crown Armor] = PriceOfItem
[2492] = 40000, -- [Dragon Scale Mail] = PriceOfItem
[7897] = 11000, -- [Glacier Robe] = PriceOfItem
[2466] = 18500, -- [Golden Armor] = PriceOfItem
[8873] = 4000, -- [Hibicus Dress] = PriceOfItem
[3968] = 1000, -- [Leopard Armor] = PriceOfItem
[7898] = 11000, -- [Lightning Robe] = PriceOfItem
[7899] = 11000, -- [Magma Coat] = PriceOfItem
[7463] = 8000, -- [Mammoth Fur Cape] = PriceOfItem
[8891] = 16000, -- [Paladin Armor] = PriceOfItem
[6095] = 500, -- [Pirate Shirt] = PriceOfItem
[8889] = 18000, -- [Skullcracker Armor] = PriceOfItem
[7884] = 11000, -- [Terra Mantle] = PriceOfItem
[2472] = 90000, -- [Magic Plate Armor] = PriceOfItem
[2489] = 400, -- [Dark Armor] = PriceOfItem
[2476] = 5000, -- [Knight Armor] = PriceOfItem
[2463] = 400, -- [Plate Armor] = PriceOfItem
[8878] = 16000, -- [Crystalline Armor] = PriceOfItem
[8880] = 16000, -- [Swamplair Armor] = PriceOfItem
[8885] = 55000, -- [Divine Plate] = PriceOfItem
[2655] = 2000, -- [Red Robe] = PriceOfItem
[2656] = 10000, -- [Blue Robe] = PriceOfItem
[8892] = 200, -- [Ethno Coat] = PriceOfItem
[2652] = 5, -- [Green Tunic] = PriceOfItem
[2464] = 70, -- [Chain Armor] = PriceOfItem
[8869] = 50000, -- [Greenwood Coat] = PriceOfItem
[8871] = 6000, -- [Focus Cape] = PriceOfItem
[8872] = 500, -- [Belted Cape] = PriceOfItem
[2465] = 150, -- [Brass Armor] = PriceOfItem
[2483] = 75, -- [Scale Armor] = PriceOfItem
[2484] = 25, -- [Studded Armor] = PriceOfItem
[2485] = 3, -- [Doublet] = PriceOfItem
[2486] = 900, -- [Noble Armor] = PriceOfItem
[23537] = 6000, -- [Mooh'Tah Plate] = PriceOfItem
[21706] = 4000, -- [Goo Shell] = PriceOfItem
[15489] = 15000, -- [Calopteryx Cape] = PriceOfItem
[21692] = 1500, -- [Albino Plate] = PriceOfItem
[20109] = 7000, -- [Buckle] = PriceOfItem
[23538] = 10000, -- [Heat Core] = PriceOfItem
[23535] = 7000, -- [Glooth Cape] = PriceOfItem
-- Legs
[2488] = 12000, -- [Crown Legs] = PriceOfItem
[2477] = 4000, -- [Knight Legs] = PriceOfItem
[7896] = 11000, -- [Glacier Kilt] = PriceOfItem
[7895] = 11000, -- [Lightning Legs] = PriceOfItem
[7894] = 11000, -- [Magma Legs] = PriceOfItem
[7464] = 800, -- [Mammoth Fur Shorts] = PriceOfItem
[5918] = 600, -- [Pirate Knee Breeches] = PriceOfItem
[7885] = 11000, -- [Terra Legs] = PriceOfItem
[2470] = 40000, -- [Golden Legs] = PriceOfItem
[7730] = 15000, -- [Blue Legs] = PriceOfItem
[2478] = 250, -- [Brass Legs] = PriceOfItem
[2468] = 40, -- [Studded Legs] = PriceOfItem
[2648] = 25, -- [Chain Legs] = PriceOfItem
[2647] = 400, -- [Plate Legs] = PriceOfItem
[23539] = 11000, -- [Alloy Legs] = PriceOfItem
[15490] = 15000, -- [Grasshopper Legs] = PriceOfItem
-- Boots
[2195] = 30000, -- [Boots Of Haste] = PriceOfItem
[3982] = 2000, -- [Crocodile Boots] = PriceOfItem
[7457] = 3000, -- [Fur Boots] = PriceOfItem
[7892] = 2500, -- [Glacier Shoes] = PriceOfItem
[7893] = 2500, -- [Lightning Boots] = PriceOfItem
[7891] = 2500, -- [Magma Boots] = PriceOfItem
[2641] = 3000, -- [Patched Boots] = PriceOfItem
[5462] = 700, -- [pirate boots] = PriceOfItem
[2645] = 30000, -- [Steel Boots] = PriceOfItem
[7886] = 2500, -- [Terra Boots] = PriceOfItem
[23540] = 2000, -- [Metal Spats] = PriceOfItem
-- Shields
[2519] = 8000, -- [Crown Shield] = PriceOfItem
[2541] = 260, -- [Bone Shield] = PriceOfItem
[2535] = 5000, -- [Castle Shield] = PriceOfItem
[2521] = 350, -- [Dark Shield] = PriceOfItem
[2520] = 30000, -- [Demon Shield] = PriceOfItem
[2536] = 8000, -- [Medusa Shield] = PriceOfItem
[7460] = 1500, -- [Norse Shield] = PriceOfItem
[2540] = 2500, -- [Scarab Shield] = PriceOfItem
[6131] = 350, -- [Tortoise Shield] = PriceOfItem
[2514] = 50000, -- [Mastermind Shield] = PriceOfItem
[3974] = 2000, -- [Sentinal Shield] = PriceOfItem
[3975] = 2000, -- [Salamander Shield] = PriceOfItem
[3973] = 450, -- [Tusk Shield] = PriceOfItem
[2509] = 80, -- [Steel Shield] = PriceOfItem
[2510] = 35, -- [Plate Shield] = PriceOfItem
[2511] = 40, -- [Brass Shield] = PriceOfItem
[2512] = 5, -- [Wooden Shield] = PriceOfItem
[2513] = 95, -- [Battle Shield] = PriceOfItem
[2515] = 3000, -- [Guardian Shield] = PriceOfItem
[2516] = 4000, -- [Dragon Shield] = PriceOfItem
[2518] = 1200, -- [Bonelord Shield] = PriceOfItem
[2524] = 1500, -- [Ornamented Shield] = PriceOfItem
[2525] = 100, -- [Dwarven Shield] = PriceOfItem
[2526] = 15, -- [Studded Shield] = PriceOfItem
[2528] = 8000, -- [Tower Shield] = PriceOfItem
[2529] = 800, -- [Black Shield] = PriceOfItem
[2530] = 50, -- [Copper Shield] = PriceOfItem
[2532] = 900, -- [Ancient Shield] = PriceOfItem
[2533] = 3000, -- [Griffan Shield] = PriceOfItem
[2534] = 15000, -- [Vampire Shield] = PriceOfItem
[23546] = 3000, -- [Mino Shield] = PriceOfItem
[15453] = 9000, -- [Warrior's Shield] = PriceOfItem
[20090] = 250, -- [Spike Shield] = PriceOfItem
[15491] = 32000, -- [Carapace Shield] = PriceOfItem
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local x = items[itemEx.itemid]
if x then
doRemoveItem(itemEx.uid, 1)
doPlayerAddMoney(cid, x)
local info = getItemRWInfo(itemEx.itemid)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Your item has been sold.")
doSendMagicEffect(getThingPos(cid), CONST_ME_THUNDER)
else
doPlayerSendCancel(cid, "This item could not be sold.")
doSendMagicEffect(getThingPos(cid), CONST_ME_GROUNDSHAKER)
end
return true
end