MySQL proxy #326
Aliases: MySQL proxy
20 verbs · 15 properties · 0 children
Verbs
| Verb | Spec | Flags | Definer | Lines |
|---|---|---|---|---|
init_connection | this none this | rxd | #326 | 10 |
login | this none this | rxd | #326 | 1 |
end_connection | this none this | rxd | #326 | 1 |
add_pvp_record | this none this | rxd | #326 | 8 |
_connect | this none this | rxd | #326 | 1 |
_notify | this none this | rxd | #326 | 4 |
_connection_options | this none this | rxd | #326 | 4 |
get_pvp_report | this none this | rxd | #326 | 9 |
_www | this none this | rxd | #326 | 2 |
_www_post | this none this | rxd | #326 | 8 |
print_report | this none this | rxd | #326 | 31 |
top10_killers | this none this | rxd | #326 | 2 |
add_old_record | this none this | rxd | #326 | 10 |
top10_griefers | this none this | rxd | #326 | 2 |
top10_victims | this none this | rxd | #326 | 2 |
top10_bombers | this none this | rxd | #326 | 2 |
top10_rapists | this none this | rxd | #326 | 2 |
get_victim_report | this none this | rxd | #326 | 9 |
get_griefer_report | this none this | rxd | #326 | 9 |
post_msg | this none this | rxd | #326 | 2 |
Properties
| Property | Definer | Flags | Owner | Value |
|---|---|---|---|---|
connector | #326 | rc | #29 | #-27330 |
mood_host | #326 | rc | #29 | "127.0.0.1" |
mood_port | #326 | rc | #29 | 8999 |
post_args | #326 | rc | #29 | list of 2{"#350188", {{6, "1294177186", "bitchslapped", "#350188", 6812, "#98", 182117}, {7, "1294177220", "bitchslapped", "#350188", 6812, "#618221", 2837}, {8, "1294177282", "bitchslapped", "#350188", 6812, "#618221", 2837}, {9, "1294177282", "bitchslapped", "#350188", 6812, "#618221", 2837}, {10, "1294177282", "bitchslapped", "#350188", 6812, "#618221", 2837}, {11, "1294177283", "bitchslapped", "#350188", 6812, "#618221", 2837}, {12, "1294177283", "bitchslapped", "#350188", 6812, "#618221", 2837}, {13, "1294177283", "bitchslapped", "#350188", 6812, "#618221", 2837}, {14, "1294177284", "bitchslapped", "#350188", 6812, "#618221", 2837}}} |
row_colors | #326 | rc | #29 | {"~1b[34m", "~1b[36m", "~1b[31m", "~1b[31m", "~1b[32m", "~1b[32m"} |
aliases | #1 | rc | #29 | {"MySQL proxy"} |
description | #1 | rc | #29 | <clear> |
object_size | #1 | r | #29 | {10663, 1298434483} |
hidden_verbs | #1 | rc | #29 | <clear> |
phelp_msg | #1 | rc | #29 | <clear> |
weight | #1 | rc | #29 | <clear> |
owner_verbs | #1 | rc | #29 | <clear> |
plural_name | #1 | rc | #29 | <clear> |
client_image | #1 | rc | #29 | <clear> |
listening | #1 | rc | #29 | <clear> |
Ancestry
Ancestors (nearest first): #1 root
Children: none
Call graph
Source
init_connection
Referenced by
- #326:add_pvp_record line 5:
this:init_connection - #326:get_pvp_report line 7:
this:init_connection - #326:top10_killers line 1:
this:init_connection - #326:add_old_record line 7:
this:init_connection - #326:top10_griefers line 1:
this:init_connection - #326:top10_victims line 1:
this:init_connection - #326:top10_bombers line 1:
this:init_connection - #326:top10_rapists line 1:
this:init_connection - #326:get_victim_report line 7:
this:init_connection - #326:get_griefer_report line 7:
this:init_connection - #326:post_msg line 1:
this:init_connection
Source
1try 2conn = this:_connection_options(); 3except e (ANY) 4connection = this:_connect(); 5if (typeof(connection) == ERR) 6return 1; 7endif 8this.connector = connection; 9this:login(); 10endtry
login
Referenced by
- #326:init_connection line 9:
this:login
Source
1this:_notify("auth toto toto");
end_connection
Referenced by
- #326:add_pvp_record line 8:
this:end_connection - #326:add_old_record line 10:
this:end_connection
Source
1this:_notify("quit");
add_pvp_record
Referenced by
none
Source
1inf = args[1]; 2agr = args[2]; 3vic = args[3]; 4now = tostr(time()); 5this:init_connection(); 6"time infraction attacker attacker_xp victim victim_xp"; 7this:_notify((((((((((("addpvp " + now) + " ") + inf) + " ") + tostr(agr)) + " ") + tostr(agr.xp_total)) + " ") + tostr(vic)) + " ") + tostr(vic.xp_total)); 8this:end_connection();
_connect
Referenced by
- #326:init_connection line 4:
this:_connect
Source
1return open_network_connection(this.mood_host, this.mood_port);
_notify
Referenced by
- #326:login line 1:
this:_notify - #326:end_connection line 1:
this:_notify - #326:add_pvp_record line 7:
this:_notify - #326:get_pvp_report line 8:
this:_notify - #326:top10_killers line 2:
this:_notify - #326:add_old_record line 9:
this:_notify - #326:top10_griefers line 2:
this:_notify - #326:top10_victims line 2:
this:_notify - #326:top10_bombers line 2:
this:_notify - #326:top10_rapists line 2:
this:_notify - #326:get_victim_report line 8:
this:_notify - #326:get_griefer_report line 8:
this:_notify - #326:post_msg line 2:
this:_notify
Source
1if (caller != this) 2return E_PERM; 3endif 4notify(this.connector, args[1]);
_connection_options
Referenced by
- #326:init_connection line 2:
this:_connection_options
Source
1if (caller != this) 2return E_PERM; 3endif 4return connection_options(this.connector);
get_pvp_report
Referenced by
none
Source
1who = $su:match_player(args[1]); 2if (length(args) > 0) 3if (!valid(who)) 4player:tell("Unknown player."); 5return; 6endif 7this:init_connection(); 8this:_notify((("getpvp " + tostr(player)) + " ") + tostr(who)); 9endif
_www
Referenced by
none
Source
1#350188:tell(tostr(length(args))); 2#350188:tell(args[1]);
_www_post
Referenced by
none
Source
1"sub = $web:ascii_sub(args[2][3][2])"; 2sub = args[2][3][2]; 3content = $json_utils:read(sub); 4yield; 5data = {args[2][1][2], args[2][2][2], content}; 6"#350188:tell(toliteral(data))"; 7"data = {$web:ascii_sub(args[2][1][2]), $web:ascii_sub(args[2][2][2]), content}"; 8this:print_report(data);
print_report
Referenced by
- #326:_www_post line 8:
this:print_report
Source
1who = $su:match_player(args[1][1]); 2report = args[1][2]; 3data = args[1][3]; 4if (valid(who)) 5i = 1; 6if (report == "pvp") 7while (i <= length(data)) 8data[i][3] = toobj(data[i][3]):dnamec(); 9data[i][5] = toobj(data[i][5]):dnamec(); 10data[i][1] = ctime(toint(data[i][1])); 11i = i + 1; 12yield; 13endwhile 14who:tell_lines($su:make_table($ansi.red, {"Time", "Action", "Attacker", "Att XP", "Victim", "Vic XP"}, this.row_colors, $lu:reverse(data), {24, 12, 13, 8, 13, 8})); 15elseif (((report == "top10") || (report == "bombers")) || (report == "rapists")) 16while (i <= length(data)) 17data[i][1] = $su:match_player(data[i][1]); 18data[i][1] = data[i][1]:dnamec(); 19i = i + 1; 20yield; 21endwhile 22if (report == "top10") 23header = {"Who", "Kills"}; 24elseif (report == "bombers") 25header = {"Who", "Bombings"}; 26elseif (report == "rapists") 27header = {"Who", "Restrains"}; 28endif 29who:tell_lines($su:make_table($ansi.red, header, {$ansi.cyan, $ansi.green}, data, {20, 9})); 30endif 31endif
top10_killers
Referenced by
none
Source
1this:init_connection(); 2this:_notify("top10_killers " + tostr(player));
add_old_record
Referenced by
none
Source
1inf = args[1]; 2agr = args[2]; 3agrxp = args[3]; 4vic = args[4]; 5vicxp = args[5]; 6time = args[6]; 7this:init_connection(); 8"time infraction attacker attacker_xp victim victim_xp"; 9this:_notify((((((((((("addpvp " + tostr(time)) + " ") + inf) + " ") + tostr(agr)) + " ") + tostr(agrxp)) + " ") + tostr(vic)) + " ") + tostr(vicxp)); 10this:end_connection();
top10_griefers
Referenced by
none
Source
1this:init_connection(); 2this:_notify("top10_griefers " + tostr(player));
top10_victims
Referenced by
none
Source
1this:init_connection(); 2this:_notify("top10_victims " + tostr(player));
top10_bombers
Referenced by
none
Source
1this:init_connection(); 2this:_notify("top10_bombers " + tostr(player));
top10_rapists
Referenced by
none
Source
1this:init_connection(); 2this:_notify("top10_rapists " + tostr(player));
get_victim_report
Referenced by
none
Source
1who = $su:match_player(args[1]); 2if (length(args) > 0) 3if (!valid(who)) 4player:tell("Unknown player."); 5return; 6endif 7this:init_connection(); 8this:_notify((("getvictim " + tostr(player)) + " ") + tostr(who)); 9endif
get_griefer_report
Referenced by
none
Source
1who = $su:match_player(args[1]); 2if (length(args) > 0) 3if (!valid(who)) 4player:tell("Unknown player."); 5return; 6endif 7this:init_connection(); 8this:_notify((("getgriefer " + tostr(player)) + " ") + tostr(who)); 9endif
post_msg
Referenced by
none
Source
1this:init_connection(); 2this:_notify("post_msg " + args[1]);