Skip to content
Haru edited this page Oct 19, 2016 · 1 revision

Syntax

  • setmount {<flag></flag>};
  • checkmount()

Description

If <flag></flag> is MOUNT_NONE (or 0) this command will remove the mount from the character.

Otherwise it gives the invoking character the desired combat mount, where allowed by their class and skills.

If no flag is specified, the mount is automatically chosen according to the character's class and skills.

The following flag values are accepted:
 	MOUNT_NONE&amp;amp&#59;&amp;&#35;35&#59;58&amp;&#35;59&#59;
 	   &amp;amp&#59;&amp;&#35;35&#59;45&amp;&#35;59&#59; Dismount
 	MOUNT_PECO&amp;amp&#59;&amp;&#35;35&#59;58&amp;&#35;59&#59;
 	   &amp;amp&#59;&amp;&#35;35&#59;45&amp;&#35;59&#59; PecoPeco (Knight series class)
 	   &amp;amp&#59;&amp;&#35;35&#59;45&amp;&#35;59&#59; GrandPeco (Crusader series class)
 	   &amp;amp&#59;&amp;&#35;35&#59;45&amp;&#35;59&#59; Gryphon (Royal Guard)
 	MOUNT_WUG&amp;amp&#59;&amp;&#35;35&#59;58&amp;&#35;59&#59;
 	   &amp;amp&#59;&amp;&#35;35&#59;45&amp;&#35;59&#59; Warg (Ranger)
 	MOUNT_MADO&amp;amp&#59;&amp;&#35;35&#59;58&amp;&#35;59&#59;
 	   &amp;amp&#59;&amp;&#35;35&#59;45&amp;&#35;59&#59; Mado Gear (Mechanic)
 	MOUNT_DRAGON&amp;amp&#59;&amp;&#35;35&#59;58&amp;&#35;59&#59;
 	MOUNT_DRAGON_GREEN&amp;amp&#59;&amp;&#35;35&#59;58&amp;&#35;59&#59;
 	MOUNT_DRAGON_BROWN&amp;amp&#59;&amp;&#35;35&#59;58&amp;&#35;59&#59;
 	MOUNT_DRAGON_GRAY&amp;amp&#59;&amp;&#35;35&#59;58&amp;&#35;59&#59;
 	MOUNT_DRAGON_BLUE&amp;amp&#59;&amp;&#35;35&#59;58&amp;&#35;59&#59;
 	MOUNT_DRAGON_RED&amp;amp&#59;&amp;&#35;35&#59;58&amp;&#35;59&#59;
 	   &amp;amp&#59;&amp;&#35;35&#59;45&amp;&#35;59&#59; Dragon (Rune Knight)
 	   if MOUNT_DRAGON is specified, a the default (green) dragon will be used.
Unlike 'setfalcon' and 'setcart' this will not work at all if they aren't of a class which can ride a mount.

The accompanying function will return 0 if the invoking character is not on a mount, and a non-zero value (according to the above constants) if they are.
Note: in case of dragons, the returned value will always be MOUNT_DRAGON, regardless of color.

Example

 	if (checkmount() &amp;amp&#59;&amp;&#35;35&#59;61&amp;&#35;59&#59;&amp;amp&#59;&amp;&#35;35&#59;61&amp;&#35;59&#59; MOUNT_DRAGON)
 		mes &amp;amp&#59;quot&amp;&#35;59&#59;Wow, your dragon is cool&amp;amp&#59;&amp;&#35;35&#59;33&amp;&#35;59&#59; Can I pet it?&amp;amp&#59;quot&amp;&#35;59&#59;&amp;amp&#59;&amp;&#35;35&#59;59&amp;&#35;59&#59;
Category:Script Command
Clone this wiki locally