Advertisement
w9s66v09c8x5o1fl3p0

Untitled

Jan 18th, 2019
86
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 Potion
  3.     Description:        Restore your character mana
  4.     Author:             Ascer - example
  5. ]]
  6.  
  7. local RUNE_DELAY = {1000, 1500}     -- delay for Pot is default 1000ms we set a little bit higher.
  8. local MANA_BELOW = 50               -- when your mpperc is below o equal this value character will use POTIONID.
  9. local POTIONID = 6374                 -- UH id
  10.  
  11. -- DONT'T EDIT BELOW THIS LINE
  12.  
  13. local mainDelay, mainTime = 0, 0
  14.  
  15. Module.New("Auto Potion", function ()
  16.     if Self.ManaPercent() <= MANA_BELOW then
  17.         Self.UseItemWithMe(POTIONID, math.random(RUNE_DELAY[1], RUNE_DELAY[2]))
  18.     end            
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement