|
Post by nefariis on Mar 3, 2021 16:59:25 GMT
Here is my take on it -
Have two animals (doesn't need to be the same type of animal), they just need to be called the same thing.
-- LoA 1.4.0.0 -- LoU 1.2.1.0
FindMobile("Dalai LLamas") if not FINDMOBILE then print("Bad Names") return end local a1 = {ID = FINDMOBILE[1].ID, MAX = FINDMOBILE[1].HP} local a2 = {ID = FINDMOBILE[2].ID, MAX = FINDMOBILE[2].HP}
FindItem("Bandages", BACKPACKID) bandages = FINDITEM[1].ID
while true do ContextMenu(a1["ID"], "Attack Target") WaitForTarget() TargetDynamic(a2["ID"]) sleep(4000) Say("All Stop") for pet in {a1, a2} do FindMobile(pet["ID"]) while FINDMOBILE[1].HP < pet["MAX"] do ContextMenu(bandages, "Use") WaitForTarget() TargetDynamic(pet["ID"]) sleep(5000) FindMobile(pet["ID"]) end end end
if you want to include Animal Lore to the macro, you can adjust the "while" statement to include it - something like....
while FINDMOBILE[1].HP < pet["MAX"] do ContextMenu(bandages, "Use") WaitForTarget() TargetDynamic(pet["ID"]) sleep(2000) Macro(anLoreMacro) WaitForTarget() TargetDynamic(pet["ID"]) sleep(3000) FindMobile(pet["ID"]) end
|
|