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

doPlayerbuyitem

enriel

Big L
Joined
Dec 14, 2007
Messages
1,254
Reaction score
2
Location
Montenegro
[25/03/2008 15:39:35] Lua Script Error: [Npc interface]
[25/03/2008 15:39:35] data/npc/scripts/amulet.lua:eek:nCreatureSay

[25/03/2008 15:39:35] data/npc/lib/npcsystem/modules.lua:741: attempt to call global 'doPlayerBuyItem' (a nil value)

I get that error on this npc

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid) npcHandler:eek:nCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:eek:nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:eek:nCreatureSay(cid, type, msg) end
function onThink() npcHandler:eek:nThink() end

npcHandler:addModule(FocusModule:new())

Anyone that can help me really fast?
 
If you look good you will know what type of bug it is

Code:
[25/03/2008 15:39:35] Lua Script Error: [Npc interface]
[25/03/2008 15:39:35] data/npc/scripts/amulet.luanCreatureSay

[25/03/2008 15:39:35] data/npc/lib/npcsystem/[COLOR="Red"]modules.lua[/COLOR]:741: attempt to call global 'doPlayerBuyItem' (a nil value)

Tfs dosen't support that function

The only thing that i could advice you is.
Use doPlayerAddItem(uid, itemid, <optional> count/subtype)



Lua list
http://otland.net/showthread.php?t=3673
 
Back
Top