Postado Abril 28, 2017 8 anos Script Mostrar conteúdo oculto function onCastSpell(cid, var) local from1,to1 = {x=1156, y=439, z=3},{x=1212, y=484, z=3} local from2,to2 = {x=1212, y=489, z=3},{x=1156, y=484, z=3} local from3,to3 = {x=1155, y=438, z=4},{x=1211, y=483, z=4} local from4,to4 = {x=1155, y=483, z=4},{x=1211, y=438, z=4} local from5,to5 = {x=663, y=1098, z=7},{x=685, y=1104, z=7} local from6,to6 = {x=965, y=1483, z=7},{x=979, y=1494, z=7} local from7,to7 = {x=1161, y=1177, z=7},{x=1167, y=1188, z=7} local Tile1 = {x=1184, y=459, z=3} -- pos onde o player sera teleportado local Tile2 = {x=1184, y=459, z=3} -- pos onde o target sera teleportado local target = getCreatureTarget(cid) local TargetPos = getCreaturePosition(target) local PlayerPos = getCreaturePosition(cid) if isInRange(PlayerPos, from1, to1) then doPlayerSendCancel(cid, "Você ja esta dentro do Kamui!") return FALSE end if isInRange(PlayerPos, from2, to2) or isInRange(PlayerPos, from3, to3) or isInRange(PlayerPos, from4, to4) or isInRange(PlayerPos, from5, to5) or isInRange(PlayerPos, from6, to6) or isInRange(PlayerPos, from7, to7) then doPlayerSendCancel(cid, "Você nao pode usar o x!") return FALSE end if getTileInfo(getThingPos(cid)).pvp then doPlayerSendCancel(cid, "Você nao pode usar o x!") return FALSE end if exhaustion.check(cid, 5570) == TRUE then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, 5570) .. " segundos para usar novamente.") return FALSE end if not isPlayer(target) then doPlayerSendCancel(cid, "Use apenas em players.") return FALSE end exhaustion.set(cid, 5570, 15) exhaustion.set(target, 5570, 15) doSendMagicEffect(PlayerPos, 196) doSendMagicEffect(TargetPos, 196) doSendMagicEffect(Tile1, 196) doSendMagicEffect(Tile2, 196) setPlayerStorageValue(cid, 5020, PlayerPos.x) setPlayerStorageValue(cid, 5021, PlayerPos.y) setPlayerStorageValue(cid, 5022, PlayerPos.z) setPlayerStorageValue(target, 5020, TargetPos.x) setPlayerStorageValue(target, 5021, TargetPos.y) setPlayerStorageValue(target, 5022, TargetPos.z) doTeleportThing(cid, Tile1) doTeleportThing(target, Tile2) return TRUE end Queria que tivesse mais tile de teleport player Exemplo local Tile1 = {x=1184, y=459, z=3} -- pos onde o player sera teleportado local Tile2 = {x=1184, y=459, z=3} -- pos onde o target sera teleportado local Tile3 = {x=1184, y=459, z=3} -- pos onde o player sera teleportado local Tile4 = {x=1184, y=459, z=3} -- pos onde o target sera teleportado local Tile5 = {x=1184, y=459, z=3} -- pos onde o player sera teleportado local Tile6 = {x=1184, y=459, z=3} -- pos onde o target sera teleportado local Tile7 = {x=1184, y=459, z=3} -- pos onde o player sera teleportado local Tile8 = {x=1184, y=459, z=3} -- pos onde o target sera teleportado e queria tambem que quando ele for para tile x apareça local Tile1 = {x=1184, y=459, z=3} --- msg ao teleport "Voçe Teleportou Para x Lugar" local Tile2 = {x=1184, y=459, z=3} local Tile3 = {x=1184, y=459, z=3} --- msg ao teleport "Voçe Teleportou Para x Lugar" local Tile4 = {x=1184, y=459, z=3} local Tile5 = {x=1184, y=459, z=3} --- msg ao teleport "Voçe Teleportou Para x Lugar" local Tile6 = {x=1184, y=459, z=3} local Tile7 = {x=1184, y=459, z=3} --- msg ao teleport "Voçe Teleportou Para x Lugar" local Tile8 = {x=1184, y=459, z=3} O rei de seu proprio destino é aquele que luta pela gloria do amanhã! Discord : ZoR#9373
Postado Abril 29, 2017 8 anos posta o script fi ou é só colocar uma doPlayerSendTextMessage(cid, " MENSAGEM ") depois do doteleporthing de cada tile XD, e a mensagem você pode configurar é so ver la na lib quais tem, ex: laranja, branca, azul etc Scriptszinhos: Mostrar conteúdo oculto [CREATURESCRIPT] Auto TP depois de matar boss [ACTION] Clean Area [TALKACTION] !FelizAnoNovo [ACTION + MOVEMENT] Cartas ao GOD [CREATURESCRIPT] Always Emblem System [ACTION] Anihi simples [TALKACTIONS] Urinar / fazer xixi Não abandone seu tópico, quando você tiver a dúvida resolvida sozinho tente ensinar aos outros como resolve-la (você pode não ser o único com o problema) e quando ela for resolvida por outra pessoa não se esqueça de marcar como melhor resposta e deixar o gostei.
Postado Abril 29, 2017 8 anos Autor Em 29/04/2017 em 16:05, pablobion disse: posta o script fi ou é só colocar uma doPlayerSendTextMessage(cid, " MENSAGEM ") depois do doteleporthing de cada tile XD, e a mensagem você pode configurar é so ver la na lib quais tem, ex: laranja, branca, azul etc o script ja ta ali '-' ta escrito script '=' Mostrar conteúdo oculto function onCastSpell(cid, var) local from1,to1 = {x=1156, y=439, z=3},{x=1212, y=484, z=3} local from2,to2 = {x=1212, y=489, z=3},{x=1156, y=484, z=3} local from3,to3 = {x=1155, y=438, z=4},{x=1211, y=483, z=4} local from4,to4 = {x=1155, y=483, z=4},{x=1211, y=438, z=4} local from5,to5 = {x=663, y=1098, z=7},{x=685, y=1104, z=7} local from6,to6 = {x=965, y=1483, z=7},{x=979, y=1494, z=7} local from7,to7 = {x=1161, y=1177, z=7},{x=1167, y=1188, z=7} local Tile1 = {x=1184, y=459, z=3} -- pos onde o player sera teleportado local Tile2 = {x=1184, y=459, z=3} -- pos onde o target sera teleportado local target = getCreatureTarget(cid) local TargetPos = getCreaturePosition(target) local PlayerPos = getCreaturePosition(cid) if isInRange(PlayerPos, from1, to1) then doPlayerSendCancel(cid, "Você ja esta dentro do Kamui!") return FALSE end if isInRange(PlayerPos, from2, to2) or isInRange(PlayerPos, from3, to3) or isInRange(PlayerPos, from4, to4) or isInRange(PlayerPos, from5, to5) or isInRange(PlayerPos, from6, to6) or isInRange(PlayerPos, from7, to7) then doPlayerSendCancel(cid, "Você nao pode usar o x!") return FALSE end if getTileInfo(getThingPos(cid)).pvp then doPlayerSendCancel(cid, "Você nao pode usar o x!") return FALSE end if exhaustion.check(cid, 5570) == TRUE then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, 5570) .. " segundos para usar novamente.") return FALSE end if not isPlayer(target) then doPlayerSendCancel(cid, "Use apenas em players.") return FALSE end exhaustion.set(cid, 5570, 15) exhaustion.set(target, 5570, 15) doSendMagicEffect(PlayerPos, 196) doSendMagicEffect(TargetPos, 196) doSendMagicEffect(Tile1, 196) doSendMagicEffect(Tile2, 196) setPlayerStorageValue(cid, 5020, PlayerPos.x) setPlayerStorageValue(cid, 5021, PlayerPos.y) setPlayerStorageValue(cid, 5022, PlayerPos.z) setPlayerStorageValue(target, 5020, TargetPos.x) setPlayerStorageValue(target, 5021, TargetPos.y) setPlayerStorageValue(target, 5022, TargetPos.z) doTeleportThing(cid, Tile1) doTeleportThing(target, Tile2) return TRUE end O rei de seu proprio destino é aquele que luta pela gloria do amanhã! Discord : ZoR#9373
Postado Abril 29, 2017 8 anos Mostrar conteúdo oculto function onCastSpell(cid, var) local from1,to1 = {x=1156, y=439, z=3},{x=1212, y=484, z=3} local from2,to2 = {x=1212, y=489, z=3},{x=1156, y=484, z=3} local from3,to3 = {x=1155, y=438, z=4},{x=1211, y=483, z=4} local from4,to4 = {x=1155, y=483, z=4},{x=1211, y=438, z=4} local from5,to5 = {x=663, y=1098, z=7},{x=685, y=1104, z=7} local from6,to6 = {x=965, y=1483, z=7},{x=979, y=1494, z=7} local from7,to7 = {x=1161, y=1177, z=7},{x=1167, y=1188, z=7} local Tile1 = {x=1184, y=459, z=3} local Tile2 = {x=1184, y=459, z=3} local Tile3 = {x=1184, y=459, z=3} local Tile4 = {x=1184, y=459, z=3} --- posições local Tile5 = {x=1184, y=459, z=3} local Tile6 = {x=1184, y=459, z=3} local msg = " DIGITE SUA MENSAGEM AQUI " --- mensagem depois de ser teleportado local target = getCreatureTarget(cid) local TargetPos = getCreaturePosition(target) local PlayerPos = getCreaturePosition(cid) if isInRange(PlayerPos, from1, to1) then doPlayerSendCancel(cid, "Você ja esta dentro do Kamui!") return FALSE end if isInRange(PlayerPos, from2, to2) or isInRange(PlayerPos, from3, to3) or isInRange(PlayerPos, from4, to4) or isInRange(PlayerPos, from5, to5) or isInRange(PlayerPos, from6, to6) or isInRange(PlayerPos, from7, to7) then doPlayerSendCancel(cid, "Você nao pode usar o x!") return FALSE end if getTileInfo(getThingPos(cid)).pvp then doPlayerSendCancel(cid, "Você nao pode usar o x!") return FALSE end if exhaustion.check(cid, 5570) == TRUE then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, 5570) .. " segundos para usar novamente.") return FALSE end if not isPlayer(target) then doPlayerSendCancel(cid, "Use apenas em players.") return FALSE end exhaustion.set(cid, 5570, 15) exhaustion.set(target, 5570, 15) doSendMagicEffect(PlayerPos, 196) doSendMagicEffect(TargetPos, 196) doSendMagicEffect(Tile1, 196) doSendMagicEffect(Tile2, 196) setPlayerStorageValue(cid, 5020, PlayerPos.x) setPlayerStorageValue(cid, 5021, PlayerPos.y) setPlayerStorageValue(cid, 5022, PlayerPos.z) setPlayerStorageValue(target, 5020, TargetPos.x) setPlayerStorageValue(target, 5021, TargetPos.y) setPlayerStorageValue(target, 5022, TargetPos.z) doTeleportThing(cid, Tile1) doPlayerSendTextMessage(cid, 22, msg) doTeleportThing(target, Tile2) doPlayerSendTextMessage(cid, 22, msg) doTeleportThing(target, Tile3) doPlayerSendTextMessage(cid, 22, msg) doTeleportThing(target, Tile4) doPlayerSendTextMessage(cid, 22, msg) doTeleportThing(target, Tile5) doPlayerSendTextMessage(cid, 22, msg) doTeleportThing(target, Tile6) doPlayerSendTextMessage(cid, 22, msg) return TRUE end obs: não testei e talvez tenha que criar uma tabela com as pos porque tem mt variavel KKK Scriptszinhos: Mostrar conteúdo oculto [CREATURESCRIPT] Auto TP depois de matar boss [ACTION] Clean Area [TALKACTION] !FelizAnoNovo [ACTION + MOVEMENT] Cartas ao GOD [CREATURESCRIPT] Always Emblem System [ACTION] Anihi simples [TALKACTIONS] Urinar / fazer xixi Não abandone seu tópico, quando você tiver a dúvida resolvida sozinho tente ensinar aos outros como resolve-la (você pode não ser o único com o problema) e quando ela for resolvida por outra pessoa não se esqueça de marcar como melhor resposta e deixar o gostei.
Postado Abril 29, 2017 8 anos Autor Em 29/04/2017 em 16:20, pablobion disse: Mostrar conteúdo oculto Mostrar conteúdo oculto function onCastSpell(cid, var) local from1,to1 = {x=1156, y=439, z=3},{x=1212, y=484, z=3} local from2,to2 = {x=1212, y=489, z=3},{x=1156, y=484, z=3} local from3,to3 = {x=1155, y=438, z=4},{x=1211, y=483, z=4} local from4,to4 = {x=1155, y=483, z=4},{x=1211, y=438, z=4} local from5,to5 = {x=663, y=1098, z=7},{x=685, y=1104, z=7} local from6,to6 = {x=965, y=1483, z=7},{x=979, y=1494, z=7} local from7,to7 = {x=1161, y=1177, z=7},{x=1167, y=1188, z=7} local Tile1 = {x=1184, y=459, z=3} local Tile2 = {x=1184, y=459, z=3} local Tile3 = {x=1184, y=459, z=3} local Tile4 = {x=1184, y=459, z=3} --- posições local Tile5 = {x=1184, y=459, z=3} local Tile6 = {x=1184, y=459, z=3} local msg = " DIGITE SUA MENSAGEM AQUI " --- mensagem depois de ser teleportado local target = getCreatureTarget(cid) local TargetPos = getCreaturePosition(target) local PlayerPos = getCreaturePosition(cid) if isInRange(PlayerPos, from1, to1) then doPlayerSendCancel(cid, "Você ja esta dentro do Kamui!") return FALSE end if isInRange(PlayerPos, from2, to2) or isInRange(PlayerPos, from3, to3) or isInRange(PlayerPos, from4, to4) or isInRange(PlayerPos, from5, to5) or isInRange(PlayerPos, from6, to6) or isInRange(PlayerPos, from7, to7) then doPlayerSendCancel(cid, "Você nao pode usar o x!") return FALSE end if getTileInfo(getThingPos(cid)).pvp then doPlayerSendCancel(cid, "Você nao pode usar o x!") return FALSE end if exhaustion.check(cid, 5570) == TRUE then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, 5570) .. " segundos para usar novamente.") return FALSE end if not isPlayer(target) then doPlayerSendCancel(cid, "Use apenas em players.") return FALSE end exhaustion.set(cid, 5570, 15) exhaustion.set(target, 5570, 15) doSendMagicEffect(PlayerPos, 196) doSendMagicEffect(TargetPos, 196) doSendMagicEffect(Tile1, 196) doSendMagicEffect(Tile2, 196) setPlayerStorageValue(cid, 5020, PlayerPos.x) setPlayerStorageValue(cid, 5021, PlayerPos.y) setPlayerStorageValue(cid, 5022, PlayerPos.z) setPlayerStorageValue(target, 5020, TargetPos.x) setPlayerStorageValue(target, 5021, TargetPos.y) setPlayerStorageValue(target, 5022, TargetPos.z) doTeleportThing(cid, Tile1) doPlayerSendTextMessage(cid, 22, msg) doTeleportThing(target, Tile2) doPlayerSendTextMessage(cid, 22, msg) doTeleportThing(target, Tile3) doPlayerSendTextMessage(cid, 22, msg) doTeleportThing(target, Tile4) doPlayerSendTextMessage(cid, 22, msg) doTeleportThing(target, Tile5) doPlayerSendTextMessage(cid, 22, msg) doTeleportThing(target, Tile6) doPlayerSendTextMessage(cid, 22, msg) return TRUE end obs: não testei e talvez tenha que criar uma tabela com as pos porque tem mt variavel KKK bom ele nao teleporta para essas posiçoes local Tile3 = {x=1184, y=459, z=3} local Tile4 = {x=1184, y=459, z=3} --- posições local Tile5 = {x=1184, y=459, z=3} local Tile6 = {x=1184, y=459, z=3} tem como adicionar mais desses local from1,to1 = {x=1579, y=283, z=7},{x=1710, y=360, z=7} local from2,to2 = {x=1579, y=362, z=7},{x=1706, y=281, z=7} local from3,to3 = {x=1580, y=284, z=6},{x=1711, y=361, z=7} local from4,to4 = {x=1580, y=363, z=6},{x=1707, y=282, z=6} local from5,to5 = {x=1581, y=285, z=5},{x=1712, y=362, z=5} local from6,to6 = {x=1708, y=283, z=5},{x=1581, y=364, z=5} local from7,to7 = {x=1161, y=1177, z=7},{x=1167, y=1188, z=7} ------------------- local from1,to1 = {x=1579, y=283, z=7},{x=1710, y=360, z=7} local from2,to2 = {x=1579, y=362, z=7},{x=1706, y=281, z=7} local from3,to3 = {x=1580, y=284, z=6},{x=1711, y=361, z=7} local from4,to4 = {x=1580, y=363, z=6},{x=1707, y=282, z=6} local from5,to5 = {x=1581, y=285, z=5},{x=1712, y=362, z=5} local from6,to6 = {x=1708, y=283, z=5},{x=1581, y=364, z=5} local from7,to7 = {x=1161, y=1177, z=7},{x=1167, y=1188, z=7} ------------------- local from1,to1 = {x=1579, y=283, z=7},{x=1710, y=360, z=7} local from2,to2 = {x=1579, y=362, z=7},{x=1706, y=281, z=7} local from3,to3 = {x=1580, y=284, z=6},{x=1711, y=361, z=7} local from4,to4 = {x=1580, y=363, z=6},{x=1707, y=282, z=6} local from5,to5 = {x=1581, y=285, z=5},{x=1712, y=362, z=5} local from6,to6 = {x=1708, y=283, z=5},{x=1581, y=364, z=5} local from7,to7 = {x=1161, y=1177, z=7},{x=1167, y=1188, z=7} O rei de seu proprio destino é aquele que luta pela gloria do amanhã! Discord : ZoR#9373
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.