Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 717

Warning: Invalid argument supplied for foreach() in /var/www/ct/forums/wiki/includes/MagicWord.php on line 718

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 722

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 717

Warning: Invalid argument supplied for foreach() in /var/www/ct/forums/wiki/includes/MagicWord.php on line 718

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 722

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 717

Warning: Invalid argument supplied for foreach() in /var/www/ct/forums/wiki/includes/MagicWord.php on line 718

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 722

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 717

Warning: Invalid argument supplied for foreach() in /var/www/ct/forums/wiki/includes/MagicWord.php on line 718

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 722

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/www/ct/forums/wiki/includes/MagicWord.php on line 739
Crazy Tronners Wiki - Trunk Scripting

Trunk Scripting

From Tronwiki
Jump to: navigation, search
(Classes)
(Classes)
Line 59: Line 59:
 
print("End scripting initialization.")
 
print("End scripting initialization.")
 
</pre>
 
</pre>
 +
==Enums==
 +
{{ClassSetting|AccessLevel|}}
 +
    tAccessLevel_Owner = 0,
 +
    tAccessLevel_Admin = 1,
 +
    tAccessLevel_Moderator = 2,
 +
    tAccessLevel_Armatrator = 5,
 +
    tAccessLevel_Referee = 6,
 +
    tAccessLevel_TeamLeader = 7,
 +
    tAccessLevel_TeamMember = 8,
 +
    tAccessLevel_Local      = 12,
 +
    tAccessLevel_Remote = 15,
 +
    tAccessLevel_DefaultAuthenticated = 15,
 +
    tAccessLevel_FallenFromGrace = 16,
 +
    tAccessLevel_Shunned = 17,
 +
    tAccessLevel_Authenticated = 19,
 +
    tAccessLevel_Program = 20,
 +
    tAccessLevel_Invalid = 255
 +
 
==Classes==
 
==Classes==
 
{{ClassSetting|armagetronad.LadderLogWriter|Ladderlog stuff}}
 
{{ClassSetting|armagetronad.LadderLogWriter|Ladderlog stuff}}
Line 89: Line 107:
 
   x
 
   x
 
   y
 
   y
 
enum AccessLevel:
 
    tAccessLevel_Owner = 0,
 
    tAccessLevel_Admin = 1,
 
    tAccessLevel_Moderator = 2,
 
    tAccessLevel_Armatrator = 5,
 
    tAccessLevel_Referee = 6,
 
    tAccessLevel_TeamLeader = 7,
 
    tAccessLevel_TeamMember = 8,
 
    tAccessLevel_Local      = 12,
 
    tAccessLevel_Remote = 15,
 
    tAccessLevel_DefaultAuthenticated = 15,
 
    tAccessLevel_FallenFromGrace = 16,
 
    tAccessLevel_Shunned = 17,
 
    tAccessLevel_Authenticated = 19,
 
    tAccessLevel_Program = 20,
 
    tAccessLevel_Invalid = 255
 
  
 
{{ClassSetting|ConfItem|}}
 
{{ClassSetting|ConfItem|}}
Line 114: Line 115:
 
   set(string s)
 
   set(string s)
 
   get(string s)
 
   get(string s)
 
  
 
{{ClassSetting|AccessLevelSetter|}}
 
{{ClassSetting|AccessLevelSetter|}}
 
   tAccessLevelSetter(ConfItem item, AccessLevel level)
 
   tAccessLevelSetter(ConfItem item, AccessLevel level)
 
  
 
{{ClassSetting|ConfItemScript|}}
 
{{ClassSetting|ConfItemScript|}}
 
   ConfItemScript(string title, function proc);
 
   ConfItemScript(string title, function proc);
 
  
 
{{ClassSetting|LadderLogWriter|}}
 
{{ClassSetting|LadderLogWriter|}}
Line 131: Line 129:
 
   static set_all(bool enabled)      //!< enable or disable all writers
 
   static set_all(bool enabled)      //!< enable or disable all writers
 
   set_callback(proc)        //!< bind a procedure from scripting language to this ladder log writer.
 
   set_callback(proc)        //!< bind a procedure from scripting language to this ladder log writer.
 
  
 
{{ClassSetting|PlayerConf|}}
 
{{ClassSetting|PlayerConf|}}
Line 143: Line 140:
 
   AccessLevel get_access_level()
 
   AccessLevel get_access_level()
 
   set_access_level(AccessLevel level)
 
   set_access_level(AccessLevel level)
 
  
 
{{ClassSetting|Player|}}
 
{{ClassSetting|Player|}}
Line 204: Line 200:
 
   Player set_name(string name)            //!< Sets this player's name. Sets processed names (colored, username, nameFromCLient) as well.
 
   Player set_name(string name)            //!< Sets this player's name. Sets processed names (colored, username, nameFromCLient) as well.
 
   Player set_user_name(string userName)        //!< Sets this player's name, cleared for system logs. Use for writing to files or comparing with admin input. The other names stay unaffected.
 
   Player set_user_name(string userName)        //!< Sets this player's name, cleared for system logs. Use for writing to files or comparing with admin input. The other names stay unaffected.
 
  
 
{{ClassSetting|Team|}}
 
{{ClassSetting|Team|}}

Revision as of 11:03, 8 January 2010

Personal tools