• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved Cannot logg-off

Himii

Premium User
Premium User
Joined
Jan 19, 2011
Messages
1,268
Solutions
5
Reaction score
188
Location
Sweden
Hello!
I'm using EvoRPG V5 by Zbizu
and it's some scripts that denies you to log out when you are in a quest, i have the problem that those scripts denies you to log out all the time!

Ill show you how one of the scripts looks:
Code:
function onLogout(cid)
    if getCreatureStorage(cid, oakStorages.treeCut) > 0 and getCreatureStorage(cid, oakStorages.done) < 1 then
        doCreatureSetStorage(cid, oakStorages.treeCut, 0)
    end
    return true
end

And the error:
1zflta9.jpg

anyone got a clue?
 
Its an easy fix, but I think its weird since lua is so exteremely simple that they would use "dofile", never knew what that was for when I started, a simpler thing would be import(file).
Still I prefer to use require(file) since it checks if the files has already been loaded, and thats a thing dofile dosen't do, I think it does 1 or 2 things more but can't remember what.
 
Back
Top