ScriptUO

Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: Dan123The123Man on February 01, 2016, 05:32:50 PM

Title: Question about script.
Post by: Dan123The123Man on February 01, 2016, 05:32:50 PM
I was wanting to merge the two of these into one

Greater heal last target over and over:

Code: [Select]
if #MANA > 40
{
event macro 15 28
wait 45
event macro 22 0
wait 40
}
return


cast mirror image spell over and over:

Code: [Select]
    if #MANA > 15
    {
      event macro 15 252
      wait 2s
      finditem IS G_0
      if #findcnt > 0
      }
    }
  }



What I was wondering though is how would I make it into one script that will cast greater heal on last target until last target is 100% health and then once it is then cast mirror images again until followers = 5 ?
Title: Re: Question about script.
Post by: NObama on February 02, 2016, 07:09:57 PM
Recommend you review some casting training scripts.  Look for a magery trainer, for example, to see if it casts summons.  There should be a follower count.

You can also check the EUO wiki.  The documentation is actually quite thorough.
Title: Re: Question about script.
Post by: Endless Night on August 24, 2016, 07:02:16 AM

What I was wondering though is how would I make it into one script that will cast greater heal on last target until last target is 100% health and then once it is then cast mirror images again until followers = 5 ?

Very easily

Psuedo code would be
Code: [Select]
repeat
  ; caste great heal on lasttarget  (meditate first if need to)
  ;  get target health
until  %TargetHealth = 100
while #Followers < 5
   {
   ; caste mirror image  (meditiate first if need to)
   }