|
// ghc 勾魂草
// created by zine 26 Aug 2010
inherit ITEM;
#include
void setup()
{}
void init()
{
add_action("do_fu", "fu");
}
void create()
{
set_name(BLU"勾魂草"NOR, ({"gouhun cao", "cao"}));
if (clonep())
set_default_object(__FILE__);
else {
set("unit", "棵");
set("long", "这是一颗勾魂草,传说中剧毒的东西。\n");
set("value", 1);
set("no_drop", 1);
set("no_give",1);
set("no_put",1);
}
setup();
}
int do_fu(string arg)
{
object me;
me = this_player();
if (!id(arg))
return notify_fail("你要吃什么?\n");
else {
me->set_temp("xxpass",1);
me->add("jing", -500);
me->add("qi", 500);
message_vision(HIG"$N吞下一颗勾魂草。\n"NOR, this_player());
message_vision(HIG"$N觉得药性甚是奇怪,精神萎靡,气息却更加充盈。\n"NOR, this_player());
me->start_busy(1);
destruct(this_object());
return 1;
}
}
下一个房间
// Room: /clone/misc/xiaoxiang.c
// Date: by jason(尔好啊) Tue Nov 17 15:40:17 2009
// edit: by zine Aug 25 2010
inherit "/biwu/biwuroom";
void create()
{
set("short", "小巷");
set("long", @LONG
一条小巷,通向深处,蒙古人撤退之前,在这里布下了剧毒,竟然经年不散。
LONG
);
set("exits", ([ /* sizeof() == 3 */
"north" : __DIR__"northgate",
"south" : __DIR__"northdoor",
"west" : __DIR__"shop",
"east" : __DIR__"dahu",
"northeast" : __DIR__"pool",
]));
set("no_clean_up", 0);
setup();
}
void init()
{
object me = this_player();
if (me->query("xxpass"))
{
me->add("jing", -200);
}
{
me->unconcious();
}
}
第一个物品加了个xxpass的mark,按说第二个地点有mark就应该减精,但我怎么试了还是直接昏
是我加mark写错了,还是判断mark写错了呢? |
|