Results 1 to 5 of 5

Thread: Several useful script!

  1. #1
    iBot User
    Join Date
    Aug 2012
    Posts
    159
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    11 Post(s)
    Reputation
    14
    Rep Power
    5

    Several useful script!

    I need several scripts V ->Please help me with these scripts
    1) reach dp and open it and put loot there
    2) open bps and resize them

  2. #2
    Normal User mistgun's Avatar
    Join Date
    Nov 2012
    Location
    LDZ
    Posts
    333
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    41
    Rep Power
    5
    Depositer: opening depot and depositing items, just edit your backpacks and items to deposit.

    PHP Code:
    local MainDepotname "blue backpack" -- main depot backpack
    local AddonDepotname 
    "grey backpack" -- backpack for stackable items inside main depot bp
    local LootDepotname 
    "green backpack" -- backpack for non stackable items inside main depot bp

    local LootBPname 
    "red backpack" -- bp with loot in your main backpack


    while (windowcount("Locker") ==0) do     
           
    reachgrounditem("depot")    
           
    openitem("depot")
           
    wait(700,900)
    end

    while (windowcount("Depot Chest") == 0) do
        
    openitem(3502"locker")
        
    wait(800,1000)
    end

        openitem
    (MainDepotname"Depot Chest"false)
        
    wait(800,1000)

        
    local DEPOSIT_ITEMSNOT_STACKABLE_LAST_ON_TOITEM_INDEX = {"bola""earflap""cheesy figurine""cheese cutter""ratana""life preserver""leather harness""rat god doll""spike shield""spiky club"}, 01

    while (#DEPOSIT_ITEMS >= ITEM_INDEX) do
        
    if (type(DEPOSIT_ITEMS[ITEM_INDEX]) == [[string]]) then
            local ITEM_ID 
    itemid(DEPOSIT_ITEMS[ITEM_INDEX])
            
            if (
    ITEM_ID 0then
                DEPOSIT_ITEMS
    [ITEM_INDEX], ITEM_INDEX ITEM_IDITEM_INDEX 1
            
    else
                
    table.remove(DEPOSIT_ITEMSITEM_INDEX)
            
    end
        
    elseif (type(DEPOSIT_ITEMS[ITEM_INDEX]) == [[number]]) then
            
    if (DEPOSIT_ITEMS[ITEM_INDEX] > 0then
                ITEM_INDEX 
    ITEM_INDEX 1
            
    else
                
    table.remove(DEPOSIT_ITEMSITEM_INDEX)
            
    end
        
    else
            
    table.remove(DEPOSIT_ITEMSITEM_INDEX)
        
    end
    end

    while (true) do
        for 
    _DEPOSIT_ITEM in ipairs(DEPOSIT_ITEMS) do
            
    local NEXT_ITEM true
            
            
    if (itemcount(DEPOSIT_ITEMLootBPname) > 0then
                
    if (itemproperty(DEPOSIT_ITEM).isCumulativethen
                    local STACKABLE_LAST_ON_TO 
    0
                    
                    
    while (STACKABLE_LAST_ON_TO) do
                        
    local ITEM_COUNT_BEFORE itemcount(DEPOSIT_ITEMLootBPname)
                        
                        
    moveitemsonto(DEPOSIT_ITEM"all"AddonDepotname100STACKABLE_LAST_ON_TOwait(5001000)
                        
                        
    local ITEM_COUNT_AFTER itemcount(DEPOSIT_ITEMLootBPname)
                        
                        if (
    ITEM_COUNT_BEFORE == ITEM_COUNT_AFTER and ITEM_COUNT_AFTER 0then
                            STACKABLE_LAST_ON_TO 
    STACKABLE_LAST_ON_TO 1
                        
    elseif (ITEM_COUNT_AFTER == 0then
                            
    break
                        
    end
                    end
                
    else
                    while (
    16 NOT_STACKABLE_LAST_ON_TO) do
                        
    local ITEM_COUNT_BEFORE itemcount(DEPOSIT_ITEMLootBPname)
                        
                        
    moveitemsonto(DEPOSIT_ITEM"all"LootDepotname100NOT_STACKABLE_LAST_ON_TOwait(5001000)
                        
                        
    local ITEM_COUNT_AFTER itemcount(DEPOSIT_ITEMLootBPname)
                        
                        if (
    ITEM_COUNT_BEFORE == ITEM_COUNT_AFTER and ITEM_COUNT_AFTER 0then
                            NOT_STACKABLE_LAST_ON_TO 
    NOT_STACKABLE_LAST_ON_TO 1
                        
    elseif (ITEM_COUNT_AFTER == 0then
                            
    break
                        
    end
                    end
                end
            end
        end
        
        
    if (itemcount(LootBPnameLootBPname) == 0then
            
    break
        else
            
    openitem(LootBPnameLootBPnamefalsewait(20003000)
        
    end
        
        wait
    (100)
    end 
    Opening backpacks and resizing:

    PHP Code:
    local MainBPname "green backpack"
    local LootBPname "grey backpack"

    while (windowcount(MainBPname) == 0) or (windowcount(LootBPname) == 0)  do
    closewindows()
    wait(1000,2000)
    openitem(MainBPname"back"true)
    wait(1000,2000)
    resizewindows()
    wait(1000)
    openitem(LootBPnameMainBPnametrue)
    wait(1000,2000)
    resizewindows()
    end 
    LATEST FREE AND PAID SCRIPTS

    Ghostland: EK Coryms Cave: EK
    Peninsula Tomb: EK, MS/ED Mount Sternum: EK
    Dwarf City: EK Nightstalkers Mountain: ED, MS

  3. #3
    iBot User
    Join Date
    Aug 2012
    Posts
    159
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    11 Post(s)
    Reputation
    14
    Rep Power
    5
    local MainDepotname = "blue backpack" -- main depot backpack
    local AddonDepotname = "grey backpack" -- backpack for stackable items inside main depot bp
    local LootDepotname = "green backpack" -- backpack for non stackable items inside main depot bp

    local LootBPname = "red backpack" -- bp with loot in your main backpack




    local MainBPname = "green backpack"
    local LootBPname = "grey backpack"





    ALL THESE I COPY PASTE TO ACTIONS -> SETUP?

  4. #4
    Normal User mistgun's Avatar
    Join Date
    Nov 2012
    Location
    LDZ
    Posts
    333
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    41
    Rep Power
    5
    yes cut it to setup if you want but without all these "local"
    LATEST FREE AND PAID SCRIPTS

    Ghostland: EK Coryms Cave: EK
    Peninsula Tomb: EK, MS/ED Mount Sternum: EK
    Dwarf City: EK Nightstalkers Mountain: ED, MS

  5. #5
    iBot User
    Join Date
    Aug 2012
    Posts
    159
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    11 Post(s)
    Reputation
    14
    Rep Power
    5
    thnx, gonna try tonight !! :*

Posting Permissions

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