function onStepIn(cid, item, position, fromPosition)
if item.itemid == 7944 then
posEnter = {x = position.x - 1, y = position.y, z = position.z}
posExit = {x = position.x + 1, y = position.y, z = position.z}
elseif item.itemid == 7946 then
posEnter = {x = position.x + 1, y = position.y, z = position.z}
posExit = {x = position.x - 1, y = position.y, z = position.z}
elseif item.itemid == 7943 then
posEnter = {x = position.x, y = position.y - 1, z = position.z}
posExit = {x = position.x, y = position.y + 1, z = position.z}
elseif item.itemid == 7945 then
posEnter = {x = position.x, y = position.y + 1, z = position.z}
posExit = {x = position.x, y = position.y - 1, z = position.z}
elseif item.itemid == 7947 then
posEnter = {x = position.x + 1, y = position.y + 1, z = position.z}
posExit = {x = position.x - 1, y = position.y - 1, z = position.z}
elseif item.itemid == 7948 then
posEnter = {x = position.x - 1, y = position.y + 1, z = position.z}
posExit = {x = position.x + 1, y = position.y - 1, z = position.z}
elseif item.itemid == 7949 then
posEnter = {x = position.x + 1, y = position.y - 1, z = position.z}
posExit = {x = position.x - 1, y = position.y + 1, z = position.z}
elseif item.itemid == 7950 then
posEnter = {x = position.x - 1, y = position.y - 1, z = position.z}
posExit = {x = position.x + 1, y = position.y + 1, z = position.z}
elseif item.itemid == 7951 then
posEnter = {x = position.x + 1, y = position.y + 1, z = position.z}
posExit = {x = position.x - 1, y = position.y - 1, z = position.z}
elseif item.itemid == 7952 then
posEnter = {x = position.x - 1, y = position.y + 1, z = position.z}
posExit = {x = position.x + 1, y = position.y - 1, z = position.z}
elseif item.itemid == 7953 then
posEnter = {x = position.x + 1, y = position.y - 1, z = position.z}
posExit = {x = position.x - 1, y = position.y + 1, z = position.z}
elseif item.itemid == 7954 then
posEnter = {x = position.x - 1, y = position.y - 1, z = position.z}
posExit = {x = position.x + 1, y = position.y + 1, z = position.z}
end
swimmingValue = 3330
swimmingOutfit = { lookType = 267, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
standardType = 3331
standardHead = 3332
standardBody = 3333
standardLegs = 3334
standardFeet = 3335
standardAddons = 3336
standardOutfit = { lookType = getPlayerStorageValue(cid, standardType), lookHead = getPlayerStorageValue(cid, standardHead), lookBody = getPlayerStorageValue(cid, standardBody), lookLegs = getPlayerStorageValue(cid, standardLegs), lookFeet = getPlayerStorageValue(cid, standardFeeet), lookAddons = getPlayerStorageValue(cid, standardAddons) }
if isPlayer(cid) == TRUE then
if (getPlayerStorageValue(cid, swimmingValue) == 1) then
doSetCreatureOutfit(cid, standardOutfit, 1)
setPlayerStorageValue(cid, swimmingValue, 0)
doTeleportThing(cid, posExit, TRUE)
else
setPlayerStorageValue(cid, standardType, getCreatureOutfit(cid).lookType)
setPlayerStorageValue(cid, standardHead, getCreatureOutfit(cid).lookHead)
setPlayerStorageValue(cid, standardBody, getCreatureOutfit(cid).lookBody)
setPlayerStorageValue(cid, standardLegs, getCreatureOutfit(cid).lookLegs)
setPlayerStorageValue(cid, standardFeet, getCreatureOutfit(cid).lookFeet)
setPlayerStorageValue(cid, standardAddons, getCreatureOutfit(cid).lookAddons)
doSetCreatureOutfit(cid, swimmingOutfit, 60000)
setPlayerStorageValue(cid, swimmingValue, 1)
doTeleportThing(cid, posEnter, TRUE)
end
end
return TRUE
end