
Obelivion
Membro
-
Registro em
-
Última visita
Histórico de Curtidas
-
Obelivion deu reputação a Wise em Ajuda com Script GaleraTenta aí:
function onAttack(cid, target) local n = {'[Alliance]', '[Horda]'} if not isPlayer(target) then return true end if getCreatureName(cid):find(n[1]) or getCreatureName(cid):find(n[2]) then if getCreatureName(cid):find(n[1]) and getCreatureName(target):find(n[1]) or getCreatureName(cid):find(n[2]) and getCreatureName(target):find(n[2]) then doCreatureSetSkullType(cid, SKULL_RED) else doCreatureSetSkullType(cid, SKULL_NONE) end end return true end Não se esqueça de registrar o creature event em login.lua e de adicionar a tag do mesmo (data\creaturescripts).