Postado Fevereiro 10, 2017 8 anos Galera coloquei no meu servido o sistema de party, para não atingir o amigo na party so que ta dando erro na distro Spoiler [Error - CreatureScript Interface] data/creaturescripts/scripts/Dpt.lua:onCombat Description: (luaGetPlayerParty) Player not found [Error - CreatureScript Interface] data/creaturescripts/scripts/Apt.lua:onAttack Description: (luaGetPlayerParty) Player not found Apt Spoiler function onAttack(cid, target) if isPlayer(cid) and isInParty(cid) and getPlayerParty(cid) == getPlayerParty(target) then doPlayerSendCancel(cid, "You can not attack your party members") return false else return true end end Dpt Spoiler function onCombat(cid, target) if isPlayer(cid) and isInParty(cid) and getPlayerParty(cid) == getPlayerParty(target) then return false else return true end end
Postado Fevereiro 10, 2017 8 anos Solução if isPlayer(cid) and isInParty(cid) and isPlayer(target) and isInParty(target) and getPlayerParty(cid) == getPlayerParty(target) then [*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*] DISCORD: vodkart#6090
Postado Fevereiro 10, 2017 8 anos Autor 3 minutos atrás, Vodkart disse: if isPlayer(cid) and isInParty(cid) and isPlayer(target) and isInParty(target) and getPlayerParty(cid) == getPlayerParty(target) then so colocar essa linha nos 2 scripts?
Postado Fevereiro 10, 2017 8 anos sim, testa [*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*] DISCORD: vodkart#6090
Postado Fevereiro 11, 2017 8 anos Autor 23 horas atrás, Vodkart disse: sim, testa Obrigado problema resolivo Melhor resposta!
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.