Ir para conteúdo

Featured Replies

Postado

Agora esse vai pegar!!!

<talkaction words="!party" event="script" value="party.lua"/>

 

function onSay(cid, words, param, channel)
 if not isInParty(cid) or getPlayerParty(cid) ~= cid then
  return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não é líder de uma party")
 end
 local outfit = getCreatureOutfit(cid)
 local addons = outfit.lookAddons
 for _, cid2 in ipairs(getPartyMembers(cid)) do
  outfit.lookAddons = 0
  doCreatureChangeOutfit(cid2, outfit)
  doPlayerSendTextMessage(cid2, MESSAGE_STATUS_CONSOLE_BLUE, "Outfit da party trocado.")
  if canPlayerWearOutfit(cid2, outfit.lookType, addons) then
   outfit.lookAddons = addons
   doCreatureChangeOutfit(cid2, outfit)
   return true
  elseif addons == 3 then
   outfit.lookAddons = (canPlayerWearOutfit(cid2, outfit.lookType, 1) and 1) or (canPlayerWearOutfit(cid2, outfit.lookType, 2) and 2) or 0
   doCreatureChangeOutfit(cid2, outfit)
  end
 end
 return true
end 

Editado por slyton (veja o histórico de edições)

JqGfm7S.png

Servidor com sources estáveis, com sistemas completos e tudo atualizados, para saber mais acessem   https://www.facebook.com/pokeVKS

  • Respostas 10
  • Visualizações 1.1k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Agora esse vai pegar!!! <talkaction words="!party" event="script" value="party.lua"/>   function onSay(cid, words, param, channel) if not isInParty(cid) or getPlayerParty(cid) ~= cid t

Postado
  • Autor

Olha cara, deu certo e vou lhe dar um REP+ por isso... Agora você consegue colocar efeito? E quando dou o comando e troca a outfit não aparece msg nenhuma...

Aqui está um que tem o efeito: 

local config =

{
sexChangeable = false,
copyOutfitAndAddonsEverytime = false
}

function onSay(cid, words, param, channel)
party = getPlayerParty(cid)
if (config.sexChangeable == true) then
sex = getPlayerSex(cid)
end
if (party) then
if (party == cid) then
outfit = getCreatureOutfit(cid)
members = getPartyMembers(party)
if (#members >= 1) then
tmp = outfit
for i=1,#members do
if (config.sexChangeable == true) then
if (sex ~= getPlayerSex(members[i])) then
doPlayerSetSex(members[i], sex)
end
end
if(config.copyOutfitAndAddonsEverytime == false and canPlayerWearOutfit(members[i], tmp.lookType, tmp.lookAddons) ~= true) then
local tmpOutfit = getCreatureOutfit(members[i])
tmp.lookType = tmpOutfit.lookType
tmp
.lookAddons = tmpOutfit.lookAddons
end
doCreatureChangeOutfit(members[i], tmp)
doSendMagicEffect(getCreaturePosition(members[i]), 66)

end
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "This command can use only leader of a party!")
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You must be in a party!")
end
return true
end

Postado
function onSay(cid, words, param, channel) --made in MG by Eskylo.
 if not isInParty(cid) or getPlayerParty(cid) ~= cid then
  return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não é líder de uma party")
 end
 local outfit = getCreatureOutfit(cid)
 local addons = outfit.lookAddons
 for _, cid2 in ipairs(getPartyMembers(cid)) do
  outfit.lookAddons = 0
  doCreatureChangeOutfit(cid2, outfit)
  doPlayerSendTextMessage(cid2, MESSAGE_STATUS_CONSOLE_BLUE, "Outfit da party trocado.")
  if canPlayerWearOutfit(cid2, outfit.lookType, addons) then
   outfit.lookAddons = addons
   doCreatureChangeOutfit(cid2, outfit)
   return true
 
   doSendMagicEffect(getCreaturePosition(tid), 66)
doCreatureChangeOutfit(tid, tmp)
doPlayerSendTextMessage(tid, MESSAGE_INFO_DESCR, message)
members = members + 1
   return true

  elseif addons == 3 then
   outfit.lookAddons = (canPlayerWearOutfit(cid2, outfit.lookType, 1) and 1) or (canPlayerWearOutfit(cid2, outfit.lookType, 2) and 2) or 0
   doCreatureChangeOutfit(cid2, outfit)
  end
 end
 return true
end 

testa ae

JqGfm7S.png

Servidor com sources estáveis, com sistemas completos e tudo atualizados, para saber mais acessem   https://www.facebook.com/pokeVKS

Postado
  • Autor

Errinho na distro :/
 

[Error - LuaScriptInterface::loadFile] data/talkactions/scripts/go.lua:16: 'end' expected (to close 'if' at line 11) near 'doSendMagicEffect'
[15/07/2014 23:07:20] [Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/go.lua)
[15/07/2014 23:07:20] data/talkactions/scripts/go.lua:16: 'end' expected (to close 'if' at line 11) near 'doSendMagicEffect'
Postado

ve esse não precisa reiniciar o servidor é só falar /reload talkactions

 

function onSay(cid, words, param, channel) 
 if not isInParty(cid) or getPlayerParty(cid) ~= cid then
  return doPlayerSendTextMessage(cid, "Você não é líder de uma party")
 end
 local outfit = getCreatureOutfit(cid)
 local addons = outfit.lookAddons
 for _, cid2 in ipairs(getPartyMembers(cid)) do
  outfit.lookAddons = 0
  doCreatureChangeOutfit(cid2, outfit)
  doSendMagicEffect(getPlayerPosition(cid), 66)
  doPlayerSendTextMessage(cid2, "Outfit da party trocado.")
  if canPlayerWearOutfit(cid2, outfit.lookType, addons) then
   outfit.lookAddons = addons
   doCreatureChangeOutfit(cid2, outfit)
   return true
  elseif addons == 3 then
   outfit.lookAddons = (canPlayerWearOutfit(cid2, outfit.lookType, 1) and 1) or (canPlayerWearOutfit(cid2, outfit.lookType, 2) and 2) or 0
   doCreatureChangeOutfit(cid2, outfit)
  end
 end
 return true
end 

Editado por slyton (veja o histórico de edições)

JqGfm7S.png

Servidor com sources estáveis, com sistemas completos e tudo atualizados, para saber mais acessem   https://www.facebook.com/pokeVKS

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo