-
Notifications
You must be signed in to change notification settings - Fork 758
Setmount
Haru edited this page Oct 19, 2016
·
1 revision
- setmount {<flag></flag>};
- checkmount()
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.
The following flag values are accepted:
MOUNT_NONE&amp;&#35;58&#59; &amp;&#35;45&#59; Dismount MOUNT_PECO&amp;&#35;58&#59; &amp;&#35;45&#59; PecoPeco (Knight series class) &amp;&#35;45&#59; GrandPeco (Crusader series class) &amp;&#35;45&#59; Gryphon (Royal Guard) MOUNT_WUG&amp;&#35;58&#59; &amp;&#35;45&#59; Warg (Ranger) MOUNT_MADO&amp;&#35;58&#59; &amp;&#35;45&#59; Mado Gear (Mechanic) MOUNT_DRAGON&amp;&#35;58&#59; MOUNT_DRAGON_GREEN&amp;&#35;58&#59; MOUNT_DRAGON_BROWN&amp;&#35;58&#59; MOUNT_DRAGON_GRAY&amp;&#35;58&#59; MOUNT_DRAGON_BLUE&amp;&#35;58&#59; MOUNT_DRAGON_RED&amp;&#35;58&#59; &amp;&#35;45&#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.
if (checkmount() &amp;&#35;61&#59;&amp;&#35;61&#59; MOUNT_DRAGON) mes &amp;quot&#59;Wow, your dragon is cool&amp;&#35;33&#59; Can I pet it?&amp;quot&#59;&amp;&#35;59&#59;Category:Script Command