… | |
… | |
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 |
231 | if (QUERY_FLAG (op, FLAG_AFK)) |
232 | (op, FLAG_AFK) |
|
|
233 | { |
232 | { |
234 | CLEAR_FLAG (op, FLAG_AFK); |
233 | CLEAR_FLAG (op, FLAG_AFK); |
235 | new_draw_info (NDI_UNIQUE, 0, op, "You are no longer AFK"); |
234 | new_draw_info (NDI_UNIQUE, 0, op, "You are no longer AFK"); |
236 | } |
235 | } |
237 | else |
236 | else |
238 | { |
237 | { |
239 | SET_FLAG (op, FLAG_AFK); |
238 | SET_FLAG (op, FLAG_AFK); |
240 | new_draw_info (NDI_UNIQUE, 0, op, "You are now AFK"); |
239 | new_draw_info (NDI_UNIQUE, 0, op, "You are now AFK"); |
241 | } |
240 | } |
|
|
241 | |
242 | return 1; |
242 | return 1; |
243 | } |
243 | } |
244 | |
244 | |
245 | int |
245 | int |
246 | command_mapinfo (object *op, char *params) |
246 | command_mapinfo (object *op, char *params) |