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

Thread: Ring Swapper

  1. #1
    iBot User IWEED's Avatar
    Join Date
    May 2012
    Location
    Oregon, USA (Dolera)
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    15
    Rep Power
    5

    Ring Swapper

    Could anyone help me with this hotkey?
    I want it to swap erings and might rings and if no might rings only swap ering.
    For some reason it wont swap when multiple bps rings open too?
    appreciate some help, been at it a bit and got nothin.


    local CONFIG = {
    RING = {usable = "Energy Ring", default = "Might Ring"},
    MPPC = {
    ENABLED = true,
    RANDOM = {0, 100},
    },
    }

    --[[ ENGINE ]]--
    updateworld()
    if ((mppc >= math.random(CONFIG.MPPC.RANDOM[1], CONFIG.MPPC.RANDOM[2])) and (ring ~= itemid(CONFIG.RING.usable)) and (itemcount(itemid(CONFIG.RING.usable)) >= 1)) then
    moveitems(itemid(CONFIG.RING.usable), "all", "ring",100)
    elseif ((mppc >= math.random(CONFIG.MPPC.RANDOM[1], CONFIG.MPPC.RANDOM[2])) and (ring ~= itemid(CONFIG.RING.default)) and (itemcount(itemid(CONFIG.RING.default)) >= 1)) then
    moveitems(itemid(CONFIG.RING.usable), "all", "ring",100)
    end
    Marijuana@Neobot/BugWT
    WEED@Xeno/Red/Win.D
    IWEED@IBot
    ????@BlackD

    LEGALIZE IT!

  2. #2
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Lol, whats the point of wearing might rings?

    Also, there is probably errors in your debug log. Check there first.

  3. #3
    iBot User IWEED's Avatar
    Join Date
    May 2012
    Location
    Oregon, USA (Dolera)
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    15
    Rep Power
    5
    Why not? Death ring then.
    No errors in the log, bro.
    Marijuana@Neobot/BugWT
    WEED@Xeno/Red/Win.D
    IWEED@IBot
    ????@BlackD

    LEGALIZE 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
    Quote Originally Posted by pink_panther View Post
    Lol, whats the point of wearing might rings?
    You heard of this new feature called PVP? Implemented with todays update.

    Note that energy ring changes id on equip.
    Lua Code:
     
    local CONFIG = {
    	RING = {usable = "Energy Ring", sparkling = 3088, default = "Might Ring"},
    	MPPC = {
    		ENABLED = true,
    		RANDOM = {0, 100}, 
    	},
    }
     
    --[[ ENGINE ]]--
    updateworld()
    if ((mppc >= math.random(CONFIG.MPPC.RANDOM[0], CONFIG.MPPC.RANDOM[1])) and (ring ~= itemid(CONFIG.RING.sparking)) and (itemcount(itemid(CONFIG.RING.usable)) >= 1)) then
    	moveitems(itemid(CONFIG.RING.usable), "all", "ring",100)
    elseif ((mppc >= math.random(CONFIG.MPPC.RANDOM[0], CONFIG.MPPC.RANDOM[1])) and (ring ~= itemid(CONFIG.RING.default)) and (itemcount(itemid(CONFIG.RING.default)) >= 1)) then
    	moveitems(itemid(CONFIG.RING.default), "all", "ring",100) -- this is supposed to be might ring ye?
    end
    Last edited by soder; 12-11-2013 at 09:00 AM.

  5. #5
    iBot User IWEED's Avatar
    Join Date
    May 2012
    Location
    Oregon, USA (Dolera)
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    15
    Rep Power
    5
    You're the best.
    You must spread some Reputation around before giving it to soder again.
    Have a good one!

    gonna test it when i get some ibot days
    Last edited by IWEED; 12-18-2013 at 12:14 AM.
    Marijuana@Neobot/BugWT
    WEED@Xeno/Red/Win.D
    IWEED@IBot
    ????@BlackD

    LEGALIZE IT!

  6. #6
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Ahhhahahahaha

    I thought you were talking about Power rings. lol, that's why I was like "Whats the point".

    :x

  7. #7
    Normal User
    Join Date
    Feb 2012
    Location
    Rio de Janeiro, Brazil
    Posts
    236
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    Why you always have to contest something before helping someone panther?

  8. #8
    iBot User IWEED's Avatar
    Join Date
    May 2012
    Location
    Oregon, USA (Dolera)
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    15
    Rep Power
    5
    After fixing it up a bit, it still doesn't swap when multiple erings and might rings bp's are opened.
    If there is only 1 might ring and 1 ering it swaps fine.
    But if the might ring runs out the hotkey stops working.
    I want it to swap rings no matter the amount I have opened and if might rings run out it just swaps the ering.
    Thanks for the help and understand if ya can't!
    Marijuana@Neobot/BugWT
    WEED@Xeno/Red/Win.D
    IWEED@IBot
    ????@BlackD

    LEGALIZE IT!

  9. #9
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Quote Originally Posted by Reaper View Post
    Why you always have to contest something before helping someone panther?
    I don't, I asked why you could bother using power rings, because I read it wrong...


    Quote Originally Posted by IWEED View Post
    After fixing it up a bit, it still doesn't swap when multiple erings and might rings bp's are opened.
    If there is only 1 might ring and 1 ering it swaps fine.
    But if the might ring runs out the hotkey stops working.
    I want it to swap rings no matter the amount I have opened and if might rings run out it just swaps the ering.
    Thanks for the help and understand if ya can't!

    Just to clarify, you want to use might rings if you have no ring on at all, and if you are out of might rings, use energy rings? OR do you want it constantly changing rings around?

  10. #10
    iBot User IWEED's Avatar
    Join Date
    May 2012
    Location
    Oregon, USA (Dolera)
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    15
    Rep Power
    5
    Just to clarify, you want to use might rings if you have no ring on at all, and if you are out of might rings, use energy rings? OR do you want it constantly changing rings around?
    Version 1: Press 'insert' equips energy ring, repress 'insert' equip's might ring, repress 'insert' energy ring ext [swap]
    If no might rings left in any container that's open just equip ering upon 'insert' and unequip it if i press 'insert' again. At this point I want it to put ering on and then take it off not constantly refill energy rings over eachother.

    Version 2: I want it to equip a energy ring when I hit the hotkey and replace it with might ring when I press the hotkey again. Only if no might rings left in any container I want it to equip energy ring when I hit the hotkey and unequip it when I hit the hotkey again.


    Sorry for the shitty directions!
    The reason I want this is for PVPE situations.
    thanks for reading
    I understand that anyone helping me is going out of their way, I really appreciate it!
    Last edited by IWEED; 12-19-2013 at 02:21 AM.
    Marijuana@Neobot/BugWT
    WEED@Xeno/Red/Win.D
    IWEED@IBot
    ????@BlackD

    LEGALIZE IT!

Tags for this Thread

Posting Permissions

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