Jump to: navigation, search

Command and Spells

Command & Spells

Command.Load(CommandName As String, 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(CommandName As String, 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(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(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(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(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")