Advertisement
Guest User

Untitled

a guest
Dec 14th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. local healthPotID = {118, 858, 4596, 929, 1710, 18839, 3928, 13446}
  2. local function useHealPots()
  3.   for i=#healthPotID,1,-1 do
  4.     if GetItemCount(healthPotID[i]) >= 1 and player.health.percent <= 20 and (GetItemCooldown(healthPotID[i])) == 0 then
  5.       macro('/use '.. GetItemInfo(healthPotID[i]))
  6.       return true
  7.     end
  8.   end
  9.   return false
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement