MA
pedido

Script De Nao Poder Killar Levels Baixos

Por Matematheus, 31 de jul. de 2012 em Scripts

script
8
1.2k
MatematheusM
31 de julho de 2012 às 13:15

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 ^^

10279291
31 de julho de 2012 às 13:54

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/

VodkartV
31 de julho de 2012 às 13:55

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

Editado Julho 31 por Vodkart

MatematheusM
31 de julho de 2012 às 18:46

Valeu Vodkart me ajudou mt +REP pra ti !

SkyLighS
31 de julho de 2012 às 19:31

duvida sanada

reportado

HisashiitYamagutiH
01 de agosto de 2012 às 01:47

Tópico movido para Dúvidas e Pedidos Resolvidos - Scripting.

ErimythE
01 de agosto de 2012 às 03:57

Duvida Sanada.

Movido.

notle2012N
01 de agosto de 2012 às 04:27

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 :)