MARS Client Scripting Library - MarsTraining

From Multiverse

Jump to: navigation, search

MarsTraining is a class in the MARS Client Scripting Library that interacts with the MARS Trainer Plug-in.

Contents

Methods

SendSkillTrainingRequest

SendSkillTrainingRequest(skill)

Sends a request to the server to train the current player with the given skill name.

Returns

None.

Parameters

Parameter Datatype Default Value Description
skill string None The name of the skill to be trained.

SendTrainingInfoRequestMessage

SendTrainingInfoRequestMessage(npcId)

Sends a message requesting what skills the NPC given has to offer.

Returns

None.

Parameters

Parameter Datatype Default Value Description
npcId long None The OID of the NPC Trianer.


Events

The MarsTraining class generates the following UI events:

  • TRAINING_FAILED
  • TRAINING_INFO

Messages

The MarsTraining class registers for the following message types:

  • mv.TRAINING_FAILED
  • mv.TRAINING_INFO
Personal tools