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

Every player to jump in the water to be teleported

Morcega Negra

Banned User
Joined
Aug 4, 2015
Messages
102
Solutions
1
Reaction score
8
Every player to stay with the swimmer's outfit, or to jump in the water sqm be teleported to a location X.
how to do?
 
Do you want a movement tile..? an onThink function..? Login script? What TFS?
 
Every player to stay with the swimmer's outfit, or to jump in the water sqm be teleported to a location X.
how to do?
Code:
local c = {
    temple = false, -- set this to true if you want them sent to the temple
    location = {x = 0, y = 0, z = 0 }, -- location to send them to if temple is set to false
    outfit = {lookType = 267, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
}

function onLogin(cid)
    if(hasCondition(cid, CONDITION_OUTFIT) and getCreatureOutfit(cid).lookType == c.outfit.lookType) then
        local pos = {}
        if c.temple then
            pos = getTownTemplePosition(getPlayerTown(cid))
        else
            pos = c.location
        end
        doTeleportThing(cid, pos, true)
        doSendMagicEffect(pos, CONST_ME_TELEPORT)  
    end
    return true
end

Edit: I always forget something :p
 
Last edited:
Code:
local c = {
    temple = false, -- set this to true if you want them sent to the temple
    location = {x = 0, y = 0, z = 0 }, -- location to send them to if temple is set to false
    outfit = {lookType = 267, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
}

function onLogin(cid)
    if(hasCondition(cid, CONDITION_OUTFIT) and getCreatureOutfit(cid).lookType == c.outfit.lookType) then
        local pos = {}
        if c.temple then
            pos = getTownTemplePosition(getPlayerTown(cid))
        else
            pos = c.location
        end
        doTeleportThing(cid, pos, true)
        doSendMagicEffect(pos, CONST_ME_TELEPORT) 
    end
    return true
end

Edit: I always forget something :p
THANKS!!
 
Back
Top