Ir para conteúdo
Banner com Efeitos

Featured Replies

Postado

Olá pessoal boa tarde, gostaria de sabe se existe uma forma de atribui protection a chars individuais em um mundo pvp,

Se alguém souber.

Desde já

Grato!

Postado

ProtectedPlayer.lua



--###################################

--##    Developed by: MaXwEllDeN   ##

--##    Contact:				   ##

--##	    [email protected]   ##

--###################################


local config = {

	    enable = true, -- O Sistema está ativo? true para sim, false para não.

	    players = {"Apsami", "Lord'Paulistinha"}, -- Nome dos players que estão protegidos.

}


function onCombat(cid, target)

	    if config.enable and isInArray(config.players, getCreatureName(target)) then

			    return false

	    end


	    return true

end


function onAttack(cid, target)

	    if config.enable and isInArray(config.players, getCreatureName(target)) then

			    doPlayerSendCancel(cid, "Você não pode atacar ".. getCreatureName(target))

			    return false

	    end


	    return true

end




<event type = "attack" name = "ProteAttack" event = "script" value = "ProtectedPlayer.lua" />

<event type = "attack" name = "ProteCombat" event = "script" value = "ProtectedPlayer.lua" />

Abra o login.lua e antes do último return true ponha isso:

registerCreatureEvent(cid, "ProteAttack")

registerCreatureEvent(cid, "ProteCombat")

-"Supra Omnes Lux Lucis"

- Acima de todos brilha a Luz -

5VGnDyBz.png

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo