creaturescript/script
nome do seu script.lua
function onCombat(cid, target) if isPlayer(cid) and isPlayer(target) then if getPlayerVocation(cid) < 9 and getPlayerVocation(target) > 8 or getPlayerVocation(cid) > 8 and getPlayerVocation(target) < 9 then doPlayerSendCancel(cid, "You may not attack.") return false end end return true end
login.lua adc :
registerCreatureEvent(cid, "VocationAttack")
tag:
<event type="combat" name="VocationAttack" event="script" value="nome do seu script.lua"/>




info
Grupo: Campones
Registrado: 27/06/10
Posts: 61
Reputação: 0
Char no Tibia: Jean Dappg
Ola galera do xtibia
Hoje venho aqui perdir um script que é o seguinte
No meu servidor tem 20 vocations
Sendo que eu queria que tipo vocation id 8 - só pode-se se ataca e não pode-se ataca 9+ e 9 + não pode-se atacar 8-
Explicando de outra forma--
Vocations:1,2,3,4,5,6,7 e 8 pode se matar porem elas não podem ser atacadas pela 9,10,11,12,13,14,15,16,17,18 e 20 e visse versa.