From e828c8642a637a3e3f63450b75ebc93f2bd4bce4 Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Sun, 22 Apr 2007 15:45:37 +0000 Subject: * Extended the functionality of StringBuf - length and appending a string. * menu/select/prompt script functions support grouped and empty options. The selected option number is consistent with them. * More work on ticket #41. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10316 54d463be-8e91-2dee-dedb-b68131a5f0ec --- Changelog-Trunk.txt | 5 + doc/script_commands.txt | 56 +++-- src/common/utils.c | 25 +++ src/common/utils.h | 2 + src/map/clif.c | 2 +- src/map/map.h | 2 +- src/map/script.c | 576 ++++++++++++++++++++++++++++++------------------ 7 files changed, 432 insertions(+), 236 deletions(-) diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index c0a1a3c48..1b9ec0376 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -3,6 +3,11 @@ Date Added AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. +2007/04/23 + * Extended the functionality of StringBuf - length and appending a string. + * menu/select/prompt script functions support grouped and empty options. + The selected option number is consistent with them. + * More work on ticket #41. [FlavioJS] 2007/04/22 * Corrected crash if itemskill is used without an attached player. * Removed range checks for autospells as per UltraMage Aegis tests. diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 4c90118da..15fad965a 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -9,7 +9,7 @@ //= Maeki Rika - A section on general concepts and lots of //= other updates and additions. //===== Version =========================================== -//= 3.04.20070317 +//= 3.05.20070423 //========================================================= //= 1.0 - First release, filled will as much info as I could //= remember or figure out, most likely there are errors, @@ -73,6 +73,9 @@ //= Adjusted the 'itemskill' description due to recent change [ultramage] //= 3.04.20070409 //= Fixed the incorrect order of parameters in 'makeitem' [ultramage] +//= 3.05.20070423 +//= menu/select/prompt produce consistent results for grouped and empty +//= options [FlavioJS] //===== Description ======================================= //= A reference manual for the eAthena scripting language, //= sorted out depending on their functionality. @@ -1116,7 +1119,7 @@ Note by FlavioJS: goto's are "evil" and should be avoided if possible ( --------------------------------------- -*menu "",