Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Stealth rings put in/take off

  1. #1
    iBot User
    Join Date
    Feb 2014
    Posts
    103
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    19 Post(s)
    Reputation
    10
    Rep Power
    3

    Stealth rings put in/take off

    HI, i need an action what put in ring when i'm attacking by 2 or more monster, and take off ring when i'm attacking by 1 monster or 0. Thanks

  2. #2
    iBot User
    Join Date
    Sep 2013
    Location
    Maceió -AL/BR
    Posts
    19
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    7 Post(s)
    Reputation
    14
    Rep Power
    4
    PHP Code:
    if maround(7"Minotaur Mage") >= 2 then  
    moveitems
    ("stealth ring""all""ring"1)  
    elseif 
    maround(7"Minotaur Mage")  <= 1 then  
    moveitems
    ("stealth ring""ring""all"1)  
    end 

  3. #3
    iBot User
    Join Date
    Feb 2014
    Posts
    103
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    19 Post(s)
    Reputation
    10
    Rep Power
    3
    Thanks, if i heve some problems with this action i pm you

  4. #4
    iBot User
    Join Date
    Feb 2014
    Posts
    103
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    19 Post(s)
    Reputation
    10
    Rep Power
    3
    the action doesn't work well, becouse he dont take off ring. Can you make you sure it is good action ?

  5. #5
    iBot User
    Join Date
    Sep 2013
    Location
    Maceió -AL/BR
    Posts
    19
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    7 Post(s)
    Reputation
    14
    Rep Power
    4
    So, i've been looking through the forum and i saw some people with the same problem. I couldn't just fix it but i found a way to solve the problem, you'll keep another ring on your backpack (in my test i used one crystal ring) and will work.


    PHP Code:
    if maround(7"Poison Spider") >= 2 then   
        moveitems
    ("stealth ring""all""ring"1)   
    elseif 
    maround(7"Poison Spider")  <= 1 then   
        moveitems
    ("crystal ring""all""ring"1)   
    end 
    Post here if there's another problem.

  6. #6
    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
    ring in use has other id then the same in bp, try this way, should work without other rings:

    Lua Code:
    if maround(7, "Poison Spider") >= 2 then   
        moveitems("stealth ring", "all", "ring", 1)   
    elseif maround(7, "Poison Spider")  <= 1 then   
        moveitems(ring, "all", "ring", 1)   
    end

  7. #7
    iBot User
    Join Date
    Sep 2013
    Location
    Maceió -AL/BR
    Posts
    19
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    7 Post(s)
    Reputation
    14
    Rep Power
    4
    Quote Originally Posted by shanp View Post
    ring in use has other id then the same in bp, try this way, should work without other rings:

    Lua Code:
    if maround(7, "Poison Spider") >= 2 then   
        moveitems("stealth ring", "all", "ring", 1)   
    elseif maround(7, "Poison Spider")  <= 1 then   
        moveitems(ring, "all", "ring", 1)   
    end
    In my tests there's just one ring with me.

  8. #8
    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
    Quote Originally Posted by xakaboom View Post
    In my tests there's just one ring with me.
    I mean the same ring, ex. stealth ring got 2 ids, 1st while not used and second while is on ring slot, that why moving from ring slot not working with string name of ring

  9. #9
    iBot User
    Join Date
    Feb 2014
    Posts
    103
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    19 Post(s)
    Reputation
    10
    Rep Power
    3
    i will test it today and post opinion. Thanks

  10. #10
    iBot User
    Join Date
    Dec 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    10
    Rep Power
    4
    local ;CONFIG = {; RING_NAME = "stealth ring"; }; --local Time = 10; local MonsterToShoot = {'Minotaur Archer', 'Cyclops Smith', 'Cyclops', 'Cyclops Drone', 'Orc Berserker', 'Minotaur Guard'}; local RING_ID = Item.GetID(CONFIG.RING_NAME); local RING_USED_ID = Item.GetID(Self.Ring().id);; if maround(7, unpack(MonsterToShoot)) >= 2 then; --System.PauseWalking (1000, 3000); while Self.Ring().count < 1 do; Self.MoveItems(RING_ID, "ring", "all", 1); end;-- wait (Time*1000);elseif Self.Ring().count > 0 then; Self.MoveItems(RING_USED_ID, "all", "ring", 1); wait (500, 1000);end

Posting Permissions

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