w9s66v09c8x5o1fl3p0

Rifbot Auto Ring

Jan 11th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.66 KB | None | 0 0
  1. --[[
  2.     Script Name:        Auto Ring
  3.     Description:        Equip ring when ring_slot is empty e.g. refil life ring to speed up mana regen
  4.     Author:             Ascer - example
  5. ]]
  6.  
  7. local RINGID = 3052                  -- life ring (not used)
  8. local MAIN_DELAY = {700, 2000}       -- random delay reading loop. You can increase it for personal usage.
  9.  
  10. -- DON'T EDIT BELOW THIS LINE
  11.  
  12. Module.New("Auto Ring", function (mod)
  13.     if Self.isConnected() then -- check for connection to game
  14.         local slot = Self.Ring()
  15.         if slot.id <= 0 then
  16.             Self.EquipItem(SLOT_RING, RINGID, 1)
  17.         end
  18.     end
  19.     mod:Delay(MAIN_DELAY[1], MAIN_DELAY[2])        
  20. end)
Add Comment
Please, Sign In to add comment