summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorAnnieRuru <jeankofannie2@gmail.com>2019-02-28 01:16:07 +0800
committerAnnieRuru <jeankofannie2@gmail.com>2019-02-28 01:16:07 +0800
commit98ae816147a28ce98676b92a41d42be65365ff31 (patch)
tree6042f3d33b11cd84767ddf575ec18de19583dfd7 /src/map/script.c
parent94db964dab27c4572671aa1b486398573e86cce5 (diff)
downloadhercules-98ae816147a28ce98676b92a41d42be65365ff31.tar.gz
hercules-98ae816147a28ce98676b92a41d42be65365ff31.tar.bz2
hercules-98ae816147a28ce98676b92a41d42be65365ff31.tar.xz
hercules-98ae816147a28ce98676b92a41d42be65365ff31.zip
* Remove all the (int) in the documentation
- once all the strings culprit are out, now only left with int to deal with. - Please make this script command only dealing with ONE INTEGER value
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 7578fcdcc..02afc0219 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -18636,6 +18636,10 @@ static BUILDIN(getunittype)
* @param4 Value#2 Optional int value to be passed for certain data types.
* @param5 Value#3 Optional int value to be passed for certain data types.
* @return 1 on success, 0 on failure.
+
+ Note: Please make this script command only modify ONE INTEGER value.
+ If need to modify string type data, or having multiple arguments, please
+ introduce a new script command.
*/
static BUILDIN(setunitdata)
{
@@ -18661,7 +18665,7 @@ static BUILDIN(setunitdata)
return false;
}
- /* Mandatory Argument 3 */
+ /* Mandatory Argument 3. Subject to deprecate. */
if (type == UDT_MAPIDXY) {
if (!script_isstringtype(st, 4)) {
ShowError("buildin_setunitdata: Invalid data type for argument #3.\n");
@@ -19753,6 +19757,10 @@ static BUILDIN(setunitdata)
* @param2 DataType Type of Data to be set for the unit.
* @param3 Variable array reference to store data into. (used for UDT_MAPIDXY)
* @return 0 on failure, <value> on success
+
+ Note: Please make this script command only return ONE INTEGER value.
+ If the unit data having multiple arguments, or need to return in array,
+ please introduce a new script command.
*/
static BUILDIN(getunitdata)
{
@@ -19780,7 +19788,7 @@ static BUILDIN(getunitdata)
return false;
}
- /* Argument checks */
+ /* Argument checks. Subject to deprecate */
if (type == UDT_MAPIDXY) {
if (data == NULL || !data_isreference(data)) {
ShowWarning("buildin_getunitdata: Error in argument 3. Please provide a reference variable to store values in.\n");