Leofeli 0 Postado Novembro 13, 2013 Share Postado Novembro 13, 2013 Gostaria de saber como eu fasso para que o item addon doll não fassa mais os addons Druid Warrior assassin mage e como eu fasso um doll que so da pra fazer esses 4 addons Link para o comentário https://xtibia.com/forum/topic/223874-addon-doll/ Compartilhar em outros sites More sharing options...
0 ScythePhantom 83 Postado Novembro 13, 2013 Share Postado Novembro 13, 2013 Poste o seu ou use este: function onSay(cid, words, param) local femaleOutfits = { ["citizen"]={136}, ["hunter"]={137}, ["mage"]={138}, ["knight"]={139}, ["summoner"]={141}, ["warrior"]={142}, ["barbarian"]={147}, ["druid"]={148}, ["wizard"]={149}, ["oriental"]={150}, ["pirate"]={155}, ["assassin"]={156}, ["beggar"]={157}, ["shaman"]={158}, ["nightmare"]={269}, ["jester"]={270}, ["brotherhood"]={279}, ["demonhunter"]={288}, ["warmaster"]={336}, ["yalaharian"]={324}, ["wayfarer"]={366} } local maleOutfits = { ["citizen"]={128}, ["hunter"]={129}, ["mage"]={130}, ["knight"]={131}, ["summoner"]={133}, ["warrior"]={134}, ["barbarian"]={143}, ["druid"]={144}, ["wizard"]={145}, ["oriental"]={146}, ["pirate"]={151}, ["assassin"]={152}, ["beggar"]={153}, ["shaman"]={154}, ["nightmare"]={268}, ["jester"]={273}, ["brotherhood"]={278}, ["demonhunter"]={289}, ["warmaster"]={335}, ["yalaharian"]={325}, ["wayfarer"]={367} } local msg = {"Command requires a good param", "You don't have an addon doll", "Bad param", "Full addon set sucesfully added"} local param = string.lower(param) if(getPlayerItemCount(cid, 8982) > 0) then if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then doPlayerRemoveItem(cid, 8982, 1) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, msg[4]) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS) if(getPlayerSex(cid) == 0)then doPlayerAddOutfit(cid, femaleOutfits[param][1], 3) else doPlayerAddOutfit(cid, maleOutfits[param][1], 3) end else doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, msg[1]) end else doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, msg[2]) end end Caso queria excluir algum addon, apenas remova a parte á que se refere o mesmo, exemplo: ["citizen"]={136}, E caso queira editar o item referente ao addon doll, edite as partes em vermelho á seguir: if(getPlayerItemCount(cid, 8982) > 0) then if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then doPlayerRemoveItem(cid, 8982, 1) Pronto, escolha o id do item e mude, espero ter o ajudado, Obrigado. Link para o comentário https://xtibia.com/forum/topic/223874-addon-doll/#findComment-1581884 Compartilhar em outros sites More sharing options...
0 Leofeli 0 Postado Novembro 14, 2013 Autor Share Postado Novembro 14, 2013 sim ok eu exclui o druid mage warrior e assassinm agr tem como eu fazer um doll que so de pra fazer esses 4 addons ? Link para o comentário https://xtibia.com/forum/topic/223874-addon-doll/#findComment-1581943 Compartilhar em outros sites More sharing options...
0 EddyHavaiano 13 Postado Novembro 14, 2013 Share Postado Novembro 14, 2013 (editado) primeiro vá em "MEUOT/DATA/TALKACTIONS/SCRIPTS" depois copie algum arquivo .lua e renomeie para oque voce quiser no meu exemplo "superdoll" e adicione isso dentro.. function onSay(cid, words, param) local femaleOutfits = { ["mage"]={138}, ["warrior"]={142}, ["druid"]={148}, ["assassin"]={156}, } local maleOutfits = { ["mage"]={130}, ["warrior"]={134}, ["druid"]={144}, ["assassin"]={152}, } local msg = {"Command requires a good param", "Você não tem addon doll", "Bad param", "Você recebeu seu addon full"} local param = string.lower(param) if(getPlayerItemCount(cid, 8982) > 0) then if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then doPlayerRemoveItem(cid, 8982, 1) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, msg[4]) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS) if(getPlayerSex(cid) == 0)then doPlayerAddOutfit(cid, femaleOutfits[param][1], 3) else doPlayerAddOutfit(cid, maleOutfits[param][1], 3) end else doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, msg[1]) end else doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, msg[2]) end end COMO EDITAR if(getPlayerItemCount(cid, 8289) > 0) then - MUDE PARA O ID DE OUTRO DOLL AONDE ESTA EM AZUL if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then doPlayerRemoveItem(cid, 8982, 1) ALTERE PARA O ID DO DOLL QUE POIS NO PASSO ACIMA .. Agora feche e salve.. e vá novamente em MEUOT/DATA/TALKACTIONS e abra o bloko de notas com nome talkactions e preocure por players e adicione esta tag <talkaction words="!superaddon" event="script" value="superdoll.lua"/> SE FUCIONOU NAO ESQUEÇA REP + Editado Novembro 14, 2013 por EddyHavaiano Link para o comentário https://xtibia.com/forum/topic/223874-addon-doll/#findComment-1581995 Compartilhar em outros sites More sharing options...
0 Leofeli 0 Postado Novembro 14, 2013 Autor Share Postado Novembro 14, 2013 vou testar aki se der rep+ amg sim mais tipo como eu tiro esses addon do outro doll ? Link para o comentário https://xtibia.com/forum/topic/223874-addon-doll/#findComment-1582022 Compartilhar em outros sites More sharing options...
0 ScythePhantom 83 Postado Novembro 14, 2013 Share Postado Novembro 14, 2013 (editado) vou testar aki se der rep+ amg sim mais tipo como eu tiro esses addon do outro doll ? Addon doll com todos os addons, exceto "druid, assassin, warrior e mage" function onSay(cid, words, param) local femaleOutfits = { ["citizen"]={136}, ["hunter"]={137}, ["knight"]={139}, ["summoner"]={141}, ["barbarian"]={147}, ["wizard"]={149}, ["oriental"]={150}, ["pirate"]={155}, ["beggar"]={157}, ["shaman"]={158}, ["nightmare"]={269}, ["jester"]={270}, ["brotherhood"]={279}, ["demonhunter"]={288}, ["warmaster"]={336}, ["yalaharian"]={324}, ["wayfarer"]={366} } local maleOutfits = { ["citizen"]={128}, ["hunter"]={129}, ["knight"]={131}, ["summoner"]={133}, ["barbarian"]={143}, ["wizard"]={145}, ["oriental"]={146}, ["pirate"]={151}, ["beggar"]={153}, ["shaman"]={154}, ["nightmare"]={268}, ["jester"]={273}, ["brotherhood"]={278}, ["demonhunter"]={289}, ["warmaster"]={335}, ["yalaharian"]={325}, ["wayfarer"]={367} } local msg = {"Command requires a good param", "You don't have an addon doll", "Bad param", "Full addon set sucesfully added"} local param = string.lower(param) if(getPlayerItemCount(cid, 8982) > 0) then if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then doPlayerRemoveItem(cid, 8982, 1) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, msg[4]) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS) if(getPlayerSex(cid) == 0)then doPlayerAddOutfit(cid, femaleOutfits[param][1], 3) else doPlayerAddOutfit(cid, maleOutfits[param][1], 3) end else doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, msg[1]) end else doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, msg[2]) end end E agora com apenas o druid, assassin, warrior e mage. function onSay(cid, words, param) local femaleOutfits = { ["mage"]={138}, ["warrior"]={142}, ["druid"]={148}, ["assassin"]={156}, } local maleOutfits = { ["mage"]={130}, ["warrior"]={134}, ["druid"]={144}, ["assassin"]={152}, } local msg = {"Command requires a good param", "Você não tem addon doll", "Bad param", "Você recebeu seu addon full"} local param = string.lower(param) if(getPlayerItemCount(cid, 8982) > 0) then if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then doPlayerRemoveItem(cid, 8982, 1) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, msg[4]) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS) if(getPlayerSex(cid) == 0)then doPlayerAddOutfit(cid, femaleOutfits[param][1], 3) else doPlayerAddOutfit(cid, maleOutfits[param][1], 3) end else doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, msg[1]) end else doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, msg[2]) end end É isso, espero ter o ajudado. Editado Novembro 14, 2013 por ScythePhantom Link para o comentário https://xtibia.com/forum/topic/223874-addon-doll/#findComment-1582199 Compartilhar em outros sites More sharing options...
0 Leofeli 0 Postado Novembro 16, 2013 Autor Share Postado Novembro 16, 2013 (editado) Testando deu aki manw brg aki seu rep Editado Novembro 16, 2013 por Leofeli Link para o comentário https://xtibia.com/forum/topic/223874-addon-doll/#findComment-1582313 Compartilhar em outros sites More sharing options...
0 ScythePhantom 83 Postado Novembro 16, 2013 Share Postado Novembro 16, 2013 Obrigado brother, reportado para que movam. Link para o comentário https://xtibia.com/forum/topic/223874-addon-doll/#findComment-1582714 Compartilhar em outros sites More sharing options...
0 zipter98 1102 Postado Janeiro 15, 2014 Share Postado Janeiro 15, 2014 Tópico movido para a seção de dúvidas e pedidos resolvidos. Link para o comentário https://xtibia.com/forum/topic/223874-addon-doll/#findComment-1603627 Compartilhar em outros sites More sharing options...
Pergunta
Leofeli 0
Gostaria de saber como eu fasso para que o item addon doll não fassa mais os addons
Druid
Warrior
assassin
mage
e como eu fasso um doll que so da pra fazer esses 4 addons
Link para o comentário
https://xtibia.com/forum/topic/223874-addon-doll/Compartilhar em outros sites
8 respostass a esta questão
Posts Recomendados