?? zhonglou.c
字號:
// /d/kunming/jinrilou// netkill /98/9/11/#include <ansi.h>inherit ROOM;void create(){ set("short", "鐘樓" ); set("long", @LONG這是一座鐘樓,中間懸有有一巨鐘,上面刻的有銘文:永樂大鐘鐘身足有兩人那么高,看起來足有上千斤,不知道當(dāng)初是怎么掛上去的,鐘的兩側(cè)懸有一巨木,看來是用來敲鐘(hit)用的。 LONG ); set("exits", ([ "down" :__DIR__"jinrilou", ])); setup(); }int init(){add_action("do_hit","hit");}int do_hit(string arg){ object me=this_player(); if (arg=="" || !arg ) return 0; if (arg=="鐘") if ( (int)me->query_int() < 25 ) { if ( !(int)me->query_temp("temp") ) { if ((int)me->query_str()< 25 ) return notify_fail("你敲不動這個大鐘\n"); message_vision("$N敲了一下鐘“鐺~~~”,鐘聲遠(yuǎn)遠(yuǎn)傳了出去。\n",me); tell_object(me,"鐘聲在四周不停的回蕩,震得你覺的頭昏欲倒。\n"); me->add("qi", -10); me->set_temp("temp",1); return 1; } message_vision("$N又敲了一下鐘“鐺~~~”,鐘聲遠(yuǎn)遠(yuǎn)傳了出去。\n",me); tell_object(me,"鐘聲悠遠(yuǎn)的傳了出去,許久又回聲回來,你只覺得這鐘聲里似乎\n"+ "包含有無窮的玄妙,無窮的佛意。\n"); me->add("qi", -10); if (!random(10)) { tell_object(me,"你靜心傾聽,覺的著聲音似流水,似風(fēng)吹,似鳥叫...你恍然大悟\n"+ "這原來便是天籟之音,是大自然的聲音。\n"+ HIC "你的悟性提高了!\n" NOR);if ( (int)me->query_int() < 18 ){ me->add("int",1);} } else tell_object(me,"你窮思奇妙,可怎么也不能明其理,只有作罷。\n"); me->delete_temp("temp"); } else tell_object(me,"你咚咚咚的敲了幾下鐘,真是無聊。\n"); return 1;}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -