Advertisement
MrTrala

PV - URing

Feb 12th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.69 KB | None | 0 0
  1. --[[
  2.     Change Ring + Healer for ArchLightOnline
  3.     Version 1.5 - PRIV VERSION (Ownership; Unix)
  4.     Created by Mr Trala
  5.    
  6. Instructions;
  7. If your ring change ID when you Equip/UnEquip It change it in "ringold" and "ringolt";
  8. RingOLD is the id when you have equiped.
  9. RingOLDT is the id when you have unequiped.
  10. If is the same ID always, just put the same id.
  11. That's it!
  12.  
  13. Tested 4.5 hrs in a 80 Necro (so he keep using the script ALOT)~
  14.  
  15. Credits to;
  16. Unix -- Idea
  17. Mr Trala -- Programmer
  18. ]]
  19.  
  20. config = {
  21.     RingID = 3051, -- Ring ID (energy ring).
  22.     RingOLD = 16264, -- The ID of the normal ring you wear (your donor ring).
  23.     RingOLDT = 16114, -- If your ring change ID when you equip/unequip it (like the berserker one) put the ID when is unequiped.
  24.     EquipHP = 35, -- Equip Ring at % Health (your energy ring).
  25.     UnEquipHP = 80, -- Health % When you UnEquip the ring and put your other one back (your donor ring).
  26.     SpellHl = 92, -- Health % to use "exura necro gran".
  27.    
  28.     -- Don't touch this if you don't know what are you doing
  29.     Spell = "exura necro gran",
  30.     Exaus = "exura gran"
  31. }
  32.  
  33. Module.New('EquipRING', function(mod)
  34. Self.HealthPercent = function()
  35. return math.abs(Self.Health()/(Self.MaxHealth()*0.01))
  36. end
  37.         if Self.HealthPercent() <= config.EquipHP and Self.Ring().id == config.RingOLD then
  38.             Self.Equip(config.RingID, "ring")
  39.         end
  40.        
  41.         if Self.HealthPercent() >= config.UnEquipHP then
  42.             Self.Equip(config.RingOLDT, "ring")
  43.         end
  44.        
  45.         if Self.HealthPercent() <= config.SpellHl then
  46.             if Self.GetSpellCooldown(config.Exaus) == 0 then
  47.                 Self.Cast(config.Spell, 100)
  48.             end
  49.         end
  50. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement