Signup Now
Page 4 of 6 FirstFirst ... 23456 LastLast
Results 31 to 40 of 51
  1. #31
    Moderator mistgun's Avatar
    Join Date
    Dec 2013
    Location
    Lodz, Poland
    Posts
    1,821
    Reputation
    220
    Rep Power
    26
    Quote Originally Posted by wybocenooba View Post
    now its something wrong with looting sometimes bot take 50% of loot like loot of monster is 100gp 20gp bot take 20gp and stop dont take 100gp but not always
    now try

  2. #32
    Wind Powered wybocenooba's Avatar
    Join Date
    Jan 2014
    Posts
    409
    Reputation
    16
    Rep Power
    21
    HELP IT STILL STOP LOOTING AFTER 1 OR 2 ITEMS ON 2-4/10 monsters ;/

    sometimes i must reopen dead 3x to take all loot.... ;[

  3. #33
    Wind Powered wybocenooba's Avatar
    Join Date
    Jan 2014
    Posts
    409
    Reputation
    16
    Rep Power
    21
    help!!!!!!!!

  4. #34
    Free User
    Join Date
    Oct 2014
    Posts
    12
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by mistgun View Post
    aaah ok, ty
    this should work

    init start
    local conts = {'Slain', 'Dead', 'Remains'}
    local clickWait = {10, 30} -- it means X to X ms
    local pressWait = {10, 30} -- it means X to X ms
    local category = '' -- leave empty if You want to take all items (non category)
    -- Don't touch below!
    setsetting('Settings/MouseMoveSpeed', 'Instantaneous')
    setsetting('Settings/ScrollMode', 'Click on scrollbar')
    setsetting('Settings/ClickWaitTime', tostring(clickWait))
    setsetting('Settings/PressWaitTime', tostring(pressWait))
    init end


    auto(50)
    foreach lootingitem m category do
    for _, from in ipairs(conts) do
    from = from:lower()
    for i = 0, windowcount() - 1 do
    local cont = getcontainer(i).name:lower()
    if cont:find(from) then
    if itemcount(m.id, i) > 0 then
    moveitems(m.id, m.destination, tostring(i), 100)
    end
    end
    end
    end
    end
    Some tips to improve your code

    1- Should iterate through looting items just once and store them
    2- Should iterate through open containers, and check name as you did
    3- Should iterate through items in said container instead and check if is in our list previously stored, then decide destination
    4- Add a delay after moving item

    Thats a more optimal way, I will make it when I am back if still needed.

  5. #35
    Wind Powered wybocenooba's Avatar
    Join Date
    Jan 2014
    Posts
    409
    Reputation
    16
    Rep Power
    21
    so if you can fix it please do it im waiting

  6. #36
    Wind Powered wybocenooba's Avatar
    Join Date
    Jan 2014
    Posts
    409
    Reputation
    16
    Rep Power
    21
    Help!!

  7. #37
    Free User
    Join Date
    Oct 2014
    Posts
    12
    Reputation
    10
    Rep Power
    0
    init start
    local cache = {}
    local conts = {'Slain', 'Dead', 'Remains'}
    local clickWait = {10, 30} -- it means X to X ms
    local pressWait = {10, 30} -- it means X to X ms
    local category = '' -- leave empty if You want to take all items (non category)

    -- Don't touch below!
    setsetting('Settings/MouseMoveSpeed', 'Instantaneous')
    setsetting('Settings/ScrollMode', 'Click on scrollbar')
    setsetting('Settings/ClickWaitTime', tostring(clickWait))
    setsetting('Settings/PressWaitTime', tostring(pressWait))

    foreach lootingitem m category do
    cache[m.id] = m.destination
    end
    init end


    auto(100)
    for i = 1, windowcount() do
    local cont = getcontainer(i - 1)
    for _, pattern in ipairs(conts) do
    if cont.name:lower():find(pattern:lower()) then
    for k = 1, bp.itemcount do
    local item = cont.items[k]
    if cache[item.id] then
    moveitems(item.id, cache[item.id], cont.name, (item.count ~= 0) and item.count or 1)
    waitping(2, 2.5)
    end
    end
    end
    end
    end


    was hunting with it today, didnt get any problem

  8. #38
    Wind Powered wybocenooba's Avatar
    Join Date
    Jan 2014
    Posts
    409
    Reputation
    16
    Rep Power
    21
    error in Persistent script NewPersistentScript2:
    ["for k = 1, bp.itemcount do"]:NewPersistentScript2:25 attempt to index global 'bp' (a nil value)

  9. #39
    Wind Powered wybocenooba's Avatar
    Join Date
    Jan 2014
    Posts
    409
    Reputation
    16
    Rep Power
    21
    help;p

  10. #40
    Wind Powered wybocenooba's Avatar
    Join Date
    Jan 2014
    Posts
    409
    Reputation
    16
    Rep Power
    21
    so slow to get any answer

 

 

Posting Permissions

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