Results 1 to 2 of 2

Thread: energy ring fixing please

  1. #1
    Normal User Gostn's Avatar
    Join Date
    Jun 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5

    energy ring fixing please

    Hello!

    I would like a hotkey to equip energy ring if x players on screen, even tho I already have another ring on, and I don't want the action to pull down my other ring(for example prismatic ring) if there isn't more than x players on screen. And then if the players leave the screen, I want it to put energy ring back into my mainbackpack! Please quote this thread and my post so I notice if anyone responds!

  2. #2
    iBot User
    Join Date
    Aug 2012
    Posts
    805
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    180
    Rep Power
    7
    Lua Code:
    local xplayers = 2
    local ringInUse = 0000 -- put correct id
    local ringID = "Energy Ring"
    local mainBP = "red backpack"
     
    if paround(7, false) >= xplayers then
        if ring ~= ringInUse then 
            moveitems(ringID, "all", "ring", 1)
    		wait(500,900)
        end
    elseif paround(7, false) == 0 then
        if ring == ringInUse then
    		moveitems(ring, "ring", 0, 1)
    		wait(500,900)
        end
     end


    It will put e ring if xplayers or more on screen and put ring to your main bp if ALL players leave screen

    to check ring id in use put e ring to your ring slot and make action

    Lua Code:
    print(ring)


    and check id on debug log

Posting Permissions

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