Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local healthPotID = {118, 858, 4596, 929, 1710, 18839, 3928, 13446}
- local function useHealPots()
- for i=#healthPotID,1,-1 do
- if GetItemCount(healthPotID[i]) >= 1 and player.health.percent <= 20 and (GetItemCooldown(healthPotID[i])) == 0 then
- macro('/use '.. GetItemInfo(healthPotID[i]))
- return true
- end
- end
- return false
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement