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

Players cannot attack each other

Vyperhate

New Member
Joined
Dec 12, 2011
Messages
21
Reaction score
0
Really stumped by this... On my server players get the "Turn off secure mode" message when trying to attack each other even though secure mode IS off.

I tried loading up a different server with entirely clean unmodified files and they STILL cannot attack each other. The world type is PVP and players from different IP addresses (several not even in the same state as me) all have the same issue.

However just a day before people could attack each other no problem. It just stopped working for seemingly no reason whatsoever.

Any ideas? How the heck could this happen even with totally different servers? What should I look at? The only thing I can think of is that they both connect to the same database. Though I don't see how that would be relevant.
 
Last edited:
There's (almost certainly) a field in your DB somewhere that remembers the "secure mode" status, and a script that uses that value to set it.

Quick verification test: hook your server up to a freshly-created set of DBs and see if you get the same problem.

If you do, check:
1. Where you think secure mode is set (in a startup script maybe?)
2. The Lua code for any PvP related addon (this isn't likely to be an OT bug) - look very closely at any function call that changes PvP mode, and any "db.query" that seems to be looking for a PvP status value.
3. Look at the column names for any promising-looking tables in the database

You'd expect to see the startup scripts setting Secure Mode off, and a PvP script running later (possibly quite often) that checks the data base and sets Secure Mode to whatever the database says.

Looking at the DB directly might sound a bit crazy, but assuming the tables and columns are named well it might be the fastest approach. The server code is good that way, so anything weird is probably an addon :)
 
Last edited:
Check config.lua and see if you enabled attack players with same feet.
If thats the case, turn it off, or chanfe outfit color xD
 

Similar threads

  • Question Question
RevScripts BLOCK MC PVP
Replies
4
Views
658
Back
Top