Iae xtibia !
Hoje venho trazer um script de fly todo conheçe um fly sistema então não darei explicação
va em data / talkaction / scripts / e renome qualquer arquivo.lua para
fly
e add isso tudo la dentro:
function onSay(cid, words, param)
templo = {x= 160, y= 54, z= 7}
depot = {x= 161, y= 54, z= 7}
arena = {x= 162, y= 54, z= 7}
if (param == 'templo') then
doTeleportThing(cid,templo)
doPlayerSendTextMessage(cid, 22, "Você foi teleportado")
doSendMagicEffect(templo, CONST_ME_TELEPORT)
end
if (param == 'depot') then
doTeleportThing(cid,depot)
doPlayerSendTextMessage(cid, 22, "Você foi teleportado")
doSendMagicEffect(depot, CONST_ME_TELEPORT)
end
if (param == 'arena') then
doTeleportThing(cid,teleport)
doPlayerSendTextMessage(cid, 22, "Você foi teleportado")
doSendMagicEffect(arena, CONST_ME_TELEPORT)
end
if (param == "lugares") then
doShowTextDialog(cid,7528, "Lugares : Templo , Depot , Arena .")
return TRUE
end
if getTilePzInfo(getPlayerPosition(cid)) then
doPlayerSendTextMessage(cid, 22, "Você precisa estar em protection zone")
end
return TRUE
end
dps em talkactions.xml add essa tag la:
<talkaction words="!fly" event="script" value="fly.lua"/>
Então eu adicionei uma lista dos lugares ai dps e so o player falal
"!fly lugares" que ele ver os lugares para se teleport
Então e so isso galera
Creditos
Smartbox 99 % (Por criar)
e Saulins 1 % (Por Postar Aki No Xtibia)