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

othire npcs

Eldora

Banned User
Joined
Oct 19, 2009
Messages
604
Reaction score
26
I tried to add all my "avesta" npcs to the othire "npc" folder.
It did not work as planned, none of the npcs will load.

Why is that? can someone share their npcs or tell me how to convert them to work with othire?
 
Solution
There is no frequent server save script.
How can i enable frequest server save? like every 15 mins. (Saving both players and houses)

Add this script in globalevents
Lua:
function onThink(interval)
    doSaveServer(false) -- true = pay houses
    return true
end

Then declare it in globalevents.xml and set whatever interval you want
I tried to add all my "avesta" npcs to the othire "npc" folder.
It did not work as planned, none of the npcs will load.

Why is that? can someone share their npcs or tell me how to convert them to work with othire?

simply change your othire npc folder for this one bro
peonso/tibialegacyserver
you shouldn't have problem at all
Good luck C:
 
Last edited:
xampp , universer it doest not matter you have to add some tables to your database check at tutorials sections znote acc tables
 
xampp , universer it doest not matter you have to add some tables to your database check at tutorials sections znote acc tables

There is no frequent server save script.
How can i enable frequest server save? like every 15 mins. (Saving both players and houses)
 
I have this one in place for test, it is every 8 minutes:

In the globalevents folder, a lua called everyeightminutes:


Lua:
local shutdownAtServerSave = false
local function serverSave()
    if shutdownAtServerSave then
        doSetGameState(GAME_STATE_CLOSED)
        doSaveServer(true)
        doSetGameState(GAME_STATE_SHUTDOWN)
    else
        doSetGameState(GAME_STATE_NORMAL)
        doSaveServer(true)
        doSetGameState(GAME_STATE_NORMAL)
    end
end
local function secondServerSaveWarning()
   
    addEvent(serverSave, 60000)
end
local function firstServerSaveWarning()
   
    addEvent(secondServerSaveWarning, 120000)
end
function onThink(interval)
   
    doSetGameState(GAME_STATE_NORMAL)
    addEvent(firstServerSaveWarning, 120000)
    return true
end

In the globalevents xml file add this line:

Code:
<globalevent name="yourserversave" interval="480000" script="everyeightminutes.lua"/>

Good luck!
 
There is no frequent server save script.
How can i enable frequest server save? like every 15 mins. (Saving both players and houses)

Add this script in globalevents
Lua:
function onThink(interval)
    doSaveServer(false) -- true = pay houses
    return true
end

Then declare it in globalevents.xml and set whatever interval you want
 
Solution
Then you did not do it right

Yes i did it right.

Created a .lua file called timedsave.lua with the code:
Lua:
function onThink(interval)
    doSaveServer(false) -- true = pay houses
    return true
end

then added: <globalevent name="timedsave" time="60000" script="timedsave.lua"/> to globalevents.xml
 
Back
Top