]>
jfr.im git - irc/gameservirc.git/blob - gameserv/c_store.cpp
7 void do_store(char *u
);
9 void store(char *source
, char *buf
)
11 char *cmd
= strtok(buf
, " ");
18 if (stricmp(cmd
, "LIST") == 0)
26 void do_store(char *u
)
31 int num
= rand() % 12;
37 notice(s_GameServ
, u
, "You must be playing the game to search the forest!");
41 if (source
->stats
->forest_fights
<= 0)
43 notice(s_GameServ
, u
, "You are out of forest fights for the day. Wait "\
47 else if (isnt_fighting(u
))
49 Player
*ni
= source
->stats
;
51 ni
->fight
= &monsters
[ni
->level
- 1][num
];
52 notice(s_GameServ
, u
, "You search the forest for something to kill...");
53 notice(s_GameServ
, u
, "You have found \ 2%s\ 2!", ni
->fight
->name
);
54 ni
->fight
->hp
= ni
->fight
->maxhp
;
58 else if (is_fighting(u
))
60 notice(s_GameServ
, u
, "You want to fight two monsters at once?");