Postado Fevereiro 6, 2016 9 anos Olá, preciso adicionar uma verificação nesse código: if (getPlayerLevel(target) > getPlayerLevel(cid)) then Quero verificar se o Player (target) está em área PVP.
Postado Fevereiro 6, 2016 9 anos Então, não entendi muito bem qual o sentido de 'analisar' esta informação. Mas ela pode ser feita assim: Spoiler function getTileZoneInfo(pos) local tmp = getTileInfo(pos) if(tmp.pvp) then tileInfo = "pvp" end if(tmp.nopvp) then tileInfo = "noPvP" end end if tileInfo == "pvp" then if (getPlayerLevel(target) > getPlayerLevel(cid)) then end end Veja se supre o que precisa. The Last Man Standing - 100% funcional
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.