function onCombat(cid, target)
if isPlayer(cid) and isPlayer(target) then
if getPlayerVocation(cid) == getPlayerVocation(target) then
doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUMAYNOTATTACKTHISPLAYER), return false
end
end
return true
end
Script de vodkart







info
Grupo: Campones
Registrado: 04/02/12
Posts: 82
Reputação: +5
Queria um sistema que fizesse com que certa voc, não possa ser atacada pelas suas promotions, e as promotions não possam atacar as anteriores, mas pudessem atacar normalmente uma voc diferente. Exemplo:
Druid -> não pode atacar <- Elder druid
Druid e Elder Druid -> podem atacar <- Knight e Elite Knight
Sendo assim, existiria as team de druid, kina, pala etc.
É possivel um script assim?