Advertisement
MrTrala

UtamoRing(Priv - Final Version)

Sep 27th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.21 KB | None | 0 0
  1. --[[
  2.     Utamo Ring For Archlight
  3.     Version 2.1.2 (Priv Version)
  4.     Created by Mr Trala
  5.    
  6. Instructions;
  7. Just remember to config everything in the "config" section.
  8.    
  9. Change Log;
  10. 2.1 -- Public released, fully working.
  11. 2.1.1 -- ReWorked everything.
  12. 2.1.2 -- Fixed a minor problem with EquipRing.
  13.  
  14. Credits;
  15. Idea for the update; Ketoz.
  16.  
  17. Shared with:
  18. Ketoz.
  19. Skip.
  20. ]]
  21.  
  22. config = {
  23.     RingID = 3051, -- The ring you want to use in x% mana and x% heal.
  24.     RingOLD = 21955, -- The ID of the normal ring you wear.
  25.     EquipHP = 60, -- Equip Ring at x% Health.
  26.     EquipMP = 10, -- You should have this x% mana to equip e-ring.
  27.     UnEquipHP = 65, -- Health % When you UnEquip The ring and put your other one back.
  28.     UnEquipMP = 5 -- Mana % When you UnEquip The ring and put your other one back (So you don't run out off mana and dies anyways).
  29. }
  30.  
  31. x = config
  32. function EquipRING()
  33.     if Self.Health() <= x.EquipHP and Self.Mana() >= x.EquipMP and Self.Ring().id == x.RingOLD then
  34.         Self.Equip(x.RingID, "ring")
  35.    
  36.     elseif Self.Health() >= x.UnEquipHP or Self.Mana() <= x.UnEquipMP then
  37.         Self.Equip(x.RingOLD, "ring")
  38.     end
  39. end
  40.  
  41. registerEventListener(TIMER_TICK, "EquipRING")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement