-
Notifications
You must be signed in to change notification settings - Fork 8
/
huofang.c
58 lines (49 loc) · 1.28 KB
/
huofang.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// 神话世界·西游记·版本4.50
/* <SecCrypt CPL V3R05> */
// Room: /d/4world/huofang.c
inherit ROOM;
void create ()
{
set ("short", "仓库");
set ("long", @LONG
这里不知是那家商号的仓库,周围密密麻麻堆放着些箱子。仓库中
做工的人很多,大多是光着脚的青年汉子。一趟又一趟的搬运着货
物。墙上贴着张大报,大意是缺人手,要请人来工作(work)。
LONG);
set("objects", ([ /* sizeof() == 1 */
__DIR__"npc/man" : 3,
]));
set("exits", ([ /* sizeof() == 1 */
"south" : __DIR__"west1",
]));
setup();
}
void init()
{
add_action("do_work", "work");
}
int do_work(string arg)
{
object ob;
object me;
me = this_player();
if (! me->query_temp("working_in_liangdian")) {
message_vision("$N从车上卸下一袋袋的大米,又垒在墙边,累的腰酸腿疼!\n",me);
me->add("kee",-20);
me->add("sen",-20);
ob = new("/obj/money/silver");
ob->move(me);
message_vision("旁边过来个工头笑眯眯地对$N说:辛苦啦,这是你的工钱。\n",me);
me->set_temp("working_in_liangdian",1);
remove_call_out ("reset_work");
call_out ("reset_work",1,me);
} else
{
message_vision("旁边的壮汉赶紧把$N扶起来:先歇一会儿。\n",me);
}
return 1;
}
void reset_work (object me)
{
me->set_temp("working_in_liangdian",0);
}