diff --git a/conf/inter_athena.conf b/conf/inter_athena.conf index 360f8f1c31..2a8d642a17 100644 --- a/conf/inter_athena.conf +++ b/conf/inter_athena.conf @@ -80,9 +80,12 @@ mysql_reconnect_count: 1 // Login Database Tables login_server_account_db: login -login_server_accreg_db: global_reg_value ipban_table: ipbanlist +// Shared +global_acc_reg_num_table: global_acc_reg_num +global_acc_reg_str_table: global_acc_reg_str + // Char Database Tables char_db: char hotkey_db: hotkey @@ -91,7 +94,6 @@ cart_db: cart_inventory inventory_db: inventory charlog_db: charlog storage_db: storage -reg_db: global_reg_value skill_db: skill interlog_db: interlog memo_db: memo @@ -117,6 +119,10 @@ elemental_db: elemental ragsrvinfo_db: ragsrvinfo skillcooldown_db: skillcooldown bonus_script_db: bonus_script +acc_reg_num_table: acc_reg_num +acc_reg_str_table: acc_reg_str +char_reg_str_table: char_reg_str +char_reg_num_table: char_reg_num // Map Database Tables buyingstore_db: buyingstores @@ -135,7 +141,7 @@ mob_skill_db_db: mob_skill_db mob_skill_db_re_db: mob_skill_db_re mob_skill_db2_db: mob_skill_db2 //mob_skill_db2_db: mob_skill_db2_re -mapreg_db: mapreg +mapreg_table: mapreg vending_db: vendings vending_items_db: vending_items market_table: market diff --git a/doc/script_commands.txt b/doc/script_commands.txt index ac5049ed6b..e8a5e6f2d6 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -3,7 +3,7 @@ //===== By: ================================================== //= rAthena Dev Team //===== Last Updated: ======================================== -//= 20140313 +//= 20150610 //===== Description: ========================================= //= A reference manual for the rAthena scripting language. //= Commands are sorted depending on their functionality. @@ -616,6 +616,8 @@ same name. You can tell between the specific variables of an array with an [] +All variable types can be used as arrays. + Variables stored in this way, inside an array, are also called 'array elements'. Arrays are specifically useful for storing a set of similar data (like several item IDs for example) and then looping through it. You can address any array @@ -631,8 +633,9 @@ 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) +Index numbering always starts with 0 and arrays can hold over 2 billion +variables. As such, the (guaranteed) allowed values for indices are in the +range 0 ~ 2147483647. 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 not going @@ -644,41 +647,6 @@ Arrays can naturally store strings: the '$', normally denoting a string variable, before the square brackets that denotes an array index. -Resume of the allowed variable and array scopes ------------------------------------------------ - -+==========+======+=======+ -|VarType | Norm | Array | -+==========+======+=======+ -|$Str$ | OK! | OK! | -+----------+------+-------+ -|$@Str$ | OK! | OK! | -+----------+------+-------+ -|@Str$ | OK! | OK! | -+----------+------+-------+ -|#Str$ | OK! | FAIL! | -+----------+------+-------+ -|Str$ | OK! | FAIL! | -+----------+------+-------+ -|$Int | OK! | OK! | -+----------+------+-------+ -|$@Int | OK! | OK! | -+----------+------+-------+ -|@Int | OK! | OK! | -+----------+------+-------+ -|#Int | OK! | FAIL! | -+----------+------+-------+ -|Int | OK! | FAIL! | -+----------+------+-------+ -|.Str$ | OK! | OK! | -+----------+------+-------+ -|.Int | OK! | OK! | -+----------+------+-------+ -|.@Str$ | OK! | OK! | -+----------+------+-------+ -|.@Int | OK! | OK! | -+----------+------+-------+ - Variable References ------------------- @@ -991,6 +959,7 @@ On