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

Random Server Error

simson361

The Grim Reaper
Joined
Aug 4, 2010
Messages
626
Reaction score
27
Location
sweden
i got this error totaly random (never got this before,) and after 5min server Saves and reloads but i cant logg in
Code:
22/09/2013 03:53:54] [Error - Action Interface]
[22/09/2013 03:53:54] data/actions/scripts/other/yalaharcrate.lua:onUse
[22/09/2013 03:53:54] Description:
[22/09/2013 03:53:54] (luaGetThing) Thing not found

[22/09/2013 03:53:54] [Error - Action Interface]
[22/09/2013 03:53:54] data/actions/scripts/other/yalaharcrate.lua:onUse
[22/09/2013 03:53:54] Description:
[22/09/2013 03:53:54] data/lib/050-function.lua:257: attempt to index a boolean value
[22/09/2013 03:53:54] stack traceback:
[22/09/2013 03:53:54]    data/lib/050-function.lua:257: in function 'getItemName'
[22/09/2013 03:53:54]    data/actions/scripts/other/yalaharcrate.lua:23: in function <data/actions/scripts/other/yalaharcrate.lua:7>
[22/09/2013 03:55:52] > Broadcasted message: "Server is going down for a global save within 5 minutes. Please logout.".


-- UPDATE --

nvm this almost never happends onley one in a while
 
@HalfAway here it is (can you tell me what it dose also? XD)
Code:
local items = {7620, 7618, 2148, 2148, 9808, 9811, 2671, 2666, 2789, 2213, 2145, 2145, 5710}
local count = {1, 1, 50, 80, 1, 1, 5, 8, 5, 1, 1, 2, 1}

local countable = {2148, 2789, 2145}
local uncountable = {2666, 2671}

function onUse(cid, item, fromPosition, itemEx, toPosition)

local compareTime = 3600
local currentValue = getPlayerStorageValue(cid, 65000)

if currentValue == -1 then
    setPlayerStorageValue(cid, 65000, os.time())
end

    if (os.time() - currentValue) >= compareTime then
        setPlayerStorageValue(cid, 65000, os.time())
        local myItem = math.random(1, #items)
        doPlayerAddItem(cid, items[myItem], count[myItem])
        if isInArray(countable, item[myItem]) and count[myItem] > 1 then
            doCreatureSay(cid, "You have found " .. count[myItem]  .. " " .. getItemName(items[myItem]) .. "s.", TALKTYPE_ORANGE_1)
        elseif count[myItem] == 1 then
            doCreatureSay(cid, "You have found a " .. getItemName(items[myItem]) .. ".", TALKTYPE_ORANGE_1)
        end
    else
        doCreatureSay(cid, "You found nothing useful.", TALKTYPE_ORANGE_1)
    end
    return TRUE
end
 
If you're not using that script, only delete the entry of yalaharcrate.lua in actions.xml
@Loney what dose it do? :p
If you remove it from actions.xml the script will no longer load, thats what it will do.

And the script is for crate's in Yalahar Castle for example, if you right click on it you will get some kind of a item, and when a certain time has passed you can take it again.
 
Back
Top