• 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!

Solved magic items not coming up in trade window

Status
Not open for further replies.

ziggy46802

Active Member
Joined
Aug 19, 2012
Messages
418
Reaction score
27
Take a look at the picture, it shows my script and the trade window. What did I do wrong that makes it so the item name does not show up?
 

Attachments

Last edited by a moderator:
Yeah, you're using a bugged one.

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
 
local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)
 
shopModule:addBuyableItem({'hailstorm'}, 2183, 15000, 1,'hailstorm rod')
shopModule:addBuyableItem({'moonlight'}, 2186, 1000, 1,'moonlight rod')
shopModule:addBuyableItem({'necrotic'}, 2185, 5000, 1,'necrotic rod')
shopModule:addBuyableItem({'northwind'}, 8911, 7500, 1,'northwind rod')
shopModule:addBuyableItem({'snakebite'}, 2182, 500, 1,'snakebite rod')
shopModule:addBuyableItem({'springsprout'}, 8912, 18000, 1,'springsprout rod')
shopModule:addBuyableItem({'terra'}, 2181, 10000, 1,'terra rod')
shopModule:addBuyableItem({'underworld'}, 8910, 22000, 1,'underworld rod')
shopModule:addBuyableItem({'cosmic energy'}, 2189, 10000, 1,'wand of cosmic energy')
shopModule:addBuyableItem({'decay'}, 2188, 5000, 1,'wand of decay')
shopModule:addBuyableItem({'draconia'}, 8921, 7500, 1,'wand of draconia')
shopModule:addBuyableItem({'dragonbreath'}, 2191, 1000, 1,'wand of dragonbreath')
shopModule:addBuyableItem({'inferno'}, 2187, 15000, 1,'wand of inferno')
shopModule:addBuyableItem({'starstorm'}, 8920, 18000, 1,'wand of starstorm')
shopModule:addBuyableItem({'voodoo'}, 8922, 22000, 1,'wand of voodoo')
shopModule:addBuyableItem({'vortex'}, 2190, 500, 1,'wand of vortex')
shopModule:addBuyableItem({'flask of rust remover'}, 9930, 50, 1,'flask of rust remover')
shopModule:addBuyableItem({'great health potion'}, 7591, 190, 1, 'great health potion')
shopModule:addBuyableItem({'great mana potion'}, 7590, 120, 1, 'great mana potion')
shopModule:addBuyableItem({'great spirit potion'}, 8472, 190, 1, 'great spirit potion')
shopModule:addBuyableItem({'health potion'}, 7618, 45, 1, 'health potion')
shopModule:addBuyableItem({'mana potion'}, 7620, 50, 1, 'mana potion')
shopModule:addBuyableItem({'strong health potion'}, 7588, 100, 1, 'strong health potion')
shopModule:addBuyableItem({'strong mana potion'}, 7589, 80, 1, 'strong mana potion')
shopModule:addBuyableItem({'ultimate health'}, 8473, 310, 1, 'ultimate health potion')
shopModule:addBuyableItem({'berserk potion'}, 7439, 5000, 1,'berserk potion')
shopModule:addBuyableItem({'bullseye potion'}, 7443, 5000, 1,'bullseye potion')
shopModule:addBuyableItem({'mastermind potion'}, 7440, 5000, 1,'mastermind potion')
shopModule:addBuyableItem({'animate dead'}, 2316, 375, 1, 'animate dead rune')
shopModule:addBuyableItem({'avalanche'}, 2274, 45, 1, 'avalanche rune')
shopModule:addBuyableItem({'blank rune'}, 2260, 10, 1, 'blank rune')
shopModule:addBuyableItem({'chameleon'}, 2291, 210, 1, 'chameleon rune')
shopModule:addBuyableItem({'convince creature'}, 2290, 80, 1, 'convince creature rune')
shopModule:addBuyableItem({'cure poison'}, 2266, 65, 1,'cure posoison rune')
shopModule:addBuyableItem({'desintegrate'}, 2310, 26, 1, 'desintegrate rune')
shopModule:addBuyableItem({'destroy field'}, 2261, 15, 1, 'destroy field')
shopModule:addBuyableItem({'energy bomb'}, 2262, 162, 1, 'energy bomb rune')
shopModule:addBuyableItem({'energy field'}, 2277, 38, 1, 'energy field')
shopModule:addBuyableItem({'energy wall'}, 2279, 85, 1, 'energy wall rune')
shopModule:addBuyableItem({'explosion'}, 2313, 31, 1, 'explosion rune')
shopModule:addBuyableItem({'fire bomb'}, 2305, 117, 1, 'fire bomb rune')
shopModule:addBuyableItem({'fire field'}, 2301, 28, 1, 'fire field rune')
shopModule:addBuyableItem({'fire wall'}, 2303, 61, 1, 'fire wall rune')
shopModule:addBuyableItem({'fireball'}, 2302, 30, 1, 'fire ball')
shopModule:addBuyableItem({'great fireball'}, 2304, 45, 1, 'great fireball rune')
shopModule:addBuyableItem({'heavy magic missile'}, 2311, 12, 1, 'heavy magic missile rune')
shopModule:addBuyableItem({'holy missile missile'}, 2295, 16, 1, 'holy missile rune')
shopModule:addBuyableItem({'icicle'}, 2271, 30, 1, 'icicle rune')
shopModule:addBuyableItem({'intense healing'}, 2265, 95, 1, 'intense healing rune')
shopModule:addBuyableItem({'light magic missile'}, 2287, 4, 1, 'light magic missile rune')
shopModule:addBuyableItem({'magic wall'}, 2293, 116, 1, 'magic wall rune')
shopModule:addBuyableItem({'paralyze'}, 2278, 700, 1, 'paralyze rune')
shopModule:addBuyableItem({'poison bomb'}, 2286, 85, 1, 'poison bomb rune')
shopModule:addBuyableItem({'poison field'}, 2285, 21, 1, 'poison field')
shopModule:addBuyableItem({'poison wall'}, 2289, 52, 1, 'poison wall rune')
shopModule:addBuyableItem({'soulfire'}, 2308, 46, 1, 'soulfire rune')
shopModule:addBuyableItem({'stalagmite'}, 2292, 12, 1, 'stalagmite rune')
shopModule:addBuyableItem({'stone shower'}, 2288, 37, 1, 'stoneshower rune')
shopModule:addBuyableItem({'sudden death'}, 2268, 108, 1, 'sudden death rune')
shopModule:addBuyableItem({'thunderstorm'}, 2315, 37, 1, 'thunderstorm rune')
shopModule:addBuyableItem({'ultimate healing'}, 2273, 175, 1, 'ultimate healing rune')
shopModule:addBuyableItem({'wild growth'}, 2269, 160, 1, 'wild growth rune')

shopModule:addSellableItem({'berserk potion'}, 7439, 500,'berserk potion')
shopModule:addSellableItem({'bullseye potion'}, 7443, 500, 'bullseye potion')
shopModule:addSellableItem({'mastermind potion'}, 7440, 500, 'mastermind potion')
shopModule:addSellableItem({'normal potion flask', 'normal flask'}, 7636, 5,  'empty small potion flask')
shopModule:addSellableItem({'strong potion flask', 'strong flask'}, 7634, 5,  'empty strong potion flask')
shopModule:addSellableItem({'great potion flask', 'great flask'}, 7635, 5,  'empty great potion flask')
shopModule:addSellableItem({'hailstorm'}, 2183, 3000, 'hailstorm rod')
shopModule:addSellableItem({'moonlight'}, 2186, 200, 'moonlight rod')
shopModule:addSellableItem({'necrotic'}, 2185, 1000, 'necrotic rod')
shopModule:addSellableItem({'northwind'}, 8911, 1500, 'northwind rod')
shopModule:addSellableItem({'snakebite'}, 2182, 100, 'snakebite rod')
shopModule:addSellableItem({'springsprout'}, 8912, 3600, 'springsprout rod')
shopModule:addSellableItem({'terra'}, 2181, 2000, 'terra rod')
shopModule:addSellableItem({'underworld'}, 8910, 4400, 'underworld rod')
shopModule:addSellableItem({'cosmic energy'}, 2189, 2000, 'wand of cosmic energy')
shopModule:addSellableItem({'decay'}, 2188, 1000, 'wand of decay')
shopModule:addSellableItem({'draconia'}, 8921, 1500, 'wand of draconia')
shopModule:addSellableItem({'dragonbreath'}, 2191, 200, 'wand of dragonbreath')
shopModule:addSellableItem({'inferno'}, 2187, 3000,'wand of inferno')
shopModule:addSellableItem({'starstorm'}, 8920, 3600, 'wand of starstorm')
shopModule:addSellableItem({'voodoo'}, 8922, 4400, 'wand of voodoo')
shopModule:addSellableItem({'vortex'}, 2190, 100, 'wand of vortex')
 
npcHandler:addModule(FocusModule:new())
 
Status
Not open for further replies.
Back
Top