Results 1 to 3 of 3

Thread: Pickup Vials off floor if x or more cap

  1. #1
    iBot User
    Join Date
    May 2013
    Posts
    35
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    9 Post(s)
    Reputation
    10
    Rep Power
    4

    Pickup Vials off floor if x or more cap

    im trying to figure out how to make a script to pickup vials off the floor if my cap is more then 50...
    this is what i have so far..
    Code:
    local ITEMS = {"gold coin",283}
    local DIRECTIONS = {"c","n","s","e","w","se","sw","ne","nw"} 
    
    if (cap < 50) then 
        for i = 1, #ITEMS do
        for j = 1, #DIRECTIONS do
            pickupitems(DIRECTIONS[j],ITEMS[i])
        end
        end  
    end

  2. #2
    Focus Group Gryllz's Avatar
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    3,482
    Mentioned
    89 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    236 Post(s)
    Reputation
    342
    Rep Power
    10
    @Boznian

    Try this action and please post if it works:

    Lua Code:
     
    local ITEMS = {"gold coin", 283}
    local BP_NAME = "blue backpack"
     
    for i = -1, 1 do
        for j = -1, 1 do
            for _, ITEM in ipairs(ITEMS) do
                if toptileitem(posx+i, posy+j, posz) == itemid(ITEM) then
                    pausewalking(1000)
                    moveitems(ITEM, ground(posx+i, posy+j, posz), BP_NAME, 100)
                    wait(200, 250)
                    pausewalking(0)
                end
            end
        end
    end

  3. #3
    iBot User
    Join Date
    May 2013
    Posts
    35
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    9 Post(s)
    Reputation
    10
    Rep Power
    4
    I actually ended up doing two sepreate actions.
    First one is
    Code:
    local ITEMS = {283,284,285}
    local DIRECTIONS = {"c","n","s","e","w","se","sw","ne","nw"} 
        for i = 1, #ITEMS do
        for j = 1, #DIRECTIONS do
            pickupitems(DIRECTIONS[j],ITEMS[i])
        end
        end
    Section action is
    Code:
    if cap > 50 then
        setsettings("Settings\\Actions\\List\\pickvial\\Enabled", "yes")
    else 
        setsettings("Settings\\Actions\\List\\pickvial\\Enabled", "no")
    end
    i set the spam rate for the vails at 400-600
    i set the spam rate for checker @ 1000-2000

Posting Permissions

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