Boa tarde ^^ Tentemos desta forma:
Vá em data/creaturescripts/scripts, crie um arquivo chamado partyAttack.lua e adicione dentro:
function onStatsChange(cid, attacker, type, combat, value)
if type == STATSCHANGE_HEALTHLOSS then
if getPlayerParty(cid) == getPlayerParty(attacker) then
return false
end
return true
end
Na mesma pasta abra o arquivo login.lua, procure por:
registerCreatureEvent
E cole próximo á ele:
registerCreatureEvent(cid, "partyAttack")
Agora em creaturescripts.xml adicione a tag:
<event type="statschange" name="partyAttack" event="script" value="partyAttack.lua"/>
Reinicie o servidor e boa sorte ![]()




info
Grupo: Barão
Registrado: 05/10/12
Posts: 245
Reputação: +36
como eu posso fazer pra tal spell(target) só funcionar quando é usada em membro da mesma party ?