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

TFS 0.X PVP Enforced

n3crozzy

Member
Joined
Apr 23, 2021
Messages
48
Reaction score
14
Hello everyone! đź‘‹

I have an Open Tibia Server 7.72 (OTX 0.3.7) and I would like to set PVP Enforced, which is the mode where players can fight each other and also receive experience for killing another player. However, I have a problem – I can’t set PVP Enforced in a way that players get experience for killing another player.

Currently, I have tried to configure the appropriate settings in config.lua, but I haven’t been able to achieve the desired effect.

LUA:
worldType = "Hardcore"
experienceStages = true
rateExperienceFromPlayers = 8
    -- Experience from players
    minLevelThresholdForKilledPlayer = 0
    maxLevelThresholdForKilledPlayer = 0

However, the player does not receive experience after killing another player.

Could someone help me set up PVP Enforced in such a way that:
  • Players can fight each other,
  • They receive experience for killing another player,
  • The experience is shared between the players who dealt damage to the same target?"
If anyone has experience with this, I would greatly appreciate help or tips regarding script modifications.

Thank you in advance for your help! 🙏
 
The XP gain mode for kills is working. I messed things up.

Damn, I have one serious problem related to the server restarting on its own.
It's about global save, shutdown, and restarting the server.
It shuts down the server but doesn’t restart it. The same goes for the /reload all command—it appears to be executed, but it doesn’t do anything.
It's very frustrating because I have to manually shut down the server every time.
If fixing the reload is too much work, a simple quick restart command would be enough.
I have no idea if I can currently expand on this topic in this thread?
 
Last edited:
Hello, A level 16 player who kills a level 14 player gets no experience. I have the ranges set to 0.
I think range set 0 mean it even if the two player at the same level killing each other will not gain any exp you should make the range wider like 100 maximum between the two characters for example

if player1 level 10 killed player2 level 50 he will gain exp because it is in level 100 range
 
Back
Top