Results 1 to 5 of 5

Thread: Energy Ring if player!

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

    Energy Ring if player!

    Hey guys, i need a action to equip energy ring if there is any player on screen and unequip it if there isnt. Can some1 share this with me?

  2. #2
    Normal User
    Join Date
    May 2012
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Bump, also need it!

  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
    PHP Code:
    local 
    CONFIG 
    = {
            
    RING_NAME "energy ring"
        
    }

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

    if 
    paround(10false) >= 1 then
    System
    .PauseWalking (10003000)
    while 
    Self.Ring().count do
    Self.MoveItems(RING_ID"ring""all"1)
    wait (500800)
    end
    elseif paround(10false) == and Self.Ring().count 0 then
    Self
    .MoveItems(RING_USED_ID"all""ring"1)
    wait (5001000)
    end 
    Try this one.

  4. #4
    Banned
    Join Date
    Oct 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by garkstal13 View Post
    PHP Code:
    local 
    CONFIG 
    = {
            
    RING_NAME "energy ring"
        
    }

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

    if 
    paround(10false) >= 1 then
    System
    .PauseWalking (10003000)
    while 
    Self.Ring().count do
    Self.MoveItems(RING_ID"ring""all"1)
    wait (500800)
    end
    elseif paround(10false) == and Self.Ring().count 0 then
    Self
    .MoveItems(RING_USED_ID"all""ring"1)
    wait (5001000)
    end 

    Try this one.
    Didn't work for me, but thanks anyway

  5. #5
    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
    Tested it and it is working. I forgot to add that sirmate library required.

Posting Permissions

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