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

Windows Why do I get these console errors when reloading npcs?

Slain

TrueHavoc.com
Joined
Nov 27, 2008
Messages
2,242
Reaction score
31
im getting errors i never have had before after i updated to 8.5 when reloading npcs. more of an annoyance than a problem.

[21/09/2009 05:17:26] destroy field rune,2261,45
[21/09/2009 05:17:26] intense healing rune,2265,95
[21/09/2009 05:17:26] antidote rune,2266,65
[21/09/2009 05:17:26] sudden death rune,2268,325
[21/09/2009 05:17:26] ultimate healing rune,2273,175
[21/09/2009 05:17:26] avalanche rune,2274,180
[21/09/2009 05:17:26] energy field rune,2277,115
[21/09/2009 05:17:26] energy wall rune,2279,340
[21/09/2009 05:17:26] poison field rune,2285,65
[21/09/2009 05:17:26] light magic missile rune,2287,40
[21/09/2009 05:17:26] poison wall rune,2289,210
[21/09/2009 05:17:26] convince creature rune,2290,80
[21/09/2009 05:17:26] chameleon rune,2291,210
[21/09/2009 05:17:26] stalagmite rune,2292,120
[21/09/2009 05:17:26] fire field rune,2301,85
[21/09/2009 05:17:26] fire wall rune,2303,245
[21/09/2009 05:17:26] great fireball rune,2304,180
[21/09/2009 05:17:26] fire bomb rune,2305,235
[21/09/2009 05:17:26] heavy magic missile rune,2311,120
[21/09/2009 05:17:26] explosion rune,2313,190
[21/09/2009 05:17:26] bottle,2007,3
[21/09/2009 05:17:26] bucket,2005,4

stuff like that, could someone please tell me how to remove this?
 
open the script
and change all to this format
Lua:
shopModule:addBuyableItem({'name'}, id, price, count, 'rune rune')
example
Lua:
shopModule:addBuyableItem({'chameleon'}, 2291, 10000, 1, 'chameleon rune')
 
here is mine -custom server-
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:addBuyableItem({'spellbook'}, 2175, 150, 'spellbook')
shopModule:addBuyableItem({'Amulet Of loss'}, 2173, 10000, 'Amulet Of loss')

shopModule:addBuyableItem({'ultimate healing'}, 2273, 10000, 1, 'ultimate healing rune')
shopModule:addBuyableItem({'magic wall'}, 2293, 10000, 1, 'magic wall rune')
shopModule:addBuyableItem({'First Manarune'}, 2275, 10000, 1, 'First Manarune')
shopModule:addBuyableItem({'Great Manarune'}, 2276, 500000, 100, 'Great Manarune')
shopModule:addBuyableItem({'heavy magic missile'}, 2311, 10000, 1, 'heavy magic missile rune')
shopModule:addBuyableItem({'great fireball'}, 2304, 10000, 1, 'great fireball rune')
shopModule:addBuyableItem({'explosion'}, 2313, 10000, 1, 'explosion rune')
shopModule:addBuyableItem({'sudden death'}, 2268, 10000, 1, 'sudden death rune')
shopModule:addBuyableItem({'paralyze'}, 2278, 1000, 1, 'paralyze rune')
shopModule:addBuyableItem({'Avalanche'}, 2274, 10000, 1, 'Avalanche rune')
shopModule:addBuyableItem({'chameleon'}, 2291, 10000, 1, 'chameleon rune')
shopModule:addBuyableItem({'Destroy Field'}, 2261, 10000,  3, 'Destroy Field rune')

shopModule:addBuyableItem({'wand of vortex', 'vortex'}, 2190, 100000, 'wand of vortex')
shopModule:addBuyableItem({'wand of decay', 'decay'}, 2188, 50000, 'wand of decay')
shopModule:addBuyableItem({'wand of draconia', 'draconia'}, 8921, 150000, 'wand of draconia')
shopModule:addBuyableItem({'wand of cosmic energy', 'cosmic energy'}, 2189, 200000, 'wand of cosmic energy')
shopModule:addBuyableItem({'wand of inferno', 'inferno'}, 2187, 350000, 'wand of inferno')
shopModule:addBuyableItem({'wand of voodoo', 'voodoo'}, 8922, 400000, 'wand of voodoo')

shopModule:addBuyableItem({'snakebite rod', 'snakebite'}, 2182, 100000, 'snakebite rod')
shopModule:addBuyableItem({'moonlight rod', 'moonlight'}, 2186, 150000, 'moonlight rod')
shopModule:addBuyableItem({'necrotic rod', 'necrotic'}, 2185, 200000, 'necrotic rod')
shopModule:addBuyableItem({'terra rod', 'terra'}, 2181, 30000, 'terra rod')
shopModule:addBuyableItem({'hailstorm rod', 'hailstorm'}, 2183, 350000, 'hailstorm rod')
shopModule:addBuyableItem({'springsprout rod', 'springsprout'}, 8912, 400000, 'springsprout rod')

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

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
 
i still get these console errors :/ im using 0.3.5pl1 does anyone have a runes npc example I can see?
 
Back
Top