… | |
… | |
192 | */ |
192 | */ |
193 | for (reg = first_region; reg != NULL; reg = reg->next) |
193 | for (reg = first_region; reg != NULL; reg = reg->next) |
194 | { |
194 | { |
195 | reg->counter = 0; |
195 | reg->counter = 0; |
196 | } |
196 | } |
197 | for (pl = first_player; pl != NULL; pl = pl->next) |
197 | for_all_players (pl) |
198 | if (pl->ob->map != NULL) |
198 | if (pl->ob->map != NULL) |
199 | get_region_by_map (pl->ob->map)->counter++; |
199 | get_region_by_map (pl->ob->map)->counter++; |
200 | |
200 | |
201 | /* we only want to print out by places with a 'longname' field... */ |
201 | /* we only want to print out by places with a 'longname' field... */ |
202 | for (reg = first_region; reg != NULL; reg = reg->next) |
202 | for (reg = first_region; reg != NULL; reg = reg->next) |
… | |
… | |
226 | } chars_names; |
226 | } chars_names; |
227 | |
227 | |
228 | int |
228 | int |
229 | command_afk (object *op, char *params) |
229 | command_afk (object *op, char *params) |
230 | { |
230 | { |
231 | if (QUERY_FLAG (op, FLAG_AFK)) |
231 | if ((op->contr->ns->afk = !op->contr->ns->afk)) |
232 | { |
|
|
233 | CLEAR_FLAG (op, FLAG_AFK); |
|
|
234 | new_draw_info (NDI_UNIQUE, 0, op, "You are no longer AFK"); |
232 | new_draw_info (NDI_UNIQUE, 0, op, "You are no longer AFK"); |
235 | } |
|
|
236 | else |
233 | else |
237 | { |
|
|
238 | SET_FLAG (op, FLAG_AFK); |
|
|
239 | new_draw_info (NDI_UNIQUE, 0, op, "You are now AFK"); |
234 | new_draw_info (NDI_UNIQUE, 0, op, "You are now AFK"); |
240 | } |
|
|
241 | |
235 | |
242 | return 1; |
236 | return 1; |
243 | } |
237 | } |
244 | |
238 | |
245 | int |
239 | int |