Crossfire Server, Trunk  1.75.0
sproto.h
Go to the documentation of this file.
1 /* account.c */
2 void accounts_clear(void);
3 void accounts_load(void);
4 void accounts_save(void);
5 const char *account_exists(const char *account_name);
6 int account_login(const char *account_name, const char *account_password);
7 void account_logout(const char *account_name);
8 int account_check_string(const char *str);
9 int account_new(const char *account_name, const char *account_password);
10 int account_link(const char *account_name, const char *player_name);
11 int account_remove_player(const char *account_name, const char *player_name);
12 char **account_get_players_for_account(const char *account_name);
13 linked_char *account_get_additional_chars(const char *account_name, const Account_Chars *chars, int *count);
14 const char *account_get_account_for_char(const char *charname);
15 int account_is_logged_in(const char *name);
16 int account_change_password(const char *account_name, const char *current_password, const char *new_password);
17 /* account_char.c */
18 Account_Chars *account_char_load(const char *account_name);
19 void account_char_save(Account_Chars *chars);
20 void account_char_add(Account_Chars *chars, player *pl);
21 void account_char_remove(Account_Chars *chars, const char *pl_name);
22 void account_char_free(Account_Chars *chars);
23 /* alchemy.c */
24 int use_alchemy(object *op);
25 /* apply.c */
26 int transport_can_hold(const object *transport, const object *op, int nrof);
27 int should_director_abort(const object *op, const object *victim);
28 void apply_handle_yield(object *tmp);
29 int set_object_face_main(object *op);
30 int apply_container(object *op, object *sack, int aflags);
31 void do_learn_spell(object *op, object *spell, int special_prayer);
32 void do_forget_spell(object *op, const char *spell);
33 int apply_manual(object *op, object *tmp, int aflag);
34 int apply_by_living(object *pl, object *op, int aflag, int quiet);
35 void apply_by_living_below(object *pl);
36 int apply_can_apply_object(const object *who, const object *op);
37 int apply_check_weapon_power(const object *who, int improves);
38 int apply_special(object *who, object *op, int aflags);
39 int apply_auto(object *op);
41 void scroll_failure(object *op, int failure, int power);
42 void apply_changes_to_player(object *pl, object *change, int limit_stats);
43 /* attack.c */
44 void save_throw_object(object *op, uint32_t type, object *originator);
45 int slow_living_by(object *op, const int speed_penalty);
46 int hit_map(object *op, int dir, uint32_t type, int full_hit);
47 void get_attack_message_for_attack_type(int dam, uint8_t atm_type, const char *victim_name, char *buf1, char *buf2);
48 int attack_ob(object *op, object *hitter);
49 object *hit_with_arrow(object *op, object *victim);
50 int friendly_fire(object *op, object *hitter);
51 int hit_player(object *op, int dam, object *hitter, uint32_t type, int full_hit);
52 void confuse_living(object *op, object *hitter, int dam);
53 void blind_living(object *op, object *hitter, int dam);
54 void paralyze_living(object *op, int dam);
55 /* ban.c */
56 int checkbanned(const char *login, const char *host);
57 /* build_map.c */
58 void apply_builder_remove(object *pl, int dir);
59 void apply_map_builder(object *pl, int dir);
60 /* c_chat.c */
61 void command_say(object *op, const char *params);
62 void command_me(object *op, const char *params);
63 void command_cointoss(object *op, const char *params);
64 void command_orcknuckle(object *op, const char *params);
65 void command_shout(object *op, const char *params);
66 void command_chat(object *op, const char *params);
67 void command_tell(object *op, const char *params);
68 void command_dmtell(object *op, const char *params);
69 void command_reply(object *op, const char *params);
70 void command_nod(object *op, const char *params);
71 void command_dance(object *op, const char *params);
72 void command_kiss(object *op, const char *params);
73 void command_bounce(object *op, const char *params);
74 void command_smile(object *op, const char *params);
75 void command_cackle(object *op, const char *params);
76 void command_laugh(object *op, const char *params);
77 void command_giggle(object *op, const char *params);
78 void command_shake(object *op, const char *params);
79 void command_puke(object *op, const char *params);
80 void command_growl(object *op, const char *params);
81 void command_scream(object *op, const char *params);
82 void command_sigh(object *op, const char *params);
83 void command_sulk(object *op, const char *params);
84 void command_hug(object *op, const char *params);
85 void command_cry(object *op, const char *params);
86 void command_poke(object *op, const char *params);
87 void command_accuse(object *op, const char *params);
88 void command_grin(object *op, const char *params);
89 void command_bow(object *op, const char *params);
90 void command_clap(object *op, const char *params);
91 void command_blush(object *op, const char *params);
92 void command_burp(object *op, const char *params);
93 void command_chuckle(object *op, const char *params);
94 void command_cough(object *op, const char *params);
95 void command_flip(object *op, const char *params);
96 void command_frown(object *op, const char *params);
97 void command_gasp(object *op, const char *params);
98 void command_glare(object *op, const char *params);
99 void command_groan(object *op, const char *params);
100 void command_hiccup(object *op, const char *params);
101 void command_lick(object *op, const char *params);
102 void command_pout(object *op, const char *params);
103 void command_shiver(object *op, const char *params);
104 void command_shrug(object *op, const char *params);
105 void command_slap(object *op, const char *params);
106 void command_smirk(object *op, const char *params);
107 void command_snap(object *op, const char *params);
108 void command_sneeze(object *op, const char *params);
109 void command_snicker(object *op, const char *params);
110 void command_sniff(object *op, const char *params);
111 void command_snore(object *op, const char *params);
112 void command_spit(object *op, const char *params);
113 void command_strut(object *op, const char *params);
114 void command_thank(object *op, const char *params);
115 void command_twiddle(object *op, const char *params);
116 void command_wave(object *op, const char *params);
117 void command_whistle(object *op, const char *params);
118 void command_wink(object *op, const char *params);
119 void command_yawn(object *op, const char *params);
120 void command_beg(object *op, const char *params);
121 void command_bleed(object *op, const char *params);
122 void command_cringe(object *op, const char *params);
123 void command_think(object *op, const char *params);
124 /* c_misc.c */
125 void command_language(object *op, const char *params);
126 void command_body(object *op, const char *params);
127 void command_motd(object *op, const char *params);
128 void command_rules(object *op, const char *params);
129 void command_news(object *op, const char *params);
130 void command_whereabouts(object *op, const char *params);
131 void list_players(object *op, region *reg, partylist *party);
132 void command_who(object *op, const char *params);
133 void command_afk(object *op, const char *params);
134 void command_malloc(object *op, const char *params);
135 void command_mapinfo(object *op, const char *params);
136 void command_whereami(object *op, const char *params);
137 void command_maps(object *op, const char *params);
138 void command_strings(object *op, const char *params);
139 void command_time(object *op, const char *params);
140 void command_archs(object *op, const char *params);
141 void command_hiscore(object *op, const char *params);
142 void command_debug(object *op, const char *params);
143 void command_wizpass(object *op, const char *params);
144 void command_wizcast(object *op, const char *params);
145 void command_dumpallobjects(object *op, const char *params);
146 void command_dumpfriendlyobjects(object *op, const char *params);
147 void command_dumpallarchetypes(object *op, const char *params);
148 void command_ssdumptable(object *op, const char *params);
149 void command_dumpmap(object *op, const char *params);
150 void command_dumpallmaps(object *op, const char *params);
151 void command_printlos(object *op, const char *params);
152 void command_version(object *op, const char *params);
153 void command_listen(object *op, const char *params);
154 void command_statistics(object *pl, const char *params);
155 void command_fix_me(object *op, const char *params);
156 void command_players(object *op, const char *params);
157 void command_applymode(object *op, const char *params);
158 void command_bowmode(object *op, const char *params);
159 void command_unarmed_skill(object *op, const char *params);
160 void command_petmode(object *op, const char *params);
161 void command_showpets(object *op, const char *params);
162 void command_usekeys(object *op, const char *params);
163 void command_resistances(object *op, const char *params);
164 void command_help(object *op, const char *params);
165 void command_delete(object *op, const char *params);
166 void command_quit(object *op, const char *params);
167 void command_sound(object *op, const char *params);
168 void receive_player_name(object *op, const char *name);
169 void receive_player_password(object *op, const char *password);
170 void command_title(object *op, const char *params);
171 void command_save(object *op, const char *params);
172 void command_peaceful(object *op, const char *params);
173 void command_wimpy(object *op, const char *params);
174 void command_brace(object *op, const char *params);
175 void command_kill_pets(object *op, const char *params);
176 void command_passwd(object *pl, const char *params);
177 void do_harvest(object *pl, int dir, object *skill);
178 /* c_move.c */
179 void command_east(object *op, const char *params);
180 void command_north(object *op, const char *params);
181 void command_northeast(object *op, const char *params);
182 void command_northwest(object *op, const char *params);
183 void command_south(object *op, const char *params);
184 void command_southeast(object *op, const char *params);
185 void command_southwest(object *op, const char *params);
186 void command_west(object *op, const char *params);
187 void command_stay(object *op, const char *params);
188 void do_goto(object *op, const char *name, int x, int y);
189 /* c_new.c */
190 void command_run(object *op, const char *params);
191 void command_run_stop(object *op, const char *params);
192 void command_fire(object *op, const char *params);
193 void command_fire_stop(object *op, const char *params);
194 void command_face(object *op, const char *params);
195 /* c_object.c */
196 void command_uskill(object *pl, const char *params);
197 void command_rskill(object *pl, const char *params);
198 void command_search(object *op, const char *params);
199 void command_disarm(object *op, const char *params);
200 void command_throw(object *op, const char *params);
201 void command_apply(object *op, const char *params);
202 int sack_can_hold(const object *pl, const object *sack, const object *op, uint32_t nrof);
203 void pick_up(object *op, object *alt);
204 void command_take(object *op, const char *params);
205 void put_object_in_sack(object *op, object *sack, object *tmp, uint32_t nrof);
206 object *drop_object(object *op, object *tmp, uint32_t nrof);
207 void drop(object *op, object *tmp);
208 void command_dropall(object *op, const char *params);
209 void command_drop(object *op, const char *params);
210 void command_empty(object *op, const char *params);
211 void command_examine(object *op, const char *params);
212 object *find_marked_object(object *op);
213 void command_mark(object *op, const char *params);
214 void examine_monster(object *op, object *tmp, int level);
215 void examine(object *op, object *tmp);
216 void inventory(object *op, object *inv);
217 void command_pickup(object *op, const char *params);
218 void command_search_items(object *op, const char *params);
219 void command_rename_item(object *op, const char *params);
220 void command_lock_item(object *op, const char *params);
221 void command_use(object *op, const char *params);
222 /* c_party.c */
223 void receive_party_password(object *op, const char *password);
224 void command_gsay(object *op, const char *params);
225 void command_party(object *op, const char *params);
226 void command_party_rejoin(object *op, const char *params);
227 /* c_range.c */
228 void command_invoke(object *op, const char *params);
229 void command_cast(object *op, const char *params);
230 void command_cast_spell(object *op, const char *params, int cast_now);
231 int legal_range(object *op, int r);
232 void command_rotateshoottype(object *op, const char *params);
233 void command_shoottype(object *op, const char *params);
234 /* c_wiz.c */
235 void command_loadtest(object *op, const char *params);
236 void command_hide(object *op, const char *params);
237 void command_setgod(object *op, const char *params);
238 void command_banish(object *op, const char *params);
239 void command_kick(object *op, const char *params);
240 void command_overlay_save(object *op, const char *params);
241 void command_overlay_reset(object *op, const char *params);
242 void command_toggle_shout(object *op, const char *params);
243 void command_shutdown(object *op, const char *params);
244 void command_goto(object *op, const char *params);
245 void command_freeze(object *op, const char *params);
246 int player_arrest(object *who);
247 void command_arrest(object *op, const char *params);
248 void command_summon(object *op, const char *params);
249 void command_swap(object *op, const char *params);
250 void command_teleport(object *op, const char *params);
251 void command_create(object *op, const char *params);
252 void command_inventory(object *op, const char *params);
253 void command_skills(object *op, const char *params);
254 void command_dump(object *op, const char *params);
255 void command_mon_aggr(object *op, const char *params);
256 void command_possess(object *op, const char *params);
257 void command_patch(object *op, const char *params);
258 void command_recollect(object *op, const char *params);
259 void command_remove(object *op, const char *params);
260 void command_free(object *op, const char *params);
261 void command_accountpasswd(object *op, const char *params);
262 void command_addexp(object *op, const char *params);
263 void command_speed(object *op, const char *params);
264 void command_stats(object *op, const char *params);
265 void command_abil(object *op, const char *params);
266 void command_reset(object *op, const char *params);
267 void command_nowiz(object *op, const char *params);
268 void command_dm(object *op, const char *params);
269 void command_invisible(object *op, const char *params);
270 void command_learn_spell(object *op, const char *params);
271 void command_learn_special_prayer(object *op, const char *params);
272 void command_forget_spell(object *op, const char *params);
273 void command_listplugins(object *op, const char *params);
274 void command_loadplugin(object *op, const char *params);
275 void command_unloadplugin(object *op, const char *params);
276 void command_dmhide(object *op, const char *params);
277 void command_stack_pop(object *op, const char *params);
278 void command_stack_push(object *op, const char *params);
279 void command_stack_list(object *op, const char *params);
280 void command_stack_clear(object *op, const char *params);
281 void command_diff(object *op, const char *params);
282 void command_insert_into(object *op, const char *params);
283 void command_style_map_info(object *op, const char *params);
284 void command_follow(object *op, const char *params);
285 void command_purge_quest(object *op, const char *param);
286 void command_purge_quest_definitions(object *op, const char *param);
287 void command_dumpabove(object *op, const char *params);
288 void command_dumpbelow(object *op, const char *params);
289 void command_settings(object *op, const char *ignored);
290 void do_dump(object *who, object *what);
291 bool can_follow(object* op, player* other);
292 /* commands.c */
293 void commands_init(void);
294 void command_list(object *pl, bool is_dm);
295 void command_execute(object *pl, char *command);
296 command_registration command_register(const char *name, uint8_t type, command_function func, float time);
297 command_registration command_register_extra(const char *name, const char *extra, uint8_t type, command_function_extra func, float time);
299 void commands_clear();
300 /* disease.c */
301 int move_disease(object *disease);
302 int infect_object(object *victim, object *disease, int force);
303 void move_symptom(object *symptom);
304 void check_physically_infect(object *victim, object *hitter);
305 int cure_disease(object *sufferer, object *caster, sstring skill);
306 /* hiscore.c */
307 void hiscore_init(void);
308 void hiscore_check(object *op, int quiet);
309 void hiscore_display(object *op, int max, const char *match);
310 /* gods.c */
311 const char *determine_god(object *op);
312 void pray_at_altar(object *pl, object *altar, object *skill);
313 int become_follower(object *op, const object *new_god);
314 archetype *determine_holy_arch(const object *god, const char *type);
315 int tailor_god_spell(object *spellop, object *caster);
316 /* init.c */
317 void init(int argc, char **argv);
318 void free_server(void);
320 void close_modules();
321 void init_signals();
322 /* knowledge.c */
323 void knowledge_give(player *pl, const char *marker, const object *book);
324 void knowledge_read(player *pl, object *book);
325 void command_knowledge(object *pl, const char *params);
326 void free_knowledge(void);
327 int knowledge_player_knows(const player *pl, const char *knowledge);
328 void knowledge_item_can_be_used_alchemy(object *op, const object *item);
330 void knowledge_send_known(player *pl);
333 void knowledge_add_probe_monster(object *op, object *mon);
334 /* login.c */
335 void emergency_save(int flag);
336 void delete_character(const char *name);
337 int verify_player(const char *name, char *password);
338 int check_name(player *me, const char *name);
339 void destroy_object(object *op);
340 int save_player(object *op, int flag);
341 void check_login(object *op, const char *password);
342 /* monster.c */
343 object *monster_check_enemy(object *npc, rv_vector *rv);
344 object *monster_find_nearest_enemy(object *npc, object *owner);
345 int monster_compute_path(object *source, object *target, int default_dir);
346 void monster_do_living(object *op);
347 int monster_move(object *op);
348 void monster_check_apply_all(object *monster);
349 void monster_npc_call_help(object *op);
350 void monster_check_earthwalls(object *op, mapstruct *m, int x, int y);
351 void monster_check_doors(object *op, mapstruct *m, int x, int y);
352 void monster_do_say(const mapstruct *map, const char *message);
353 void monster_communicate(object *op, const char *txt);
354 void monster_npc_say(object *npc, const char *cp);
355 object *monster_find_throw_ob(object *op);
356 int monster_can_detect_enemy(object *op, object *enemy, rv_vector *rv);
357 int monster_stand_in_light(object *op);
358 int monster_can_see_enemy(object *op, object *enemy);
359 const char *get_reply_text_own(reply_type rt);
360 /* move.c */
361 int move_object(object *op, int dir);
362 int move_ob(object *op, int dir, object *originator);
363 int transfer_ob(object *op, int x, int y, int randomly, object *originator);
364 int teleport(object *teleporter, uint8_t tele_type, object *user);
365 void recursive_roll(object *op, int dir, object *pusher);
366 int push_ob(object *who, int dir, object *pusher);
367 int move_to(object *op, int x, int y);
368 int object_teleport(object *op, mapstruct *map, int x, int y);
369 /* ob_methods.c */
370 void init_ob_methods(void);
371 /* ob_types.c */
372 void register_all_ob_types(void);
373 /* party.c */
374 partylist *party_form(object *op, const char *partyname);
375 void party_join(object *op, partylist *party);
376 void party_leave(object *op);
377 partylist *party_find(const char *partyname);
378 void party_remove(partylist *party);
380 partylist *party_get_next(const partylist *party);
381 void party_obsolete_parties(void);
382 const char *party_get_password(const partylist *party);
383 void party_set_password(partylist *party, const char *password);
384 int party_confirm_password(const partylist *party, const char *password);
385 void party_send_message(object *op, const char *message);
386 const char *party_get_leader(const partylist *party);
387 /* pets.c */
388 object *pets_get_enemy(object *pet, rv_vector *rv);
389 void pets_terminate_all(object *owner);
390 void pets_attempt_follow(object *for_owner, int force);
391 void pets_follow_owner(object *ob, object *owner);
392 void pets_move(object *ob);
393 void pets_move_golem(object *op);
394 void pets_control_golem(object *op, int dir);
395 int pets_summon_golem(object *op, object *caster, int dir, object *spob);
396 int pets_summon_object(object *op, object *caster, object *spell_ob, int dir, const char *stringarg);
397 int pets_should_arena_attack(object *pet, object *owner, object *target);
398 /* player.c */
399 player *find_player(const char *plname);
400 player *find_player_options(const char *plname, int options, const mapstruct *map);
401 player *find_player_partial_name(const char *plname);
403 void display_motd(const object *op);
404 void send_rules(const object *op);
405 void send_news(const object *op);
406 int playername_ok(const char *cp);
408 void set_first_map(object *op);
411 object *get_nearest_criminal(object *mon);
412 object *get_nearest_player(object *mon);
413 int path_to_player(object *mon, object *pl, unsigned mindiff);
414 void give_initial_items(object *pl, treasurelist *items);
415 void get_name(object *op);
416 void get_password(object *op);
417 void play_again(object *op);
418 void receive_play_again(object *op, char key);
419 void confirm_password(object *op);
420 int get_party_password(object *op, partylist *party);
421 int roll_stat(void);
422 void roll_stats(object *op);
423 void roll_again(object *op);
424 void key_roll_stat(object *op, char key);
425 void key_change_class(object *op, char key);
426 int check_race_and_class(living *stats, archetype *race, archetype *opclass);
427 int apply_race_and_class(object *op, archetype *race, archetype *opclass, living *stats);
428 void key_confirm_quit(object *op, char key);
429 int check_pick(object *op);
430 int fire_bow(object *op, object *arrow, int dir, int wc_mod, int16_t sx, int16_t sy);
431 void fire(object *op, int dir);
432 object *find_key(object *pl, object *container, object *door);
433 void move_player_attack(object *op, int dir);
434 int move_player(object *op, int dir);
435 int face_player(object *op, int dir);
436 int handle_newcs_player(object *op);
437 void remove_unpaid_objects(object *op, object *env, int free_items);
438 void do_some_living(object *op);
439 void kill_player(object *op, const object *killer);
440 void fix_weight(void);
441 void fix_luck(void);
442 void cast_dust(object *op, object *throw_ob, int dir);
443 void make_visible(object *op);
444 int is_true_undead(object *op);
445 int hideability(object *ob);
446 void do_hidden_move(object *op);
447 int stand_near_hostile(object *who);
448 int player_can_view(object *pl, object *op);
449 int op_on_battleground(object *op, int *x, int *y, archetype **trophy);
450 void dragon_ability_gain(object *who, int atnr, int level);
451 void player_unready_range_ob(player *pl, object *ob);
452 void player_set_state(player *pl, uint8_t state);
454 void send_delayed_buffers(player *pl);
456 /* plugins.c */
457 int plugins_init_plugin(const char *libfile);
458 int plugins_remove_plugin(const char *id);
459 void plugins_display_list(object *op);
460 void initPlugins(void);
461 void cleanupPlugins(void);
462 /* quest.c */
463 int quest_get_player_state(player *pl, sstring quest_code);
464 void quest_load_definitions(void);
465 void quest_start(player *pl, sstring quest_code, int state);
466 void quest_set_player_state(player *pl, sstring quest_code, int state);
467 int quest_was_completed(player *pl, sstring quest_code);
468 void command_quest(object *op, const char *params);
469 void dump_quests(void);
470 void free_quest(void);
471 void free_quest_definitions(void);
474 /* resurrection.c */
475 int cast_raise_dead_spell(object *op, object *caster, object *spell, int dir, const char *arg);
476 void dead_player(object *op);
477 /* rune.c */
478 int write_rune(object *op, object *caster, object *spell, int dir, const char *runename);
479 void spring_trap(object *trap, object *victim);
480 int dispel_rune(object *op, object *skill, int dir);
481 int trap_see(object *op, object *trap);
482 int trap_show(object *trap, object *where);
483 int trap_disarm(object *disarmer, object *trap, int risk, object *skill);
484 /* skills.c */
485 int steal(object *op, int dir, object *skill);
486 int pick_lock(object *pl, int dir, object *skill);
487 int hide(object *op, object *skill);
488 int jump(object *pl, int dir, object *skill);
489 int detect_curse_on_item(object *pl, object *tmp, object *skill);
490 int detect_magic_on_item(object *pl, object *tmp, object *skill);
491 int identify_object_with_skill(object *tmp, object *pl, object *skill, int print_on_success);
492 int skill_ident(object *pl, object *skill);
493 int use_oratory(object *pl, int dir, object *skill);
494 int singing(object *pl, int dir, object *skill);
495 int find_traps(object *pl, object *skill);
496 int remove_trap(object *op, object *skill);
497 int pray(object *pl, object *skill);
498 void meditate(object *pl, object *skill);
499 int write_on_item(object *pl, const char *params, object *skill);
500 int skill_throw(object *op, object *part, int dir, object *skill);
501 /* skill_util.c */
502 void init_skills(void);
503 object *find_skill_by_name(object *who, const char *name);
504 object *find_applied_skill_by_name(const object* op, const char* name);
505 object *find_skill_by_number(object *who, int skillno);
506 int change_skill(object *who, object *new_skill, int flag);
507 void clear_skill(object *who);
508 int do_skill(object *op, object *part, object *skill, int dir, const char *string);
509 int64_t calc_skill_exp(const object *who, const object *op, const object *skill);
510 int learn_skill(object *pl, object *scroll);
511 void show_skills(object *op, const char *search);
512 int use_skill(object *op, const char *string);
513 void skill_attack(object *tmp, object *pl, int dir, const char *string, object *skill);
514 /* spell_attack.c */
515 int fire_bolt(object *op, object *caster, int dir, object *spob);
516 void explode_bullet(object *op);
517 void check_bullet(object *op);
518 void cone_drop(object *op);
519 int cast_cone(object *op, object *caster, int dir, object *spell);
520 int create_bomb(object *op, object *caster, int dir, object *spell);
521 int cast_smite_spell(object *op, object *caster, int dir, object *spell);
522 int cast_destruction(object *op, object *caster, object *spell_ob);
523 int cast_curse(object *op, object *caster, object *spell_ob, int dir);
524 int mood_change(object *op, object *caster, object *spell);
525 int fire_swarm(object *op, object *caster, object *spell, int dir);
526 int cast_light(object *op, object *caster, object *spell, int dir);
527 int cast_cause_disease(object *op, object *caster, object *spell, int dir);
528 /* spell_effect.c */
529 void cast_magic_storm(object *op, object *tmp, int lvl);
530 int recharge(object *op, object *caster, object *spell_ob);
531 void polymorph(object *op, object *who, int level);
532 int cast_polymorph(object *op, object *caster, object *spell_ob, int dir);
533 int cast_create_missile(object *op, object *caster, object *spell, int dir, const char *stringarg);
534 int cast_create_food(object *op, object *caster, object *spell_ob, int dir, const char *stringarg);
535 int probe(object *op, object *caster, object *spell_ob, int dir, int level);
536 int makes_invisible_to(object *pl, object *mon);
537 int cast_invisible(object *op, object *caster, object *spell_ob);
538 int cast_earth_to_dust(object *op, object *caster, object *spell_ob);
539 int cast_word_of_recall(object *op, object *caster, object *spell_ob);
540 int cast_wonder(object *op, object *caster, int dir, object *spell_ob);
541 int perceive_self(object *op);
542 int cast_create_town_portal(object *op, object *caster, object *spell);
543 int magic_wall(object *op, object *caster, int dir, object *spell_ob);
544 int dimension_door(object *op, object *caster, object *spob, int dir);
545 int cast_heal(object *op, object *caster, object *spell, int dir);
546 int cast_change_ability(object *op, object *caster, object *spell_ob, int dir, int silent);
547 int cast_bless(object *op, object *caster, object *spell_ob, int dir);
548 int alchemy(object *op, object *caster, object *spell_ob);
549 int remove_curse(object *op, object *caster, object *spell);
550 int cast_item_curse_or_bless(object *op, object *spell_ob);
551 int cast_identify(object *op, object *caster, object *spell);
552 int cast_detection(object *op, object *caster, object *spell);
553 int cast_transfer(object *op, object *caster, object *spell, int dir);
554 void counterspell(object *op, int dir);
555 int cast_consecrate(object *op, object *caster, object *spell);
556 int animate_weapon(object *op, object *caster, object *spell, int dir);
557 int cast_change_map_lightlevel(object *op, object *spell);
558 int create_aura(object *op, object *caster, object *spell);
559 int write_mark(object *op, object *spell, const char *msg);
560 /* spell_util.c */
561 object *find_random_spell_in_ob(object *ob, const char *skill);
562 void set_spell_skill(object *op, object *caster, object *spob, object *dest);
563 void dump_spells(void);
564 void spell_effect(object *spob, int x, int y, mapstruct *map, object *originator);
565 int min_casting_level(const object *caster, const object *spell);
566 int caster_level(const object *caster, const object *spell);
567 int16_t SP_level_spellpoint_cost(object *caster, object *spell, int flags);
568 int SP_level_dam_adjust(const object *caster, const object *spob);
569 int SP_level_duration_adjust(const object *caster, const object *spob);
570 int SP_level_range_adjust(const object *caster, const object *spob);
571 int SP_level_wc_adjust(const object *caster, const object *spob);
572 object *check_spell_known(object *op, const char *name);
573 object *lookup_spell_by_name(object *op, const char *spname);
574 int reflwall(mapstruct *m, int x, int y, object *sp_op);
575 int cast_create_obj(object *op, object *new_op, int dir);
576 int ok_to_put_more(mapstruct *m, int16_t x, int16_t y, object *op, uint32_t immune_stop);
577 int fire_arch_from_position(object *op, object *caster, int16_t x, int16_t y, int dir, object *spell);
578 void regenerate_rod(object *rod);
579 void drain_rod_charge(object *rod);
580 void drain_wand_charge(object *wand);
581 object *find_target_for_friendly_spell(object *op, int dir);
582 int spell_find_dir(mapstruct *m, int x, int y, object *exclude);
583 int summon_hostile_monsters(object *op, int n, const char *monstername);
584 void shuffle_attack(object *op);
585 void spell_failure(object *op, int failure, int power, object *skill);
586 int cast_spell(object *op, object *caster, int dir, object *spell_ob, char *stringarg);
587 void store_spell_expiry(object *spell);
588 void check_spell_expiry(object *spell);
589 void rod_adjust(object *rod);
590 /* swap.c */
591 void read_map_log(void);
592 int swap_map(mapstruct *map);
593 void check_active_maps(void);
594 int players_on_map(mapstruct *m, int show_all);
595 bool map_can_reset(const mapstruct *map, long current_time);
596 void flush_old_maps(void);
597 /* time.c */
598 void remove_door(object *op);
599 void remove_locked_door(object *op);
600 object *stop_item(object *op);
601 void fix_stopped_item(object *op, mapstruct *map, object *originator);
602 object *fix_stopped_arrow(object *op);
603 int free_no_drop(object *op);
604 void change_object(object *op);
605 void move_firewall(object *op);
606 void move_player_mover(object *op);
607 void process_object(object *op);
608 void legacy_remove_force(object *op);
609 void legacy_animate_trigger(object *op);
610 void legacy_move_hole(object *op);
611 /* timers.c */
612 void cftimer_process_timers(void);
613 int cftimer_create(int id, long delay, object *ob, int mode);
614 int cftimer_destroy(int id);
615 int cftimer_find_free_id(void);
616 void cftimer_init(void);
617 /* weather.c */
619 void tick_the_clock(void);
620 /* server.c */
621 char const* newhash(char const *password);
622 bool check_password(const char *typed, const char *crypted);
623 void enter_player_savebed(object *op);
624 void set_map_timeout(mapstruct *oldmap);
625 void enter_exit(object *op, object *exit_ob);
626 void process_events(void);
627 void clean_tmp_files(void);
628 void cleanup(void);
629 void leave(player *pl, int draw_exit);
630 int forbid_play(void);
631 void server_main(int argc, char *argv[]);
632 /* race.cpp */
633 void load_races(BufferReader *reader, const char *filename);
634 void finish_races();
635 void dump_races(void);
636 void free_races(void);
637 object *races_get_random_monster(const char *race, int level);
638 /* item.c */
639 bool player_can_find(object *op, object *ob);
640 
641 
647 void enter_player_maplevel(object *op);
SP_level_range_adjust
int SP_level_range_adjust(const object *caster, const object *spob)
Adjust the range of the spell based on level.
Definition: spell_util.cpp:338
find_player_socket
player * find_player_socket(const socket_struct *ns)
Return a player for a socket structure.
Definition: player.cpp:123
command_stack_pop
void command_stack_pop(object *op, const char *params)
Pop the stack top.
Definition: c_wiz.cpp:2534
fix_weight
void fix_weight(void)
Check recursively the weight of all players, and fix what needs to be fixed.
Definition: player.cpp:3911
paralyze_living
void paralyze_living(object *op, int dam)
Paralyze a living thing.
Definition: attack.cpp:2402
command_style_map_info
void command_style_map_info(object *op, const char *params)
Displays information about styles loaded for random maps.
Definition: c_wiz.cpp:2763
do_skill
int do_skill(object *op, object *part, object *skill, int dir, const char *string)
Main skills use function-similar in scope to cast_spell().
Definition: skill_util.cpp:431
apply_changes_to_player
void apply_changes_to_player(object *pl, object *change, int limit_stats)
Applies (race) changes to a player.
Definition: apply.cpp:1672
handle_newcs_player
int handle_newcs_player(object *op)
Handles commands the player can send us, and various checks on invisibility, golem and such.
Definition: player.cpp:3103
command_dance
void command_dance(object *op, const char *params)
'dance' command.
Definition: c_chat.cpp:733
set_spell_skill
void set_spell_skill(object *op, object *caster, object *spob, object *dest)
Utility function to assign the correct skill when casting.
Definition: spell_util.cpp:94
path_to_player
int path_to_player(object *mon, object *pl, unsigned mindiff)
Returns the direction to the player, if valid.
Definition: player.cpp:659
cftimer_find_free_id
int cftimer_find_free_id(void)
Finds a free ID for a new timer.
Definition: timers.cpp:144
command_shutdown
void command_shutdown(object *op, const char *params)
Totally shutdowns the server.
Definition: c_wiz.cpp:658
party_get_leader
const char * party_get_leader(const partylist *party)
Returns the name of the party's leader.
Definition: party.cpp:292
command_cackle
void command_cackle(object *op, const char *params)
'cackle' command.
Definition: c_chat.cpp:777
command_stack_push
void command_stack_push(object *op, const char *params)
Push specified item on stack.
Definition: c_wiz.cpp:2547
fire_bolt
int fire_bolt(object *op, object *caster, int dir, object *spob)
Cast a bolt-like spell.
Definition: spell_attack.cpp:61
tick_the_clock
void tick_the_clock(void)
This performs the basic function of advancing the clock one tick forward.
Definition: weather.cpp:94
pets_terminate_all
void pets_terminate_all(object *owner)
Removes all pets someone owns.
Definition: pets.cpp:225
command_northeast
void command_northeast(object *op, const char *params)
'northeast' command.
Definition: c_move.cpp:79
options
static struct Command_Line_Options options[]
Actual valid command line options.
Definition: init.cpp:384
command_sound
void command_sound(object *op, const char *params)
Player wants to change sound status.
Definition: c_misc.cpp:1910
send_delayed_buffers
void send_delayed_buffers(player *pl)
Send all delayed buffers for a player.
Definition: player.cpp:4530
command_bleed
void command_bleed(object *op, const char *params)
'bleed' command.
Definition: c_chat.cpp:1283
command_glare
void command_glare(object *op, const char *params)
'glare' command.
Definition: c_chat.cpp:1030
command_delete
void command_delete(object *op, const char *params)
Player wants to totally delete her character.
Definition: c_misc.cpp:1889
emergency_save
void emergency_save(int flag)
Save all players.
Definition: main.cpp:347
command_list
void command_list(object *pl, bool is_dm)
Display the list of commands to a player.
Definition: commands.cpp:390
command_dumpallmaps
void command_dumpallmaps(object *op, const char *params)
Various map-related statistics.
Definition: c_misc.cpp:1047
command_players
void command_players(object *op, const char *params)
Display all known players.
Definition: c_misc.cpp:1227
command_nowiz
void command_nowiz(object *op, const char *params)
Steps down from wizard mode.
Definition: c_wiz.cpp:2080
command_snore
void command_snore(object *op, const char *params)
'snore' command.
Definition: c_chat.cpp:1173
command_remove
void command_remove(object *op, const char *params)
Remove an object from its position.
Definition: c_wiz.cpp:1565
command_dumpfriendlyobjects
void command_dumpfriendlyobjects(object *op, const char *params)
Various friendly object-related statistics.
Definition: c_misc.cpp:991
legacy_move_hole
void legacy_move_hole(object *op)
Definition: time.cpp:875
find_skill_by_number
object * find_skill_by_number(object *who, int skillno)
This returns the first skill pointer of the given subtype (the one that accumulates exp,...
Definition: main.cpp:375
hiscore_display
void hiscore_display(object *op, int max, const char *match)
Displays the high score file.
Definition: hiscore.cpp:451
command_search_items
void command_search_items(object *op, const char *params)
'search-items' command.
Definition: c_object.cpp:2479
command_wizcast
void command_wizcast(object *op, const char *params)
Wizard toggling "cast everywhere" ability.
Definition: c_misc.cpp:947
command_growl
void command_growl(object *op, const char *params)
'growl' command.
Definition: c_chat.cpp:832
command_say
void command_say(object *op, const char *params)
'say' command.
Definition: c_chat.cpp:34
cast_consecrate
int cast_consecrate(object *op, object *caster, object *spell)
A spell to make an altar your god's.
Definition: spell_effect.cpp:2987
legacy_animate_trigger
void legacy_animate_trigger(object *op)
Definition: time.cpp:871
cast_create_food
int cast_create_food(object *op, object *caster, object *spell_ob, int dir, const char *stringarg)
Create food.
Definition: spell_effect.cpp:627
command_sulk
void command_sulk(object *op, const char *params)
'sulk' command.
Definition: c_chat.cpp:865
monster_npc_say
void monster_npc_say(object *npc, const char *cp)
Simple function to have some NPC say something.
Definition: monster.cpp:2497
use_alchemy
int use_alchemy(object *op)
Handle use_skill for alchemy-like items.
Definition: alchemy.cpp:1057
command_whistle
void command_whistle(object *op, const char *params)
'whistle' command.
Definition: c_chat.cpp:1239
send_news
void send_news(const object *op)
Send the news to a player.
Definition: player.cpp:206
command_cringe
void command_cringe(object *op, const char *params)
'cringe' command.
Definition: c_chat.cpp:1294
monster_can_detect_enemy
int monster_can_detect_enemy(object *op, object *enemy, rv_vector *rv)
Determine if we can 'detect' the enemy.
Definition: monster.cpp:2581
command_unarmed_skill
void command_unarmed_skill(object *op, const char *params)
Player wants to change prefered unarmed skill.
Definition: c_misc.cpp:1381
player
One player.
Definition: player.h:105
command_clap
void command_clap(object *op, const char *params)
'clap' command.
Definition: c_chat.cpp:942
roll_stat
int roll_stat(void)
This rolls four 1-6 rolls and sums the best 3 of the 4.
Definition: player.cpp:1046
monster_stand_in_light
int monster_stand_in_light(object *op)
Cache monster_stand_in_light_internal().
Definition: monster.cpp:2736
recursive_roll
void recursive_roll(object *op, int dir, object *pusher)
An object is pushed by another which is trying to take its place.
Definition: move.cpp:293
command_cough
void command_cough(object *op, const char *params)
'cough' command.
Definition: c_chat.cpp:986
find_random_spell_in_ob
object * find_random_spell_in_ob(object *ob, const char *skill)
This returns a random spell from 'ob'.
Definition: spell_util.cpp:48
command_spit
void command_spit(object *op, const char *params)
'spit' command.
Definition: c_chat.cpp:1184
command_poke
void command_poke(object *op, const char *params)
'poke' command.
Definition: c_chat.cpp:898
newhash
char const * newhash(char const *password)
Definition: server.cpp:101
command_shrug
void command_shrug(object *op, const char *params)
'shrug' command.
Definition: c_chat.cpp:1096
plugins_remove_plugin
int plugins_remove_plugin(const char *id)
Unload the specified plugin.
Definition: plugins.cpp:454
plugins_init_plugin
int plugins_init_plugin(const char *libfile)
Try to load the specified plugin.
Definition: plugins.cpp:373
command_time
void command_time(object *op, const char *params)
Players asks for the time.
Definition: c_misc.cpp:868
cast_identify
int cast_identify(object *op, object *caster, object *spell)
Identifies objects in the players inventory/on the ground.
Definition: spell_effect.cpp:2505
command_groan
void command_groan(object *op, const char *params)
'groan' command.
Definition: c_chat.cpp:1041
command
same as sound ncom command like but with extra the client want tick commands so it knows animation timing the client wants to be informed of pickup mode changes Mode will be sent when the player successfully logs and afterward any time the value is but over many options have become defaults This documents those now obsolete client can handle the bit exp values that are now used values are sent as bit Setting this flag also means that skill exp will be and it will be sent in revised method as described in the stats command Value is an integer in string format else Deprecated client should presume all servers support this server will return FALSE Deprecated replaced with sound2 setup command
Definition: protocol.txt:461
remove_locked_door
void remove_locked_door(object *op)
Same as remove_door() but for locked doors.
Definition: time.cpp:64
command_wave
void command_wave(object *op, const char *params)
'wave' command.
Definition: c_chat.cpp:1228
party_remove
void party_remove(partylist *party)
Removes and frees a party.
Definition: party.cpp:164
dimension_door
int dimension_door(object *op, object *caster, object *spob, int dir)
Teleport through some doors and space.
Definition: spell_effect.cpp:1609
account_get_additional_chars
linked_char * account_get_additional_chars(const char *account_name, const Account_Chars *chars, int *count)
Get a list of character names linked to the specified account which are not listed in chars.
Definition: account.cpp:550
cast_change_map_lightlevel
int cast_change_map_lightlevel(object *op, object *spell)
This changes the light level for the entire map.
Definition: spell_effect.cpp:3295
command_beg
void command_beg(object *op, const char *params)
'beg' command.
Definition: c_chat.cpp:1272
command_hiccup
void command_hiccup(object *op, const char *params)
'hiccup' command.
Definition: c_chat.cpp:1052
perceive_self
int perceive_self(object *op)
Living thing wants to know information.
Definition: spell_effect.cpp:1002
command_me
void command_me(object *op, const char *params)
'me' command.
Definition: c_chat.cpp:47
command_south
void command_south(object *op, const char *params)
'south' command.
Definition: c_move.cpp:101
pets_should_arena_attack
int pets_should_arena_attack(object *pet, object *owner, object *target)
Determines if checks so pets don't attack players or other pets should be overruled by the arena petm...
Definition: pets.cpp:1086
get_party_password
int get_party_password(object *op, partylist *party)
Ask the player for the password of the party she wants to join.
Definition: player.cpp:1029
do_learn_spell
void do_learn_spell(object *op, object *spell, int special_prayer)
Actually makes op learn spell.
Definition: apply.cpp:484
socket_struct
Socket structure, represents a client-server connection.
Definition: newserver.h:89
confuse_living
void confuse_living(object *op, object *hitter, int dam)
Confuse a living thing.
Definition: attack.cpp:2315
clear_skill
void clear_skill(object *who)
This function just clears the chosen_skill and range_skill values in the player.
Definition: skill_util.cpp:398
make_visible
void make_visible(object *op)
Makes an object visible again.
Definition: player.cpp:3977
flush_old_maps
void flush_old_maps(void)
Reset maps that need to, remove their swap file.
Definition: swap.cpp:291
cast_destruction
int cast_destruction(object *op, object *caster, object *spell_ob)
Hit all monsters around the caster.
Definition: spell_attack.cpp:707
op_on_battleground
int op_on_battleground(object *op, int *x, int *y, archetype **trophy)
Check if the given object (usually a player) is standing on a battleground tile.
Definition: player.cpp:4262
command_kiss
void command_kiss(object *op, const char *params)
'kiss' command.
Definition: c_chat.cpp:744
command_shout
void command_shout(object *op, const char *params)
'shout' command.
Definition: c_chat.cpp:210
command_thank
void command_thank(object *op, const char *params)
'thank' command.
Definition: c_chat.cpp:1206
command_disarm
void command_disarm(object *op, const char *params)
'disarm' command.
Definition: c_object.cpp:224
cast_spell
int cast_spell(object *op, object *caster, int dir, object *spell_ob, char *stringarg)
Main dispatch when someone casts a spell.
Definition: spell_util.cpp:1424
party_find
partylist * party_find(const char *partyname)
Find a party by name.
Definition: party.cpp:148
command_snap
void command_snap(object *op, const char *params)
'snap' command.
Definition: c_chat.cpp:1129
command_party
void command_party(object *op, const char *params)
'party' command, subdivided in different sub commands.
Definition: c_party.cpp:97
command_execute
void command_execute(object *pl, char *command)
Handle a player-issued command.
Definition: commands.cpp:456
command_wink
void command_wink(object *op, const char *params)
'wink' command.
Definition: c_chat.cpp:1250
monster_check_doors
void monster_check_doors(object *op, mapstruct *m, int x, int y)
Living creature attempts to open a door.
Definition: monster.cpp:2278
tailor_god_spell
int tailor_god_spell(object *spellop, object *caster)
Changes the attributes of cone, smite, and ball spells as needed by the code.
Definition: gods.cpp:1223
account_get_players_for_account
char ** account_get_players_for_account(const char *account_name)
Returns an array of strings for the characters on this account - the array is null terminated.
Definition: account.cpp:519
command_recollect
void command_recollect(object *op, const char *params)
Definition: c_wiz.cpp:1531
accounts_save
void accounts_save(void)
Save all the account information.
Definition: account.cpp:255
detect_curse_on_item
int detect_curse_on_item(object *pl, object *tmp, object *skill)
Runs a 'detect curse' check on a given item.
Definition: skills.cpp:703
cleanup
void cleanup(void)
Clean up everything and exit.
Definition: server.cpp:1257
command_cast_spell
void command_cast_spell(object *op, const char *params, int cast_now)
Sets up to cast a spell.
Definition: c_range.cpp:146
command_run_stop
void command_run_stop(object *op, const char *params)
Player wants to stop running.
Definition: c_new.cpp:64
magic_wall
int magic_wall(object *op, object *caster, int dir, object *spell_ob)
This creates magic walls.
Definition: spell_effect.cpp:1456
spring_trap
void spring_trap(object *trap, object *victim)
This function generalizes attacks by runes/traps.
Definition: rune.cpp:214
check_bullet
void check_bullet(object *op)
Checks to see what op should do, given the space it is on (eg, explode, damage player,...
Definition: spell_attack.cpp:217
apply_map_builder
void apply_map_builder(object *pl, int dir)
Global building function.
Definition: build_map.cpp:960
command_printlos
void command_printlos(object *op, const char *params)
Various LOS-related statistics.
Definition: c_misc.cpp:1061
set_map_timeout
void set_map_timeout(mapstruct *oldmap)
Enable swapping for the given map.
Definition: main.cpp:304
infect_object
int infect_object(object *victim, object *disease, int force)
Try to infect something with a disease.
Definition: disease.cpp:317
do_dump
void do_dump(object *who, object *what)
Definition: c_wiz.cpp:2865
cast_cause_disease
int cast_cause_disease(object *op, object *caster, object *spell, int dir)
Let's try to infect something.
Definition: spell_attack.cpp:1207
quest_set_player_state
void quest_set_player_state(player *pl, sstring quest_code, int state)
Set the state of a quest for a player.
Definition: quest.cpp:716
command_usekeys
void command_usekeys(object *op, const char *params)
Player wants to change how keys are used.
Definition: c_misc.cpp:1556
command_party_rejoin
void command_party_rejoin(object *op, const char *params)
Handles the 'party_rejoin' command.
Definition: c_party.cpp:307
monster_check_earthwalls
void monster_check_earthwalls(object *op, mapstruct *m, int x, int y)
Living creature attempts to hit an earthwall.
Definition: monster.cpp:2262
get_password
void get_password(object *op)
Waiting for the player's password.
Definition: player.cpp:900
write_on_item
int write_on_item(object *pl, const char *params, object *skill)
Implement the 'inscription' skill, which checks for the required skills and marked items before runni...
Definition: skills.cpp:1762
explode_bullet
void explode_bullet(object *op)
Causes an object to explode, eg, a firebullet, poison cloud ball, etc.
Definition: spell_attack.cpp:121
command_lock_item
void command_lock_item(object *op, const char *params)
Alternate way to lock/unlock items (command line).
Definition: c_object.cpp:2710
time
non standard information is not specified or uptime this means how long since the executable has been started A particular host may have been running a server for quite a long time
Definition: arch-handbook.txt:206
command_hiscore
void command_hiscore(object *op, const char *params)
Player is asking for the hiscore.
Definition: c_misc.cpp:881
use_oratory
int use_oratory(object *pl, int dir, object *skill)
Oratory skill handling.
Definition: skills.cpp:996
init_ob_methods
void init_ob_methods(void)
Initializes the ob_method system.
Definition: ob_methods.cpp:35
command_invoke
void command_invoke(object *op, const char *params)
'invoke' command, fires a spell immediately.
Definition: c_range.cpp:38
move_player
int move_player(object *op, int dir)
Move player in the given direction.
Definition: player.cpp:2965
races_get_random_monster
object * races_get_random_monster(const char *race, int level)
Get a random monster of specified race and level at most the specified one.
Definition: races.cpp:22
command_twiddle
void command_twiddle(object *op, const char *params)
'twiddle' command.
Definition: c_chat.cpp:1217
SP_level_duration_adjust
int SP_level_duration_adjust(const object *caster, const object *spob)
Adjust the duration of the spell based on level.
Definition: spell_util.cpp:312
command_statistics
void command_statistics(object *pl, const char *params)
Prints out some useful information for the character.
Definition: c_misc.cpp:1121
cast_curse
int cast_curse(object *op, object *caster, object *spell_ob, int dir)
Curse an object, reducing its statistics.
Definition: spell_attack.cpp:800
get_player
player * get_player(player *p)
Create a player's object, initialize a player's structure.
Definition: player.cpp:285
command_northwest
void command_northwest(object *op, const char *params)
'northwest' command.
Definition: c_move.cpp:90
singing
int singing(object *pl, int dir, object *skill)
Singing skill handling.
Definition: skills.cpp:1149
flags
static const flag_definition flags[]
Flag mapping.
Definition: gridarta-types-convert.cpp:101
command_diff
void command_diff(object *op, const char *params)
Get a diff of specified items.
Definition: c_wiz.cpp:2622
monster_do_living
void monster_do_living(object *op)
For a monster, regenerate hp and sp, potentially clear scared status.
Definition: monster.cpp:719
change_skill
int change_skill(object *who, object *new_skill, int flag)
This changes the object's skill to new_skill.
Definition: skill_util.cpp:359
quest_load_definitions
void quest_load_definitions(void)
read_map_log
void read_map_log(void)
Reads temporary maps information from disk.
Definition: swap.cpp:71
command_who
void command_who(object *op, const char *params)
'who' command.
Definition: c_misc.cpp:623
command_overlay_reset
void command_overlay_reset(object *op, const char *params)
Removes the overlay for op's current map.
Definition: c_wiz.cpp:589
command_throw
void command_throw(object *op, const char *params)
'throw' command.
Definition: c_object.cpp:239
skill_ident
int skill_ident(object *pl, object *skill)
Main identification skill handling.
Definition: skills.cpp:927
destroy_object
void destroy_object(object *op)
Recursively object_free_drop_inventory() op and its inventory.
Definition: login.cpp:209
cast_raise_dead_spell
int cast_raise_dead_spell(object *op, object *caster, object *spell, int dir, const char *arg)
This handles the raise dead / resurrection spells.
Definition: resurrection.cpp:181
set_first_map
void set_first_map(object *op)
This loads the first map an puts the player on it.
Definition: player.cpp:402
command_puke
void command_puke(object *op, const char *params)
'puke' command.
Definition: c_chat.cpp:821
free_knowledge
void free_knowledge(void)
Free all knowledge data.
Definition: knowledge.cpp:1280
write_mark
int write_mark(object *op, object *spell, const char *msg)
This writes a rune that contains the appropriate message.
Definition: spell_effect.cpp:3413
shuffle_attack
void shuffle_attack(object *op)
This routine shuffles the attack of op to one of the ones in the list.
Definition: spell_util.cpp:1033
cast_polymorph
int cast_polymorph(object *op, object *caster, object *spell_ob, int dir)
Polymorph spell casting.
Definition: spell_effect.cpp:425
hit_map
int hit_map(object *op, int dir, uint32_t type, int full_hit)
Attack a spot on the map.
Definition: attack.cpp:355
get_nearest_criminal
object * get_nearest_criminal(object *mon)
Definition: player.cpp:591
rod_adjust
void rod_adjust(object *rod)
Adjusts rod attributes.
Definition: main.cpp:390
monster
the faster the spell may be cast there are several other common only the caster may be affected by the spell The most common spell range is that of touch This denotes that the caster much touch the recipient of the spell in order to release the spell monster
Definition: spell-info.txt:45
command_debug
void command_debug(object *op, const char *params)
Player wants to see/change the debug level.
Definition: c_misc.cpp:893
account_link
int account_link(const char *account_name, const char *player_name)
Adds a player name to an account.
Definition: account.cpp:444
find_traps
int find_traps(object *pl, object *skill)
Checks for traps on the spaces around the player or in certain objects.
Definition: skills.cpp:1240
scroll_failure
void scroll_failure(object *op, int failure, int power)
op made some mistake with a scroll, this takes care of punishment.
Definition: apply.cpp:1601
plugins_display_list
void plugins_display_list(object *op)
Displays a list of loaded plugins (keystrings and description) in the game log window.
Definition: plugins.cpp:479
cleanupPlugins
void cleanupPlugins(void)
Call the crossfire_plugin::closefunc on the various plugins, used at server shutdown.
Definition: plugins.cpp:4618
command_whereami
void command_whereami(object *op, const char *params)
'whereami' command.
Definition: c_misc.cpp:822
receive_play_again
void receive_play_again(object *op, char key)
Player replied to play again / disconnect.
Definition: player.cpp:964
set_player_socket
void set_player_socket(player *p, socket_struct *ns)
This copies the data from the socket into the player structure.
Definition: player.cpp:421
fire_arch_from_position
int fire_arch_from_position(object *op, object *caster, int16_t x, int16_t y, int dir, object *spell)
Fires an archetype.
Definition: spell_util.cpp:629
command_overlay_save
void command_overlay_save(object *op, const char *params)
Saves the op's map as an overlay - objects are persisted.
Definition: c_wiz.cpp:568
partylist
One party.
Definition: party.h:10
apply_manual
int apply_manual(object *op, object *tmp, int aflag)
Main apply handler.
Definition: apply.cpp:597
move_player_attack
void move_player_attack(object *op, int dir)
The player is also actually going to try and move (not fire weapons).
Definition: player.cpp:2640
apply_by_living_below
void apply_by_living_below(object *pl)
Attempt to apply the object 'below' the player.
Definition: apply.cpp:695
ok_to_put_more
int ok_to_put_more(mapstruct *m, int16_t x, int16_t y, object *op, uint32_t immune_stop)
Returns true if it is ok to put spell op on the space/may provided.
Definition: spell_util.cpp:530
command_arrest
void command_arrest(object *op, const char *params)
Wizard jails player.
Definition: c_wiz.cpp:821
add_server_collect_hooks
void add_server_collect_hooks()
Definition: init.cpp:1084
party_obsolete_parties
void party_obsolete_parties(void)
Remove unused parties (no players).
Definition: party.cpp:215
command_hug
void command_hug(object *op, const char *params)
'hug' command.
Definition: c_chat.cpp:876
load_races
void load_races(BufferReader *reader, const char *filename)
Reads the races file in the lib/ directory, then overwrites old 'race' entries.
Definition: races.cpp:47
command_face
void command_face(object *op, const char *params)
Player wants to face a given direction.
Definition: c_new.cpp:111
command_rename_item
void command_rename_item(object *op, const char *params)
Changing the custom name of an item.
Definition: c_object.cpp:2524
initPlugins
void initPlugins(void)
Plugins initialization.
Definition: plugins.cpp:4570
hiscore_check
void hiscore_check(object *op, int quiet)
Checks if player should enter the hiscore, and if so writes her into the list.
Definition: hiscore.cpp:348
key_confirm_quit
void key_confirm_quit(object *op, char key)
We receive the reply to the 'quit confirmation' message.
Definition: player.cpp:1602
command_petmode
void command_petmode(object *op, const char *params)
Player wants to change how her pets behave.
Definition: c_misc.cpp:1437
add_player
player * add_player(socket_struct *ns, int flags)
Tries to add player on the connection passwd in ns.
Definition: player.cpp:468
command_rules
void command_rules(object *op, const char *params)
Display the server rules.
Definition: c_misc.cpp:230
command_grin
void command_grin(object *op, const char *params)
'grin' command.
Definition: c_chat.cpp:920
hit_with_arrow
object * hit_with_arrow(object *op, object *victim)
hit_with_arrow() disassembles the missile, attacks the victim and reassembles the missile.
Definition: attack.cpp:979
get_nearest_player
object * get_nearest_player(object *mon)
Finds the nearest visible player or player-friendly for some object.
Definition: player.cpp:548
command_stack_clear
void command_stack_clear(object *op, const char *params)
Empty DM item stack.
Definition: c_wiz.cpp:2596
cast_dust
void cast_dust(object *op, object *throw_ob, int dir)
Handles op throwing objects of type 'DUST'.
Definition: player.cpp:3948
command_nod
void command_nod(object *op, const char *params)
'nod' command.
Definition: c_chat.cpp:722
pets_move_golem
void pets_move_golem(object *op)
Handles a golem's movement.
Definition: pets.cpp:519
forbid_play
int forbid_play(void)
Checks if server should be started.
Definition: server.cpp:1364
cast_detection
int cast_detection(object *op, object *caster, object *spell)
Detect magic or invisible items.
Definition: spell_effect.cpp:2580
name
Plugin animator file specs[Config] name
Definition: animfiles.txt:4
cast_magic_storm
void cast_magic_storm(object *op, object *tmp, int lvl)
This is really used mostly for spell fumbles and the like.
Definition: spell_effect.cpp:49
linked_char
Definition: global.h:98
command_west
void command_west(object *op, const char *params)
'west' command.
Definition: c_move.cpp:134
command_shoottype
void command_shoottype(object *op, const char *params)
'shoottype' command, set range attack.
Definition: c_range.cpp:370
pets_summon_object
int pets_summon_object(object *op, object *caster, object *spell_ob, int dir, const char *stringarg)
General purpose summoning function.
Definition: pets.cpp:872
cast_light
int cast_light(object *op, object *caster, object *spell, int dir)
Illuminates something on a map, or try to blind a living thing.
Definition: spell_attack.cpp:1136
command_quit
void command_quit(object *op, const char *params)
Tell players to use the 'delete' command.
Definition: c_misc.cpp:1873
dragon_ability_gain
void dragon_ability_gain(object *who, int atnr, int level)
When a dragon-player gains a new stage of evolution, he gets some treasure.
Definition: main.cpp:365
dump_races
void dump_races(void)
Dumps all race information to stderr.
Definition: races.cpp:81
party_join
void party_join(object *op, partylist *party)
Makes a player join a party.
Definition: party.cpp:85
command_rskill
void command_rskill(object *pl, const char *params)
'ready_skill' command.
Definition: c_object.cpp:161
login
pluglist shows those as well as a short text describing each the list will simply appear empty The keyword for the Python plugin is Python plugout< keyword > Unloads a given identified by its _keyword_ So if you want to unload the Python you need to do plugout Python plugin< libname > Loads a given whose _filename_ is libname So in the case of you d have to do a plugin cfpython so Note that all filenames are relative to the default plugin it tries to load all available files in the SHARE plugins directory as plugin libraries It first displays the Initializing the plugin has the opportunity to signal itself by a message on the console Then the server displays an informative message containing both the plugin content and its keyword For the Python the standard load process thus GreenGoblin When a plugin has been it can request to be warned whenever a global event and are named freely by the developer If the directory doesn t nothing will happen< event name > can be login
Definition: plugins.txt:54
account_password
void account_password(char *buf, int len, socket_struct *ns)
Handles the account password change.
Definition: request.cpp:3052
knowledge_read
void knowledge_read(player *pl, object *book)
Player is reading a book, give knowledge if needed, warn player, and such.
Definition: knowledge.cpp:1056
store_spell_expiry
void store_spell_expiry(object *spell)
Stores in the spell when to warn player of expiration.
Definition: spell_util.cpp:1981
learn_skill
int learn_skill(object *pl, object *scroll)
Player is trying to learn a skill.
Definition: skill_util.cpp:759
spell_effect
void spell_effect(object *spob, int x, int y, mapstruct *map, object *originator)
Inserts into map a spell effect based on other_arch.
Definition: spell_util.cpp:144
remove_door
void remove_door(object *op)
Remove non locked doors.
Definition: time.cpp:38
m
static event_registration m
Definition: citylife.cpp:422
set_darkness_map
void set_darkness_map(mapstruct *m)
Set the darkness level for a map, based on the time of the day.
Definition: main.cpp:371
knowledge_send_info
void knowledge_send_info(socket_struct *ns)
Send the reply_info for 'knowledge_info'.
Definition: knowledge.cpp:1374
command_malloc
void command_malloc(object *op, const char *params)
Display memory information.
Definition: c_misc.cpp:796
party_get_first
partylist * party_get_first(void)
Returns the first party from the list of all parties.
Definition: party.cpp:196
apply_auto_fix
void apply_auto_fix(mapstruct *m)
Go through the entire map (only the first time when an original map is loaded) and performs special a...
Definition: main.cpp:258
command_banish
void command_banish(object *op, const char *params)
Add player's IP to ban_file and kick them off the server.
Definition: c_wiz.cpp:502
monster_find_nearest_enemy
object * monster_find_nearest_enemy(object *npc, object *owner)
Returns the nearest enemy (monster or generator) which is visible to npc.
Definition: monster.cpp:175
give_initial_items
void give_initial_items(object *pl, treasurelist *items)
Gives a new player her initial items.
Definition: player.cpp:792
command_inventory
void command_inventory(object *op, const char *params)
Shows the inventory or some item.
Definition: c_wiz.cpp:1335
command_kill_pets
void command_kill_pets(object *op, const char *params)
Player wants to get rid of pets.
Definition: c_misc.cpp:2196
teleport
int teleport(object *teleporter, uint8_t tele_type, object *user)
Teleport an item around a nearby random teleporter of specified type.
Definition: move.cpp:204
cast_heal
int cast_heal(object *op, object *caster, object *spell, int dir)
Heals something.
Definition: spell_effect.cpp:1747
use_skill
int use_skill(object *op, const char *string)
Similar to invoke command, it executes the skill in the direction that the user is facing.
Definition: skill_util.cpp:964
command_accountpasswd
void command_accountpasswd(object *op, const char *params)
Definition: c_wiz.cpp:1638
slow_living_by
int slow_living_by(object *op, const int speed_penalty)
Definition: attack.cpp:2231
command_forget_spell
void command_forget_spell(object *op, const char *params)
Command for players to forget a spell.
Definition: c_wiz.cpp:2415
spell_find_dir
int spell_find_dir(mapstruct *m, int x, int y, object *exclude)
Search what direction a spell should go in, first the center square then some close squares in the gi...
Definition: spell_util.cpp:887
command_mark
void command_mark(object *op, const char *params)
'mark' command, to mark an item for some effects (enchant armor, ...).
Definition: c_object.cpp:1567
pick_lock
int pick_lock(object *pl, int dir, object *skill)
Lock pick handling.
Definition: skills.cpp:391
pets_get_enemy
object * pets_get_enemy(object *pet, rv_vector *rv)
Given that 'pet' is a friendly object, this function returns a monster the pet should attack,...
Definition: pets.cpp:54
command_teleport
void command_teleport(object *op, const char *params)
Teleport next to target player.
Definition: c_wiz.cpp:933
command_unregister
void command_unregister(command_registration command)
Unregister a previously registered command.
Definition: commands.cpp:535
command_uskill
void command_uskill(object *pl, const char *params)
'use_skill' command.
Definition: c_object.cpp:144
send_rules
void send_rules(const object *op)
Send the rules to a player.
Definition: player.cpp:170
free_no_drop
int free_no_drop(object *op)
Check whether the given object is FLAG_NO_DROP.
Definition: time.cpp:565
party_confirm_password
int party_confirm_password(const partylist *party, const char *password)
Checks whether a given password matches the party's password.
Definition: party.cpp:259
enter_player_savebed
void enter_player_savebed(object *op)
This is a basic little function to put the player back to his savebed.
Definition: server.cpp:142
determine_god
const char * determine_god(object *op)
Determines if op worships a god.
Definition: gods.cpp:55
drop
void drop(object *op, object *tmp)
Drop an item, either on the floor or in a container.
Definition: c_object.cpp:1168
play_again
void play_again(object *op)
Ask the player whether to play again or disconnect.
Definition: player.cpp:911
command_dump
void command_dump(object *op, const char *params)
Dumps the difference between an object and its archetype.
Definition: c_wiz.cpp:1377
playername_ok
int playername_ok(const char *cp)
Is the player name valid.
Definition: player.cpp:257
remove_curse
int remove_curse(object *op, object *caster, object *spell)
This function removes the cursed/damned status on equipped items.
Definition: spell_effect.cpp:2406
command_take
void command_take(object *op, const char *params)
This takes (picks up) an item.
Definition: c_object.cpp:845
fire
void fire(object *op, int dir)
Received a fire command for the player - go and do it.
Definition: player.cpp:2413
monster_find_throw_ob
object * monster_find_throw_ob(object *op)
Find an item for the monster to throw.
Definition: monster.cpp:2542
friendly_fire
int friendly_fire(object *op, object *hitter)
Find out if this is friendly fire (PVP and attacker is peaceful) or not.
Definition: attack.cpp:1858
mood_change
int mood_change(object *op, object *caster, object *spell)
This covers the various spells that change the moods of monsters - makes them angry,...
Definition: spell_attack.cpp:904
blind_living
void blind_living(object *op, object *hitter, int dam)
Blind a living thing.
Definition: attack.cpp:2358
cftimer_destroy
int cftimer_destroy(int id)
Destroys an existing timer.
Definition: timers.cpp:128
move_ob
int move_ob(object *op, int dir, object *originator)
Op is trying to move in direction dir.
Definition: move.cpp:58
command_north
void command_north(object *op, const char *params)
'north' command.
Definition: c_move.cpp:68
command_save
void command_save(object *op, const char *params)
Player wants to get saved.
Definition: c_misc.cpp:2098
command_mon_aggr
void command_mon_aggr(object *op, const char *params)
When DM is possessing a monster, flip aggression on and off, to allow better motion.
Definition: c_wiz.cpp:1405
map_can_reset
bool map_can_reset(const mapstruct *map, long current_time)
Returns whether a map can be reset, including all other maps in the same reset group.
Definition: swap.cpp:266
check_race_and_class
int check_race_and_class(living *stats, archetype *race, archetype *opclass)
This checks to see if the race and class are legal.
Definition: player.cpp:1438
monster_do_say
void monster_do_say(const mapstruct *map, const char *message)
Output a NPC message on a map.
Definition: monster.cpp:2292
cftimer_init
void cftimer_init(void)
Initialize timers.
Definition: timers.cpp:157
check_login
void check_login(object *op, const char *password)
Actually login a player, load from disk and such.
Definition: login.cpp:511
command_dropall
void command_dropall(object *op, const char *params)
Command to drop all items that have not been locked.
Definition: c_object.cpp:1230
free_races
void free_races(void)
Frees all race-related information.
Definition: races.cpp:93
face_player
int face_player(object *op, int dir)
Face player in the given direction.
Definition: player.cpp:3044
account_get_account_for_char
const char * account_get_account_for_char(const char *charname)
This looks at all the accounts and sees if charname is associated with any of them.
Definition: account.cpp:579
treasurelist
treasurelist represents one logical group of items to be generated together.
Definition: treasure.h:85
remove_trap
int remove_trap(object *op, object *skill)
This skill will disarm any previously discovered trap.
Definition: skills.cpp:1311
check_physically_infect
void check_physically_infect(object *victim, object *hitter)
Possibly infect due to direct physical contact i.e., AT_PHYSICAL.
Definition: disease.cpp:663
calc_skill_exp
int64_t calc_skill_exp(const object *who, const object *op, const object *skill)
Calculates amount of experience can be gained for successful use of a skill.
Definition: skill_util.cpp:667
remove_unpaid_objects
void remove_unpaid_objects(object *op, object *env, int free_items)
This goes throws the inventory and removes unpaid objects, and puts them back in the map (location an...
Definition: player.cpp:3224
command_ssdumptable
void command_ssdumptable(object *op, const char *params)
Various string-related statistics.
Definition: c_misc.cpp:1019
account_char_free
void account_char_free(Account_Chars *chars)
This frees all data associated with the character information.
Definition: account_char.cpp:345
roll_stats
void roll_stats(object *op)
Roll the initial player's statistics.
Definition: player.cpp:1070
set_object_face_main
int set_object_face_main(object *op)
Makes an object's face the main face, which is supposed to be the "closed" one.
Definition: apply.cpp:146
examine_monster
void examine_monster(object *op, object *tmp, int level)
Player examine a monster.
Definition: c_object.cpp:1614
party_leave
void party_leave(object *op)
Makes a player leave his party.
Definition: party.cpp:123
command_listen
void command_listen(object *op, const char *params)
Change the player's listen level.
Definition: c_misc.cpp:1090
cone_drop
void cone_drop(object *op)
Drops an object based on what is in the cone's "other_arch".
Definition: spell_attack.cpp:265
knowledge_add_probe_monster
void knowledge_add_probe_monster(object *op, object *mon)
Display monster details, then add to a player's knowledge if not already.
Definition: knowledge.cpp:1528
account_remove_player
int account_remove_player(const char *account_name, const char *player_name)
Removes a player name from an account.
Definition: account.cpp:474
legal_range
int legal_range(object *op, int r)
Check for the validity of a player range.
Definition: c_range.cpp:247
command_loadplugin
void command_loadplugin(object *op, const char *params)
Loads the given plugin.
Definition: c_wiz.cpp:2458
command_scream
void command_scream(object *op, const char *params)
'scream' command.
Definition: c_chat.cpp:843
player_can_find
bool player_can_find(object *op, object *ob)
Return true if player 'op' can see object 'op' for purpose of locating items for partial item matchin...
Definition: item.cpp:590
display_motd
void display_motd(const object *op)
Sends the message of the day to the player.
Definition: player.cpp:139
apply_container
int apply_container(object *op, object *sack, int aflags)
Handle apply on containers.
Definition: apply.cpp:222
transport_can_hold
int transport_can_hold(const object *transport, const object *op, int nrof)
Can transport hold object op? This is a pretty trivial function, but in the future,...
Definition: apply.cpp:54
move_symptom
void move_symptom(object *symptom)
Make the symptom do the nasty things it does.
Definition: disease.cpp:592
free_quest
void free_quest(void)
Free all quest status structures.
Definition: quest.cpp:891
command_follow
void command_follow(object *op, const char *params)
Follow a player, or stop following a player.
Definition: c_wiz.cpp:2809
process_events
void process_events(void)
Process all active objects.
Definition: server.cpp:1083
create_bomb
int create_bomb(object *op, object *caster, int dir, object *spell)
Create a bomb.
Definition: spell_attack.cpp:447
enter_player_maplevel
void enter_player_maplevel(object *op)
Move a player to its stored map level.
Definition: server.cpp:682
server_main
void server_main(int argc, char *argv[])
Server main function.
Definition: server.cpp:1579
command_strut
void command_strut(object *op, const char *params)
'strut' command.
Definition: c_chat.cpp:1195
delete_character
void delete_character(const char *name)
Totally deletes a character.
Definition: login.cpp:88
command_chuckle
void command_chuckle(object *op, const char *params)
'chuckle' command.
Definition: c_chat.cpp:975
should_director_abort
int should_director_abort(const object *op, const object *victim)
Check if op should abort moving victim because of it's race or slaying.
Definition: apply.cpp:68
command_unloadplugin
void command_unloadplugin(object *op, const char *params)
Unloads the given plugin.
Definition: c_wiz.cpp:2490
lookup_spell_by_name
object * lookup_spell_by_name(object *op, const char *spname)
Look at object 'op' and see if they know the spell spname.
Definition: spell_util.cpp:410
command_think
void command_think(object *op, const char *params)
'think' command.
Definition: c_chat.cpp:1305
polymorph
void polymorph(object *op, object *who, int level)
Handles polymorphing an object, living or not.
Definition: spell_effect.cpp:371
message
TIPS on SURVIVING Crossfire is populated with a wealth of different monsters These monsters can have varying immunities and attack types In some of them can be quite a bit smarter than others It will be important for new players to learn the abilities of different monsters and learn just how much it will take to kill them This section discusses how monsters can interact with players Most monsters in the game are out to mindlessly kill and destroy the players These monsters will help boost a player s after he kills them When fighting a large amount of monsters in a single attempt to find a narrower hallway so that you are not being attacked from all sides Charging into a room full of Beholders for instance would not be open the door and fight them one at a time For there are several maps designed for them Find these areas and clear them out All throughout these a player can find signs and books which they can read by stepping onto them and hitting A to apply the book sign These messages will help the player to learn the system One more always keep an eye on your food If your food drops to your character will soon so BE CAREFUL ! NPCs Non Player Character are special monsters which have intelligence Players may be able to interact with these monsters to help solve puzzles and find items of interest To speak with a monster you suspect to be a simply move to an adjacent square to them and push the double ie Enter your message
Definition: survival-guide.txt:34
do_goto
void do_goto(object *op, const char *name, int x, int y)
Definition: c_move.cpp:151
cast_create_town_portal
int cast_create_town_portal(object *op, object *caster, object *spell)
This function cast the spell of town portal for op.
Definition: spell_effect.cpp:1241
command_help
void command_help(object *op, const char *params)
Player is asking for some help.
Definition: c_misc.cpp:1772
show_skills
void show_skills(object *op, const char *search)
Displays a player's skill list, and some other non skill related info (god, max weapon improvements,...
Definition: skill_util.cpp:860
quest_was_completed
int quest_was_completed(player *pl, sstring quest_code)
Check if a quest was completed once for a player, without taking account the current state.
Definition: quest.cpp:726
counterspell
void counterspell(object *op, int dir)
Nullifies spell effects.
Definition: spell_effect.cpp:2911
party_set_password
void party_set_password(partylist *party, const char *password)
Sets a party's password.
Definition: party.cpp:244
command_examine
void command_examine(object *op, const char *params)
'examine' command.
Definition: c_object.cpp:1489
trap_disarm
int trap_disarm(object *disarmer, object *trap, int risk, object *skill)
Try to disarm a trap/rune.
Definition: rune.cpp:442
spell
with a maximum of six This is not so if you are wearing plate you receive no benefit Armour is additive with all the supplementry forms of which means that it lasts until the next semi permanent spell effect is cast upon the character spell
Definition: tome-of-magic.txt:44
legacy_remove_force
void legacy_remove_force(object *op)
Definition: time.cpp:867
leave
void leave(player *pl, int draw_exit)
Player logs out, or was disconnected.
Definition: server.cpp:1303
move_firewall
void move_firewall(object *op)
Move for FIREWALL.
Definition: main.cpp:343
command_free
void command_free(object *op, const char *params)
Totally free an object.
Definition: c_wiz.cpp:1612
account_new
int account_new(const char *account_name, const char *account_password)
Adds an account.
Definition: account.cpp:399
create_aura
int create_aura(object *op, object *caster, object *spell)
Create an aura spell object and put it in the player's inventory.
Definition: spell_effect.cpp:3327
command_cry
void command_cry(object *op, const char *params)
'cry' command.
Definition: c_chat.cpp:887
identify_object_with_skill
int identify_object_with_skill(object *tmp, object *pl, object *skill, int print_on_success)
Helper function for do_skill_ident, so that we can loop over inventory AND objects on the ground conv...
Definition: skills.cpp:810
fix_stopped_item
void fix_stopped_item(object *op, mapstruct *map, object *originator)
Put stopped item where stop_item() had found it.
Definition: time.cpp:495
apply_can_apply_object
int apply_can_apply_object(const object *who, const object *op)
Checks to see if 'who' can apply object 'op'.
Definition: apply.cpp:1016
caster_level
int caster_level(const object *caster, const object *spell)
This function returns the effective level the spell is being cast at.
Definition: spell_util.cpp:194
fix_stopped_arrow
object * fix_stopped_arrow(object *op)
An ARROW stops moving.
Definition: time.cpp:512
command_kick
void command_kick(object *op, const char *params)
Kicks a player from the server.
Definition: c_wiz.cpp:556
monster_communicate
void monster_communicate(object *op, const char *txt)
This function looks for an object or creature that is listening to said text.
Definition: monster.cpp:2374
command_pout
void command_pout(object *op, const char *params)
'pout' command.
Definition: c_chat.cpp:1074
command_orcknuckle
void command_orcknuckle(object *op, const char *params)
Plays the "orcknucke" game.
Definition: c_chat.cpp:108
knowledge_item_can_be_used_alchemy
void knowledge_item_can_be_used_alchemy(object *op, const object *item)
Displays known alchemy recipes an item can be used in.
Definition: knowledge.cpp:1334
archetype
The archetype structure is a set of rules on how to generate and manipulate objects which point to ar...
Definition: object.h:483
command_search
void command_search(object *op, const char *params)
'search' command.
Definition: c_object.cpp:212
command_abil
void command_abil(object *op, const char *params)
Changes an object's statistics.
Definition: c_wiz.cpp:1819
command_flip
void command_flip(object *op, const char *params)
'flip' command.
Definition: c_chat.cpp:997
pray
int pray(object *pl, object *skill)
Praying skill handling.
Definition: skills.cpp:1384
dump_spells
void dump_spells(void)
Dumps all the spells - now also dumps skill associated with the spell.
Definition: spell_util.cpp:108
move_to
int move_to(object *op, int x, int y)
Move an object one square toward a specified destination on the same map.
Definition: move.cpp:563
command_possess
void command_possess(object *op, const char *params)
DM can possess a monster.
Definition: c_wiz.cpp:1432
find_key
object * find_key(object *pl, object *container, object *door)
We try to find a key for the door as passed.
Definition: player.cpp:2485
command_language
void command_language(object *op, const char *params)
This is the 'language' command.
Definition: c_misc.cpp:132
command_dumpallobjects
void command_dumpallobjects(object *op, const char *params)
Various object-related statistics.
Definition: c_misc.cpp:977
skill_throw
int skill_throw(object *op, object *part, int dir, object *skill)
Throwing skill handling.
Definition: skills.cpp:2277
SP_level_spellpoint_cost
int16_t SP_level_spellpoint_cost(object *caster, object *spell, int flags)
Scales the spellpoint cost of a spell by it's increased effectiveness.
Definition: spell_util.cpp:236
cftimer_process_timers
void cftimer_process_timers(void)
Processes all timers.
Definition: timers.cpp:44
get_attack_message_for_attack_type
void get_attack_message_for_attack_type(int dam, uint8_t atm_type, const char *victim_name, char *buf1, char *buf2)
Get the attack message for a damage and a type.
Definition: attack.cpp:538
become_follower
int become_follower(object *op, const object *new_god)
This function is called whenever a player has switched to a new god.
Definition: gods.cpp:414
list_players
void list_players(object *op, region *reg, partylist *party)
Displays the players in a region or party.
Definition: c_misc.cpp:550
account_is_logged_in
int account_is_logged_in(const char *name)
This checkes if an account is logged in.
Definition: account.cpp:604
init_signals
void init_signals()
Setup our signal handlers.
Definition: init.cpp:1323
detect_magic_on_item
int detect_magic_on_item(object *pl, object *tmp, object *skill)
Runs a 'detect magic' check on a given item.
Definition: skills.cpp:752
command_giggle
void command_giggle(object *op, const char *params)
'giggle' command.
Definition: c_chat.cpp:799
party_form
partylist * party_form(object *op, const char *partyname)
Forms the party struct for a party called 'partyname'.
Definition: party.cpp:40
regenerate_rod
void regenerate_rod(object *rod)
Regenerates a rod's charges.
Definition: spell_util.cpp:761
command_hide
void command_hide(object *op, const char *params)
Wizard 'hide' command.
Definition: c_wiz.cpp:389
command_accuse
void command_accuse(object *op, const char *params)
'accuse' command.
Definition: c_chat.cpp:909
accounts_clear
void accounts_clear(void)
This is used purely by the test harness - by clearing the accounts, it can then verify that the data ...
Definition: account.cpp:152
command_stay
void command_stay(object *op, const char *params)
'stay' command.
Definition: c_move.cpp:145
living
Various statistics of objects.
Definition: living.h:35
push_ob
int push_ob(object *who, int dir, object *pusher)
Something is pushing some other object.
Definition: move.cpp:434
find_skill_by_name
object * find_skill_by_name(object *who, const char *name)
This returns the skill pointer of the given name (the one that accumulates exp, has the level,...
Definition: skill_util.cpp:211
command_dumpmap
void command_dumpmap(object *op, const char *params)
Various map-related statistics.
Definition: c_misc.cpp:1033
env
static std::shared_ptr< inja::Environment > env
Rendering environment.
Definition: mapper.cpp:2222
accounts_load
void accounts_load(void)
This loads all the account entries into memory.
Definition: account.cpp:161
drop_object
object * drop_object(object *op, object *tmp, uint32_t nrof)
Try to drop an object on the floor.
Definition: c_object.cpp:1073
command_settings
void command_settings(object *op, const char *ignored)
Wizard wants to know some server settings, so display.
Definition: c_wiz.cpp:2914
command_purge_quest_definitions
void command_purge_quest_definitions(object *op, const char *param)
Definition: c_wiz.cpp:2859
checkbanned
int checkbanned(const char *login, const char *host)
Check if a player and/or host is banned.
Definition: ban.cpp:32
SP_level_wc_adjust
int SP_level_wc_adjust(const object *caster, const object *spob)
Returns adjusted wc based on the caster and the spell.
Definition: spell_util.cpp:362
receive_player_name
void receive_player_name(object *op, const char *name)
A player just entered her name.
Definition: c_misc.cpp:1935
cast_bless
int cast_bless(object *op, object *caster, object *spell_ob, int dir)
Improve statistics of some living object.
Definition: spell_effect.cpp:2050
command_east
void command_east(object *op, const char *params)
'east' command.
Definition: c_move.cpp:57
command_dumpbelow
void command_dumpbelow(object *op, const char *params)
Player wants to dump object below her.
Definition: c_wiz.cpp:2887
command_peaceful
void command_peaceful(object *op, const char *params)
Player toggles her peaceful status.
Definition: c_misc.cpp:2124
transfer_ob
int transfer_ob(object *op, int x, int y, int randomly, object *originator)
Move an object (even linked objects) to another spot on the same map.
Definition: move.cpp:163
monster_check_apply_all
void monster_check_apply_all(object *monster)
Calls monster_check_apply() for all inventory objects.
Definition: monster.cpp:1999
command_wimpy
void command_wimpy(object *op, const char *params)
Player wants to change how soon she'll flee.
Definition: c_misc.cpp:2142
pets_move
void pets_move(object *ob)
Handles a pet's movement.
Definition: pets.cpp:317
quest_first_player_save
void quest_first_player_save(player *pl)
Ensure the quest state is correctly saved for a player.
Definition: quest.cpp:967
party_get_next
partylist * party_get_next(const partylist *party)
Returns the next party from the list of all parties.
Definition: party.cpp:208
move_object
int move_object(object *op, int dir)
Try to move op in the direction "dir".
Definition: move.cpp:39
trap_show
int trap_show(object *trap, object *where)
Handles showing a trap/rune detonation.
Definition: rune.cpp:412
free_quest_definitions
void free_quest_definitions(void)
dead_player
void dead_player(object *op)
Kill a player on a permanent death server with resurrection.
Definition: resurrection.cpp:297
probe
int probe(object *op, object *caster, object *spell_ob, int dir, int level)
Try to get information about a living thing.
Definition: spell_effect.cpp:699
key_roll_stat
void key_roll_stat(object *op, char key)
Player is currently swapping stats.
Definition: player.cpp:1221
command_bow
void command_bow(object *op, const char *params)
'bow' command.
Definition: c_chat.cpp:931
init_skills
void init_skills(void)
This just sets up the skill_names table above.
Definition: skill_util.cpp:99
command_drop
void command_drop(object *op, const char *params)
'drop' command.
Definition: c_object.cpp:1354
command_shake
void command_shake(object *op, const char *params)
'shake' command.
Definition: c_chat.cpp:810
command_use
void command_use(object *op, const char *params)
Try to use an item on another.
Definition: c_object.cpp:2753
command_fire_stop
void command_fire_stop(object *op, const char *params)
Player wants to stop firing.
Definition: c_new.cpp:98
pets_attempt_follow
void pets_attempt_follow(object *for_owner, int force)
Check pets so they try to follow their master around the world.
Definition: pets.cpp:249
command_motd
void command_motd(object *op, const char *params)
Display the message of the day.
Definition: c_misc.cpp:217
command_loadtest
void command_loadtest(object *op, const char *params)
This command will stress server.
Definition: c_wiz.cpp:306
region
This is a game region.
Definition: map.h:274
apply_race_and_class
int apply_race_and_class(object *op, archetype *race, archetype *opclass, living *stats)
This is somewhat like key_change_class() above, except we know the race to change to,...
Definition: player.cpp:1488
command_smile
void command_smile(object *op, const char *params)
'smile' command.
Definition: c_chat.cpp:766
reply_type
reply_type
Various kind of messages a player or NPC can say.
Definition: dialog.h:7
monster_can_see_enemy
int monster_can_see_enemy(object *op, object *enemy)
Assuming no walls/barriers, lets check to see if its possible to see an enemy.
Definition: monster.cpp:2758
command_learn_special_prayer
void command_learn_special_prayer(object *op, const char *params)
Wizard wants to learn a god-given spell.
Definition: c_wiz.cpp:2402
apply_auto
int apply_auto(object *op)
Map was just loaded, handle op's initialization.
Definition: main.cpp:211
command_applymode
void command_applymode(object *op, const char *params)
Players wants to change the apply mode, ie how to handle applying an item when no body slot available...
Definition: c_misc.cpp:1277
swap_map
int swap_map(mapstruct *map)
Swaps a map to disk.
Definition: swap.cpp:136
command_news
void command_news(object *op, const char *params)
Display the server news.
Definition: c_misc.cpp:243
command_quest
void command_quest(object *op, const char *params)
Command handler for 'quest'.
Definition: quest.cpp:738
hideability
int hideability(object *ob)
Look at the surrounding terrain to determine the hideability of this object.
Definition: player.cpp:4013
command_whereabouts
void command_whereabouts(object *op, const char *params)
'whereabouts' command.
Definition: c_misc.cpp:484
hiscore_init
void hiscore_init(void)
Initializes the module.
Definition: hiscore.cpp:296
apply_handle_yield
void apply_handle_yield(object *tmp)
This checks whether the object has a "on_use_yield" field, and if so generated and drops matching ite...
Definition: apply.cpp:122
command_afk
void command_afk(object *op, const char *params)
Toggles the afk status of a player.
Definition: c_misc.cpp:775
command_summon
void command_summon(object *op, const char *params)
Summons player near DM.
Definition: c_wiz.cpp:866
command_knowledge
void command_knowledge(object *pl, const char *params)
Handle the 'knowledge' for a player.
Definition: knowledge.cpp:1213
clean_tmp_files
void clean_tmp_files(void)
Save unique maps and clean up temporary map files unless recycling temporary maps.
Definition: main.cpp:351
command_reset
void command_reset(object *op, const char *params)
Resets a map.
Definition: c_wiz.cpp:1885
get_reply_text_own
const char * get_reply_text_own(reply_type rt)
Return the verb for the player's dialog type.
Definition: monster.cpp:2318
command_learn_spell
void command_learn_spell(object *op, const char *params)
Wizard wants to learn a regular spell.
Definition: c_wiz.cpp:2390
alchemy
int alchemy(object *op, object *caster, object *spell_ob)
Change items to gold nuggets.
Definition: spell_effect.cpp:2306
animate_weapon
int animate_weapon(object *op, object *caster, object *spell, int dir)
Generalization of staff_to_snake().
Definition: spell_effect.cpp:3065
command_version
void command_version(object *op, const char *params)
Server version.
Definition: c_misc.cpp:1076
SP_level_dam_adjust
int SP_level_dam_adjust(const object *caster, const object *spob)
Returns adjusted damage based on the caster.
Definition: spell_util.cpp:287
command_frown
void command_frown(object *op, const char *params)
'frown' command.
Definition: c_chat.cpp:1008
command_toggle_shout
void command_toggle_shout(object *op, const char *params)
A simple toggle for the no_shout field.
Definition: c_wiz.cpp:615
party_get_password
const char * party_get_password(const partylist *party)
Returns the party's password.
Definition: party.cpp:232
commands_init
void commands_init(void)
Init standard commands.
Definition: commands.cpp:108
command_snicker
void command_snicker(object *op, const char *params)
'snicker' command.
Definition: c_chat.cpp:1151
dump_quests
void dump_quests(void)
Dump all of the quests, then calls exit() - useful in terms of debugging to make sure that quests are...
Definition: quest.cpp:880
command_reply
void command_reply(object *op, const char *params)
Reply to last person who told you something [mids 01/14/2002].
Definition: c_chat.cpp:336
move_disease
int move_disease(object *disease)
Ticks the clock for disease: infect, aggravate symptoms, ...
Definition: disease.cpp:180
command_strings
void command_strings(object *op, const char *params)
Various string-related statistics.
Definition: c_misc.cpp:847
apply_check_weapon_power
int apply_check_weapon_power(const object *who, int improves)
This checks to see of the player (who) is sufficient level to use a weapon with improves improvements...
Definition: apply.cpp:1131
command_yawn
void command_yawn(object *op, const char *params)
'yawn' command.
Definition: c_chat.cpp:1261
mapstruct
This is a game-map.
Definition: map.h:315
enter_exit
void enter_exit(object *op, object *exit_ob)
Tries to move 'op' to exit_ob.
Definition: server.cpp:727
move_player_mover
void move_player_mover(object *op)
This function takes a PLAYERMOVER as an argument, and performs the function of a player mover,...
Definition: time.cpp:707
check_spell_known
object * check_spell_known(object *op, const char *name)
Checks to see if player knows the spell.
Definition: spell_util.cpp:394
command_setgod
void command_setgod(object *op, const char *params)
Sets the god for some objects.
Definition: c_wiz.cpp:418
command_pickup
void command_pickup(object *op, const char *params)
'pickup' command.
Definition: c_object.cpp:2361
sstring
const typedef char * sstring
Definition: sstring.h:2
roll_again
void roll_again(object *op)
Ask the player what to do with the statistics.
Definition: player.cpp:1149
monster_npc_call_help
void monster_npc_call_help(object *op)
A monster calls for help against its enemy.
Definition: monster.cpp:2012
command_skills
void command_skills(object *op, const char *params)
Player is asking for her skills.
Definition: c_wiz.cpp:1365
party_send_message
void party_send_message(object *op, const char *message)
Send a message to all party members except the speaker.
Definition: party.cpp:274
summon_hostile_monsters
int summon_hostile_monsters(object *op, int n, const char *monstername)
Summons hostile monsters and places them in nearby squares.
Definition: spell_util.cpp:1005
receive_player_password
void receive_player_password(object *op, const char *password)
A player just entered her password, including for changing it.
Definition: c_misc.cpp:1955
cast_create_obj
int cast_create_obj(object *op, object *new_op, int dir)
Creates object new_op in direction dir or if that is blocked, beneath the player (op).
Definition: spell_util.cpp:494
command_patch
void command_patch(object *op, const char *params)
Wizard wants to altar an object.
Definition: c_wiz.cpp:1493
command_dmtell
void command_dmtell(object *op, const char *params)
Private communication, by a DM (can't be ignored by player).
Definition: c_chat.cpp:320
check_pick
int check_pick(object *op)
Sees if there is stuff to be picked up/picks up stuff, for players only.
Definition: player.cpp:1734
command_rotateshoottype
void command_rotateshoottype(object *op, const char *params)
'rotateshoottype' command, switch range attack.
Definition: c_range.cpp:343
pets_summon_golem
int pets_summon_golem(object *op, object *caster, int dir, object *spob)
Summons a monster.
Definition: pets.cpp:651
command_shiver
void command_shiver(object *op, const char *params)
'shiver' command.
Definition: c_chat.cpp:1085
apply_by_living
int apply_by_living(object *pl, object *op, int aflag, int quiet)
Living thing is applying an object.
Definition: apply.cpp:637
register_all_ob_types
void register_all_ob_types(void)
Calls the intialization functions for all individual types.
Definition: ob_types.cpp:31
spell_failure
void spell_failure(object *op, int failure, int power, object *skill)
Handles the various effects for differing degrees of failure badness.
Definition: spell_util.cpp:1103
command_stats
void command_stats(object *op, const char *params)
Displays the statistics of a player.
Definition: c_wiz.cpp:1762
pets_follow_owner
void pets_follow_owner(object *ob, object *owner)
A pet is trying to follow its owner.
Definition: pets.cpp:284
rv_vector
This is used by get_rangevector to determine where the other creature is.
Definition: map.h:370
init
void init(int argc, char **argv)
This is the main server initialization function.
Definition: init.cpp:1096
command_lick
void command_lick(object *op, const char *params)
'lick' command.
Definition: c_chat.cpp:1063
dispel_rune
int dispel_rune(object *op, object *skill, int dir)
Someone is trying to disarm a rune.
Definition: rune.cpp:304
monster_check_enemy
object * monster_check_enemy(object *npc, rv_vector *rv)
Checks npc->enemy and returns that enemy if still valid, NULL otherwise.
Definition: monster.cpp:72
hit_player
int hit_player(object *op, int dam, object *hitter, uint32_t type, int full_hit)
Object is attacked by something.
Definition: attack.cpp:1907
command_chat
void command_chat(object *op, const char *params)
'chat' command.
Definition: c_chat.cpp:221
do_hidden_move
void do_hidden_move(object *op)
For hidden creatures - a chance of becoming 'unhidden' every time they move - as we subtract off 'inv...
Definition: player.cpp:4054
command_southwest
void command_southwest(object *op, const char *params)
'southwest' command.
Definition: c_move.cpp:123
do_harvest
void do_harvest(object *pl, int dir, object *skill)
Player is trying to harvest something.
Definition: c_misc.cpp:2263
free_server
void free_server(void)
Frees all memory allocated around here:
Definition: init.cpp:1136
apply_special
int apply_special(object *who, object *op, int aflags)
Apply an object.
Definition: apply.cpp:1156
command_bounce
void command_bounce(object *op, const char *params)
'bounce' command.
Definition: c_chat.cpp:755
command_smirk
void command_smirk(object *op, const char *params)
'smirk' command.
Definition: c_chat.cpp:1118
command_resistances
void command_resistances(object *op, const char *params)
Players wants to know her resistances.
Definition: c_misc.cpp:1597
cast_wonder
int cast_wonder(object *op, object *caster, int dir, object *spell_ob)
wonder is really just a spell that will likely cast another spell.
Definition: spell_effect.cpp:968
player_arrest
int player_arrest(object *who)
Put a player into jail, taking into account cursed exits and player's region.
Definition: c_wiz.cpp:789
find_player_partial_name
player * find_player_partial_name(const char *plname)
Find a player by a partial name.
Definition: player.cpp:114
account_change_password
int account_change_password(const char *account_name, const char *current_password, const char *new_password)
Change an account password.
Definition: account.cpp:627
command_slap
void command_slap(object *op, const char *params)
'slap' command.
Definition: c_chat.cpp:1107
check_spell_expiry
void check_spell_expiry(object *spell)
Checks if player should be warned of soon expiring spell.
Definition: spell_util.cpp:2006
command_stack_list
void command_stack_list(object *op, const char *params)
Displays stack contents.
Definition: c_wiz.cpp:2565
command_fire
void command_fire(object *op, const char *params)
Player wants to start firing.
Definition: c_new.cpp:77
fire_bow
int fire_bow(object *op, object *arrow, int dir, int wc_mod, int16_t sx, int16_t sy)
Creature (monster or player) fires a bow.
Definition: player.cpp:2110
stats
Player Stats effect how well a character can survie and interact inside the crossfire world This section discusses the various stats
Definition: stats.txt:2
level
int level
Definition: readable.cpp:1563
change_object
void change_object(object *op)
Replaces op with its other_arch if it has reached its end of life.
Definition: time.cpp:592
command_invisible
void command_invisible(object *op, const char *params)
Wizard wants to become invisible.
Definition: c_wiz.cpp:2226
meditate
void meditate(object *pl, object *skill)
Meditation skill handling.
Definition: skills.cpp:1432
steal
int steal(object *op, int dir, object *skill)
Main stealing function.
Definition: skills.cpp:279
command_purge_quest
void command_purge_quest(object *op, const char *param)
Definition: c_wiz.cpp:2853
knowledge_player_knows
int knowledge_player_knows(const player *pl, const char *knowledge)
Determines whether a player knows a specific knowledge or not.
Definition: knowledge.cpp:1298
account_char_add
void account_char_add(Account_Chars *chars, player *pl)
This adds a player to the list of accounts.
Definition: account_char.cpp:207
command_run
void command_run(object *op, const char *params)
Player wants to start running.
Definition: c_new.cpp:41
command_freeze
void command_freeze(object *op, const char *params)
Freezes a player for a specified tick count, 100 by default.
Definition: c_wiz.cpp:745
quest_start
void quest_start(player *pl, sstring quest_code, int state)
Start a quest for a player.
Definition: quest.cpp:680
find_player_options
player * find_player_options(const char *plname, int options, const mapstruct *map)
Find a player.
Definition: player.cpp:70
knowledge_give
void knowledge_give(player *pl, const char *marker, const object *book)
Give a knowledge item from its code.
Definition: knowledge.cpp:996
save_player
int save_player(object *op, int flag)
Saves a player to disk.
Definition: login.cpp:230
monster_move
int monster_move(object *op)
Main monster processing routine.
Definition: monster.cpp:854
command_maps
void command_maps(object *op, const char *params)
'maps' command.
Definition: c_misc.cpp:835
stop_item
object * stop_item(object *op)
An item (ARROW or such) stops moving.
Definition: time.cpp:455
command_dumpabove
void command_dumpabove(object *op, const char *params)
Player wants to dump object above her.
Definition: c_wiz.cpp:2902
can_follow
bool can_follow(object *op, player *other)
Definition: c_wiz.cpp:2796
command_function_extra
void(* command_function_extra)(object *op, const char *params, const char *extra)
One command function, with a custom parameter specified at registration time.
Definition: commands.h:29
Account_Chars
Structure handling character information for an account.
Definition: account_char.h:27
command_dumpallarchetypes
void command_dumpallarchetypes(object *op, const char *params)
Various archetypes-related statistics.
Definition: c_misc.cpp:1005
fire_swarm
int fire_swarm(object *op, object *caster, object *spell, int dir)
The following routine creates a swarm of objects.
Definition: spell_attack.cpp:1088
command_register
command_registration command_register(const char *name, uint8_t type, command_function func, float time)
Register a player-issued command.
Definition: commands.cpp:101
skill
skill
Definition: arch-handbook.txt:585
process_object
void process_object(object *op)
Main object move function.
Definition: time.cpp:796
command_speed
void command_speed(object *op, const char *params)
Changes the server speed.
Definition: c_wiz.cpp:1732
player_set_state
void player_set_state(player *pl, uint8_t state)
Set the player's state to the specified one.
Definition: player.cpp:4488
cure_disease
int cure_disease(object *sufferer, object *caster, sstring skill)
Do the cure disease stuff, from the spell "cure disease".
Definition: disease.cpp:685
trap_see
int trap_see(object *op, object *trap)
Should op see trap?
Definition: rune.cpp:385
reflwall
int reflwall(mapstruct *m, int x, int y, object *sp_op)
Decides weither the (spell-)object sp_op will be reflected from the given mapsquare.
Definition: spell_util.cpp:470
command_fix_me
void command_fix_me(object *op, const char *params)
Wrapper to fix a player.
Definition: c_misc.cpp:1213
inventory
void inventory(object *op, object *inv)
Prints object's inventory.
Definition: c_object.cpp:2167
player_get_delayed_buffer
SockList * player_get_delayed_buffer(player *pl)
Get a delayed socket buffer, that will be sent after the player's tick is complete.
Definition: player.cpp:4501
player_can_view
int player_can_view(object *pl, object *op)
Check the player los field for viewability of the object op.
Definition: player.cpp:4163
command_swap
void command_swap(object *op, const char *params)
Mark a map as ready for swapping.
Definition: c_wiz.cpp:907
do_forget_spell
void do_forget_spell(object *op, const char *spell)
Erases spell from player's inventory.
Definition: apply.cpp:525
cast_change_ability
int cast_change_ability(object *op, object *caster, object *spell_ob, int dir, int silent)
Cast some stat-improving spell.
Definition: spell_effect.cpp:1902
command_registration
uint64_t command_registration
Identifier when registering a command.
Definition: commands.h:32
check_password
bool check_password(const char *typed, const char *crypted)
Hash a password and compare it to the stored version.
Definition: server.cpp:114
do_some_living
void do_some_living(object *op)
Regenerate hp/sp/gr, decreases food.
Definition: player.cpp:3293
command_dm
void command_dm(object *op, const char *params)
Actual command to perhaps become dm.
Definition: c_wiz.cpp:2214
command_addexp
void command_addexp(object *op, const char *params)
This adds exp to a player.
Definition: c_wiz.cpp:1676
command_goto
void command_goto(object *op, const char *params)
Wizard teleports to a map.
Definition: c_wiz.cpp:724
object_teleport
int object_teleport(object *op, mapstruct *map, int x, int y)
Move the specified object in a free spot around the map's x & y.
Definition: move.cpp:597
command_empty
void command_empty(object *op, const char *params)
'empty' command.
Definition: c_object.cpp:1450
command_cointoss
void command_cointoss(object *op, const char *params)
'cointoss' command.
Definition: c_chat.cpp:64
cast_word_of_recall
int cast_word_of_recall(object *op, object *caster, object *spell_ob)
Word of recall causes the player to return 'home'.
Definition: spell_effect.cpp:906
command_tell
void command_tell(object *op, const char *params)
Private communication.
Definition: c_chat.cpp:308
command_register_extra
command_registration command_register_extra(const char *name, const char *extra, uint8_t type, command_function_extra func, float time)
Register a player-issued command with an extra parameter.
Definition: commands.cpp:526
command_showpets
void command_showpets(object *op, const char *params)
Players wants to know her pets.
Definition: c_misc.cpp:1481
account_char_load
Account_Chars * account_char_load(const char *account_name)
For a given account name, load the character information and return it.
Definition: account_char.cpp:135
key_change_class
void key_change_class(object *op, char key)
This function takes the key that is passed, and does the appropriate action with it (change race,...
Definition: player.cpp:1297
finish_races
void finish_races()
Definition: races.cpp:98
receive_party_password
void receive_party_password(object *op, const char *password)
Player entered a party password.
Definition: c_party.cpp:53
account_check_string
int account_check_string(const char *str)
Checks a string to make sure it does not have any invalid characters.
Definition: account.cpp:360
write_rune
int write_rune(object *op, object *caster, object *spell, int dir, const char *runename)
Player is attempting to write a magical rune.
Definition: rune.cpp:50
knowledge_send_known
void knowledge_send_known(player *pl)
Send initial known knowledge to player, if requested.
Definition: knowledge.cpp:1403
fix_luck
void fix_luck(void)
Fixes luck of players, slowly move it towards 0.
Definition: player.cpp:3927
check_active_maps
void check_active_maps(void)
Finds maps in memory to swap.
Definition: swap.cpp:201
account_char_remove
void account_char_remove(Account_Chars *chars, const char *pl_name)
This removes a character on this account.
Definition: account_char.cpp:313
commands_clear
void commands_clear()
Clear all registered commands.
Definition: commands.cpp:346
drain_rod_charge
void drain_rod_charge(object *rod)
Drain charges from a rod.
Definition: spell_util.cpp:776
me
Player Stats effect how well a character can survie and interact inside the crossfire world This section discusses the various what they and how they effect the player s actions Also in this section are the stat modifiers that specific classes professions bring Player and sps the current and maximum the Current and Maximum The Current Sp can go somewhat negative When Sp is negative not all spells can be and a more negative Sp makes spell casting less likey to succeed can affect Damage and how the characters as well as how often the character can attack this affects the prices when buying and selling items if this drops the player will start losing hit points wd Cleric or Dwarf sm Elf wd Fireborn ft Human ra Mage C Monk me
Definition: stats.txt:102
attack_ob
int attack_ob(object *op, object *hitter)
Simple wrapper for attack_ob_simple(), will use hitter's values.
Definition: attack.cpp:937
cast_create_missile
int cast_create_missile(object *op, object *caster, object *spell, int dir, const char *stringarg)
Create a missile (nonmagic - magic +4).
Definition: spell_effect.cpp:493
stand_near_hostile
int stand_near_hostile(object *who)
Determine if who is standing near a hostile creature.
Definition: player.cpp:4095
command_gsay
void command_gsay(object *op, const char *params)
'gsay' command, talks to party.
Definition: c_party.cpp:75
find_target_for_friendly_spell
object * find_target_for_friendly_spell(object *op, int dir)
This function is commonly used to find a friendly target for spells such as heal or protection or arm...
Definition: spell_util.cpp:813
close_modules
void close_modules()
Clean up all modules which are not disabled.
Definition: init.cpp:80
command_mapinfo
void command_mapinfo(object *op, const char *params)
'mapinfo' command.
Definition: c_misc.cpp:809
command_gasp
void command_gasp(object *op, const char *params)
'gasp' command.
Definition: c_chat.cpp:1019
command_brace
void command_brace(object *op, const char *params)
Player toggles her braced status.
Definition: c_misc.cpp:2172
cast_transfer
int cast_transfer(object *op, object *caster, object *spell, int dir)
This spell transfers sp from the player to another person.
Definition: spell_effect.cpp:2838
confirm_password
void confirm_password(object *op)
Ask the player to confirm her password during creation.
Definition: player.cpp:1014
command_body
void command_body(object *op, const char *params)
This command dumps the body information for object *op.
Definition: c_misc.cpp:175
account_login
int account_login(const char *account_name, const char *account_password)
Check if the given account exists, and whether the password is correct.
Definition: account.cpp:318
command_passwd
void command_passwd(object *pl, const char *params)
Player is asking to change password.
Definition: c_misc.cpp:2239
hide
int hide(object *op, object *skill)
Main hide handling.
Definition: skills.cpp:496
command_function
void(* command_function)(object *op, const char *params)
One command function.
Definition: commands.h:17
verify_player
int verify_player(const char *name, char *password)
This verify that a character of name exits, and that it matches password.
Definition: login.cpp:111
pets_control_golem
void pets_control_golem(object *op, int dir)
Makes the golem go in specified direction.
Definition: pets.cpp:630
check_name
int check_name(player *me, const char *name)
Ensure player's name is valid.
Definition: login.cpp:181
command_archs
void command_archs(object *op, const char *params)
command_sniff
void command_sniff(object *op, const char *params)
'sniff' command.
Definition: c_chat.cpp:1162
cast_item_curse_or_bless
int cast_item_curse_or_bless(object *op, object *spell_ob)
This alters player's marked item's cursed or blessed status, based on the spell_ob's fields.
Definition: spell_effect.cpp:2454
save_throw_object
void save_throw_object(object *op, uint32_t type, object *originator)
Object is attacked with some attacktype (fire, ice, ...).
Definition: attack.cpp:202
command_insert_into
void command_insert_into(object *op, const char *params)
Puts an object into another.
Definition: c_wiz.cpp:2686
cast_smite_spell
int cast_smite_spell(object *op, object *caster, int dir, object *spell)
The priest points to a creature and causes a 'godly curse' to descend.
Definition: spell_attack.cpp:546
player_unready_range_ob
void player_unready_range_ob(player *pl, object *ob)
Unready an object for a player.
Definition: player.cpp:4470
account_char_save
void account_char_save(Account_Chars *chars)
Saves the character information for the given account.
Definition: account_char.cpp:158
cast_earth_to_dust
int cast_earth_to_dust(object *op, object *caster, object *spell_ob)
Basically destroys earthwalls in the area.
Definition: spell_effect.cpp:855
recharge
int recharge(object *op, object *caster, object *spell_ob)
Recharge wands.
Definition: spell_effect.cpp:84
pick_up
void pick_up(object *op, object *alt)
Try to pick up an item.
Definition: c_object.cpp:519
makes_invisible_to
int makes_invisible_to(object *pl, object *mon)
This checks to see if 'pl' is invisible to 'mon'.
Definition: spell_effect.cpp:756
examine
void examine(object *op, object *tmp)
Player examines some object.
Definition: c_object.cpp:1985
sack_can_hold
int sack_can_hold(const object *pl, const object *sack, const object *op, uint32_t nrof)
Check if an item op can be put into a sack.
Definition: c_object.cpp:317
BufferReader
Definition: bufferreader.cpp:21
kill_player
void kill_player(object *op, const object *killer)
Handle a player's death.
Definition: player.cpp:3509
min_casting_level
int min_casting_level(const object *caster, const object *spell)
This function takes a caster and spell and presents the effective level the caster needs to be to cas...
Definition: spell_util.cpp:164
command_apply
void command_apply(object *op, const char *params)
'apply' command.
Definition: c_object.cpp:251
SockList
Contains the base information we use to make up a packet we want to send.
Definition: newclient.h:684
command_cast
void command_cast(object *op, const char *params)
'cast' command, prepares a spell for laster casting.
Definition: c_range.cpp:50
find_applied_skill_by_name
object * find_applied_skill_by_name(const object *op, const char *name)
Find a skill by name using the last_skill_ob list.
Definition: living.cpp:1932
command_listplugins
void command_listplugins(object *op, const char *params)
Lists all plugins currently loaded with their IDs and full names.
Definition: c_wiz.cpp:2443
command_bowmode
void command_bowmode(object *op, const char *params)
Player wants to change the bowmode, how arrows are fired.
Definition: c_misc.cpp:1318
find_marked_object
object * find_marked_object(object *op)
Return the object the player has marked with the 'mark' command below.
Definition: c_object.cpp:1520
command_title
void command_title(object *op, const char *params)
Player wishes to change her title.
Definition: c_misc.cpp:2047
drain_wand_charge
void drain_wand_charge(object *wand)
Drains a charge from a wand.
Definition: spell_util.cpp:786
command_wizpass
void command_wizpass(object *op, const char *params)
Wizard toggling wall-crossing.
Definition: c_misc.cpp:917
knowledge_process_incremental
void knowledge_process_incremental(void)
Incrementally send knowledge information to players, and remove information for players who left.
Definition: knowledge.cpp:1439
command_create
void command_create(object *op, const char *params)
Wizard wants to create an object.
Definition: c_wiz.cpp:999
apply_builder_remove
void apply_builder_remove(object *pl, int dir)
Item remover.
Definition: build_map.cpp:890
cast_invisible
int cast_invisible(object *op, object *caster, object *spell_ob)
Makes the player or character invisible.
Definition: spell_effect.cpp:803
monster_compute_path
int monster_compute_path(object *source, object *target, int default_dir)
Computes a path from source to target.
Definition: monster.cpp:463
command_dmhide
void command_dmhide(object *op, const char *params)
A players wants to become DM and hide.
Definition: c_wiz.cpp:2519
cast_cone
int cast_cone(object *op, object *caster, int dir, object *spell)
Casts a cone spell.
Definition: spell_attack.cpp:297
command_blush
void command_blush(object *op, const char *params)
'blush' command.
Definition: c_chat.cpp:953
is_valid_types_gen.type
list type
Definition: is_valid_types_gen.py:25
is_true_undead
int is_true_undead(object *op)
Is the object a true undead?
Definition: player.cpp:3996
determine_holy_arch
archetype * determine_holy_arch(const object *god, const char *type)
Determines the archetype for holy servant and god avatar.
Definition: gods.cpp:676
account_exists
const char * account_exists(const char *account_name)
Checks the existing accounts, and see if this account exists.
Definition: account.cpp:296
command_sneeze
void command_sneeze(object *op, const char *params)
'sneeze' command.
Definition: c_chat.cpp:1140
command_burp
void command_burp(object *op, const char *params)
'burp' command.
Definition: c_chat.cpp:964
account_logout
void account_logout(const char *account_name)
Remove 'account_name' from the list of logged in accounts.
Definition: account.cpp:337
quest_send_initial_states
void quest_send_initial_states(player *pl)
Send the current quest states for the specified player, if the client supports those notifications.
Definition: quest.cpp:909
put_object_in_sack
void put_object_in_sack(object *op, object *sack, object *tmp, uint32_t nrof)
Something tries to put an object into another.
Definition: c_object.cpp:937
quest_get_player_state
int quest_get_player_state(player *pl, sstring quest_code)
Get the quest state for a player.
Definition: quest.cpp:660
skill_attack
void skill_attack(object *tmp, object *pl, int dir, const char *string, object *skill)
Core routine for use when we attack using a skills system.
Definition: skill_util.cpp:1270
cftimer_create
int cftimer_create(int id, long delay, object *ob, int mode)
Creates a new timer.
Definition: timers.cpp:97
jump
int jump(object *pl, int dir, object *skill)
Jump skill handling.
Definition: skills.cpp:666
pray_at_altar
void pray_at_altar(object *pl, object *altar, object *skill)
Player prays at altar.
Definition: gods.cpp:258
command_southeast
void command_southeast(object *op, const char *params)
'southeast' command.
Definition: c_move.cpp:112
get_name
void get_name(object *op)
Waiting for the player's name.
Definition: player.cpp:889
command_laugh
void command_laugh(object *op, const char *params)
'laugh' command.
Definition: c_chat.cpp:788
knowledge_first_player_save
void knowledge_first_player_save(player *pl)
Ensure the knowledge state is correctly saved for the player.
Definition: knowledge.cpp:1423
players_on_map
int players_on_map(mapstruct *m, int show_all)
Returns the count of players on a map, calculated from player list.
Definition: swap.cpp:234
find_player
player * find_player(const char *plname)
Find a player by her full name.
Definition: player.cpp:59
command_sigh
void command_sigh(object *op, const char *params)
'sigh' command.
Definition: c_chat.cpp:854