Results 1 to 5 of 5

Thread: Hotkey Dwarven Ring when drunked

  1. #1
    Normal User
    Join Date
    Aug 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Hotkey Dwarven Ring when drunked

    I need a hotkey when char is drunked equip dwarven ring, and 10-20 sec later unequip dwarven ring
    I hope someone can help me on that xd

  2. #2
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Give me ID of dwarven ring when being used(sparkling in ring slot)

  3. #3
    iBot User
    Join Date
    Jun 2012
    Posts
    517
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    132
    Rep Power
    7
    -- Dwarven ring when drunked by Garkstal's

    local
    CONFIG = {
    RING_NAME = "dwarven ring"
    }

    local RING_ID = Item.GetID(CONFIG.RING_NAME)
    local RING_USED_ID = Item.GetID(Self.Ring().id)

    if Self.isDrunk() then
    System.PauseWalking (1000, 3000)
    while Self.Ring().count < 1 do
    Self.MoveItems(RING_ID, "ring", "all", 1)
    wait (500, 800)
    end
    wait (20000)
    elseif Self.Ring().count > 0 then
    Self.MoveItems(RING_USED_ID, "all", "ring", 1)
    wait (500, 1000)
    end

    You need to have sirmate.lua library.

  4. #4
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    /\ or this one

    PHP Code:
    local TIME 15 -- seconds
    local RING_IN_USE 
    0000 -- CHANGE THIS

    if (drunkthen
        
    if (itemcount("dwarven ring") > 0then
            
    while (ring ~= RING_IN_USE) do
                
    moveitems("dwarven ring","all","ring",1wait(100,200)
            
    end
        end
        wait
    (TIME*1000)
        while (
    ring == RING_IN_USE) do
            
    moveitems(RING_IN_USE,"ring","all",1wait(100,200)
        
    end
    end 
    Last edited by soder; 10-13-2012 at 10:36 AM.

  5. #5
    Normal User
    Join Date
    Aug 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    thx to both for help me now is working good

Posting Permissions

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