DataType:Cast
Returns information about plugin status, currently spell being cast, spell readiness and more.
This Data Type is referenced in MQ2Cast, and accessed by Top-Level Object(s): Cast
Members
Type | Member | Description | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bool | Active | Return TRUE if plugin is loaded and you are in-game. | ||||||||||||||||||||||||||||||||||||||||||||||||
Ready[X] |
Returns TRUE if ready to cast a spell, item or AA
Return TRUE if ready to memorize a spell. ${Cast.Ready[#]} Return TRUE if gem # is ready to cast. ${Cast.Ready[<name or ID>]} Return TRUE if spell, item, gem, ID, AA, etc is ready to cast. As spells and items can have the same IDs and spells and AAs can have the same names, it's a good idea to specify the type of cast to take place (ie. gem#/item/alt). See examples on DataType:Cast |
|||||||||||||||||||||||||||||||||||||||||||||||||
Taken | Return TRUE if last spell cast didn't take hold on target. | |||||||||||||||||||||||||||||||||||||||||||||||||
int | Timing | Returns the estimated number of miliseconds remaining until the spell finished casting. | ||||||||||||||||||||||||||||||||||||||||||||||||
spell | Effect | Returns the name of the spell being cast, or a NULL string if not casting. | ||||||||||||||||||||||||||||||||||||||||||||||||
Stored | Returns the last spell that was cast, or NULL if no spell has been cast. | |||||||||||||||||||||||||||||||||||||||||||||||||
string | Result | Returns a string containing the result of the /casting command. It can be one of the following:
|
||||||||||||||||||||||||||||||||||||||||||||||||
Return | Returns the result of the casting/memorize/interrupt request. | |||||||||||||||||||||||||||||||||||||||||||||||||
Status | Returns a string containing all the pending events. This string often contains multiple events (eg. when /casting still has to immobilize you and then memorize the spell before it can cast).
|
Examples
- Testing if an AA, spell or item is ready to cast:
- ${Cast.Ready[spellname or spellid]}
- ${Cast.Ready[aaname or aaid]}
- ${Cast.Ready[itemname or itemid]}
- ${Cast.Ready[1460]}
- ${Cast.Ready[Death Peace]}
- ${Cast.Ready[Death Peace|alt]}
- ${Cast.Ready[Death Peace|gem]}
- ${Cast.Ready[Death Peace|gem3]}