Ex-Membro da Equipe Posted January 12, 2017 Report Share Posted January 12, 2017 Faramir ou GU tem algum script que possa fazer o boneco atacar qualquer bixo que aparecer na tela sem precisar marcar um a um? Sera de grande ajuda, principalmente no Minigame Survival. Obrigado. Quote Link to comment Share on other sites More sharing options...
ZIKA Posted January 12, 2017 Report Share Posted January 12, 2017 Você não quer que eles deixem de bot pra você tambem não ? Vai upar seu neutral Quote Link to comment Share on other sites More sharing options...
Samuca - Ex-GM Rushesz Posted January 12, 2017 Report Share Posted January 12, 2017 1 hour ago, brunabrugnari said: Você não quer que eles deixem de bot pra você tambem não ? Vai upar seu neutral Não mude o assunto do tópico, isso é Flood.! tome mais cuidado com comentários desnecessários, e flood. Membro avisado. Quote Link to comment Share on other sites More sharing options...
Timi Posted January 12, 2017 Report Share Posted January 12, 2017 Qual bot você usa? edit: não olhei a área antes de postar. OTClient eu não sei mexer Quote Link to comment Share on other sites More sharing options...
Ex-Membro da Equipe Posted January 13, 2017 Author Report Share Posted January 13, 2017 5 hours ago, Timi said: Qual bot você usa? edit: não olhei a área antes de postar. OTClient eu não sei mexer Tudo bem Quote Link to comment Share on other sites More sharing options...
Ex-Membro da Equipe Posted January 13, 2017 Author Report Share Posted January 13, 2017 9 hours ago, brunabrugnari said: Você não quer que eles deixem de bot pra você tambem não ? Vai upar seu neutral Tenho dificuldade em selecionar monstros e ficar soltando magias de area e buffs, por isso pedi ajuda do faramir. Quote Link to comment Share on other sites More sharing options...
Gugu - Karin Uzumaki Posted January 13, 2017 Report Share Posted January 13, 2017 vou fazer uma aki rapidim Quote Link to comment Share on other sites More sharing options...
Gugu - Karin Uzumaki Posted January 13, 2017 Report Share Posted January 13, 2017 ve se vai fucionar auto_attack = cycleEvent(function() if not g_game.isOnline() then return end if g_game.isAttacking() then return end local player = g_game.getLocalPlayer() local spec = g_map.getSpectators(player:getPosition()) for k,monster in pairs(spec) do if monster:isMonster() and not monster:isPlayer() and not monster:isNpc() then g_game.attack(monster) break end end end, 400) edit1: pra parar o script vc digita no terminal removeEvent(auto_attack) Quote Link to comment Share on other sites More sharing options...
Ex-Membro da Equipe Posted January 14, 2017 Author Report Share Posted January 14, 2017 5 hours ago, Gugu - Karin Uzumaki said: ve se vai fucionar auto_attack = cycleEvent(function() if not g_game.isOnline() then return end if g_game.isAttacking() then return end local player = g_game.getLocalPlayer() local spec = g_map.getSpectators(player:getPosition()) for k,monster in pairs(spec) do if monster:isMonster() and not monster:isPlayer() and not monster:isNpc() then g_game.attack(monster) break end end end, 400) edit1: pra parar o script vc digita no terminal removeEvent(auto_attack) Funcionou como sempre GU, você é muito talentoso, Obrigado novamente pela ajuda ! 1 Quote Link to comment Share on other sites More sharing options...
Patata Posted February 15, 2018 Report Share Posted February 15, 2018 Desculpa reviver esse tópico mais esse script consegue incluir a função para n atacar os pets ? Quote Link to comment Share on other sites More sharing options...
AurorEmmanoel Posted February 15, 2018 Report Share Posted February 15, 2018 20 hours ago, Patata said: Desculpa reviver esse tópico mais esse script consegue incluir a função para n atacar os pets ? vou dar uma analisada mais tarde e ver se consigo fazer. não garanto nd... mas, vou tentar Quote Link to comment Share on other sites More sharing options...
ThiagoMetal Posted February 16, 2018 Report Share Posted February 16, 2018 23 hours ago, Patata said: Desculpa reviver esse tópico mais esse script consegue incluir a função para n atacar os pets ? Testa assim... auto_attack = cycleEvent(function() ignore = {'Pet Archer', 'Pet Blaze', 'Pet Dog', 'Pet Mage', 'Pet Mercenary', 'Pet Witchdoctor', 'Pet Wolf'} if not g_game.isOnline() then return end if g_game.isAttacking() then return end local player = g_game.getLocalPlayer() local spec = g_map.getSpectators(player:getPosition()) function isInArray(tbl, value) for k, v in ipairs(tbl) do if v == value then return k end end return false end for k,monster in pairs(spec) do if not isInArray(ignore, monster:getName()) then if monster:isMonster() and not monster:isPlayer() and not monster:isNpc() then g_game.attack(monster) break end end end end, 400) Quote Link to comment Share on other sites More sharing options...
Pedro S Posted March 2, 2018 Report Share Posted March 2, 2018 tem como colocar esse auto ataque pra soltar alguma magia de area junto? obrigado Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.