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

[MOD] Fire Storm Event Help !

Mister Budex

BudexOT.com
Joined
Jun 22, 2016
Messages
1,547
Solutions
18
Reaction score
378
Hello , I have problem with Fire storm event mod script.. so i took script from here
(MOD) Fire Storm Event
and i get this error in TFS 0.3.6
Code:
[Error - TalkAction Interface]
[09/09/2017 01:06:32] buffer:onSay
[09/09/2017 01:06:32] Description:
[09/09/2017 01:06:32] data/lib/034-exhaustion.lua:28: field 'day' missing in date table
[09/09/2017 01:06:32] stack traceback:
[09/09/2017 01:06:32]     [C]: in function 'time'
[09/09/2017 01:06:32]     data/lib/034-exhaustion.lua:28: in function 'set'
[09/09/2017 01:06:32]     [string "loadBuffer"]:61: in function <[string "loadBuffer"]:3>
and here is my 034-exhaustion.lua
Code:
exhaustion =
{
    check = function (cid, storage)
        if(getPlayerFlagValue(cid, PLAYERFLAG_HASNOEXHAUSTION)) then
            return false
        end
        return getPlayerStorageValue(cid, storage) >= os.time(t)
    end,
    get = function (cid, storage)
        if(getPlayerFlagValue(cid, PLAYERFLAG_HASNOEXHAUSTION)) then
            return false
        end
        local exhaust = getPlayerStorageValue(cid, storage)
        if(exhaust > 0) then
            local left = exhaust - os.time(t)
            if(left >= 0) then
                return left
            end
        end
        return false
    end,
    set = function (cid, storage, time)
        setPlayerStorageValue(cid, storage, os.time(t) + time)
    end,
    make = function (cid, storage, time)
        local exhaust = exhaustion.get(cid, storage)
        if(not exhaust) then
            exhaustion.set(cid, storage, time)
            return true
        end
        return false
    end
}
Thanks !
 
Hello , I have problem with Fire storm event mod script.. so i took script from here
(MOD) Fire Storm Event
and i get this error in TFS 0.3.6
Code:
[Error - TalkAction Interface]
[09/09/2017 01:06:32] buffer:onSay
[09/09/2017 01:06:32] Description:
[09/09/2017 01:06:32] data/lib/034-exhaustion.lua:28: field 'day' missing in date table
[09/09/2017 01:06:32] stack traceback:
[09/09/2017 01:06:32]     [C]: in function 'time'
[09/09/2017 01:06:32]     data/lib/034-exhaustion.lua:28: in function 'set'
[09/09/2017 01:06:32]     [string "loadBuffer"]:61: in function <[string "loadBuffer"]:3>
and here is my 034-exhaustion.lua
Code:
exhaustion =
{
    check = function (cid, storage)
        if(getPlayerFlagValue(cid, PLAYERFLAG_HASNOEXHAUSTION)) then
            return false
        end
        return getPlayerStorageValue(cid, storage) >= os.time(t)
    end,
    get = function (cid, storage)
        if(getPlayerFlagValue(cid, PLAYERFLAG_HASNOEXHAUSTION)) then
            return false
        end
        local exhaust = getPlayerStorageValue(cid, storage)
        if(exhaust > 0) then
            local left = exhaust - os.time(t)
            if(left >= 0) then
                return left
            end
        end
        return false
    end,
    set = function (cid, storage, time)
        setPlayerStorageValue(cid, storage, os.time(t) + time)
    end,
    make = function (cid, storage, time)
        local exhaust = exhaustion.get(cid, storage)
        if(not exhaust) then
            exhaustion.set(cid, storage, time)
            return true
        end
        return false
    end
}
Thanks !

Seems to be a recurring issue with your version. From looking to the sources it seems like Wibbenz is right in this post:
Linux - Error in console
 
Well.. What i should do ? I dont have table day
Not sure what you would have to do, I'm not too good at 0.3.6. But I do know, unfortunately a lot of issues are solved by updating your TFS version, and considering it's such a recurring issue, I would suggest it. If you're using 8.6 this is a nice one.
[8.60] The Forgotten Server 1.2
 
Rather not , i really dont like newest tfs idk why , i more like old one :)

BUMP !

BUMP
 
Last edited by a moderator:
Back
Top