From 3b197eb76c8d69a1e63583d6e81a37fbba78c43d Mon Sep 17 00:00:00 2001 From: Cydh Ramdh Date: Sat, 14 Mar 2015 19:19:53 +0700 Subject: [PATCH] Added optional param for some script commands: * getexp ,{,}; * equip {,}; * unequip {,}; * delequip {,}; * breakequip {,}; * clearitem {,}; * openmail {}; * openauction {}; * setquest {,}; * completequest {,}; * erasequest {,}; * changequest ,{,}; * checkquest({,PLAYTIME|HUNTING{,}}) * isbegin_quest({,}) * showevent {,{,}} * setd "",{,}; Signed-off-by: Cydh Ramdh --- doc/script_commands.txt | 35 ++++++------ src/map/script.c | 124 ++++++++++++++++++---------------------- 2 files changed, 74 insertions(+), 85 deletions(-) diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 705a5ab565..1a1f46bcf6 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -1226,7 +1226,7 @@ Returns the variable reference (since trunk r12870). --------------------------------------- -*setd "",; +*setd "",{,}; Works almost identically as set, except the variable name is identified as a string and can thus be constructed dynamically. @@ -1242,6 +1242,9 @@ Examples: setd ".@" + .@var$ + "123$", "Poporing is cool"; mes .@Poporing123$; // Displays "Poporing is cool". +NOTE: + 'char_id' only works for non-server variables. + --------------------------------------- *getd("") @@ -4132,7 +4135,7 @@ they will also have their skills reset upon 'changesex'. --------------------------------------- -*getexp ,; +*getexp ,{,}; This command will give the invoking character a specified number of base and job experience points. Can be used as a quest reward. Negative values won't work. @@ -4846,7 +4849,7 @@ appropriate messages into their chat window. --------------------------------------- -*unequip ; +*unequip {,}; This command will unequip whatever is currently equipped in the invoking character's specified equipment slot. For a full list of possible equipment @@ -4857,7 +4860,7 @@ them. --------------------------------------- -*delequip ; +*delequip {,}; This command will destroy whatever is currently equipped in the invoking character's specified equipment slot. For a full list of possible equipment @@ -4867,7 +4870,7 @@ This command will return 1 if an item was deleted and 0 otherwise. --------------------------------------- -*breakequip ; +*breakequip {,}; This command will break and unequip whatever is currently equipped in the invoking character's specified equipment slot. For a full list of possible @@ -4877,7 +4880,7 @@ This command will return 1 if an item was broken and 0 otherwise. --------------------------------------- -*clearitem; +*clearitem {,}; This command will destroy all items the invoking character has in their inventory (including equipped items). It will not affect anything else, like @@ -4885,7 +4888,7 @@ storage or cart. --------------------------------------- -*equip ; +*equip {,}; *autoequip ,