Randyf00
New Member
- Joined
- Aug 11, 2008
- Messages
- 54
- Reaction score
- 0
My rune npc sells double of everything.
For example you buy 4 sd runes he gives you 8.
Any help please?
For example you buy 4 sd runes he gives you 8.
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
function onCreatureAppear(cid) npcHandlernCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandlernCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandlernCreatureSay(cid, type, msg) end
function onThink() npcHandlernThink() end
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
shopModule:addBuyableItem({'snakebite rod', 'SBR'}, 2182, 100, 1, 'snakebite rod')
shopModule:addBuyableItem({'moonlight rod', 'MLR'}, 2186, 400, 1, 'moonlight rod')
shopModule:addBuyableItem({'necrotic rod', 'NR'}, 2185, 700, 1, 'necrotic rod')
shopModule:addBuyableItem({'terra rod', 'TR'}, 2181, 1000, 1, 'terra rod')
shopModule:addBuyableItem({'springsprout rod', 'SR'}, 8912, 25000, 1, 'springsprout rod')
shopModule:addBuyableItem({'underworld rod', 'UR'}, 8910, 500000, 1, 'underworld rod')
shopModule:addBuyableItem({'blessed rod', 'BR'}, 7429, 1000000, 1, 'blessed rod')
shopModule:addBuyableItem({'queens rod', 'QR'}, 7410, 2500000, 1, 'queens rod')
shopModule:addBuyableItem({'hailstorm rod', 'HSR'}, 2183, 1200, 1, 'hailstorm rod')
shopModule:addBuyableItem({'wand of vortex', 'WOV'}, 2180, 100, 1, 'wand of vortex')
shopModule:addBuyableItem({'wand of dragonbreath', 'WODB'}, 2191, 400, 1, 'wand of dragonbreath')
shopModule:addBuyableItem({'wand of decay', 'WOD'}, 2188, 700, 1, 'wand of decay')
shopModule:addBuyableItem({'wand of cosmic energy', 'WOE'}, 2189, 1000, 1, 'wand of cosmic energy')
shopModule:addBuyableItem({'wand of inferno', 'WOI'}, 2187, 1200, 1, 'wand of inferno')
shopModule:addBuyableItem({'wand of starstorm', 'WOST'}, 8820, 250000, 1, 'wand of starstorm')
shopModule:addBuyableItem({'wand of voodoo', 'WOVD'}, 8922, 500000, 1, 'wand of voodoo')
shopModule:addBuyableItem({'lunar wand', 'LW'}, 7424, 1000000, 1, 'lunar wand')
shopModule:addBuyableItem({'wand of shadow', 'WOS'}, 7451, 250000, 1, 'wand of shadow')
shopModule:addBuyableItem({'ultimate health potion', 'uhp'}, 8473, 310, 'ultimate health potion')
shopModule:addBuyableItem({'great health potion', 'ghp'}, 7591, 190, 'great health potion')
shopModule:addBuyableItem({'strong health potion', 'shp'}, 7588, 100, 'strong health potion')
shopModule:addBuyableItem({'health potion', 'hp'}, 7618, 45, 'health potion')
shopModule:addBuyableItem({'great spirit potion', 'gsp'}, 8472, 190, 'great spirit potion')
shopModule:addBuyableItem({'great mana potion', 'gmp'}, 7590, 120, 'great mana potion')
shopModule:addBuyableItem({'strong mana potion', 'smp'}, 7589, 80, 'strong mana potion')
shopModule:addBuyableItem({'mana potion', 'mp'}, 7620, 50, 'mana potion')
shopModule:addBuyableItem({'light wand', 'lightwand'}, 2163, 500, 'magic light wand')
shopModule:addBuyableItem({'heavy magic missile', 'hmm'}, 2311, 1300, 20, 'heavy magic missile rune')
shopModule:addBuyableItem({'great fireball', 'gfb'}, 2304, 1500, 20, 'great fireball rune')
shopModule:addBuyableItem({'explo', 'xpl'}, 2313, 1800, 100, 'explosion rune')
shopModule:addBuyableItem({'ultimate healing', 'uh'}, 2273, 750, 100, 'ultimate healing rune')
shopModule:addBuyableItem({'sudden death', 'sd'}, 2268, 2000, 100, 'sudden death rune')
shopModule:addBuyableItem({'blank', 'rune'}, 2260, 10, 'blank rune')
shopModule:addBuyableItem({'spellbook'}, 2175, 150, 'spellbook')
shopModule:addBuyableItem({'energy ring', 'rune'}, 2296, 10000, 5, 'energy ring rune')
shopModule:addBuyableItem({'charge', 'rune'}, 2295, 5000, 10, 'charge rune')
shopModule:addBuyableItem({'eternal fire', 'rune'}, 2300, 50000, 2, 'eternal fire rune')
shopModule:addBuyableItem({'shuriken bomb', 'rune'}, 2263, 50000, 2, 'shuriken bomb')
npcHandler:addModule(FocusModule:new())
Any help please?