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

Solved How to stop database updating when player gets experience.

SlayingWorld

Active Member
Joined
Jan 23, 2014
Messages
156
Reaction score
37
Location
USA
As the title says, i want to know where exactly in the cpp file can i change to stop the server from updating my database whenever a player gains exp.

The reason i want this is because im running a war server. But i only want to gain experience while im alive, but when i die i want to go back to the default level.
 
You're going the wrong way, you could easily write few lines so player will be set to a specific level after their death.
Another way would be the "read-only"-function.
 
Last edited:
Problem is the newest TFS server will save/update the database even if i only gain 1 exp...

And i want to give experience per kill.

As long as you stay alive without dying you can gain experience by killing, once you die you will start back at the level you got the character.
 
Edit: I already put my database in read only by the way, its the first thing i went with to be honest. And it actually works, but i hate getting all those PHP updating error messages in my server console. Its gonna be pretty annoying once a lot of players start killing others, and it can end up bugging out the server.
 
Back
Top