Results 1 to 7 of 7

Thread: Still need action for dropping

  1. #1
    Normal User
    Join Date
    Jul 2013
    Posts
    25
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    9 Post(s)
    Reputation
    10
    Rep Power
    4

    Still need action for dropping

    for dropping chain legs and studded armor, i dont wanna change my rust removing action, may bug all script. I only need action that drops chain legs and studded armor, dont want to edit anything only adding action , thanks
    Last edited by Eli; 10-05-2014 at 01:21 PM.

  2. #2
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    956 Post(s)
    Reputation
    586
    Rep Power
    10
    Lua Code:
    local DROP_TRASH = true
    local ITEMS_TO_DROP = {3358, 3359, 3557, 3377, 3372, 3357}
     
    if (DROP_TRASH == true) then
    for i=1, #ITEMS_TO_DROP do
    if (itemcount(ITEMS_TO_DROP[i]) > 0) then
    dropitems(ITEMS_TO_DROP[i])
    pausewalking(1000)
    wait(800, 950)
    end
    end
    end

  3. #3
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Quote Originally Posted by Eli View Post
    Lua Code:
    local DROP_TRASH = true
    local ITEMS_TO_DROP = {3358, 3359, 3557, 3377, 3372, 3357}
     
    if (DROP_TRASH == true) then
    for i=1, #ITEMS_TO_DROP do
    if (itemcount(ITEMS_TO_DROP[i]) > 0) then
    dropitems(ITEMS_TO_DROP[i])
    pausewalking(1000)
    wait(800, 950)
    end
    end
    end


    Why are you pausewalking() after you've dropped items?


    Idk why you wouldn't jsut use a better action for rust remover

    Lua Code:
    -- [[ Armor Rust Remover by Pink Panther ]] -- 
    local garbageArmors = {"Chain Armor" , "Scale Armor", "Brass Armor", "Plate Armor", "Studded Legs", "Chain Legs", "Brass Legs", "Plate Legs"} -- List of trash items
    local fromBp = "all" -- Backpack to Clean Rusty Armors from
    local rustyArmors = {8894, 8895, 8896, 8897, 8898, 8899} -- List of rusty armor and rusty leg IDs
     
    if maround() == 0 and not lootbodies then
        for _, ARMOR in ipairs(rustyArmors) do
            if itemcount(ARMOR, fromBp) >= 1 and itemcount("flask of rust remover") >= 1 then
                pausewalking(5000)
                useitemonitem("flask of rust remover", ARMOR, fromBp)
                wait(600,800)
            end
        end
        pausewalking(10)
        for _, TRASH in ipairs(garbageArmors) do
            if itemcount(TRASH, fromBp) >= 1 then
                pausewalking(5000)
                moveitems(TRASH, fromBp, "ground", 100)
                wait(500,800)
            end
        end
        pausewalking(10)
    end


    But here is just a trash dropper cut out

    Lua Code:
    -- [[ Trash Dropper by Pink Panther ]] -- 
    local garbage_items = {"Chain Armor" , "Scale Armor", "Brass Armor", "Plate Armor", "Studded Legs", "Chain Legs", "Brass Legs", "Plate Legs"} -- List of trash items
    local fromBp = "all" -- Backpack drop trash from
     
    if maround() == 0 and not lootbodies then
        for _, TRASH in ipairs(garbage_items) do
            if itemcount(TRASH, fromBp) >= 1 then
                pausewalking(5000)
                moveitems(TRASH, fromBp, "ground", 100)
                wait(500,800)
            end
        end
        pausewalking(10)
    end


    Now consider that having two actions that move items around running side by side has a chance to accidently drop or move things, very very rarely. It's how people lose things like softboots.
    Last edited by pink_panther; 10-05-2014 at 09:43 PM.

  4. #4
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    956 Post(s)
    Reputation
    586
    Rep Power
    10
    Quote Originally Posted by pink_panther View Post
    Why are you pausewalking() after you've dropped items?


    Idk why you wouldn't jsut use a better action for rust remover

    Lua Code:
    -- [[ Armor Rust Remover by Pink Panther ]] -- 
    local garbageArmors = {"Chain Armor" , "Scale Armor", "Brass Armor", "Plate Armor", "Studded Legs", "Chain Legs", "Brass Legs", "Plate Legs"} -- List of trash items
    local fromBp = "all" -- Backpack to Clean Rusty Armors from
    local rustyArmors = {8894, 8895, 8896, 8897, 8898, 8899} -- List of rusty armor and rusty leg IDs
     
    if maround() == 0 and not lootbodies then
        for _, ARMOR in ipairs(rustyArmors) do
            if itemcount(ARMOR, fromBp) >= 1 and itemcount("flask of rust remover") >= 1 then
                pausewalking(5000)
                useitemonitem("flask of rust remover", ARMOR, fromBp)
                wait(600,800)
            end
        end
        pausewalking(10)
        for _, TRASH in ipairs(garbageArmors) do
            if itemcount(TRASH, fromBp) >= 1 then
                pausewalking(5000)
                moveitems(TRASH, fromBp, "ground", 100)
                wait(500,800)
            end
        end
        pausewalking(10)
    end


    But here is just a trash dropper cut out

    Lua Code:
    -- [[ Trash Dropper by Pink Panther ]] -- 
    local garbage_items = {"Chain Armor" , "Scale Armor", "Brass Armor", "Plate Armor", "Studded Legs", "Chain Legs", "Brass Legs", "Plate Legs"} -- List of trash items
    local fromBp = "all" -- Backpack drop trash from
     
    if maround() == 0 and not lootbodies then
        for _, TRASH in ipairs(garbage_items) do
            if itemcount(TRASH, fromBp) >= 1 then
                pausewalking(5000)
                moveitems(TRASH, fromBp, "ground", 100)
                wait(500,800)
            end
        end
        pausewalking(10)
    end


    Now consider that having two actions that move items around running side by side has a chance to accidently drop or move things, very very rarely. It's how people lose things like softboots.
    I don't use, I don't even use actions like this one, just made an mistake in code kkkkk, missplaced pausewalking

  5. #5
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Quote Originally Posted by Eli View Post
    I don't use, I don't even use actions like this one, just made an mistake in code kkkkk, missplaced pausewalking
    nah, i was talking to OP.

  6. #6
    Normal User
    Join Date
    Jul 2013
    Posts
    25
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    9 Post(s)
    Reputation
    10
    Rep Power
    4
    Because my script only takes rusty armors from worker golems,
    ignores damaged worker golems,
    as I wish,
    i don't want to unrust damaged worker golems rustys,
    if u have an action only for worker golem's rusty armors and legs wud be best

  7. #7
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Quote Originally Posted by Jimi Ow View Post
    Because my script only takes rusty armors from worker golems,
    ignores damaged worker golems,
    as I wish,
    i don't want to unrust damaged worker golems rustys,
    if u have an action only for worker golem's rusty armors and legs wud be best
    Afffffffffffffffffff

    Just change this line:
    local rustyArmors = {8894, 8895, 8896, 8897, 8898, 8899} -- List of rusty armor and rusty leg IDs

    Just remove those IDS and put in the IDS you want to derust, and make sure you don't add poor rusty armor to your loot list.

Posting Permissions

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