MySQL proxy #326

Parent #1Owner #29Flags readSource hellcore/hellcore.db

Aliases: MySQL proxy

20 verbs · 15 properties · 0 children

Verbs

VerbSpecFlagsDefinerLines
init_connectionthis none thisrxd#32610
loginthis none thisrxd#3261
end_connectionthis none thisrxd#3261
add_pvp_recordthis none thisrxd#3268
_connectthis none thisrxd#3261
_notifythis none thisrxd#3264
_connection_optionsthis none thisrxd#3264
get_pvp_reportthis none thisrxd#3269
_wwwthis none thisrxd#3262
_www_postthis none thisrxd#3268
print_reportthis none thisrxd#32631
top10_killersthis none thisrxd#3262
add_old_recordthis none thisrxd#32610
top10_griefersthis none thisrxd#3262
top10_victimsthis none thisrxd#3262
top10_bombersthis none thisrxd#3262
top10_rapiststhis none thisrxd#3262
get_victim_reportthis none thisrxd#3269
get_griefer_reportthis none thisrxd#3269
post_msgthis none thisrxd#3262

Properties

PropertyDefinerFlagsOwnerValue
connector#326rc#29#-27330
mood_host#326rc#29"127.0.0.1"
mood_port#326rc#298999
post_args#326rc#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#326rc#29{"~1b[34m", "~1b[36m", "~1b[31m", "~1b[31m", "~1b[32m", "~1b[32m"}
aliases#1rc#29{"MySQL proxy"}
description#1rc#29<clear>
object_size#1r#29{10663, 1298434483}
hidden_verbs#1rc#29<clear>
phelp_msg#1rc#29<clear>
weight#1rc#29<clear>
owner_verbs#1rc#29<clear>
plural_name#1rc#29<clear>
client_image#1rc#29<clear>
listening#1rc#29<clear>

Ancestry

Ancestors (nearest first): #1 root

Children: none

Call graph

calls n326_0 #326:init_connection n326_6 #326:_connection_options n326_0->n326_6 n326_4 #326:_connect n326_0->n326_4 n326_1 #326:login n326_0->n326_1 n326_5 #326:_notify n326_1->n326_5 n326_2 #326:end_connection n326_2->n326_5 n326_3 #326:add_pvp_record n326_3->n326_0 n326_3->n326_5 n326_3->n326_2 n326_7 #326:get_pvp_report n326_7->n326_0 n326_7->n326_5 n20_20 #20:match_player n326_7->n20_20 n107_43 #107:tell n326_7->n107_43 n326_9 #326:_www_post n325_14 #325:read n326_9->n325_14 n326_10 #326:print_report n326_9->n326_10 n326_10->n20_20 n20_94 #20:make_table n326_10->n20_94 n47_11 #47:reverse n326_10->n47_11 n326_11 #326:top10_killers n326_11->n326_0 n326_11->n326_5 n326_12 #326:add_old_record n326_12->n326_0 n326_12->n326_5 n326_12->n326_2 n326_13 #326:top10_griefers n326_13->n326_0 n326_13->n326_5 n326_14 #326:top10_victims n326_14->n326_0 n326_14->n326_5 n326_15 #326:top10_bombers n326_15->n326_0 n326_15->n326_5 n326_16 #326:top10_rapists n326_16->n326_0 n326_16->n326_5 n326_17 #326:get_victim_report n326_17->n326_0 n326_17->n326_5 n326_17->n20_20 n326_17->n107_43 n326_18 #326:get_griefer_report n326_18->n326_0 n326_18->n326_5 n326_18->n20_20 n326_18->n107_43 n326_19 #326:post_msg n326_19->n326_0 n326_19->n326_5

Source

init_connection

Spec this none thisFlags rxdOwner #29Definer #326

Referenced by

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

Spec this none thisFlags rxdOwner #29Definer #326

Referenced by

Source

1this:_notify("auth toto toto");

end_connection

Spec this none thisFlags rxdOwner #29Definer #326

Referenced by

Source

1this:_notify("quit");

add_pvp_record

Spec this none thisFlags rxdOwner #29Definer #326

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

Spec this none thisFlags rxdOwner #361Definer #326

Referenced by

Source

1return open_network_connection(this.mood_host, this.mood_port);

_notify

Spec this none thisFlags rxdOwner #361Definer #326

Referenced by

Source

1if (caller != this)
2return E_PERM;
3endif
4notify(this.connector, args[1]);

_connection_options

Spec this none thisFlags rxdOwner #361Definer #326

Referenced by

Source

1if (caller != this)
2return E_PERM;
3endif
4return connection_options(this.connector);

get_pvp_report

Spec this none thisFlags rxdOwner #29Definer #326

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

Spec this none thisFlags rxdOwner #29Definer #326

Referenced by

none

Source

1#350188:tell(tostr(length(args)));
2#350188:tell(args[1]);

_www_post

Spec this none thisFlags rxdOwner #29Definer #326

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

Spec this none thisFlags rxdOwner #29Definer #326

Referenced by

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

Spec this none thisFlags rxdOwner #29Definer #326

Referenced by

none

Source

1this:init_connection();
2this:_notify("top10_killers " + tostr(player));

add_old_record

Spec this none thisFlags rxdOwner #29Definer #326

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

Spec this none thisFlags rxdOwner #29Definer #326

Referenced by

none

Source

1this:init_connection();
2this:_notify("top10_griefers " + tostr(player));

top10_victims

Spec this none thisFlags rxdOwner #29Definer #326

Referenced by

none

Source

1this:init_connection();
2this:_notify("top10_victims " + tostr(player));

top10_bombers

Spec this none thisFlags rxdOwner #29Definer #326

Referenced by

none

Source

1this:init_connection();
2this:_notify("top10_bombers " + tostr(player));

top10_rapists

Spec this none thisFlags rxdOwner #29Definer #326

Referenced by

none

Source

1this:init_connection();
2this:_notify("top10_rapists " + tostr(player));

get_victim_report

Spec this none thisFlags rxdOwner #29Definer #326

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

Spec this none thisFlags rxdOwner #29Definer #326

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

Spec this none thisFlags rxdOwner #29Definer #326

Referenced by

none

Source

1this:init_connection();
2this:_notify("post_msg " + args[1]);