JU
pedido

Pt - Help Pfv.

Por juniinhocadete, 22 de ago. de 2012 em Scripts

script
7
1.5k
22 de agosto de 2012 às 14:44

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+

VodkartV
22 de agosto de 2012 às 15:25

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 Agosto 22 por Vodkart

22 de agosto de 2012 às 15:27

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 ?

VodkartV
22 de agosto de 2012 às 15:29

ja editei o tópico

 

e é em creaturescript/script

22 de agosto de 2012 às 15:36

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

KennyConradK
22 de agosto de 2012 às 15:48

duvida sanada topico reportado para moverem.

23 de agosto de 2012 às 05:49

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