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?
how to do?
login scriptDo 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?
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
THANKS!!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![]()