- 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.
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!
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
Anyways, I am now requesting someone to fix the other part lmao, thanks!