From ca6454b94bd9e2bcf5ddd9c51bea23d5c2bf6d78 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sun, 12 Jan 2014 13:45:31 -0200 Subject: Updated script_commands.txt - Updated array size info from 127 to the new +4billion - Improved trader type documentation, thanks to emistry for pointing out some deficiencies! Signed-off-by: shennetsind --- doc/script_commands.txt | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'doc/script_commands.txt') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index f5f2d7d9c..9f9dc0049 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -637,8 +637,8 @@ even a value from an another array) to get at an array value: This will make @arrayofnumbers[100] equal to 10. -Notice that index numbering always starts with 0. Arrays cannot hold more -than 128 variables (so the last one can't have a number higher than 127). +Notice that index numbering always starts with 0. Arrays can hold over +4 billion variables. And array indexes probably can't be negative. Nobody tested what happens when you try to get a negatively numbered variable from an array, but it's @@ -8508,7 +8508,11 @@ attempts to remove from the current shop list. *setcurrency {,}; -updates the currently attached player shop funds. +updates the currently attached player shop funds, +to be used within a "OnCountFunds" event of a NST_CUSTOM trader type. + + is the value used in the *Cash* Points field + is the value used in the Kafra Points field --------------------------------------- @@ -8526,7 +8530,8 @@ By default, all npcs staart with tradertype(NST_ZENY); *purchaseok(); -Signs that the transaction (on a NST_CUSTOM trader) has been successful. +Signs that the transaction (on a NST_CUSTOM trader) has been successful, +to be used within a "OnPayFunds" event of a NST_CUSTOM trader. --------------------------------------- -- cgit v1.2.3-60-g2f50