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

[Request] Swimming

Chris

Inactive
Senator
Joined
Aug 11, 2008
Messages
2,628
Solutions
2
Reaction score
240
I just downloaded the latest TFS a few hours ago, and I just noticed that the current swimming system is really bugged lmao. It works like a charm for us humans, but for creatures, it doesn't. First of all it allows creatures to swim aswell, AND it changes its outfit to the swimming one.

I was able to fix the change outfit thingy, however they may still walk around at the water.

Code:
local outfit =
    {
        lookType = 267,
        lookHead = 0,
        lookBody = 0,
        lookLegs = 0,
        lookFeet = 0,
        lookAddons = 0
    }

function onStepIn(cid, item, position, fromPosition)
   [B] if isPlayer(cid) == 1 then[/B]
    doSetCreatureOutfit(cid, outfit, -1)
    [B]end[/B]
end

function onStepOut(cid, item, position, fromPosition)
    [B]if isPlayer(cid) == 1 then[/B]
    doRemoveCondition(cid, CONDITION_OUTFIT)
    [B]end[/B]
end
The bold lines is what I edited to remove the outfit change for creatures if someone would like to know.

Anyways, I am now requesting someone to fix the other part lmao, thanks!
 
Back
Top