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

It's about alexander NPC Sell everything fine but do not sell rods

Aspoks

Banned User
Joined
Jul 8, 2013
Messages
4
Reaction score
0
This npc sell all items are configured on alexander.lua but It don't sell any rod (just rods) it sell wands, runes and everything fine Exept Rods any help will be great

PHP:
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:addBuyableItem({'spellbook'}, 2175, 150, 'spellbook')


shopModule:addBuyableItem({'blank'}, 2260, 10, 1, 'blank rune')
shopModule:addBuyableItem({'stone shower rune'}, 2288, 37, 4, 'stone shower rune')
shopModule:addBuyableItem({'thunderstorm rune'}, 2315, 37, 4, 'thunderstorm rune')
shopModule:addBuyableItem({'icicle rune'}, 2271, 30, 5, 'icicle rune')
shopModule:addBuyableItem({'holy missile rune'}, 2295, 16, 5, 'holy missile rune')
shopModule:addBuyableItem({'desintegrate rune'}, 2310, 26, 3, 'desintegrate rune')
shopModule:addBuyableItem({'poison bomb rune'}, 2286, 85, 2, 'poison bomb rune')
shopModule:addBuyableItem({'energy bomb rune'}, 2262, 162, 2, 'energy bomb rune')
shopModule:addBuyableItem({'soulfire rune'}, 2308, 46, 3, 'soulfire rune')
shopModule:addBuyableItem({'magic wall rune'}, 2293, 116, 3, 'magic wall rune')
shopModule:addBuyableItem({'animate dead rune'}, 2316, 375, 1, 'animate dead rune')
shopModule:addBuyableItem({'paralyze rune'}, 2278, 700, 1, 'paralyze rune')
shopModule:addBuyableItem({'fireball rune'}, 2302, 30, 5, 'fireball rune')
shopModule:addBuyableItem({'wild growth rune'}, 2269, 160, 2, 'wild growth rune')


shopModule:addBuyableItem({'wand of dragonbreath', 'dragonbreath'}, 2191, 1000, 1, 'wand of dragonbreath')
shopModule:addBuyableItem({'wand of decay', 'decay'}, 2188, 5000, 1, 'wand of decay')
shopModule:addBuyableItem({'wand of cosmic energy', 'cosmic energy'}, 2189, 10000, 1, 'wand of cosmic energy')
shopModule:addBuyableItem({'wand of voodoo', 'voodoo'}, 8922, 22000, 1, 'wand of voodoo')
shopModule:addBuyableItem({'wand of starstorm', 'starstorm'}, 8920, 18000, 1, 'wand of starstorm')
shopModule:addBuyableItem({'wand of inferno', 'inferno'}, 2187, 15000, 1, 'wand of inferno')
shopModule:addBuyableItem({'wand of draconia', 'draconia'}, 8921, 7500, 1, 'wand of draconia')
shopModule:addBuyableItem({'wand of vortex', 'vortex'}, 2190, 500, 1, 'wand of vortex')

shopModule:addBuyableItem({'snakebite rod', 'snakebite'}, 2182, 500, 1, 'snakebite rod')
shopModule:addBuyableItem({'moonlight rod', 'moonlight'}, 2186, 1000, 1, 'moonlight rod')
shopModule:addBuyableItem({'necrotic rod', 'necrotic'}, 2185, 5000, 1, 'necrotic rod')
shopModule:addBuyableItem({'terra rod', 'terra'}, 2181, 10000, 1, 'terra rod')
shopModule:addBuyableItem({'underworld rod', 'underworld'}, 8910, 22000, 1, 'underworld rod')
shopModule:addBuyableItem({'springsprout rod', 'springsprout'}, 8912, 18000, 1, 'springsprout rod')
shopModule:addBuyableItem({'northwind rod', 'northwind'}, 8911, 7500, 1, 'northwind rod')
shopModule:addBuyableItem({'hailstorm rod', 'hailstorm'}, 2183, 15000, 1, 'hailstorm rod')

shopModule:addBuyableItem({'life ring', 'life ring'}, 2168, 900, 1, 'life ring')
shopModule:addBuyableItem({'crystal ball', 'crystal ball'}, 2192, 530, 1, 'crystal ball')


shopModule:addSellableItem({'spellbook of enlightenment', 'spellbook of enlightenment'}, 8900, 4000, 'spellbook of enlightenment')
shopModule:addSellableItem({'spellbook of warding', 'spellbook of warding'}, 8901, 8000, 'spellbook of warding')
shopModule:addSellableItem({'spellbook of mind control', 'spellbook of mind control'}, 8902, 13000, 'spellbook of mind control')
shopModule:addSellableItem({'spellbook of lost souls', 'spellbook of lost souls'}, 8903, 19000, 'spellbook of lost souls')
shopModule:addSellableItem({'crystal ball', 'crystal ball'}, 2192, 190, 'crystal ball')
shopModule:addSellableItem({'life Crystal', 'life Crystal'}, 2177, 85, 'life crystal')
shopModule:addSellableItem({'mind Stone', 'mind Stone'}, 2178, 170, 'mind stone')

function creatureSayCallback(cid, type, msg)
	if(not npcHandler:isFocused(cid)) then
		return false
	end
	end

	

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

kind regards
aspoks
 
this error i had before you need to get a better module let me see if i have it

modules.lua - Speedy Share - upload your files here
credits to Limos
 
Back
Top