From bd509c99b5015b3590d25598ae1ddabcb3c01434 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 27 Jun 2013 18:58:21 -0300 Subject: Fixed Bug #7433 http://hercules.ws/board/tracker/issue-7433-mount-and-mount2-command-bug/ Signed-off-by: shennetsind --- src/map/atcommand.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/map/atcommand.c') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 7b0d45199..b778aab6c 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -4023,6 +4023,11 @@ ACMD(mount_peco) return false; } + if( sd->sc.data[SC_ALL_RIDING] ) { + clif->message(fd, msg_txt(1476)); // You are already mounting something else + return false; + } + if( (sd->class_&MAPID_THIRDMASK) == MAPID_RUNE_KNIGHT && pc->checkskill(sd,RK_DRAGONTRAINING) > 0 ) { if( !(sd->sc.option&OPTION_DRAGON1) ) { clif->message(sd->fd,msg_txt(1119)); // You have mounted your Dragon. @@ -8473,6 +8478,11 @@ ACMD(charcommands) /* for new mounts */ ACMD(mount2) { + if( sd->sc.option&(OPTION_WUGRIDER|OPTION_RIDING|OPTION_DRAGON|OPTION_MADOGEAR) ) { + clif->message(fd, msg_txt(1476)); // You are already mounting something else + return false; + } + clif->message(sd->fd,msg_txt(1362)); // NOTICE: If you crash with mount your LUA is outdated. if( !(sd->sc.data[SC_ALL_RIDING]) ) { clif->message(sd->fd,msg_txt(1363)); // You have mounted. -- cgit v1.2.3-60-g2f50