ScriptUO
Official ScriptUO EasyUO Scripts => Scripting Tutorials => Topic started 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?
if #mana > 14
Event Macro 15 36 ;cast mindblast
target
Event Macro 22 0 ;last target
wait 2s
-
use the bracket since yo have more then one line of code after the if
if #mana > 14
{
Event Macro 15 36 ;cast mindblast
target 3s
Event Macro 22 0 ;last target
wait 2s
}
-
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?
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.