Author Topic: Question about script.  (Read 3106 times)

0 Members and 1 Guest are viewing this topic.

Offline Dan123The123ManTopic starter

  • Jr. Member
  • **
  • Posts: 31
  • Activity:
    0%
  • Reputation Power: 1
  • Dan123The123Man has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Question about script.
« on: February 01, 2016, 05:32:50 PM »
0
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 ?

Offline NObama

  • Everything I need to know, I learned from Miffy's Item Finder.
  • Elite
  • *
  • *
  • Posts: 3454
  • Activity:
    0%
  • Reputation Power: 43
  • NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.
  • Respect: +161
  • Referrals: 2
    • View Profile
Re: Question about script.
« Reply #1 on: February 02, 2016, 07:09:57 PM »
0
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.

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: Question about script.
« Reply #2 on: August 24, 2016, 07:02:16 AM »
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 ?

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)
   }
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Tags: