• 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 0.X Load buffer error


Marketing and Coding
Jan 18, 2014
Reaction score

I found this error in my console, but i can't understand what is this and where to find this error

[18/5/2021 14:49:46] [Error - LuaInterface::loadBuffer] [string "LuaInterface::loadBuffer"]:3: '=' expected near 'shield'
[18/5/2021 14:49:51] [Error - LuaInterface::loadBuffer] [string "LuaInterface::loadBuffer"]:3: '=' expected near 'shield'
[18/5/2021 14:49:54] [Error - LuaInterface::loadBuffer] [string "LuaInterface::loadBuffer"]:3: '=' expected near 'shield'
[18/5/2021 14:50:21] [Error - LuaInterface::loadBuffer] [string "LuaInterface::loadBuffer"]:3: '=' expected near 'shield'
[18/5/2021 14:50:49] [Error - LuaInterface::loadBuffer] [string "LuaInterface::loadBuffer"]:3: '=' expected near 'shield'

Using OTX 2 based on 0.3.7

Any help?
Post automatically merged:

I figured how this error come in the console

at this part of autoloot mod

<talkaction words="!autoloot;/autoloot" event="buffer"><![CDATA[
local param, slots = param:lower(), isPremium(cid) and info.Max_Slots.premium or info.Max_Slots.free
if not param or param == "" then
    ShowItemsTabble(cid) return true
elseif tonumber(param) then
    doPlayerSendCancel(cid, "[Auto Loot]: !autoloot item name [+] !autoloot clean [+] !autoloot money [+] !autoloot on/off") return true
elseif isInArray({"clean", "clear"}, param) then
    if existsAutoloot(cid) then doCleanAutoloot(cid) end
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"[Auto Loot]: your list has been cleaned.") return true
elseif isInArray({"start","stop","on","off", "run"}, param) then
    setPlayerStorageValue(cid, info.Storages[1], getPlayerStorageValue(cid, info.Storages[1]) <= 0 and 1 or 0)
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"[Auto Loot]: system "..(getPlayerStorageValue(cid, info.Storages[1]) > 0 and "disabled" or "activated")..".") return true
elseif isInArray({"warn"}, param) then
    setPlayerStorageValue(cid, info.Storages[3], getPlayerStorageValue(cid, info.Storages[3]) <= 0 and 1 or 0)
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"[Auto Loot]: backpack warn "..(getPlayerStorageValue(cid, info.Storages[3]) > 0 and "disabled" or "activated")..".") return true
elseif isInArray({"message", "msg"}, param) then
    setPlayerStorageValue(cid, info.Storages[6], getPlayerStorageValue(cid, info.Storages[6]) <= 0 and 1 or 0)
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"[Auto Loot]: message "..(getPlayerStorageValue(cid, info.Storages[6]) > 0 and "disabled" or "activated")..".") return true
elseif isInArray({"color"}, param) then
    setPlayerStorageValue(cid, info.Storages[5], getPlayerColorLootMessage(cid) == #Color_Loot and 0 or getPlayerColorLootMessage(cid)+1)
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"[Auto Loot]: message color changed to "..Color_Loot[getPlayerColorLootMessage(cid)][2]..".") return true
elseif isInArray({"money","gold","gps"}, param) then
    setPlayerStorageValue(cid, info.Storages[2], getPlayerStorageValue(cid, info.Storages[2]) <= 0 and 1 or 0)
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"[Auto Loot]: gold colleting "..(getPlayerStorageValue(cid, info.Storages[2]) > 0 and "activated" or "disabled")..".") return true
elseif isInArray({"bank","deposit","autodeposit"}, param) then
    setPlayerStorageValue(cid, info.Storages[4], getPlayerStorageValue(cid, info.Storages[4]) <= 0 and 1 or 0)
    doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"[Auto Loot]: automatic deposit to bank "..(getPlayerStorageValue(cid, info.Storages[4]) > 0 and "activated" or "disabled")..".") return true
local item = ExistItemByName(tostring(param))
if not item then
    doPlayerSendCancel(cid, "[Auto Loot]: this item does not exist.") return true
local item = getItemIdByName(tostring(param))
local var = isInTable(cid, item)
if isInArray(info.Money_ids, item) then
    doPlayerSendCancel(cid, "[Auto Loot]: enter !autoloot money to add money in your list.") return true
elseif isInArray(info.BlockItemsList, item) then
    doPlayerSendCancel(cid, "[Auto Loot]: You can not add this item in the list.") return true
elseif not var and #getItensFromAutoloot(cid) >= slots then
    doPlayerSendCancel(cid, "[Auto Loot]: you have only "..slots.." max slots to add items to auto loot.") return true
elseif getPlayerStorageValue(cid, info.Storages[7]) - os.time() > 0 then
        doPlayerSendCancel(cid, "[Auto Loot]: wait a second to use this command again") return true
if not var then
    doAddItemFromAutoloot(cid, item)
    doremoveItemFromAutoloot(cid, item)
setPlayerStorageValue(cid, info.Storages[7], os.time()+info.Talkaction_delay)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, not var and "[Auto Loot]: you added the item "..param.." in the list." or "[Auto Loot]: you removed the item "..param.." from the list, please wait 5 seconds to save the directory.")
return true]]></talkaction>

When you use the command like this (!autoloot "shield") the error appear.
How can i fix this error?
Last edited: