Contents
- 1 Command & Spells
- 1.1 Command.Load(ByVal CommandName As String, ByVal FileName As String, Optional silent As Boolean = False)
- 1.2 Spell.Load(ByVal CommandName As String, ByVal FileName As String, Optional silent As Boolean = False)
- 1.3 Command.Unload(ByVal CommandName As String, Optional silent As Boolean = False)
- 1.4 Spell.Unload(ByVal CommandName As String, Optional silent As Boolean = False)
- 1.5 Spell.Process(ByVal argv As String, Optional Index As Integer = -1, Optional isPlayerUse As Boolean = True) As Boolean
- 1.6 Command.Process(ByVal argv As String, Optional Index As Integer = -1, Optional isPlayerUse As Boolean = True) As Boolean
Command & Spells
Command.Load(ByVal CommandName As String, ByVal FileName As String, Optional silent As Boolean = False)
- Description=Load a skill dynamically. This is good specifically when you don't need specific scripts unless a requirement has been hit, such as a class requirement or level requirement.
- Values
- CommandName=The skill name that will be used via a command.
- FileName=The file name. This already starts in the 'Scripts/Commands' folder.
- silent=(OPTIONAL) Should we announce to the player that the spell was added?
- Example=Command.Load("roar", "npc/roar")
Spell.Load(ByVal CommandName As String, ByVal FileName As String, Optional silent As Boolean = False)
- Description=Load a spell dynamically. This is good specifically when you don't need specific scripts unless a requirement has been hit, such as a class requirement or level requirement.
- Values
- CommandName=The spell name that will be used via a cast command.
- FileName=The file name. This already starts in the 'Scripts/Spells' folder.
- silent=(OPTIONAL) Should we announce to the player that the spell was added?
- Example=Spell.Load("beam", "beam")
Command.Unload(ByVal CommandName As String, Optional silent As Boolean = False)
- Description=Unload a skill dynamically.
- Values
- CommandName=The skill that should be unloaded.
- silent=(OPTIONAL) Should we announce to the player that the spell was added?
- Example=Command.Unload("roar")
Spell.Unload(ByVal CommandName As String, Optional silent As Boolean = False)
- Description=Unload a spell dynamically.
- Values
- CommandName=The spell that should be unloaded.
- silent=(OPTIONAL) Should we announce to the player that the spell was added?
- Example=Spell.Unload("beam")
Spell.Process(ByVal argv As String, Optional Index As Integer = -1, Optional isPlayerUse As Boolean = True) As Boolean
- Description=Uses a spell. Generally this is used by a monster when you want to call a spell at a certain point. Must be a loaded spell (Spell.Load)
- Values
- argv=The spell name to call.
- Index=The entity to cast this on. Is not required.
- isPlayerUse=Is this a player? True for player, False for monster.
- Returns=True is spell was called successful or not, false otherwise. Can be used to have requirements in the script file to call the spell.
- Example=Spell.Process("beam", 1, true)
Command.Process(ByVal argv As String, Optional Index As Integer = -1, Optional isPlayerUse As Boolean = True) As Boolean
- Description=Uses a command. Generally this is used by a monster when you want to call a command at a certain point. Must be a loaded command (Command.Load)
- Values
- argv=The command name to call.
- Index=The entity to cast this on. Is not required.
- isPlayerUse=Is this a player? True for player, False for monster.
- Returns=True is command was called successful or not, false otherwise. Can be used to have requirements in the script file to call the command.
- Example=Command.Process("roar")