diff options
author | shennetsind <ind@henn.et> | 2013-04-24 16:51:51 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-04-24 16:51:51 -0300 |
commit | 2df7ce406e3af72859da37f38f4d5d296c3c1461 (patch) | |
tree | 5f85253e434edd73264e571762f7f562a94b162f /src/map/script.c | |
parent | 018680a339e96fe28e115f94a9eb0f0816bd72c4 (diff) | |
download | hercules-2df7ce406e3af72859da37f38f4d5d296c3c1461.tar.gz hercules-2df7ce406e3af72859da37f38f4d5d296c3c1461.tar.bz2 hercules-2df7ce406e3af72859da37f38f4d5d296c3c1461.tar.xz hercules-2df7ce406e3af72859da37f38f4d5d296c3c1461.zip |
Hanbok & Costumes Update
http://hercules.ws/board/topic/485-hanbok-costumes-update/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 8 |
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; |