ond
Veteran OT User
Hello! I've got a problem. When I'm telling a boat NPC following:
I get this error:
And this is the line in modules.lua
bring me to venore (Or anywhere else)
I get this error:
[03/07/2009 02:06:24] data/npc/lib/npcsystem/modules.lua:419: attempt to index global 'self' (a nil value)
And this is the line in modules.lua
LUA:
if(getPlayerMoney(cid) < amount * self.npcHandler.shopItems[itemid].buyPrice) then
local msg = self.npcHandler:getMessage(MESSAGE_NEEDMONEY)
msg = self.npcHandler:parseMessage(msg, parseInfo)
doPlayerSendCancel(cid, msg)
return false
end
Last edited: