bpm91
Advanced OT User
- Joined
- May 23, 2019
- Messages
- 1,046
- Solutions
- 7
- Reaction score
- 180
- Location
- Brazil
- YouTube
- caruniawikibr
I would like to know if anyone has or knows how to make a script so that the npc sells the items 10% more expensive for those who are premium account.
i use otx2 similar tfs 0.4
tibia 8.6
i use otx2 similar tfs 0.4
tibia 8.6
LUA:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
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
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
shopModule:addSellableItem({'abyss hammer', 'abyss hammer'}, 7414, 20000, 'abyss hammer')
shopModule:addSellableItem({'ancient amulet', 'ancient amulet'}, 2142, 800, 'ancient amulet')
shopModule:addSellableItem({'assassin dagger', 'assassin dagger'}, 7404, 20000, 'assassin dagger')
shopModule:addSellableItem({'abyss', 'abyss hammer'}, 7414, 20000, 'abyss hammer')
shopModule:addSellableItem({'beastslayer axe', 'beastslayer axe'}, 3962, 1500, 'beastslayer axe ')
shopModule:addSellableItem({'bone shield', 'bone shield'}, 2541, 80, 'bone shield')
shopModule:addSellableItem({'beholder helmet', 'beholder helmet'}, 3972, 7500, 'beholder helmet')
shopModule:addSellableItem({'behemoth trophy', 'behemoth trophy'}, 7396, 20000, 'behemoth trophy')
shopModule:addSellableItem({'castle shield', 'castle shield'}, 2535, 5000, 'castle shield')
shopModule:addSellableItem({'chaos mace', 'chaos mace'}, 7427, 7000, 'chaos mace')
shopModule:addSellableItem({'crocodile boots', 'crocodile boots'}, 3982, 1000, 'crocodile boots')
shopModule:addSellableItem({'crystal mace', 'crystal mace'}, 2445, 12000, 'crystal mace')
shopModule:addSellableItem({'crystal necklace', 'crystal necklace'}, 2125, 400, 'crystal necklace')
shopModule:addSellableItem({'crystal ring', 'crystal ring'}, 2124, 250, 'crystal ring')
shopModule:addSellableItem({'crystal sword', 'crystal sword'}, 7449, 600, 'crystal sword')
shopModule:addSellableItem({'crystalline armor', 'crystalline armor'}, 8878, 16000, 'crystalline armor')
shopModule:addSellableItem({'cyclops trophy', 'cyclops trophy'}, 7398, 4000, 'cyclops trophy')
shopModule:addSellableItem({'daramanian mace', 'daramanian mace'}, 2439, 110, 'daramanian mace')
shopModule:addSellableItem({'daramanian waraxe', 'daramanian waraxe'}, 2440, 1000, 'daramanian waraxe')
shopModule:addSellableItem({'dark shield', 'dark shield'}, 2521, 400, 'dark shield')
shopModule:addSellableItem({'death ring', 'death ring'}, 6301, 1000, 'death ring')
shopModule:addSellableItem({'demon shield', 'demon shield'}, 2520, 30000, 'demon shield')
shopModule:addSellableItem({'demonbone amulet', 'demonbone amulet'}, 2136, 32000, 'demonbone amulet')
shopModule:addSellableItem({'demonrage sword', 'demonrage sword'}, 7382, 36000, 'demonrage sword')
shopModule:addSellableItem({'demon trophy', 'demon trophy'}, 7393, 50000, 'demon trophy')
shopModule:addSellableItem({'devil helmet', 'devil helmet'}, 2462, 1000, 'devil helmet')
shopModule:addSellableItem({'deer trophy', 'deer trophy'}, 7397, 3000, 'deer trophy')
shopModule:addSellableItem({'divine plate', 'divine plate'}, 8885, 55000, 'divine plate')
shopModule:addSellableItem({'doll', 'doll'}, 2110, 200, 'doll')
shopModule:addSellableItem({'dragon lord trophy', 'dragon lord trophy'}, 7399, 15000, 'dragon lord trophy')
shopModule:addSellableItem({'dragon scale mail', 'dragon scale mail'}, 2492, 40000, 'dragon scale mail')
shopModule:addSellableItem({'dragonbone staff', 'dragonbone staff'}, 7430, 3000, 'dragonbone staff')
shopModule:addSellableItem({'dragon slayer', 'dragon slayer'}, 7402, 15000, 'dragon slayer')
shopModule:addSellableItem({'dreaded cleaver', 'dreaded cleaver'}, 7419, 10000, 'dreaded cleaver')
shopModule:addSellableItem({'dwarven armor', 'dwarven armor'}, 2503, 30000, 'dwarven armor')
shopModule:addSellableItem({'emerald bangle', 'emerald bangle'}, 2127, 800, 'emerald bangle')
shopModule:addSellableItem({'glacier kilt', 'glacier kilt'}, 7896, 11000, 'glacier kilt')
shopModule:addSellableItem({'glacier mask', 'glacier mask'}, 7902, 2500, 'glacier mask')
shopModule:addSellableItem({'glacier robe', 'glacier robe'}, 7897, 11000, 'glacier robe')
shopModule:addSellableItem({'glacier shoes', 'glacier shoes'}, 7892, 2500, 'glacier shoes')
shopModule:addSellableItem({'gold ring', 'gold ring'}, 2179, 8000, 'gold ring')
shopModule:addSellableItem({'golden armor', 'golden armor'}, 2466, 20000, 'golden armor')
shopModule:addSellableItem({'golden legs', 'golden legs'}, 2470, 70000, 'golden legs')
shopModule:addSellableItem({'griffin shield', 'griffin shield'}, 2533, 3000, 'griffin shield')
shopModule:addSellableItem({'guardian halberd', 'guardian halberd'}, 2427, 11000, 'guardian halberd')
shopModule:addSellableItem({'hammer of wrath', 'hammer of wrath'}, 2444, 30000, 'hammer of wrath')
shopModule:addSellableItem({'hibiscus dress', 'hibiscus dress'}, 8873, 3000, 'hibiscus dress')
shopModule:addSellableItem({'heavy mace', 'heavy mace'}, 2452, 50000, 'heavy mace')
shopModule:addSellableItem({'heavy machete', 'heavy machete'}, 2442, 90, 'heavy machete')
shopModule:addSellableItem({'leopard armor', 'leopard armor'}, 3968, 1000, 'leopard armor')
shopModule:addSellableItem({'lightning boots', 'lightning boots'}, 7893, 2500, 'lightning boots')
shopModule:addSellableItem({'lightning headband', 'lightning headband'}, 7901, 2500, 'lightning headband')
shopModule:addSellableItem({'lightning legs', 'lightning legs'}, 7895, 11000, 'lightning legs')
shopModule:addSellableItem({'lightning robe', 'lightning robe'}, 7898, 11000, 'lightning robe')
shopModule:addSellableItem({'lion trophy', 'lion trophy'}, 7400, 4000, 'lion trophy')
shopModule:addSellableItem({'magic plate armor', 'magic plate armor'}, 2472, 120000, 'magic plate armor')
shopModule:addSellableItem({'magma boots', 'magma boots'}, 7891, 2500, 'magma boots')
shopModule:addSellableItem({'magma coat', 'magma coat'}, 7899, 11000, 'magma coat')
shopModule:addSellableItem({'magma legs', 'magma legs'}, 7894, 11000, 'magma legs')
shopModule:addSellableItem({'magma monocle', 'magma monocle'}, 7900, 2500, 'magma monocle')
shopModule:addSellableItem({'mastermind shield', 'mastermind shield'}, 2514, 90000, 'mastermind shield')
shopModule:addSellableItem({'medusa shield', 'medusa shield'}, 2536, 9000, 'medusa shield')
shopModule:addSellableItem({'mercenary sword', 'mercenary sword'}, 7386, 12000, 'mercenary sword')
shopModule:addSellableItem({'minotaur trophy', 'minotaur trophy'}, 7401, 4000, 'minotaur trophy')
shopModule:addSellableItem({'naginata', 'naginata'}, 2426, 2000, 'naginata')
shopModule:addSellableItem({'nightmare blade', 'nightmare blade'}, 7418, 35000, 'nightmare blade')
shopModule:addSellableItem({'noble axe', 'noble axe'}, 7456, 10000, 'noble axe')
shopModule:addSellableItem({'orc trophy', 'orc trophy'}, 7395, 4000, 'orc trophy')
shopModule:addSellableItem({'paladin armor', 'paladin armor'}, 8891, 15000, 'paladin armor')
shopModule:addSellableItem({'pharaoh sword', 'pharaoh sword'}, 2446, 23000, 'pharaoh sword')
shopModule:addSellableItem({'platinum amulet', 'platinum amulet'}, 2171, 2500, 'platinum amulet')
shopModule:addSellableItem({'relic sword', 'relic sword'}, 7383, 25000, 'relic sword')
shopModule:addSellableItem({'ring of the sky', 'ring of the sky'}, 2123, 30000, 'ring of the sky')
shopModule:addSellableItem({'ruby necklace', 'ruby necklace'}, 2133, 2000, 'ruby necklace')
shopModule:addSellableItem({'sapphire hammer', 'sapphire hammer'}, 7437, 7000, 'sapphire hammer')
shopModule:addSellableItem({'scarab amulet', 'scarab amulet'}, 2135, 200, 'scarab amulet')
shopModule:addSellableItem({'scarab shield', 'scarab shield'}, 2540, 2000, 'scarab shield')
shopModule:addSellableItem({'silver dagger', 'silver dagger'}, 2402, 500, 'silver dagger')
shopModule:addSellableItem({'skull helmet', 'skull helmet'}, 5741, 40000, 'skull helmet')
shopModule:addSellableItem({'skullcracker armor', 'skullcracker armor'}, 8889, 18000, 'skullcracker armor')
shopModule:addSellableItem({'spiked squelcher', 'spiked squelcher'}, 7452, 5000, 'spiked squelcher')
shopModule:addSellableItem({'steel boots', 'steel boots'}, 2645, 30000, 'steel boots')
shopModule:addSellableItem({'swamplair armor', 'swamplair armor'}, 8880, 16000, 'swamplair armor')
shopModule:addSellableItem({'taurus mace', 'taurus mace'}, 7425, 500, 'taurus mace')
shopModule:addSellableItem({'tempest shield', 'tempest shield'}, 2542, 35000, 'tempest shield')
shopModule:addSellableItem({'terra boots', 'terra boots'}, 7886, 2500, 'terra boots')
shopModule:addSellableItem({'terra hood', 'terra hood'}, 7903, 2500, 'terra hood')
shopModule:addSellableItem({'terra legs', 'terra legs'}, 7885, 11000, 'terra legs')
shopModule:addSellableItem({'terra mantle', 'terra mantle'}, 7884, 11000, 'terra mantle')
shopModule:addSellableItem({'vile axe', 'vile axe'}, 7388, 30000, 'vile axe')
shopModule:addSellableItem({'war axe', 'war axe'}, 2454, 12000, 'war axe')
shopModule:addSellableItem({'war horn', 'war horn'}, 3957, 8000, 'war horn')
shopModule:addSellableItem({'wolf trophy', 'wolf trophy'}, 7394, 3000, 'wolf trophy')
npcHandler:setMessage(MESSAGE_GREET, "Ah, a customer! Be greeted!")
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())