Ir para conteúdo

Pergunta

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+

Link para o comentário
https://xtibia.com/forum/topic/192488-pt-help-pfv/
Compartilhar em outros sites

6 respostass a esta questão

Posts Recomendados

  • 0

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")

Editado por Vodkart
Link para o comentário
https://xtibia.com/forum/topic/192488-pt-help-pfv/#findComment-1322051
Compartilhar em outros sites

  • 0

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 ?

Link para o comentário
https://xtibia.com/forum/topic/192488-pt-help-pfv/#findComment-1322054
Compartilhar em outros sites

  • 0

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 ;[

Link para o comentário
https://xtibia.com/forum/topic/192488-pt-help-pfv/#findComment-1322586
Compartilhar em outros sites

×
×
  • Criar Novo...