-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
- 0 replies
- 906 views
-
- 0 replies
- 652 views
-
- 0 answers
- 784 views
-
- 0 answers
- 2497 views
-
- 0 replies
- 1423 views
-

Question
Flaah 18
Ola amigos do Xtibia, eu tenho esse Fly System que eu fiz, mais eu queria que ele não funcionasse caso estivesse um piso ou teto acima do player, caso tenha, apareceria uma mensagem falando que não pode uzar o Fly.
Script:
local aar = { [2] = {lookType = 367}, -- Teste [24] = {lookType = 367}, -- Shino [39] = {lookType = 367}, -- Shino [54] = {lookType = 367}, -- Shino [109] = {lookType = 330} -- Deidara } local aterra = { [2] = {lookType = 160}, -- Teste [24] = {lookType = 367}, -- Shino [39] = {lookType = 367}, -- Shino [54] = {lookType = 367}, -- Shino [109] = {lookType = 160} -- Deidara } function onSay(cid, words, param, channel) local oar = getCreaturePosition(cid) local oterra = getCreaturePosition(cid) if getTilePzInfo(getCreaturePosition(cid)) then return doPlayerSendCancel(cid, "O item nao tem poder em Protection Zones.") elseif getPlayerStorageValue(cid, 1635215) <= 0 then local voc_id = getPlayerVocation(cid) doSetCreatureOutfit(cid, aar[voc_id], -1) noar = {x=oar.x, y=oar.y, z=oar.z} noar.y = noar.y - 0 noar.z = noar.z - 2 doTeleportThing(cid,noar) doPlayerSendCancel(cid, "Você está voando, tome cuidado.") doSendMagicEffect(noar, CONST_ME_WATERSPLASH) setPlayerStorageValue(cid, 1635215, 1) else if getPlayerVocation(cid) > 0 then local voc_id = getPlayerVocation(cid) doSetCreatureOutfit(cid, aterra[voc_id], -1) naterra = {x=oterra.x, y=oterra.y, z=oterra.z} naterra.y = naterra.y - 0 naterra.z = naterra.z + 2 doTeleportThing(cid,naterra) doPlayerSendCancel(cid, "Você saiu do ar.") doSendMagicEffect(naterra, CONST_ME_POFF) setPlayerStorageValue(cid, 1635215, -1) end end return true endVALENDO +REP
Edited by FlaahLink to comment
https://xtibia.com/forum/topic/200917-talkactions-fly-system-help/Share on other sites
15 answers to this question
Recommended Posts