function onCombat(cid, target) if isPlayer(cid) and isPlayer(target) and isInParty(cid) and isInParty(target) and getPlayerParty(cid) == getPlayerParty(target) then doPlayerSendCancel(cid, "You may not attack your team mates.") return false end return true end
creaturescript.xml
<event type="combat" name="PartyAttack" event="script" value="nome do seu script.lua"/>
creaturescript/script/login.lua adc antes do ultimo return true
registerCreatureEvent(cid, "PartyAttack")





info
Grupo: Campones
Registrado: 22/07/12
Posts: 54
Reputação: +1
Char no Tibia: Criandootserver
Preciso de 1 um script de PARTY, que todos os membros da party não possão se attacka.
Exemplo :
Como se os menbros da party ficasse NO-PVP, se 1 player ta na party com outro player, eles não possão se ataca.
AJUDA PLX = REP+