ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Tutorials => Topic started by: onlyindreams on January 09, 2015, 08:38:52 AM

Title: Wait for mana
Post by: onlyindreams on January 09, 2015, 08:38:52 AM
I'm using this to cast mindblast repeatedly to skill something. What is the proper command so it won't attempt to cast until I have 14 mana?

Code: [Select]
if #mana > 14

Event Macro 15 36 ;cast mindblast
target
Event Macro 22 0 ;last target

wait 2s
Title: Re: Wait for mana
Post by: The Ghost on January 09, 2015, 02:01:30 PM
use the bracket since yo have more then one line of code after the if

Code: [Select]
if #mana > 14
{
   Event Macro 15 36 ;cast mindblast
   target 3s
   Event Macro 22 0 ;last target
   wait  2s
}
Title: Re: Wait for mana
Post by: Biza on November 02, 2015, 05:13:17 AM
I'm using this to cast mindblast repeatedly to skill something. What is the proper command so it won't attempt to cast until I have 14 mana?

Code: [Select]
if #mana > 14

Event Macro 15 36 ;cast mindblast
target
Event Macro 22 0 ;last target

wait 2s

Status bar on the right side of EUO window, click the + next to it. #mana will give you your current mana, #maxmana will give you your maximum mana.

unless #mana <14

or

if #mana <14
Gosub Medit

Medit
Event macro
  Until #mana = #maxmana

(this wont actually work you will need to write it)

There are a bunch of stickies in this section of the board that can teach you how to write basic stuff like this. Read em!

Edit: For some reason I didn't see this was from January.