Results 1 to 9 of 9

Thread: Change Rings

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

    Red face Change Rings

    anyone can help me with an action to use 3 diferent rings?
    PHP Code:
    if maround(5) >= 5 then moveitems("energy ring",'ring',1)
    elseif (
    itemcount('life ring')) >= 1  then moveitems("Life Ring",'ring',1)
    elseif (
    itemcount('life ring')) < 1  then moveitems("Ring of the sky",'ring',1
    i dont know how to do it
    Thanks

  2. #2
    Banned
    Join Date
    May 2012
    Location
    Rio de Janero - RJ / Canada
    Posts
    870
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    30
    Rep Power
    0
    u want to wear a life ring all the time while u have it, and use a energy tring with 5+?

  3. #3
    Normal User
    Join Date
    Aug 2012
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    i want to use energy ring with just with +4 or +5, and then take it off and if there is any life ring in my backpack use it

  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
    Try this:
    Change "life_ring_in_use = 0000" to the id when life ring is in your ring slot(being used)
    Code:
    local energy_ring_in_use = 3088
    local energy_ring = "energy ring"
    local life_ring_in_use = 0000
    local life_ring = "life ring"
    local ring_of_the_sky = "ring of the sky"
    
    if (maround(4) >= 5) then
       if ((ring == ring_of_the_sky) or (ring == 0) or (ring == life_ring_in_use)) and (itemcount(energy_ring) > 0) then
          moveitems(energy_ring,'ring',1)
       end
    elseif (maround(4) <= 4) then
       if ((ring == ring_of_the_sky) or (ring == 0) or (ring == energy_ring_in_use)) and (itemcount(life_ring) > 0) then
          moveitems(life_ring,'ring',1)
       end
    elseif (maround(4) <= 4) then
       if ((ring == energy_ring_in_use) or (ring == 0)) and (itemcount(life_ring) == 0) then
          moveitems(ring_of_the_sky,'ring',1)
       end
    end
    Last edited by soder; 09-02-2012 at 05:01 PM.

  5. #5
    Normal User
    Join Date
    Aug 2012
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    where i can found the id of rings being used?
    thanks

  6. #6
    Banned
    Join Date
    May 2012
    Location
    Rio de Janero - RJ / Canada
    Posts
    870
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    30
    Rep Power
    0
    Quote Originally Posted by z4geee View Post
    where i can found the id of rings being used?
    thanks
    http://www.tibiaibot.com/forum/showt...3-Item-ID-List

  7. #7
    Normal User
    Join Date
    Aug 2012
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    not there. i already looked it. no one have the id of ring being used?

  8. #8
    Normal User Aramm's Avatar
    Join Date
    Mar 2012
    Location
    Curitiba - Parana - Brazil
    Posts
    192
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    18
    Rep Power
    5
    just make an action withi this code and it will tell the ID

    say(ring)

  9. #9
    Normal User
    Join Date
    Aug 2012
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    finally, thanks you very much!

Posting Permissions

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