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

Lua Boat NPC Problem

ond

Veteran OT User
Joined
Mar 24, 2008
Messages
2,782
Solutions
25
Reaction score
491
Location
Sweden
Hello! I've got a problem. When I'm telling a boat NPC following:
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:
Back
Top