I have this error in the console.
This is the error from MOD Svargrond ARENA
Code:
[20:39:03.374] [Error - Action Interface]
[20:39:03.374] domodlib('arenaFunctions')
[20:39:03.374] function onUse(cid, item, fromPosition, itemEx, toPosition)
[20:39:03.374] local myMove = getDirectionMove(cid, fromPosition)
[20:39:03.374] if myMove == nil then
[20:39:03.374] return FALSE
[20:39:03.374] end
[20:39:03.374] local Reward = Rewards[item.actionid]
[20:39:03.374] if Reward then
[20:39:03.374] if getPlayerStorageValue(cid, Reward.Stor) ~= 1 then
[20:39:03.374] local reward = nil
[20:39:03.374] if Reward.Cont ~= nil then
[20:39:03.374] reward = doCreateItemEx(Reward.Cont, 1)
[20:39:03.374] for i = 1, #Reward.items do
[20:39:03.374] doAddContainerItem(reward, Reward.items[i], Reward.count[i])
[20:39:03.374] end
[20:39:03.374] else
[20:39:03.374] reward = doCreateItemEx(Reward.item, 1)
[20:39:03.374] end
[20:39:03.374] if reward ~= nil then
[20:39:03.374] if doPlayerAddItemEx(cid, reward, FALSE) == RETURNVALUE_NOERROR then
[20:39:03.374] doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,'You have found a '..getItemNameById(getThing(reward).itemid)..'.')
[20:39:03.374] setPlayerStorageValue(cid, Reward.Stor, 1)
[20:39:03.374] addPlayerRep(cid, 5, TEXTCOLOR_LIGHTBLUE)
[20:39:03.374] else
[20:39:03.374] doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, Cancel[3])
[20:39:03.374] end
[20:39:03.374] end
[20:39:03.374] else
[20:39:03.374] doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, Cancel[4])
[20:39:03.374] end
[20:39:03.374] elseif RewardsDoors[item.actionid] then
[20:39:03.374] if myArenaLevelIs(cid).LV >= RewardsDoors[item.actionid] then
[20:39:03.374] doTransformItem(item.uid, OpenDoorsID)
[20:39:03.374] doMoveCreature(cid, myMove)
[20:39:03.375] else
[20:39:03.375] doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, Cancel[5])
[20:39:03.375] end
[20:39:03.375] elseif item.actionid == DoorsActID and getPlayerStorageValue(cid, talkNPC) == 1 then
[20:39:03.375] doTransformItem(item.uid, OpenDoorsID)
[20:39:03.375] doMoveCreature(cid, myMove)
[20:39:03.375] else
[20:39:03.375] doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, Cancel[1])
[20:39:03.375] end
[20:39:03.375] return TRUE
[20:39:03.375] end:onUse
[20:39:03.375] Description:
[20:39:03.375] [string "LuaInterface::loadBuffer"]:43: attempt to call global 'addPlayerRep' (a nil value)
[20:39:03.375] stack traceback:
[20:39:03.375] [string "LuaInterface::loadBuffer"]:43: in function <[string "LuaInterface::loadBuffer"]:2>
This is the error from MOD Svargrond ARENA