diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-28 23:10:14 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-28 23:10:14 +0000 |
commit | 286bf9344aa4a0c3c9cacf718a8bbefea5767b58 (patch) | |
tree | 319eeb3b0ce51b15ea62d88756a963ec4c810e74 /src/map | |
parent | 18c49a77dc491b844ca3516b584d4d2d1747e3c8 (diff) | |
download | hercules-286bf9344aa4a0c3c9cacf718a8bbefea5767b58.tar.gz hercules-286bf9344aa4a0c3c9cacf718a8bbefea5767b58.tar.bz2 hercules-286bf9344aa4a0c3c9cacf718a8bbefea5767b58.tar.xz hercules-286bf9344aa4a0c3c9cacf718a8bbefea5767b58.zip |
- Added a check in script command "set_option" so that invoking "set_option(0)" removes Cart/Peco/Falcon, as expected by scripts.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7381 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/script.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c index 692b985b4..3f7b98aaa 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -5285,7 +5285,10 @@ int buildin_setoption(struct script_state *st) type=conv_num(st,& (st->stack->stack_data[st->start+2])); if(st->end>st->start+3 ) flag=conv_num(st,&(st->stack->stack_data[st->start+3]) ); - + else if (!type) { //Request to remove everything. + flag = 0; + type = OPTION_CART|OPTION_FALCON|OPTION_RIDING; + } sd=script_rid2sd(st); if (!sd) return 0; |