From ef6249a84ac41ff029ee37dde1e8c9427515198f Mon Sep 17 00:00:00 2001 From: skotlex Date: Tue, 9 May 2006 21:09:53 +0000 Subject: - Updated setoption script command to receive a second (optional) argument flag. If the flag is 1, the option is added to what the player currently has; likewise using flag 2 removes only that option. No flag (or any other value) is the older behaviour of removing all other options and setting specificly what is passed. - Updated script_commands information for setoption due to this change. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6538 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 7 +++++++ doc/script_commands.txt | 16 ++++++++-------- src/map/script.c | 22 +++++++++++++++++++--- src/map/status.h | 1 - 4 files changed, 34 insertions(+), 12 deletions(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index a0c609b1f..846eb5650 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -4,6 +4,13 @@ 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/09 + * Updated setoption script command to receive a second (optional) argument + flag. If the flag is 1, the option is added to what the player currently + has; likewise using flag 2 removes only that option. No flag (or any other + value) is the older behaviour of removing all other options and setting + specificly what is passed. [Skotlex] + * Updated script_commands information for setoption due to this change. + [Skotlex] * Small fix in npc-created chat rooms to properly include the terminating 0 on the chat's event. [Skotlex] * Fixed Fog of Wall's symmetry in respect to Misc attacks, they no longer diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 7c0822bb8..9c87d2530 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -2654,7 +2654,7 @@ Note: Break won't work anymore, it has been commented out in src/map/script.c: *checkoption(