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+
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+
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")
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
Onde eu ponho ?
ja editei o tópico
e é em creaturescript/script
ja editei o tópico
e é em creaturescript/script
Vlww mnw, see é muito foda .-.
To sem REP+, assim que eu vim pro pc amanhã te dou ;D
duvida sanada topico reportado para moverem.
ja editei o tópico
e é em creaturescript/script
vodkat ajuda aki --> http://www.xtibia.com/forum/topic/192530-ajuda-pfv/
ta mt dificiu, niguem consegui me ajudar ;[