Results 1 to 4 of 4

Thread: Equip dwarven ring if target name is rahemos else equip life ring/ring of healing

  1. #1
    Normal User
    Join Date
    Dec 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Equip dwarven ring if target name is rahemos else equip life ring/ring of healing

    Please help me

  2. #2
    Normal User
    Join Date
    Dec 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    also is it possible to check if the character is drunk while it is wearing the ring? I am afraid that it will unequip the ring when rahemos is dead and it will still be drunk and perhaps fall into the teleport.

  3. #3
    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 StefcioVanz View Post
    also is it possible to check if the character is drunk while it is wearing the ring? I am afraid that it will unequip the ring when rahemos is dead and it will still be drunk and perhaps fall into the teleport.
    its not possible to check if ur still drunk while ur wearing a dwarven ring

  4. #4
    Normal User
    Join Date
    Oct 2012
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    15
    Rep Power
    5
    I use this (with a different purpose) that uses the dwarven ring for 40-45 seconds since the moment when u get drunk

    PHP Code:
    --[[ 
        
    NameEquip Dwarven Ring if DRUNK 
        Version
    v1.0.0 
        Status
    Works 
        Author
    Sayild 
    ]]-- 

    local RING_NAME 'dwarven ring' 
    local OTHER_RING 'crystal ring' 
    local CONDITION drunk 
    local ID 
    itemid(RING_NAME
    local ID2 itemid(OTHER_RING

    -- 
    dont edit below this line 

    if CONDITION then 
        
    if itemcount(RING_NAME) > 0 then 
            
    if ring ~= ID then 
            wait
    (1000
            
    moveitems(ID"all""ring"1
    wait(40000,45000)
            
    end 
        end 
    end 

    if CONDITION == false then 
        
    if itemcount(OTHER_RING) > 0 then 
            
    if ring ~= ID2 then 
            wait
    (1000
            
    moveitems(ID2'all''ring'1
            
    end 
        end 
    end 
    It wasnt made by made as you can see in the code. Idk how long last drunkness when it comes from rahemos but u could try a higher value. The biggest problem on this is could be when the ring runs out bcs it will wait 40 secs after it equipped before checking again ;/

Posting Permissions

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