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

MyACC How can i make my highscores update faster

henkas

Well-Known Member
Joined
Jul 8, 2015
Messages
1,067
Solutions
5
Reaction score
63
Hello,
im using older myacc version and please dont say just update your myacc. Answer is i cant. But is it possible to make my highscores load faster because now it updates only if server saves so it can be only every one hour or more. Dream is to update it instantly or at least every few minutes. TFS 1.2
MyACC 0.7.9

 
Wouldn't it be related more to your server than the website? Because the characters data isnt being sent all the time to the database. As far as I've seen while testing my small server, the characters are saved on logout/death and now as you mentioned, server save.

I'm not familiar with all the website structure, but the file you shared hold only the queries to the databases, meaning they actually run every time you refresh the page, it's just that the players data haven't been updated on the database.
 
Wouldn't it be related more to your server than the website? Because the characters data isnt being sent all the time to the database. As far as I've seen while testing my small server, the characters are saved on logout/death and now as you mentioned, server save.

I'm not familiar with all the website structure, but the file you shared hold only the queries to the databases, meaning they actually run every time you refresh the page, it's just that the players data haven't been updated on the database.
So how to update them on the database it could be every skill advance too it would solve everything if it wont cause any lags
 
Try

 
Try

This guy have same myacc version and you can see solution is not possible because of version its possible only in latest myacc
 
So how to update them on the database it could be every skill advance too it would solve everything if it wont cause any lags

This thread in another Tibia forum from brazil might give you some hints. There is a lua function that saves your character.

You might want to take a loot at what the "doSavePlayer" function is calling in the source code and implement it when your characters level up/skill up.
Or you just use the script and tell your users to use the talk action to appear on the highscores.
 
This thread in another Tibia forum from brazil might give you some hints. There is a lua function that saves your character.

You might want to take a loot at what the "doSavePlayer" function is calling in the source code and implement it when your characters level up/skill up.
Or you just use the script and tell your users to use the talk action to appear on the highscores.
Using talkactions is kinda 2004 years old stuff. About implementing doSavePlayer on skill advance/level up wouldnt it cause like a huge lag with bigger amount of player base?
 
Using talkactions is kinda 2004 years old stuff. About implementing doSavePlayer on skill advance/level up wouldnt it cause like a huge lag with bigger amount of player base?
I didnt tell you to use it. I told you to look how it is implemented and do your thing.
And I wouldnt worry about huge lag spikes because your players are constantly dying and/or logging off, plus, it's not like 300 players are going to level up at the exact same time isnt it?
 
I didnt tell you to use it. I told you to look how it is implemented and do your thing.
And I wouldnt worry about huge lag spikes because your players are constantly dying and/or logging off, plus, it's not like 300 players are going to level up at the exact same time isnt it?
Actually it is possibility if everyone levels up because of events and similar shit
 
Wouldn’t recommend doSavePlayer


As you said, reloads will happen only in server saves, so u need make server save often or update ur aac 😁 (Ik u said you will not, but maybe it’s the solution)
 
Wouldn’t recommend doSavePlayer


As you said, reloads will happen only in server saves, so u need make server save often or update ur aac 😁 (Ik u said you will not, but maybe it’s the solution)
But is there a way to save player without using doSavePlayer?
 
My bad, I wouldn't recommend doSavePlayer via talkaction. You should add it to player advance or something like that. Found this:

LUA:
local config = {
    savePlayersOnAdvance = true
}

function onAdvance(cid, skill, oldLevel, newLevel)
    if(config.savePlayersOnAdvance) then
        Player(cid):save()
    end
    return true
end
 
Back
Top