|
@@ -446,13 +446,14 @@ temporary - They cease to exist when the server resets.
|
|
|
|
|
|
Prefix: scope and extent
|
|
Prefix: scope and extent
|
|
nothing - A permanent variable attached to the character, the default variable
|
|
nothing - A permanent variable attached to the character, the default variable
|
|
- type. They are stored in the `global_reg_value` table using type 3.
|
|
|
|
|
|
+ type. They are stored by char-server in the `global_acc_reg_num` and
|
|
|
|
+ `global_acc_reg_str`.
|
|
"@" - A temporary variable attached to the character.
|
|
"@" - A temporary variable attached to the character.
|
|
SVN versions before 2094 revision and RC5 version will also treat
|
|
SVN versions before 2094 revision and RC5 version will also treat
|
|
'l' as a temporary variable prefix, so beware of having variable
|
|
'l' as a temporary variable prefix, so beware of having variable
|
|
names starting with 'l' if you want full backward compatibility.
|
|
names starting with 'l' if you want full backward compatibility.
|
|
"$" - A global permanent variable.
|
|
"$" - A global permanent variable.
|
|
- They are stored in database table `mapreg`.
|
|
|
|
|
|
+ They are stored by map-server in database table `mapreg`.
|
|
"$@" - A global temporary variable.
|
|
"$@" - A global temporary variable.
|
|
This is important for scripts which are called with no RID
|
|
This is important for scripts which are called with no RID
|
|
attached, that is, not triggered by a specific character object.
|
|
attached, that is, not triggered by a specific character object.
|
|
@@ -468,13 +469,14 @@ nothing - A permanent variable attached to the character, the default variable
|
|
callsub/callfunc starts a new scope, returning from the function
|
|
callsub/callfunc starts a new scope, returning from the function
|
|
ends it. When a scope ends, its variables are converted to values
|
|
ends it. When a scope ends, its variables are converted to values
|
|
('return .@var;' returns a value, not a reference).
|
|
('return .@var;' returns a value, not a reference).
|
|
-"'" - An instance variable
|
|
|
|
|
|
+"'" - An instance variable.
|
|
These are used with the instancing system, and are unique to each
|
|
These are used with the instancing system, and are unique to each
|
|
party's instance.
|
|
party's instance.
|
|
"#" - A permanent local account variable.
|
|
"#" - A permanent local account variable.
|
|
- They are stored in the `global_reg_value` table using type 2.
|
|
|
|
|
|
+ They are stored by char-server in the `char_reg_num` table and
|
|
|
|
+ `char_reg_str`.
|
|
"##" - A permanent global account variable stored by the login server.
|
|
"##" - A permanent global account variable stored by the login server.
|
|
- They are stored in the `global_reg_value` table using type 1.
|
|
|
|
|
|
+ They are stored in the `acc_reg_num` table and `acc_reg_str`.
|
|
The only difference you will note from normal # variables is when
|
|
The only difference you will note from normal # variables is when
|
|
you have multiple char-servers connected to the same login server.
|
|
you have multiple char-servers connected to the same login server.
|
|
The # variables are unique to each char-server, while the ## variables
|
|
The # variables are unique to each char-server, while the ## variables
|