Author Topic: Wait for mana  (Read 9633 times)

0 Members and 1 Guest are viewing this topic.

Offline onlyindreamsTopic starter

  • Spaz Ferret's Personal Assistant
  • Insane Scripter
  • *
  • Posts: 1302
  • Activity:
    0%
  • Reputation Power: 13
  • onlyindreams barely matters.onlyindreams barely matters.
  • Respect: +96
  • Referrals: 2
    • View Profile
Wait for mana
« on: January 09, 2015, 08:38:52 AM »
0
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

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1618
  • Activity:
    0%
  • Reputation Power: 20
  • The Ghost might someday be someone...The Ghost might someday be someone...The Ghost might someday be someone...The Ghost might someday be someone...
  • Respect: +241
  • Referrals: 0
    • View Profile
Re: Wait for mana
« Reply #1 on: January 09, 2015, 02:01:30 PM »
0
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
}

Offline Biza

  • Jr. Member
  • **
  • Posts: 70
  • Activity:
    0%
  • Reputation Power: 1
  • Biza has no influence.
  • Gender: Male
  • Respect: +9
  • Referrals: 0
    • View Profile
Re: Wait for mana
« Reply #2 on: November 02, 2015, 05:13:17 AM »
0
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.
« Last Edit: November 02, 2015, 05:16:08 AM by Biza »
Quote from: TrailMyx
These are the things we look for in new users and perspective Elite members:

Quoting Elites/GMods/Admins in your siggys.

Tags: