Here can find some information about Enhanced Scripting function about cast spell and ability. Note that the optional targeted form is not available on all servers. If the optional targeted form DOES work on your server, you still have to wait after casting with Misc.Pause(…) for whatever the cast time should be. The server wont accept other commands until the cast time has completed.
Cast Spell | |
Syntax | Spells.Cast(string SpellName [,item or int target]) |
Description: | |
Cast the spell specified, the spellname doesn't have to be spelled exactly. The target is optional and not available on all servers, but if specified the cast spell will be applied to the specified target. Note that this form can cast any of the classes of spell (Necro Mage…). | |
Returns | none |
In Object: | Items |
Parameters: | String SpellName, optionally Item or Int for a target |
Player Cast Magery Spell | |
Syntax | Spells.CastMagery(string SpellName [,item or int target]) |
Description: | |
Player cast a magery spell by spellname. The target is optional and not available on all servers, but if specified the cast spell will be applied to the specified target. | |
Returns | void |
In Object: | Spells |
Parameters: | String Spellname |
Parameters list: |
|
Player Cast Necro Spell | |
Syntax | Spells.CastNecro(string SpellName [,item or int target]) |
Description: | |
Player cast a necro spell by spellname. The target is optional and not available on all servers, but if specified the cast spell will be applied to the specified target. | |
Returns | void |
In Object: | Spells |
Parameters: | String Spellname |
Parameters list: |
|
Player Cast Chivalry Spell | |
Syntax | Spells.CastChivalry(string SpellName [,item or int target]) |
Description: | |
Player cast a chivalry spell by spellname. The target is optional and not available on all servers, but if specified the cast spell will be applied to the specified target. | |
Returns | void |
In Object: | Spells |
Parameters: | String Spellname |
Parameters list: |
|
Player Cast Bushido Spell | |
Syntax | Spells.CastBushido(string SpellName [,item or int target]) |
Description: | |
Player cast a bushido spell by spellname. The target is optional and not available on all servers, but if specified the cast spell will be applied to the specified target. | |
Returns | void |
In Object: | Spells |
Parameters: | String Spellname |
Parameters list: |
|
Player Cast Ninjitsu Spell | |
Syntax | Spells.CastNinjitsu(string SpellName [,item or int target]) |
Description: | |
Player cast a ninjitsu spell by spellname. The target is optional and not available on all servers, but if specified the cast spell will be applied to the specified target. | |
Returns | void |
In Object: | Spells |
Parameters: | String Spellname |
Parameters list: |
|
Player Cast Spellweaving Spell | |
Syntax | Spells.CastSpellweaving(string SpellName [,item or int target]) |
Description: | |
Player cast a spellweaving spell by spellname. The target is optional and not available on all servers, but if specified the cast spell will be applied to the specified target. | |
Returns | void |
In Object: | Spells |
Parameters: | String Spellname |
Parameters list: |
|
Player Cast Mysticism Spell | |
Syntax | Spells.CastMysticism(string SpellName [,item or int target]) |
Description: | |
Player cast a mysticism spell by spellname. The target is optional and not available on all servers, but if specified the cast spell will be applied to the specified target. | |
Returns | void |
In Object: | Spells |
Parameters: | String Spellname |
Parameters list: |
|
Player Cast Mastery Spell | |
Syntax | Spells.CastMastery(string SpellName [,item or int target]) |
Description: | |
Player cast a mastery spell by spellname. The target is optional and not available on all servers, but if specified the cast spell will be applied to the specified target. | |
Returns | void |
In Object: | Spells |
Parameters: | String Spellname |
Parameters list: |
|
Player Cast Druid Spell | |
Syntax | Spells.CastDruid(string SpellName [,item or int target]) |
Description: | |
Player cast a druid spell by spellname. Few servers support this and it must be enabled in options panel. The target is optional and not available on all servers, but if specified the cast spell will be applied to the specified target. | |
Returns | void |
In Object: | Spells |
Parameters: | String Spellname |
Parameters list: |
|
Player Cast Cleric Spell | |
Syntax | Spells.CastCleric(string SpellName [,item or int target]) |
Description: | |
Player cast a cleric spell by spellname. Few servers support this, and it must be enabled in options panel. The target is optional and not available on all servers, but if specified the cast spell will be applied to the specified target. | |
Returns | void |
In Object: | Spells |
Parameters: | String Spellname |
Parameters list: |
|