Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Crazy Hotkey - For Loot After All Dead

  1. #1
    Normal User
    Join Date
    Jun 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Crazy Hotkey - For Loot After All Dead

    Well im hunting with the option loot after all dead, so what i need is:

    1) Check server log to find only the last message that contains pre-definied itens.
    2) If the last message contain this item, so it will stop attack and stop target.
    3) While lootbodies > 0 then it will keep the target off. This way the bot will start to loot.
    4) After lootbodies == 0 settarget on again.

    I can easily do the steps 2, 3 and 4... The problem is the 1, cause im checking all messages that contain 'Loot of ', and to this work i need to check only the last 'Loot of '...

    For those that doesnt understand why this important, i will make an example, u put loot after all dead and lets supose you have 5 monsters on screen, u kill the first and there is a great loot, but you will need to kill all monsters to start loot, making possible you loose this loot. With this it will loot the great loot, and after will target again.

    Thank You!

  2. #2
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Try this: (not tested)
    Code:
    local items = {"boots of haste","fire sword"}
    local index = 0  
    local messages = getmessages("Server Log") 
    local counts = messages.count-1 
    
    for i=0,counts do 
       if messages[counts-i].type == 19 and messages[counts-i].text:find('Loot of ') then  
          local l = 0 
          for l=1, table.getn(items) do 
             if messages[counts-i].text:find(items[l]) then 
                settargeting("off")
                stopattack()
                while ((lootbodies) and (maround(4) > 0)) then
                   wait(1000)
                end
                settargeting("on")
                break 
             end 
          end 
       end
    end
    This should basically stop attack monsters and loot until there's no monsters to loot if you loot any item in the item array.
    Last edited by soder; 09-13-2012 at 09:10 AM.

  3. #3
    Banned
    Join Date
    Jul 2012
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    0
    i was looking for this!


    ty

    +rep

  4. #4
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Quote Originally Posted by FortheGold View Post
    i was looking for this!


    ty

    +rep
    Tell me if it doesnt work and I'll try fix it.

  5. #5
    Banned
    Join Date
    Jul 2012
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    0
    soder@


    it didnt work. it just keep loot after all monster is dead

  6. #6
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    I'll test it and fix it when I wake up.

  7. #7
    Normal User
    Join Date
    Jun 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    On neobot i used to use this hotkey:

    Code:
    local rares = {"royal helmet", "dragon scale mail"}
    
    auto(100)
    foreach newmessage m do
      if m.type == MSG_INFO and m.content:sub(1,8) == 'Loot of ' then
        for i,j in ipairs(rares) do
          if m.content:find(j) then
            settargeting('off')
            while $lootbodies > 0 and maround(1) <= 3 and $standtime <= 5000 do
              wait(500)
            end
            settargeting('on')
            end
         end
      end
    end

  8. #8
    iBot User Salahadi235's Avatar
    Join Date
    Aug 2012
    Location
    Sweden
    Posts
    139
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    Quote Originally Posted by soder View Post
    Try this: (not tested)
    Code:
    local items = {"boots of haste","fire sword"}
    local index = 0  
    local messages = getmessages("Server Log") 
    local counts = messages.count-1 
    
    for i=0,counts do 
       if messages[counts-i].type == 19 and messages[counts-i].text:find('Loot of ') then  
          local l = 0 
          for l=1, table.getn(items) do 
             if messages[counts-i].text:find(items[l]) then 
                settargeting("off")
                stopattack()
                while ((lootbodies) and (maround(4) > 0)) then
                   wait(1000)
                end
                settargeting("on")
                break 
             end 
          end 
       end
    end
    This should basically stop attack monsters and loot until there's no monsters to loot if you loot any item in the item array.
    put this as hotkey in ibot?

  9. #9
    Normal User
    Join Date
    Jul 2012
    Location
    California, USA
    Posts
    171
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    14
    Rep Power
    5
    this one kind of works. The issues is that for messages containing this it continues to set targetting to off even tho the item has already been looted. it could work with some improvement in the logic.

  10. #10
    Normal User
    Join Date
    Oct 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    i also need that hotkey

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •