Results 1 to 10 of 10

Thread: Can someone help? Equip Dwarven ring when drunked and unequip when not drunked!

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

    Unhappy Can someone help? Equip Dwarven ring when drunked and unequip when not drunked!

    Iam trying to find an action to equip and unequip the dwarven ring, equip when drunked and unequip when not drunked, can someone got this actions, or can help me with this action? thanks you all guys! > !

  2. #2
    Premium User Eldar's Avatar
    Join Date
    Apr 2013
    Location
    Poland
    Posts
    1,335
    Mentioned
    37 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    62 Post(s)
    Reputation
    159
    Rep Power
    7
    Equip:
    if drunk and ring == 0 then
    moveitems("dwarven ring", "red backpack", "ring", 1)
    end


    Unequip:
    if not drunk and ring == itemid("dwarven ring") then
    moveitems("dwarven ring", "ring", "red backpack", 1)
    end


    Just edit name of backpack with rings.

  3. #3
    Normal User
    Join Date
    Jul 2012
    Location
    Sweden
    Posts
    221
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    58
    Rep Power
    5
    PHP Code:
    local backpack1 "red backpack" -- Backpack here you have your rings
    local ring1 
    "dwarven ring"

    if drunk and ring == 0 then

    moveitems
    (ring1backpack1"ring"1)

    elseif 
    not drunk and ring == itemid(ring1then

    moveitems
    (ring1"ring"backpack11)

    end 

  4. #4
    iBot User
    Join Date
    May 2013
    Posts
    17
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    10
    Rep Power
    4
    Iam trying it but isnt work, both of them.. iam doing something wrong, i just add new action then copy and paste and configure the bp as you said, and activate the action, then nothing happends, i still wasting the dwarven ring.. >S

    Maybe i must put SupplyBP like as setup script? cuz i put Grey backpack and nothing happends >S
    Last edited by mosta123; 07-11-2013 at 07:58 AM.

  5. #5
    Normal User Balbek's Avatar
    Join Date
    May 2012
    Location
    LDZ
    Posts
    554
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    84
    Rep Power
    6
    None of the above posted action will work, because if you have dwarven ring on the bot will see that you're not drunk, so in this case it will keep putting it on and off all the time. The only solution is to make the bot put on the dwarven ring when you're drunk then wait x time and take it off to check if you're not drunk anymore.

    PHP Code:
    local random_time 30000,40000 -- // random time between 30 and 40 seconds


    if (drunk) and (itemcount("dwarven ring") > 0) and (ring == 0then
        pausewalking
    (math.random(1000,2000))
        
    moveitems("dwarven ring""all""ring"1)
        
    wait(random_time)
        
    pausewalking(math.random(1000,2000))
        
    moveitems(3099"ring""all"1)
        
    wait(500,1000)
        
    updateworld()
    end 
    Last edited by Balbek; 07-11-2013 at 09:22 AM.

  6. #6
    iBot User
    Join Date
    May 2013
    Posts
    17
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    10
    Rep Power
    4
    Balbek thanks alot for loss your time but still not working, so bad cuz iam wasting alot of dwarven rings on DJINNS RESPAWN, but i tried to fix and solve it but..., and u all too, thanks again guys

  7. #7
    Normal User Balbek's Avatar
    Join Date
    May 2012
    Location
    LDZ
    Posts
    554
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    84
    Rep Power
    6
    Quote Originally Posted by mosta123 View Post
    Balbek thanks alot for loss your time but still not working, so bad cuz iam wasting alot of dwarven rings on DJINNS RESPAWN, but i tried to fix and solve it but..., and u all too, thanks again guys
    I've tested it and it works, how come it doesnt work for you then? It puts dwarven ring if ur drunk and takes it in random time between 30 and 40 seconds. There's no way for the bot to check if ur still drunk while having a dwarven ring on the ring slot, anyways go to help -> debug and see if anything appears then paste it here.
    Last edited by Balbek; 07-11-2013 at 09:49 PM.

  8. #8
    iBot User
    Join Date
    Sep 2012
    Location
    Poland
    Posts
    23
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    7 Post(s)
    Reputation
    13
    Rep Power
    5
    balbek working

  9. #9
    Normal User
    Join Date
    Feb 2014
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3
    Hi mosta, I reccommend you simply put on dwarven ring when drunk, and then remove it when you refill (e.g. when you stand at bank). Taking it off and on continuously during the hunt will not do much good, as you are pretty much ALWAYS drunk while in resp.

    the unequip can be done like this: moveitems('3099', 'ring', MainBP, 1)

    Kind regards,
    Supermannen

    EDIT: Just noticed that this was the worst necro around, apologies for bumping it.
    Last edited by Supermannen; 03-12-2014 at 03:05 PM.

  10. #10
    iBot User
    Join Date
    Aug 2013
    Posts
    70
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    27 Post(s)
    Reputation
    29
    Rep Power
    4
    Here you have. Just input it as an action with a spamrate of, e.g, 200 to 300
    PHP Code:
    if (Self.ItemCount("dwarven ring"MainBPname) >= 1then
        local USED_RING 
    false

        
    while (Self.isDrunk() and Self.Ring().id ~= 3099) do
            
    Self.MoveItems(3097"ring"MainBPname100)
            
    System.Wait(100200)
        
    end
        
        USED_RING 
    = (Self.Ring().id == 3099)



        if (
    USED_RINGthen
            System
    .Wait(10000)
        
    end

        
    while (USED_RING and Self.Ring().id == 3099) do
            
    Self.MoveItems(3099MainBPname"ring"100)
            
    System.Wait(100200)
        
    end
    end 
    Dont forget to edit the MainBPname or put it in setup as this:
    MainBPname = "your main bp name"

    Hope this solves your problem
    cheers

Posting Permissions

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