summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-28 23:10:14 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-28 23:10:14 +0000
commit286bf9344aa4a0c3c9cacf718a8bbefea5767b58 (patch)
tree319eeb3b0ce51b15ea62d88756a963ec4c810e74
parent18c49a77dc491b844ca3516b584d4d2d1747e3c8 (diff)
downloadhercules-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
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/script.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 0f5a54151..2a6d9fda4 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/05/28
+ * Added a check in script command "set_option" so that invoking
+ "set_option(0)" removes Cart/Peco/Falcon, as expected by scripts. [Skotlex]
* Added trade-range check on trade start. [Skotlex]
* Added inf2 4096 (INF2_ALLOW_ENEMY) which is to be used in conjunction
with INF2_PARTY_ONLY/INF2_GUILD_ONLY when said skill should ALSO be allowed
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;