MARS Client Scripting Library - MarsTraining
From Multiverse
| MARS Client Scripting Library | |
|
MarsAbility
|
MarsQuest
|
| Additional Modules | |
| MarsStandardCommands | |
| Examples | |
| InstancePortal | |
MarsTraining is a class in the MARS Client Scripting Library that interacts with the MARS Trainer Plug-in.
Contents |
[edit]
Methods
[edit]
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. |
[edit]
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. |
[edit]
Events
The MarsTraining class generates the following UI events:
-
TRAINING_FAILED -
TRAINING_INFO
[edit]
Messages
The MarsTraining class registers for the following message types:
-
mv.TRAINING_FAILED -
mv.TRAINING_INFO
