Advertisement
MrTrala

PutERING - (Public V 2.1.2)

Sep 6th, 2016
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.07 KB | None | 0 0
  1. --[[
  2.     Utamo Ring For Archlight
  3.     Version 2.1.2
  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.  
  18. config = {
  19.     RingID = 3051, -- The ring you want to use in x% mana and x% heal.
  20.     RingOLD = 21955, --The ID of the normal ring you wear.
  21.     EquipHP = 60, -- Equip Ring at x% Health.
  22.     EquipMP = 50, -- You should have this x% mana to equip e-ring.
  23.     UnEquipHP = 65, -- Health % When you UnEquip The ring and put your other one back.
  24.     UnEquipMP = 10 -- Mana % When you UnEquip The ring and put your other one back.
  25. }
  26.  
  27. x = config
  28. function EquipRING()
  29.     if Self.Health() <= x.EquipHP and Self.Mana() >= x.EquipMP and Self.Ring().id == x.RingOLD then
  30.         Self.Equip(x.RingID, "ring")
  31.    
  32.     elseif Self.Health() >= x.UnEquipHP or Self.Mana() <= x.UnEquipMP then
  33.         Self.Equip(x.RingOLD, "ring")
  34.     end
  35. end
  36.  
  37. registerEventListener(TIMER_TICK, "EquipRING")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement