stop_riding

Settable:
no
Arguments:
character
Return Value:
boolean

Stops the given character from riding and sets his position to 'Standing'. Returns true if he was riding, false if he wasn't riding.


Example:
setpr cool-object 1 on_mudl-dismount-command
if (mount(%a),
 (msg_character(%a,'has mount! dismounting!'),stop_riding(%a),return(true)),
 (msg_character(%a,'not has mount!'),return(true))
),
return(false)
@

Result:
> mudl-dismount-command
Not has mount!

> trans flossie
Flossie the riding horse arrives from a puff of smoke.
Ok.

> mount flossie
OK. You are riding.

> mudl-dismount-command
Has mount! dismounting!

> dismount
Dismount?? You are not on anything.