Postado Novembro 12, 2017 7 anos Olá galera do TK,gostaria que minha função fly não funciona-se no PVP Zone Minha script do fly.lua local del = {'460', '1022', '1023'} local updown = {'1', '3'} function onStepIn(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid, 17000) <= 0 then doTeleportThing(cid, topos, false) doRemoveItem(getTileThingByPos(frompos).uid, 1) if isPlayer(cid) then if getPlayerLanguage(cid) == 0 then doPlayerSendCancel(cid, "Você não pode voar.") end if getPlayerLanguage(cid) == 2 then doPlayerSendCancel(cid, "You can't fly.") end if getPlayerLanguage(cid) == 1 then doPlayerSendCancel(cid, "No se puede volar.") end end return true end if getPlayerStorageValue(cid, 17000) >= 1 then if topos.z == frompos.z then if getCreatureOutfit(cid).lookType == 316 then effect = 136 else effect = 2 end doSendMagicEffect(topos, effect) end end for x=-1,1 do for y=-1,1 do posa = {x=topos.x+x,y=topos.y+y,z=topos.z} if isInArray(del, getTileThingByPos(posa).itemid) then doRemoveItem(getTileThingByPos(posa).uid, 1) end end end for x=-1,1 do for y=-1,1 do pose = {x=frompos.x+x,y=frompos.y+y,z=frompos.z} if getTileThingByPos(pose).itemid == 0 then doCombatAreaHealth(cid, 0, pose, 0, 0, 0, CONST_ME_NONE) doCreateItem(460, 1, pose) end end end doCombatAreaHealth(cid, 0, topos, 0, 0, 0, CONST_ME_NONE) doCreateItem(460, 1, frompos) if topos.z > frompos.z then doCreateItem(1023, 1, frompos) doTransformItem(getTileThingByPos(frompos).uid, 1023) elseif topos.z < frompos.z then doCreateItem(1022, 1, frompos) doTransformItem(getTileThingByPos(frompos).uid, 1022) end return true end
Postado Outubro 10, 2018 6 anos LOL coloque isso no order.lua da pasta actions na função de fly e ride if getPlayerStorageValue(cid, 6598754) == 1 or getPlayerStorageValue(cid, 6598755) == 1 then return doPlayerSendTextMessage(cid, 20, "You can't do that while in PVP zone!") end Use esse order.lua como exemplo: https://hastebin.com/qedadesatu.rb Editado Outubro 10, 2018 6 anos por FlamesAdmin (veja o histórico de edições)
Postado Outubro 10, 2018 6 anos Aqui no TibiaKing mensagens como UP e BUMP são proibidas, utilize o botão subir este tópico. Esta é uma mensagem automática!Pedimos que leia as regras do fórum! Spoiler Here in TibiaKing messages like UP and BUMP are prohibited, use the button raise this topic. This is an automated message!Please read the forum rules. @sharen
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.