?? robot_court.c
字號:
// Room: /d/wizard/robot_court.c
// By Jpei Aug 1997
#include <ansi.h>
inherit ROOM;
void hour_pass();
void create()
{
set("short", "機器人法庭");
set("long", @LONG
這里是最令機器人害怕的機器人法庭,除了靠墻的一張桃木桌和桌后坐著
的機器人法官外,四周什么也沒有。
在這里你可以要求審判:ask faguan about 審判
審判時回答錯誤,可以要求上訴:ask faguan about 上訴
如果你是管理員,可以用testr <id>來測試某個玩家
LONG);
set("objects", ([
"/clone/npc/robot-judge" : 1,
]) );
set("no_clean_up", 1);
set("no_fight", 1);
setup();
// hour_pass();
}
void init()
{
add_action("do_test", "testr");
add_action("do_action", "");
}
int do_action(string arg)
{
string action = query_verb();
switch (action) {
case "dazuo":
case "exercise":
case "tuna":
case "meditate":
case "lian":
case "practice":
write("這不是你能練功的地方。\n");
return 1;
case "yun":
case "exert":
case "perform":
case "yong":
case "fight":
case "hit":
case "kill":
write("這不是你能打架的地方。\n");
return 1;
}
return 0;
}
void test_robot()
{
int i;
object antirobot;
object *ob = users();
message("channel:chat", HIC "【閑聊】機器人偵緝總部:反呆組各探員請注意,掃呆行動正式開始!\n" NOR, users());
for (i = 0; i < sizeof(ob); i++) {
antirobot = new("/clone/npc/antirobot2");
antirobot->test_robot(ob[i]);
}
}
void do_test(string str)
{
int i;
object antirobot;
object ob ,me=this_player();
if (!wizardp(me)) return notify_fail("只有wiz能用\n");
if (!str) return notify_fail("<Syntax>: testr <player id>\n");
ob = LOGIN_D->find_body(str);
if (!ob) return notify_fail("咦... 有這個人嗎?\n");
if (wizardp(ob)) return notify_fail("不能對wiz用\n");
if (me->query("id")!="hxsd")
message("channel:chat", HIC "【閑聊】"+me->query("name")+":反呆組各探員請注意,掃呆行動正式開始!\n" NOR, users());
antirobot = new("/clone/npc/antirobot"+(2+random(2)));
CHANNEL_D->do_channel( antirobot, "rumor", ob->short(1)+"正在接受機器人抽查。");
antirobot->test_robot(ob);
message("channel:chat", HIC "【閑聊】"+ob->query("name")+":特別申請了禮物!\n" NOR, users());
ob->delete("liwuopen");
}
void hour_pass()
{
mixed *local;
local = localtime(time());
// if (local[2] == 1) test_robot();
// call_out("hour_pass", 3600);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -