Problema Target Novo OTC


Xarplin

Recommended Posts

Queria ver se alguém pode tem alguma solução pra esse problema no target do novo OTC.

Na hunt ou castle, as vezes ele perde o target e não ataca novamente. (No caso do castle, o guardian aparece na tela mas não ataca. No painel fica status: waiting). Ai só ataca novamente se clicar manualmente pra voltar a atacar. 

Alguém sabe se tem alguma maneira de corrigir isso?

Link to comment
Share on other sites

cycleEvent(function()   ignore = {'Grovebeast', 'Emberwing', 'Skullfrost', 'Thundergiant', '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)

  • Like 1
Link to comment
Share on other sites

5 minutes ago, Junior.. said:

cycleEvent(function()   ignore = {'Grovebeast', 'Emberwing', 'Skullfrost', 'Thundergiant', '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)

Valeu mano

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...