#include <config.h>#include <properties.h>
gehe zum Quellcode dieser Datei
Funktionen | |
| create () | |
| _query_read_msg () | |
| init () | |
| rpeers () | |
| rwho (str) | |
| rtell (str) | |
Variablen | |
| inherit std | thing |
| create | ( | ) |
Definiert in Zeile 18 der Datei mudlink.c.
Benutzt AddAdjective(), AddId(), create(), name, old_explode(), P_LONG, P_SHORT und SetProp().
00018 { 00019 string name, foo; 00020 00021 if (sizeof(old_explode(object_name(this_object()),"#")) != 2) return; 00022 00023 thing::create(); 00024 SetProp (P_SHORT,"a MUDLINK tool"); 00025 SetProp (P_LONG, 00026 "This tool is used for communicating with MUDLINK. Commands are:\n" 00027 +"rpeers Get a list of muds connected to MUDLINK\n" 00028 +"rwho <mud> Show a list of players on the remote mud\n" 00029 +"rtell <player>@<mud> <message> Tell something to a player on another mud\n" 00030 ); 00031 AddId ("tool"); 00032 AddId ("mudlink"); 00033 AddAdjective("mudlink"); 00034 SetInfo ("Mudlink Tool V0.1 by Deepthought"); 00035 }

| init | ( | ) |
Definiert in Zeile 43 der Datei mudlink.c.
Benutzt init().
00043 { 00044 thing::init(); 00045 add_action("rpeers","rpeers"); 00046 add_action("rwho","rwho"); 00047 add_action("rtell","rtell"); 00048 }

| rpeers | ( | ) |
Definiert in Zeile 50 der Datei mudlink.c.
Benutzt find_player().
00050 { 00051 string u; 00052 u = geteuid(this_player()); 00053 if (stringp(u)) 00054 tell_object(find_player("mudlink"),"rpeers "+u+"\n"); 00055 return 1; 00056 }

| rtell | ( | str | ) |
Definiert in Zeile 69 der Datei mudlink.c.
Benutzt c und find_player().
00069 { 00070 string u; 00071 string a, b, c, d; 00072 00073 if (!str || str == "") { 00074 write("Usage: rtell <player>@<mud> <message>\n"); 00075 return 1; 00076 } 00077 if (sscanf(str, "%s@%s %s", a, b, c) != 3) { 00078 write("Usage: rtell <player>@<mud> <message>\n"); 00079 return 1; 00080 } 00081 if (stringp(u = geteuid(this_player()))) 00082 tell_object(find_player("mudlink"),"rpage "+u+"@"+a+"@"+b+"="+c+"\n"); 00083 return 1; 00084 }

| rwho | ( | str | ) |
Definiert in Zeile 58 der Datei mudlink.c.
Benutzt find_player().
00058 { 00059 string u; 00060 if (!str || str == "") { 00061 write("Usage: rwho <mud>\n"); 00062 return 1; 00063 } 00064 if (stringp(u = geteuid(this_player()))) 00065 tell_object(find_player("mudlink"),"rwho "+u+"="+str+"\n"); 00066 return 1; 00067 }

1.6.3