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

TFS 1.X+ Error withdrawing from banker

luddex

New Member
Joined
Dec 18, 2012
Messages
19
Reaction score
1
Lua Script Error: [Npc interface]
data/npc/scripts/Rokyn.lua:eek:nCreatureSay
data/npc/scripts/Rokyn.lua:130: attempt to call global 'getMoneyCount' (a nil value)
stack traceback:
[C]: in function 'getMoneyCount'
data/npc/scripts/Rokyn.lua:130: in function 'callback'
data/npc/lib/npcsystem/npchandler.lua:407: in function 'onCreatureSay'
data/npc/scripts/Rokyn.lua:10: in function <data/npc/scripts/Rokyn.lua:10>

I looked into the error myself..
I followed the error to line 407 where it has the onCreatureSay function:
Lua:
function NpcHandler:onCreatureSay(creature, msgtype, msg)
       local cid = creature:getId()
       local callback = self:getCallback(CALLBACK_CREATURE_SAY)
       if callback == nil or callback(cid, msgtype, msg) then
           if self:processModuleCallback(CALLBACK_CREATURE_SAY, cid, msgtype, msg) then
               if not self:isInRange(cid) then
                   return
               end

               if self.keywordHandler ~= nil then
                   if self:isFocused(cid) and msgtype == TALKTYPE_PRIVATE_PN or not self:isFocused(cid) then
                       local ret = self.keywordHandler:processMessage(cid, msg)
                       if(not ret) then
                           local callback = self:getCallback(CALLBACK_MESSAGE_DEFAULT)
                           if callback ~= nil and callback(cid, msgtype, msg) then
                               self.talkStart[cid] = os.time()
                           end
                       else
                           self.talkStart[cid] = os.time()
                       end
                   end
               end
           end
       end
   end

I see that it points me towards the inner most if statement of:
Code:
if callback ~= nil and callback(cid, msgtype, msg) then
    self.talkStart[cid] = os.time()
end

but I know other languages and not LUA :S
Please if anyone has dealt with this let me know.
 
Back
Top Bottom