summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/script.c b/src/map/script.c
index a061fcdd1..c847179df 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -16697,7 +16697,7 @@ BUILDIN(ismounting) {
TBL_PC* sd;
if( (sd = script_rid2sd(st)) == NULL )
return true;
- if( sd->sc.option&OPTION_MOUNTING )
+ if( sd->sc.data[SC_ALL_RIDING] )
script_pushint(st,1);
else
script_pushint(st,0);
@@ -16717,10 +16717,10 @@ BUILDIN(setmounting) {
if( sd->sc.option&(OPTION_WUGRIDER|OPTION_RIDING|OPTION_DRAGON|OPTION_MADOGEAR) )
script_pushint(st,0);//can't mount with one of these
else {
- if( sd->sc.option&OPTION_MOUNTING )
- pc_setoption(sd, sd->sc.option&~OPTION_MOUNTING);//release mount
+ if( sd->sc.data[SC_ALL_RIDING] )
+ status_change_end(&sd->bl, SC_ALL_RIDING, INVALID_TIMER);
else
- pc_setoption(sd, sd->sc.option|OPTION_MOUNTING);//mount
+ sc_start(&sd->bl, SC_ALL_RIDING, 100, 0, -1);
script_pushint(st,1);//in both cases, return 1.
}
return true;