Jump to content

ricardo27

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by ricardo27

  1. 15 minutes ago, zakne11 said:

     

    
    local allcreatures = g_game.getCreatures()
    if not g_game.isAttacking() then 
      for _, creature in pairs(allcreatures) do
        if creature:isMonster() and not string.match(creature:getName()), "Pet") then
          g_game.attack(creature)
        end
      end
    end

     

    Sorry still not working.

    Error: [string "Require libs/main"..."]5: 'then' expected near ','

    Thank you again for all the help!
     

  2. 3 hours ago, zakne11 said:
    
    
    if not g_game.isAttacking() then 
      for _, creature in pairs(g_game.getCreatures()) do
        if creature:isMonster() and not string.match(creature:getName()), "Pet") then
          g_game.attack(creature)
        end
      end
    end

     

    It didn't work unfortunately.

    It says "LUA ERROR: Direct use of "pairs(g_game.getCreatures())" is prohibited."

    Thank you so much in advance for the help. Wasn't sure how to fix this LUA error.

  3. Hello,

    I needed a script where I would NOT target any creature with the name "Pet" in it.

    For example, there is a creature called "Ricardo's Pet". When I have my targetting set to attack all monsters, it would NOT target the monster with "pet" in it.

    Thank you so much in advance for all the help!

  4. Hello,

    After running the bot for about an hour or even less, the bot closes or crashes? 

    Is there a specific reason for this? This is so frustrating, I keep dying in-game because the bot crashes.

    If someone can explain or help regarding this, I would greatly appreciate it!!

×
×
  • Create New...