No Xtibia tem um script parecido só que ele da punição se isso acontecer.
Link : http://www.xtibia.com/forum/topic/161111-creature-script-anti-power-abuser/
info
Group: Artesão
Joined: 20/04/10
Posts: 109
Reputation: +23
Tibia Character: Charles Mil

No Xtibia tem um script parecido só que ele da punição se isso acontecer.
Link : http://www.xtibia.com/forum/topic/161111-creature-script-anti-power-abuser/
info
Group: Herói
Joined: 20/05/10
Posts: 3.4k
Reputation: +1.5k
Gender: Masculino

tenta
function onCombat(cid, target) local MaxDifLevel = 50 if isPlayer(cid) and isPlayer(target) and math.abs(getPlayerLevel(cid) - getPlayerLevel(target)) > MaxDifLevel then doPlayerSendCancel(cid, "You may not attack your team mates.") return false end return true end
local MaxDifLevel = 50 é a diferença de lvl pra atacar o jogador
Edited Julho 31 by Vodkart
info
Group: Campones
Joined: 25/07/12
Posts: 73
Reputation: +12

Valeu Vodkart me ajudou mt +REP pra ti !
info
Group: Lorde
Joined: 22/07/12
Posts: 2.2k
Reputation: +453
Tibia Character: Kissy

duvida sanada
reportado
info
Group: Conde
Joined: 17/07/11
Posts: 705
Reputation: +108

Tópico movido para Dúvidas e Pedidos Resolvidos - Scripting.
info
Group: Conde
Joined: 12/11/08
Posts: 520
Reputation: +73
Gender: Masculino

Duvida Sanada.
Movido.
info
Group: Conde
Joined: 03/01/12
Posts: 884
Reputation: +233
Tibia Character: Segredo

tenta
function onCombat(cid, target) local MaxDifLevel = 50 if isPlayer(cid) and isPlayer(target) and math.abs(getPlayerLevel(cid) - getPlayerLevel(target)) > MaxDifLevel then doPlayerSendCancel(cid, "You may not attack your team mates.") return false end return true end
local MaxDifLevel = 50 é a diferença de lvl pra atacar o jogador
da hora usa aqui ![]()
info
Group: Campones
Joined: 25/07/12
Posts: 73
Reputation: +12
Estou precisando de um script que tem um limite tipo level 800 nao pode mata um level 300 ou 200, mais sendo que tipo do 100 a 500 podem se matar, mais um level 600 800 n pode ;x, quem souber um script +REP ^^