• 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 Swimming removes PZ lock

Helga

GZH
Joined
Feb 19, 2009
Messages
622
Reaction score
1
Location
Sweden
Hello!

I am using rev 3118 TFS 0.3.
If you kill someone or whatever, and take pz-lock, and then jump in to the water and swim, you will lose your pz-lock and can logout.

Do I have to put pz into the water? Or is there an easier way? Like edit the source/swimming lua files to check for pz lock before sending the player to the water?

Thanks in advance!
 
Last edited:
Det blir lättare om du lägger pz där. Tror jag istället för att pilla där inne i Source/swimming.lua.

Ge rep så ger jag tillbaks
 
Det blir lättare om du lägger pz där. Tror jag istället för att pilla där inne i Source/swimming.lua.

Ge rep så ger jag tillbaks

Since I don't know where all these swimming places are at, it would be easier to just add one single line to the source file.

remove this area i think its in darashia and put normal water :p
There are a lot more places, like Fibula, Meriana... And more places that I don't know of which can be abused.
 
Since I don't know where all these swimming places are at, it would be easier to just add one single line to the source file.


There are a lot more places, like Fibula, Meriana... And more places that I don't know of which can be abused.


But Tell all player if they found a swimming water hey gonna report it ;)
 
I had a look at swimming.lua, and found the following:

Code:
doRemoveConditions(cid, true)

From my understanding, this removes ALL conditions, including battle.

My suggestion is to either remove it completely, which would result in the "hop into water" function not removing any conditions whatsoever.
Or you change it into a list with:

Code:
doRemoveCondition(cid, type[, subId])

In which you specify all the conditions you wish to remove, burning, paralyzed, energized, etc...

Lua:
CONDITION_NONE = 0
CONDITION_POISON = 1
CONDITION_FIRE = 2
CONDITION_ENERGY = 4
CONDITION_PHYSICAL = 8
CONDITION_HASTE = 16
CONDITION_PARALYZE = 32
CONDITION_OUTFIT = 64
CONDITION_INVISIBLE = 128
CONDITION_LIGHT = 256
CONDITION_MANASHIELD = 512
CONDITION_INFIGHT = 1024
CONDITION_DRUNK = 2048
CONDITION_EXHAUST = 4096
CONDITION_FOOD = 8192
CONDITION_REGENERATION = 8192
CONDITION_SOUL = 16384
CONDITION_DROWN = 32768
CONDITION_MUTED = 65536
CONDITION_ATTRIBUTES = 131072
CONDITION_FREEZING = 262144
CONDITION_DAZZLED = 524288
CONDITION_CURSED = 1048576
CONDITION_PACIFIED = 2097152
CONDITION_GAMEMASTER = 4194304
CONDITION_HUNTING = 8388608
 
thanks a lot Rexxar!

see, much easier than edit the map ;P

I guess you just need to remove:
CONDITION_HASTE = 16
CONDITION_OUTFIT = 64
CONDITION_INVISIBLE = 128
 
Last edited:
thanks a lot Rexxar!

see, much easier than edit the map ;P

I guess you just need to remove:
CONDITION_HASTE = 16
CONDITION_OUTFIT = 64
CONDITION_INVISIBLE = 128


Code:
doRemoveCondition(cid, CONDITION_HASTE)
doRemoveCondition(cid, CONDITION_OUTFIT)
doRemoveCondition(cid, CONDITION_INVISIBLE)

Simple.
 
Back
Top