Results 1 to 4 of 4

Thread: Action Help DROPiTEM

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

    Action Help DROPiTEM

    Hi guys, i have a trouble in a persistent. I tried to make a persist when my moneymaker have X cap he drop the flasks... But if the cap still low, he drops another items in a sequency...

    But this code, even when the cap is higher than "cap to drop" he still dropping all the items the character have on her backpack... Someone can help me? I dont know if have another action for works with this same function, i used de "search" options on forum but i didn't find nothing like this.

    Code:
    local CapDROP = 120
    local drop1 = "Double Axe" -- Qual Item Dropar
    local drop2 = "Steel Helmet" -- Qual Segundo Item a Dropar
    local drop3 = "Broad Sword" -- Qual Segundo Item a Dropar
    
    
    if cap < CapDROP and maround(0) == 0 and lootbodies == false and pzone == false then
        dropflask()
        wait(1000,1200)
        if cap < CapDROP and itemcount(283) == 0 and itemcount(284) == 0 and itemcount(285) == 0 then
            dropitems(itemid(drop1))
            wait(1200,2000)
            if cap < CapDROP and itemcount(283) == 0 and itemcount(284) == 0 and itemcount(285) == 0 and itemcount(itemid(drop1)) == 0 then
                dropitems(itemid(drop2))
                wait(1200,2000)
                if cap < CapDROP and itemcount(283) == 0 and itemcount(284) == 0 and itemcount(285) == 0 and itemcount(itemid(drop1)) == 0 and itemcount(itemid(drop2)) == 0 then
                    dropitems(itemid(drop3))
                    wait(1200,2000)
                end
            end
        end
    end

  2. #2
    Normal User Mikzz's Avatar
    Join Date
    May 2013
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    8
    Rep Power
    0
    Hello, its a bit different script but check it (Credits to Mistgun):
    Code:
    -- Drop Items On Ground If Selected Cap. by Mistgun
    
    
    -- DO NOT EDIT ANYTHING BELOW !
    
    if cap <= CapToDrop then
        setsettings("Settings\\Looting\\List\\Steel Shield\\Destination", "Ground")
    setsettings("Settings\\Looting\\List\\Steel Helmet\\Destination", "ground")
    setsettings("Settings\\Looting\\List\\Double Axe\\Destination", "ground")
    setsettings("Settings\\Looting\\List\\Crossbow\\Destination", "ground")
    setsettings("Settings\\Looting\\List\\Plate Legs\\Destination", "ground")
    else
    setsettings("Settings\\Looting\\List\\Steel Shield\\Destination", 1)
    setsettings("Settings\\Looting\\List\\Steel Helmet\\Destination", 1)
    setsettings("Settings\\Looting\\List\\Double Axe\\Destination", 1)
    setsettings("Settings\\Looting\\List\\Crossbow\\Destination", 1)
    setsettings("Settings\\Looting\\List\\Plate Legs\\Destination", 1)
    end
    Credits to (?):
    Code:
    local CapToDropFlask = 100 -- cap to drop flask
    
    if (itemcount(285) + itemcount(284) + itemcount(283) > 50 and maround(5) == 0 and cap < CapToDropFlask and not lootbodies) then
       dropflask()
    end
    Maybe you'll find it usefull, I use it

  3. #3
    Normal User
    Join Date
    Jun 2013
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    @Mikzz ya maybe i can use this way, thanks for your suggestion.

  4. #4
    Normal User
    Join Date
    Jun 2013
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Don't have one more people to help me?

Posting Permissions

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