Crossfire Server, Trunk  R21041
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 int account_check_string(const char *str);
8 int account_new(const char *account_name, const char *account_password);
9 int account_link(const char *account_name, const char *player_name);
10 int account_remove_player(const char *account_name, const char *player_name);
11 char **account_get_players_for_account(const char *account_name);
12 const char *account_get_account_for_char(const char *charname);
13 player *account_get_logged_in_player(const char *name);
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_Char *account_char_load(const char *account_name);
19 void account_char_save(const char *account, Account_Char *chars);
21 Account_Char *account_char_remove(Account_Char *chars, const char *pl_name);
22 void account_char_free(Account_Char *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);
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);
40 void apply_auto_fix(mapstruct *m);
41 void scroll_failure(object *op, int failure, int power);
42 void apply_changes_to_player(object *pl, object *change, int limit_stats);
43 void legacy_apply_container(object *op, object *sack);
44 /* attack.c */
45 void save_throw_object(object *op, uint32_t type, object *originator);
46 int slow_living_by(object *op, const int speed_penalty);
47 int hit_map(object *op, int dir, uint32_t type, int full_hit);
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 map_info(object *op, const char *search);
126 void command_language(object *op, const char *params);
127 void command_body(object *op, const char *params);
128 void command_motd(object *op, const char *params);
129 void command_rules(object *op, const char *params);
130 void command_news(object *op, const char *params);
131 void current_region_info(object *op);
132 void current_map_info(object *op);
133 void command_whereabouts(object *op, const char *params);
134 void list_players(object *op, region *reg, partylist *party);
135 void command_who(object *op, const char *params);
136 void display_who_entry(object *op, player *pl, const char *format);
137 void get_who_escape_code_value(char *return_val, int size, const char letter, player *pl);
138 void command_afk(object *op, const char *params);
139 void command_malloc(object *op, const char *params);
140 void command_mapinfo(object *op, const char *params);
141 void command_whereami(object *op, const char *params);
142 void command_maps(object *op, const char *params);
143 void command_strings(object *op, const char *params);
144 void command_time(object *op, const char *params);
145 void command_archs(object *op, const char *params);
146 void command_hiscore(object *op, const char *params);
147 void command_debug(object *op, const char *params);
148 void command_wizpass(object *op, const char *params);
149 void command_wizcast(object *op, const char *params);
150 void command_dumpallobjects(object *op, const char *params);
151 void command_dumpfriendlyobjects(object *op, const char *params);
152 void command_dumpallarchetypes(object *op, const char *params);
153 void command_ssdumptable(object *op, const char *params);
154 void command_dumpmap(object *op, const char *params);
155 void command_dumpallmaps(object *op, const char *params);
156 void command_printlos(object *op, const char *params);
157 void command_version(object *op, const char *params);
158 void command_listen(object *op, const char *params);
159 void command_statistics(object *pl, const char *params);
160 void command_fix_me(object *op, const char *params);
161 void command_players(object *op, const char *params);
162 void command_applymode(object *op, const char *params);
163 void command_bowmode(object *op, const char *params);
164 void command_unarmed_skill(object *op, const char *params);
165 void command_petmode(object *op, const char *params);
166 void command_showpets(object *op, const char *params);
167 void command_usekeys(object *op, const char *params);
168 void command_resistances(object *op, const char *params);
169 void command_help(object *op, const char *params);
170 int onoff_value(const char *line);
171 void command_quit(object *op, const char *params);
172 void command_sound(object *op, const char *params);
173 void receive_player_name(object *op);
174 void receive_player_password(object *op);
175 void command_title(object *op, const char *params);
176 void command_save(object *op, const char *params);
177 void command_peaceful(object *op, const char *params);
178 void command_wimpy(object *op, const char *params);
179 void command_brace(object *op, const char *params);
180 void command_kill_pets(object *op, const char *params);
181 void command_passwd(object *pl, const char *params);
182 void do_harvest(object *pl, int dir, object *skill);
183 /* c_move.c */
184 void command_east(object *op, const char *params);
185 void command_north(object *op, const char *params);
186 void command_northeast(object *op, const char *params);
187 void command_northwest(object *op, const char *params);
188 void command_south(object *op, const char *params);
189 void command_southeast(object *op, const char *params);
190 void command_southwest(object *op, const char *params);
191 void command_west(object *op, const char *params);
192 void command_stay(object *op, const char *params);
193 void do_goto(object *op, const char *name, int x, int y);
194 /* c_new.c */
195 void execute_newserver_command(object *pl, char *command);
196 void command_run(object *op, const char *params);
197 void command_run_stop(object *op, const char *params);
198 void command_fire(object *op, const char *params);
199 void command_fire_stop(object *op, const char *params);
200 /* c_object.c */
201 void command_uskill(object *pl, const char *params);
202 void command_rskill(object *pl, const char *params);
203 void command_search(object *op, const char *params);
204 void command_disarm(object *op, const char *params);
205 void command_throw(object *op, const char *params);
206 void command_apply(object *op, const char *params);
207 int sack_can_hold(const object *pl, const object *sack, const object *op, uint32_t nrof);
208 void pick_up(object *op, object *alt);
209 void command_take(object *op, const char *params);
210 void put_object_in_sack(object *op, object *sack, object *tmp, uint32_t nrof);
211 object *drop_object(object *op, object *tmp, uint32_t nrof);
212 void drop(object *op, object *tmp);
213 void command_dropall(object *op, const char *params);
214 void command_drop(object *op, const char *params);
215 void command_empty(object *op, const char *params);
216 void command_examine(object *op, const char *params);
217 object *find_marked_object(object *op);
218 void command_mark(object *op, const char *params);
219 void examine_monster(object *op, object *tmp, int level);
220 void examine(object *op, object *tmp);
221 void inventory(object *op, object *inv);
222 void command_pickup(object *op, const char *params);
223 void command_search_items(object *op, const char *params);
224 void command_rename_item(object *op, const char *params);
225 void command_lock_item(object *op, const char *params);
226 void command_use(object *op, const char *params);
227 /* c_party.c */
228 int confirm_party_password(object *op);
229 void receive_party_password(object *op);
230 void command_gsay(object *op, const char *params);
231 void command_party(object *op, const char *params);
232 void command_party_rejoin(object *op, const char *params);
233 /* c_range.c */
234 void command_invoke(object *op, const char *params);
235 void command_cast(object *op, const char *params);
236 void command_prepare(object *op, const char *params);
237 void command_cast_spell(object *op, const char *params, char command);
238 int legal_range(object *op, int r);
239 void command_rotateshoottype(object *op, const char *params);
240 /* c_wiz.c */
241 void command_loadtest(object *op, const char *params);
242 void command_hide(object *op, const char *params);
243 void command_setgod(object *op, const char *params);
244 void command_banish(object *op, const char *params);
245 void command_kick(object *op, const char *params);
246 void command_overlay_save(object *op, const char *params);
247 void command_overlay_reset(object *op, const char *params);
248 void command_toggle_shout(object *op, const char *params);
249 void command_shutdown(object *op, const char *params);
250 void command_goto(object *op, const char *params);
251 void command_freeze(object *op, const char *params);
252 int player_arrest(object *who);
253 void command_arrest(object *op, const char *params);
254 void command_summon(object *op, const char *params);
255 void command_teleport(object *op, const char *params);
256 void command_create(object *op, const char *params);
257 void command_inventory(object *op, const char *params);
258 void command_skills(object *op, const char *params);
259 void command_dump(object *op, const char *params);
260 void command_mon_aggr(object *op, const char *params);
261 void command_possess(object *op, const char *params);
262 void command_patch(object *op, const char *params);
263 void command_remove(object *op, const char *params);
264 void command_free(object *op, const char *params);
265 void command_addexp(object *op, const char *params);
266 void command_speed(object *op, const char *params);
267 void command_stats(object *op, const char *params);
268 void command_abil(object *op, const char *params);
269 void command_reset(object *op, const char *params);
270 void command_nowiz(object *op, const char *params);
271 void command_dm(object *op, const char *params);
272 void command_invisible(object *op, const char *params);
273 void command_learn_spell(object *op, const char *params);
274 void command_learn_special_prayer(object *op, const char *params);
275 void command_forget_spell(object *op, const char *params);
276 void command_listplugins(object *op, const char *params);
277 void command_loadplugin(object *op, const char *params);
278 void command_unloadplugin(object *op, const char *params);
279 void command_dmhide(object *op, const char *params);
280 void command_stack_pop(object *op, const char *params);
281 void command_stack_push(object *op, const char *params);
282 void command_stack_list(object *op, const char *params);
283 void command_stack_clear(object *op, const char *params);
284 void command_diff(object *op, const char *params);
285 void command_insert_into(object *op, const char *params);
286 void command_style_map_info(object *op, const char *params);
287 void command_follow(object *op, const char *params);
288 void command_purge_quest(object *op, const char *param);
289 void command_purge_quest_definitions(object *op, const char *param);
290 void command_dumpbelow(object *op, const char *params);
291 void command_settings(object *op, const char *ignored);
292 /* commands.c */
293 void init_commands(void);
294 /* disease.c */
295 int move_disease(object *disease);
296 int infect_object(object *victim, object *disease, int force);
297 void move_symptom(object *symptom);
298 void check_physically_infect(object *victim, object *hitter);
299 int cure_disease(object *sufferer, object *caster, sstring skill);
300 /* hiscore.c */
301 void hiscore_init(void);
302 void hiscore_check(object *op, int quiet);
303 void hiscore_display(object *op, int max, const char *match);
304 /* gods.c */
305 const object *find_god(const char *name);
306 const char *determine_god(object *op);
307 void pray_at_altar(object *pl, object *altar, object *skill);
308 int become_follower(object *op, const object *new_god);
309 archetype *determine_holy_arch(const object *god, const char *type);
310 int tailor_god_spell(object *spellop, object *caster);
311 /* init.c */
312 void init(int argc, char **argv);
313 void free_server(void);
314 racelink *find_racelink(const char *name);
315 /* knowledge.c */
316 void knowledge_give(player *pl, const char *marker, const object *book);
317 void knowledge_read(player *pl, object *book);
318 void command_knowledge(object *pl, const char *params);
319 void free_knowledge(void);
320 int knowledge_player_knows(const player *pl, const char *knowledge);
321 void knowledge_item_can_be_used_alchemy(object *op, const object *item);
326 void knowledge_show_monster_detail(object *op, const char *name);
327 /* login.c */
328 void emergency_save(int flag);
329 void delete_character(const char *name);
330 int verify_player(const char *name, char *password);
331 int check_name(player *me, const char *name);
332 void destroy_object(object *op);
333 int save_player(object *op, int flag);
334 void check_login(object *op, int check_pass);
335 /* monster.c */
336 object *monster_check_enemy(object *npc, rv_vector *rv);
337 object *monster_find_nearest_living_creature(object *npc);
338 int monster_compute_path(object *source, object *target, int default_dir);
339 void monster_do_living(object *op);
340 int monster_move(object *op);
341 void monster_check_apply_all(object *monster);
342 void monster_npc_call_help(object *op);
343 void monster_check_earthwalls(object *op, mapstruct *m, int x, int y);
344 void monster_check_doors(object *op, mapstruct *m, int x, int y);
345 void monster_do_say(const mapstruct *map, const char *message);
346 void monster_communicate(object *op, const char *txt);
347 void monster_npc_say(object *npc, const char *cp);
348 object *monster_find_throw_ob(object *op);
349 int monster_can_detect_enemy(object *op, object *enemy, rv_vector *rv);
350 int monster_stand_in_light(object *op);
351 int monster_can_see_enemy(object *op, object *enemy);
352 /* move.c */
353 int move_object(object *op, int dir);
354 int move_ob(object *op, int dir, object *originator);
355 int transfer_ob(object *op, int x, int y, int randomly, object *originator);
356 int teleport(object *teleporter, uint8_t tele_type, object *user);
357 void recursive_roll(object *op, int dir, object *pusher);
358 int push_ob(object *who, int dir, object *pusher);
359 int move_to(object *op, int x, int y);
360 /* ob_methods.c */
361 void init_ob_methods(void);
362 /* ob_types.c */
363 void register_all_ob_types(void);
364 /* party.c */
365 partylist *party_form(object *op, const char *partyname);
366 void party_join(object *op, partylist *party);
367 void party_leave(object *op);
368 partylist *party_find(const char *partyname);
369 void party_remove(partylist *party);
371 partylist *party_get_next(const partylist *party);
372 void party_obsolete_parties(void);
373 const char *party_get_password(const partylist *party);
374 void party_set_password(partylist *party, const char *password);
375 int party_confirm_password(const partylist *party, const char *password);
376 void party_send_message(object *op, const char *message);
377 const char *party_get_leader(const partylist *party);
378 /* pets.c */
379 object *pets_get_enemy(object *pet, rv_vector *rv);
380 void pets_terminate_all(object *owner);
381 void pets_remove_all(void);
382 void pets_follow_owner(object *ob, object *owner);
383 void pets_move(object *ob);
384 void pets_move_golem(object *op);
385 void pets_control_golem(object *op, int dir);
386 int pets_summon_golem(object *op, object *caster, int dir, object *spob);
387 int pets_summon_object(object *op, object *caster, object *spell_ob, int dir, const char *stringarg);
388 int pets_should_arena_attack(object *pet, object *owner, object *target);
389 /* player.c */
390 player *find_player(const char *plname);
391 player *find_player_options(const char *plname, int options, const mapstruct *map);
392 player *find_player_partial_name(const char *plname);
394 void display_motd(const object *op);
395 void send_rules(const object *op);
396 void send_news(const object *op);
397 int playername_ok(const char *cp);
399 void set_first_map(object *op);
401 object *get_nearest_player(object *mon);
402 int path_to_player(object *mon, object *pl, unsigned mindiff);
403 void give_initial_items(object *pl, treasurelist *items);
404 void get_name(object *op);
405 void get_password(object *op);
406 void play_again(object *op);
407 void receive_play_again(object *op, char key);
408 void confirm_password(object *op);
409 int get_party_password(object *op, partylist *party);
410 int roll_stat(void);
411 void roll_stats(object *op);
412 void roll_again(object *op);
413 void key_roll_stat(object *op, char key);
414 void key_change_class(object *op, char key);
415 int check_race_and_class(living *stats, archetype *race, archetype *opclass);
416 int apply_race_and_class(object *op, archetype *race, archetype *opclass, living *stats);
417 void key_confirm_quit(object *op, char key);
418 int check_pick(object *op);
419 int fire_bow(object *op, object *arrow, int dir, int wc_mod, int16_t sx, int16_t sy);
420 void fire(object *op, int dir);
421 object *find_key(object *pl, object *container, object *door);
422 void move_player_attack(object *op, int dir);
423 int move_player(object *op, int dir);
424 int handle_newcs_player(object *op);
425 void remove_unpaid_objects(object *op, object *env, int free_items);
426 void do_some_living(object *op);
427 void kill_player(object *op, const object *killer);
428 void fix_weight(void);
429 void fix_luck(void);
430 void cast_dust(object *op, object *throw_ob, int dir);
431 void make_visible(object *op);
432 int is_true_undead(object *op);
433 int hideability(object *ob);
434 void do_hidden_move(object *op);
435 int stand_near_hostile(object *who);
436 int player_can_view(object *pl, object *op);
437 int op_on_battleground(object *op, int *x, int *y, archetype **trophy);
438 void dragon_ability_gain(object *who, int atnr, int level);
439 void player_unready_range_ob(player *pl, object *ob);
440 void player_set_state(player *pl, uint8_t state);
441 /* plugins.c */
442 int user_event(object *op, object *activator, object *third, const char *message, int fix);
443 int execute_event(object *op, int eventcode, object *activator, object *third, const char *message, int fix);
444 int plugin_event_say(object *npc, talk_info *talk);
445 int execute_global_event(int eventcode, ...);
446 int plugins_init_plugin(const char *libfile);
447 int plugins_remove_plugin(const char *id);
448 void plugins_display_list(object *op);
450 void initPlugins(void);
451 void cleanupPlugins(void);
452 /* quest.c */
453 int quest_get_player_state(player *pl, sstring quest_code);
454 void quest_start(player *pl, sstring quest_code, int state);
455 void quest_set_player_state(player *pl, sstring quest_code, int state);
456 int quest_was_completed(player *pl, sstring quest_code);
457 void command_quest(object *op, const char *params);
458 void dump_quests(void);
459 void free_quest(void);
460 void free_quest_definitions(void);
463 /* resurrection.c */
464 int cast_raise_dead_spell(object *op, object *caster, object *spell, int dir, const char *arg);
465 void dead_player(object *op);
466 /* rune.c */
467 int write_rune(object *op, object *caster, object *spell, int dir, const char *runename);
468 void spring_trap(object *trap, object *victim);
469 int dispel_rune(object *op, object *caster, object *spell, object *skill, int dir);
470 int trap_see(object *op, object *trap);
471 int trap_show(object *trap, object *where);
472 int trap_disarm(object *disarmer, object *trap, int risk, object *skill);
473 /* skills.c */
474 int steal(object *op, int dir, object *skill);
475 int pick_lock(object *pl, int dir, object *skill);
476 int hide(object *op, object *skill);
477 int jump(object *pl, int dir, object *skill);
478 int detect_curse_on_item(object *pl, object *tmp, object *skill);
479 int detect_magic_on_item(object *pl, object *tmp, object *skill);
480 int identify_object_with_skill(object *tmp, object *pl, object *skill, int print_on_success);
481 int skill_ident(object *pl, object *skill);
482 int use_oratory(object *pl, int dir, object *skill);
483 int singing(object *pl, int dir, object *skill);
484 int find_traps(object *pl, object *skill);
485 int remove_trap(object *op, object *skill);
486 int pray(object *pl, object *skill);
487 void meditate(object *pl, object *skill);
488 int write_on_item(object *pl, const char *params, object *skill);
489 int skill_throw(object *op, object *part, int dir, object *skill);
490 /* skill_util.c */
491 void init_skills(void);
492 void link_player_skills(object *op);
493 object *find_skill_by_name(object *who, const char *name);
494 object *find_skill_by_number(object *who, int skillno);
495 int change_skill(object *who, object *new_skill, int flag);
496 void clear_skill(object *who);
497 int do_skill(object *op, object *part, object *skill, int dir, const char *string);
498 int64_t calc_skill_exp(const object *who, const object *op, const object *skill);
499 int learn_skill(object *pl, object *scroll);
500 void show_skills(object *op, const char *search);
501 int use_skill(object *op, const char *string);
502 void skill_attack(object *tmp, object *pl, int dir, const char *string, object *skill);
503 /* spell_attack.c */
504 int fire_bolt(object *op, object *caster, int dir, object *spob);
505 void explode_bullet(object *op);
506 void check_bullet(object *op);
507 void cone_drop(object *op);
508 int cast_cone(object *op, object *caster, int dir, object *spell);
509 int create_bomb(object *op, object *caster, int dir, object *spell);
510 int cast_smite_spell(object *op, object *caster, int dir, object *spell);
511 int cast_destruction(object *op, object *caster, object *spell_ob);
512 int cast_curse(object *op, object *caster, object *spell_ob, int dir);
513 int mood_change(object *op, object *caster, object *spell);
514 int fire_swarm(object *op, object *caster, object *spell, int dir);
515 int cast_light(object *op, object *caster, object *spell, int dir);
516 int cast_cause_disease(object *op, object *caster, object *spell, int dir);
517 /* spell_effect.c */
518 void cast_magic_storm(object *op, object *tmp, int lvl);
519 int recharge(object *op, object *caster, object *spell_ob);
520 void polymorph(object *op, object *who, int level);
521 int cast_polymorph(object *op, object *caster, object *spell_ob, int dir);
522 int cast_create_missile(object *op, object *caster, object *spell, int dir, const char *stringarg);
523 int cast_create_food(object *op, object *caster, object *spell_ob, int dir, const char *stringarg);
524 int probe(object *op, object *caster, object *spell_ob, int dir, int level);
525 int makes_invisible_to(object *pl, object *mon);
526 int cast_invisible(object *op, object *caster, object *spell_ob);
527 int cast_earth_to_dust(object *op, object *caster, object *spell_ob);
528 int cast_word_of_recall(object *op, object *caster, object *spell_ob);
529 int cast_wonder(object *op, object *caster, int dir, object *spell_ob);
530 int perceive_self(object *op);
531 int cast_create_town_portal(object *op, object *caster, object *spell, int dir);
532 int magic_wall(object *op, object *caster, int dir, object *spell_ob);
533 int dimension_door(object *op, object *caster, object *spob, int dir);
534 int cast_heal(object *op, object *caster, object *spell, int dir);
535 int cast_change_ability(object *op, object *caster, object *spell_ob, int dir, int silent);
536 int cast_bless(object *op, object *caster, object *spell_ob, int dir);
537 int alchemy(object *op, object *caster, object *spell_ob);
538 int remove_curse(object *op, object *caster, object *spell);
539 int cast_item_curse_or_curse(object *op, object *caster, object *spell_ob);
540 int cast_identify(object *op, object *caster, object *spell);
541 int cast_detection(object *op, object *caster, object *spell);
542 int cast_transfer(object *op, object *caster, object *spell, int dir);
543 void counterspell(object *op, int dir);
544 int cast_consecrate(object *op, object *caster, object *spell);
545 int animate_weapon(object *op, object *caster, object *spell, int dir);
546 int cast_change_map_lightlevel(object *op, object *caster, object *spell);
547 int create_aura(object *op, object *caster, object *spell);
548 int write_mark(object *op, object *spell, const char *msg);
549 /* spell_util.c */
550 object *find_random_spell_in_ob(object *ob, const char *skill);
551 void set_spell_skill(object *op, object *caster, object *spob, object *dest);
552 void check_spells(void);
553 void dump_spells(void);
554 void spell_effect(object *spob, int x, int y, mapstruct *map, object *originator);
555 int min_casting_level(const object *caster, const object *spell);
556 int caster_level(const object *caster, const object *spell);
557 int16_t SP_level_spellpoint_cost(object *caster, object *spell, int flags);
558 int SP_level_dam_adjust(const object *caster, const object *spob);
559 int SP_level_duration_adjust(const object *caster, const object *spob);
560 int SP_level_range_adjust(const object *caster, const object *spob);
561 int SP_level_wc_adjust(const object *caster, const object *spob);
562 object *check_spell_known(object *op, const char *name);
563 object *lookup_spell_by_name(object *op, const char *spname);
564 int reflwall(mapstruct *m, int x, int y, object *sp_op);
565 int cast_create_obj(object *op, object *new_op, int dir);
566 int ok_to_put_more(mapstruct *m, int16_t x, int16_t y, object *op, uint32_t immune_stop);
567 int fire_arch_from_position(object *op, object *caster, int16_t x, int16_t y, int dir, object *spell);
568 void regenerate_rod(object *rod);
569 void drain_rod_charge(object *rod);
570 void drain_wand_charge(object *wand);
571 object *find_target_for_friendly_spell(object *op, int dir);
572 int spell_find_dir(mapstruct *m, int x, int y, object *exclude);
573 int summon_hostile_monsters(object *op, int n, const char *monstername);
574 void shuffle_attack(object *op, int change_face);
575 void spell_failure(object *op, int failure, int power, object *skill);
576 int cast_spell(object *op, object *caster, int dir, object *spell_ob, char *stringarg);
577 void store_spell_expiry(object *spell);
578 void check_spell_expiry(object *spell);
579 void rod_adjust(object *rod);
580 /* swap.c */
581 void read_map_log(void);
582 int swap_map(mapstruct *map);
583 void check_active_maps(void);
584 void swap_below_max(const char *except_level);
585 int players_on_map(mapstruct *m, int show_all);
586 void flush_old_maps(void);
587 /* time.c */
588 void remove_door(object *op);
589 void remove_locked_door(object *op);
590 object *stop_item(object *op);
591 void fix_stopped_item(object *op, mapstruct *map, object *originator);
592 object *fix_stopped_arrow(object *op);
593 int free_no_drop(object *op);
594 void change_object(object *op);
595 void move_firewall(object *op);
596 void move_player_mover(object *op);
597 int process_object(object *op);
598 void legacy_remove_force(object *op);
599 void legacy_animate_trigger(object *op);
600 void legacy_move_hole(object *op);
601 int tick_length(float seconds);
602 /* timers.c */
603 void cftimer_process_timers(void);
604 int cftimer_create(int id, long delay, object *ob, int mode);
605 int cftimer_destroy(int id);
606 int cftimer_find_free_id(void);
607 void cftimer_init(void);
608 /* weather.c */
609 void set_darkness_map(mapstruct *m);
610 void tick_the_clock(void);
611 /* server.c */
612 char const* newhash(char const *password);
613 bool check_password(const char *typed, const char *crypted);
614 void enter_player_savebed(object *op);
615 void set_map_timeout(mapstruct *oldmap);
616 void enter_exit(object *op, object *exit_ob);
617 void process_events(void);
618 void clean_tmp_files(void);
619 void cleanup(void);
620 void leave(player *pl, int draw_exit);
621 int forbid_play(void);
622 void server_main(int argc, char *argv[]);
623 
629 void enter_player_maplevel(object *op);
void command_speed(object *op, const char *params)
Definition: c_wiz.c:1660
void command_smile(object *op, const char *params)
Definition: c_chat.c:765
void spring_trap(object *trap, object *victim)
Definition: rune.c:205
void regenerate_rod(object *rod)
Definition: spell_util.c:804
int slow_living_by(object *op, const int speed_penalty)
Definition: attack.c:2191
void apply_by_living_below(object *pl)
Definition: apply.c:618
void clean_tmp_files(void)
Definition: main.c:336
void set_map_timeout(mapstruct *oldmap)
Definition: main.c:307
object * lookup_spell_by_name(object *op, const char *spname)
Definition: spell_util.c:451
void command_bounce(object *op, const char *params)
Definition: c_chat.c:754
Definition: player.h:92
int apply_special(object *who, object *op, int aflags)
Definition: apply.c:1082
int apply_manual(object *op, object *tmp, int aflag)
Definition: apply.c:510
const char * determine_god(object *op)
Definition: gods.c:106
void polymorph(object *op, object *who, int level)
Definition: spell_effect.c:376
void command_arrest(object *op, const char *params)
Definition: c_wiz.c:829
void show_skills(object *op, const char *search)
Definition: skill_util.c:836
void command_hiscore(object *op, const char *params)
Definition: c_misc.c:818
command_array_struct * find_plugin_command(const char *cmd, command_array_struct *command)
Definition: plugins.c:4711
void legacy_remove_force(object *op)
Definition: time.c:854
void command_east(object *op, const char *params)
Definition: c_move.c:57
int change_skill(object *who, object *new_skill, int flag)
Definition: skill_util.c:356
int friendly_fire(object *op, object *hitter)
Definition: attack.c:1822
void monster_do_say(const mapstruct *map, const char *message)
Definition: monster.c:2100
int move_player(object *op, int dir)
Definition: player.c:3014
int skill_ident(object *pl, object *skill)
Definition: skills.c:895
void command_yawn(object *op, const char *params)
Definition: c_chat.c:1260
int64_t calc_skill_exp(const object *who, const object *op, const object *skill)
Definition: skill_util.c:657
void enter_exit(object *op, object *exit_ob)
Definition: server.c:716
Definition: map.h:380
void roll_again(object *op)
Definition: player.c:1112
void command_prepare(object *op, const char *params)
Definition: c_range.c:63
void quest_start(player *pl, sstring quest_code, int state)
Definition: quest.c:1096
int cast_raise_dead_spell(object *op, object *caster, object *spell, int dir, const char *arg)
Definition: resurrection.c:181
void leave(player *pl, int draw_exit)
Definition: server.c:1197
int account_login(const char *account_name, const char *account_password)
Definition: account.c:333
void command_diff(object *op, const char *params)
Definition: c_wiz.c:2524
object * check_spell_known(object *op, const char *name)
Definition: spell_util.c:435
int check_name(player *me, const char *name)
Definition: login.c:162
void free_quest_definitions(void)
Definition: quest.c:1307
void command_quit(object *op, const char *params)
Definition: c_misc.c:1845
void command_bow(object *op, const char *params)
Definition: c_chat.c:930
void command_skills(object *op, const char *params)
Definition: c_wiz.c:1356
void remove_door(object *op)
Definition: time.c:37
int account_remove_player(const char *account_name, const char *player_name)
Definition: account.c:497
void monster_communicate(object *op, const char *txt)
Definition: monster.c:2182
void command_pout(object *op, const char *params)
Definition: c_chat.c:1073
int caster_level(const object *caster, const object *spell)
Definition: spell_util.c:233
void command_motd(object *op, const char *params)
Definition: c_misc.c:169
void command_strut(object *op, const char *params)
Definition: c_chat.c:1194
void register_all_ob_types(void)
Definition: ob_types.c:31
void receive_player_password(object *op)
Definition: c_misc.c:1905
void command_flip(object *op, const char *params)
Definition: c_chat.c:996
void do_forget_spell(object *op, const char *spell)
Definition: apply.c:432
void command_cast(object *op, const char *params)
Definition: c_range.c:50
int makes_invisible_to(object *pl, object *mon)
Definition: spell_effect.c:740
bool check_password(const char *typed, const char *crypted)
Definition: server.c:104
void shuffle_attack(object *op, int change_face)
Definition: spell_util.c:1081
int cure_disease(object *sufferer, object *caster, sstring skill)
Definition: disease.c:685
void command_overlay_save(object *op, const char *params)
Definition: c_wiz.c:588
int monster_can_see_enemy(object *op, object *enemy)
Definition: monster.c:2569
unsigned char uint8_t
Definition: win32.h:161
void command_title(object *op, const char *params)
Definition: c_misc.c:1997
static struct Command_Line_Options options[]
Definition: init.c:284
int cast_change_ability(object *op, object *caster, object *spell_ob, int dir, int silent)
int apply_auto(object *op)
Definition: main.c:214
void pets_follow_owner(object *ob, object *owner)
Definition: pets.c:293
void apply_handle_yield(object *tmp)
Definition: apply.c:125
Definition: race.h:12
void do_some_living(object *op)
Definition: player.c:3282
void command_dm(object *op, const char *params)
Definition: c_wiz.c:2120
void command_dump(object *op, const char *params)
Definition: c_wiz.c:1368
void drain_wand_charge(object *wand)
Definition: spell_util.c:829
void command_snicker(object *op, const char *params)
Definition: c_chat.c:1150
player * add_player(socket_struct *ns, int flags)
Definition: player.c:453
void command_stay(object *op, const char *params)
Definition: c_move.c:145
int player_arrest(object *who)
Definition: c_wiz.c:797
void cast_dust(object *op, object *throw_ob, int dir)
Definition: player.c:3908
void command_smirk(object *op, const char *params)
Definition: c_chat.c:1117
void command_grin(object *op, const char *params)
Definition: c_chat.c:919
void command_invisible(object *op, const char *params)
Definition: c_wiz.c:2132
int attack_ob(object *op, object *hitter)
Definition: attack.c:905
int push_ob(object *who, int dir, object *pusher)
Definition: move.c:417
void command_nod(object *op, const char *params)
Definition: c_chat.c:721
int account_change_password(const char *account_name, const char *current_password, const char *new_password)
Definition: account.c:658
int forbid_play(void)
Definition: server.c:1258
int monster_compute_path(object *source, object *target, int default_dir)
Definition: monster.c:393
object * mon
Definition: comet_perf.c:74
void command_freeze(object *op, const char *params)
Definition: c_wiz.c:753
void command_body(object *op, const char *params)
Definition: c_misc.c:128
int cast_bless(object *op, object *caster, object *spell_ob, int dir)
const char * account_get_account_for_char(const char *charname)
Definition: account.c:562
int identify_object_with_skill(object *tmp, object *pl, object *skill, int print_on_success)
Definition: skills.c:796
void party_set_password(partylist *party, const char *password)
Definition: party.c:275
void command_examine(object *op, const char *params)
Definition: c_object.c:1225
int move_disease(object *disease)
Definition: disease.c:180
int account_new(const char *account_name, const char *account_password)
Definition: account.c:408
void move_player_mover(object *op)
Definition: time.c:702
void pets_move(object *ob)
Definition: pets.c:329
void command_stack_pop(object *op, const char *params)
Definition: c_wiz.c:2439
void knowledge_give(player *pl, const char *marker, const object *book)
Definition: knowledge.c:1009
int save_player(object *op, int flag)
Definition: login.c:211
void command_sniff(object *op, const char *params)
Definition: c_chat.c:1161
partylist * party_get_next(const partylist *party)
Definition: party.c:229
void command_loadplugin(object *op, const char *params)
Definition: c_wiz.c:2362
void command_dumpallarchetypes(object *op, const char *params)
Definition: c_misc.c:938
void move_symptom(object *symptom)
Definition: disease.c:592
void fix_stopped_item(object *op, mapstruct *map, object *originator)
Definition: time.c:490
void command_use(object *op, const char *params)
Definition: c_object.c:2306
void enter_player_maplevel(object *op)
Definition: server.c:661
void examine_monster(object *op, object *tmp, int level)
Definition: c_object.c:1350
void key_roll_stat(object *op, char key)
Definition: player.c:1184
int cast_smite_spell(object *op, object *caster, int dir, object *spell)
Definition: spell_attack.c:546
void command_style_map_info(object *op, const char *params)
Definition: c_wiz.c:2665
void pick_up(object *op, object *alt)
Definition: c_object.c:446
void command_malloc(object *op, const char *params)
Definition: c_misc.c:726
void command_scream(object *op, const char *params)
Definition: c_chat.c:842
void spell_failure(object *op, int failure, int power, object *skill)
Definition: spell_util.c:1153
int check_pick(object *op)
Definition: player.c:1688
const char * party_get_leader(const partylist *party)
Definition: party.c:322
object * monster_check_enemy(object *npc, rv_vector *rv)
Definition: monster.c:71
int pick_lock(object *pl, int dir, object *skill)
Definition: skills.c:386
void command_learn_special_prayer(object *op, const char *params)
Definition: c_wiz.c:2307
int16_t SP_level_spellpoint_cost(object *caster, object *spell, int flags)
Definition: spell_util.c:277
void command_whereabouts(object *op, const char *params)
Definition: c_misc.c:418
void command_chuckle(object *op, const char *params)
Definition: c_chat.c:974
void command_reset(object *op, const char *params)
Definition: c_wiz.c:1813
int free_no_drop(object *op)
Definition: time.c:560
void command_glare(object *op, const char *params)
Definition: c_chat.c:1029
int cast_word_of_recall(object *op, object *caster, object *spell_ob)
Definition: spell_effect.c:899
void command_summon(object *op, const char *params)
Definition: c_wiz.c:874
void command_create(object *op, const char *params)
Definition: c_wiz.c:987
const char * party_get_password(const partylist *party)
Definition: party.c:263
void play_again(object *op)
Definition: player.c:878
void command_version(object *op, const char *params)
Definition: c_misc.c:1001
void legacy_move_hole(object *op)
Definition: time.c:862
void check_spell_expiry(object *spell)
Definition: spell_util.c:2053
int checkbanned(const char *login, const char *host)
Definition: ban.c:32
int SP_level_dam_adjust(const object *caster, const object *spob)
Definition: spell_util.c:328
void command_cringe(object *op, const char *params)
Definition: c_chat.c:1293
void blind_living(object *op, object *hitter, int dam)
Definition: attack.c:2312
const char * account_exists(const char *account_name)
Definition: account.c:309
void swap_below_max(const char *except_level)
Definition: swap.c:237
int stand_near_hostile(object *who)
Definition: player.c:4062
void accounts_load(void)
Definition: account.c:121
void command_gasp(object *op, const char *params)
Definition: c_chat.c:1018
void command_passwd(object *pl, const char *params)
Definition: c_misc.c:2185
void command_settings(object *op, const char *ignored)
Definition: c_wiz.c:2772
int roll_stat(void)
Definition: player.c:1014
player * find_player_options(const char *plname, int options, const mapstruct *map)
Definition: player.c:65
int trap_disarm(object *disarmer, object *trap, int risk, object *skill)
Definition: rune.c:432
player * find_player(const char *plname)
Definition: player.c:54
int apply_can_apply_object(const object *who, const object *op)
Definition: apply.c:942
void party_leave(object *op)
Definition: party.c:104
int verify_player(const char *name, char *password)
Definition: login.c:109
Definition: living.h:35
int jump(object *pl, int dir, object *skill)
Definition: skills.c:658
int monster_move(object *op)
Definition: monster.c:699
object * stop_item(object *op)
Definition: time.c:450
void command_insert_into(object *op, const char *params)
Definition: c_wiz.c:2588
void command_wimpy(object *op, const char *params)
Definition: c_misc.c:2090
int remove_trap(object *op, object *skill)
Definition: skills.c:1283
void command_wave(object *op, const char *params)
Definition: c_chat.c:1227
void party_remove(partylist *party)
Definition: party.c:165
void command_abil(object *op, const char *params)
Definition: c_wiz.c:1747
void fix_weight(void)
Definition: player.c:3871
void command_fire_stop(object *op, const char *params)
Definition: c_new.c:208
void account_char_free(Account_Char *chars)
Definition: account_char.c:334
int create_bomb(object *op, object *caster, int dir, object *spell)
Definition: spell_attack.c:447
void dead_player(object *op)
Definition: resurrection.c:294
void command_spit(object *op, const char *params)
Definition: c_chat.c:1183
const object * find_god(const char *name)
Definition: gods.c:80
void cone_drop(object *op)
Definition: spell_attack.c:265
int apply_race_and_class(object *op, archetype *race, archetype *opclass, living *stats)
Definition: player.c:1450
void legacy_apply_container(object *op, object *sack)
Definition: apply.c:1689
int legal_range(object *op, int r)
Definition: c_range.c:264
void command_search(object *op, const char *params)
Definition: c_object.c:147
int player_can_view(object *pl, object *op)
Definition: player.c:4130
int path_to_player(object *mon, object *pl, unsigned mindiff)
Definition: player.c:629
void command_dance(object *op, const char *params)
Definition: c_chat.c:732
void free_quest(void)
Definition: quest.c:1289
void command_language(object *op, const char *params)
Definition: c_misc.c:85
int reflwall(mapstruct *m, int x, int y, object *sp_op)
Definition: spell_util.c:511
void pets_terminate_all(object *owner)
Definition: pets.c:231
int recharge(object *op, object *caster, object *spell_ob)
Definition: spell_effect.c:79
void command_quest(object *op, const char *params)
Definition: quest.c:1154
int swap_map(mapstruct *map)
Definition: swap.c:135
Definition: object.h:465
void command_party(object *op, const char *params)
Definition: c_party.c:116
void command_stats(object *op, const char *params)
Definition: c_wiz.c:1690
int plugin_event_say(object *npc, talk_info *talk)
Definition: plugins.c:379
void command_players(object *op, const char *params)
Definition: c_misc.c:1149
void command_think(object *op, const char *params)
Definition: c_chat.c:1304
void command_stack_list(object *op, const char *params)
Definition: c_wiz.c:2469
int cast_cone(object *op, object *caster, int dir, object *spell)
Definition: spell_attack.c:297
void check_active_maps(void)
Definition: swap.c:192
void command_fire(object *op, const char *params)
Definition: c_new.c:187
void command_remove(object *op, const char *params)
Definition: c_wiz.c:1523
void cleanup(void)
Definition: server.c:1154
void command_slap(object *op, const char *params)
Definition: c_chat.c:1106
int cast_create_food(object *op, object *caster, object *spell_ob, int dir, const char *stringarg)
Definition: spell_effect.c:605
void dump_quests(void)
Definition: quest.c:1280
void command_reply(object *op, const char *params)
Definition: c_chat.c:335
void command_gsay(object *op, const char *params)
Definition: c_party.c:71
void hiscore_display(object *op, int max, const char *match)
Definition: hiscore.c:387
void command_unarmed_skill(object *op, const char *params)
Definition: c_misc.c:1300
void check_bullet(object *op)
Definition: spell_attack.c:217
void get_name(object *op)
Definition: player.c:854
void command_peaceful(object *op, const char *params)
Definition: c_misc.c:2073
void command_clap(object *op, const char *params)
Definition: c_chat.c:941
void command_say(object *op, const char *params)
Definition: c_chat.c:34
void command_strings(object *op, const char *params)
Definition: c_misc.c:774
void command_brace(object *op, const char *params)
Definition: c_misc.c:2121
void pets_control_golem(object *op, int dir)
Definition: pets.c:648
int use_alchemy(object *op)
Definition: alchemy.c:1020
int apply_check_weapon_power(const object *who, int improves)
Definition: apply.c:1057
void command_whistle(object *op, const char *params)
Definition: c_chat.c:1238
void command_cough(object *op, const char *params)
Definition: c_chat.c:985
int probe(object *op, object *caster, object *spell_ob, int dir, int level)
Definition: spell_effect.c:683
void display_who_entry(object *op, player *pl, const char *format)
Definition: c_misc.c:574
int trap_show(object *trap, object *where)
Definition: rune.c:407
void apply_changes_to_player(object *pl, object *change, int limit_stats)
Definition: apply.c:1581
void knowledge_item_can_be_used_alchemy(object *op, const object *item)
Definition: knowledge.c:1342
void command_invoke(object *op, const char *params)
Definition: c_range.c:38
int move_to(object *op, int x, int y)
Definition: move.c:545
int cast_item_curse_or_curse(object *op, object *caster, object *spell_ob)
void flush_old_maps(void)
Definition: swap.c:289
int cast_curse(object *op, object *caster, object *spell_ob, int dir)
Definition: spell_attack.c:800
int skill_throw(object *op, object *part, int dir, object *skill)
Definition: skills.c:2244
void command_fix_me(object *op, const char *params)
Definition: c_misc.c:1136
void command_dmtell(object *op, const char *params)
Definition: c_chat.c:319
int fire_swarm(object *op, object *caster, object *spell, int dir)
void command_twiddle(object *op, const char *params)
Definition: c_chat.c:1216
void command_shiver(object *op, const char *params)
Definition: c_chat.c:1084
int apply_by_living(object *pl, object *op, int aflag, int quiet)
Definition: apply.c:557
int tick_length(float seconds)
Definition: time.c:378
void command_bowmode(object *op, const char *params)
Definition: c_misc.c:1239
void do_hidden_move(object *op)
Definition: player.c:4021
void confuse_living(object *op, object *hitter, int dam)
Definition: attack.c:2273
void kill_player(object *op, const object *killer)
Definition: player.c:3461
void command_goto(object *op, const char *params)
Definition: c_wiz.c:729
int account_is_logged_in(const char *name)
Definition: account.c:630
void command_addexp(object *op, const char *params)
Definition: c_wiz.c:1604
void accounts_save(void)
Definition: account.c:267
int detect_curse_on_item(object *pl, object *tmp, object *skill)
Definition: skills.c:695
void command_wizpass(object *op, const char *params)
Definition: c_misc.c:854
int cast_create_town_portal(object *op, object *caster, object *spell, int dir)
void command_tell(object *op, const char *params)
Definition: c_chat.c:307
void key_change_class(object *op, char key)
Definition: player.c:1260
int knowledge_player_knows(const player *pl, const char *knowledge)
Definition: knowledge.c:1306
signed short int16_t
Definition: win32.h:160
void command_search_items(object *op, const char *params)
Definition: c_object.c:2032
void monster_npc_say(object *npc, const char *cp)
Definition: monster.c:2301
racelink * find_racelink(const char *name)
Definition: init.c:1397
int SP_level_wc_adjust(const object *caster, const object *spob)
Definition: spell_util.c:403
void command_sneeze(object *op, const char *params)
Definition: c_chat.c:1139
object * find_target_for_friendly_spell(object *op, int dir)
Definition: spell_util.c:856
void drain_rod_charge(object *rod)
Definition: spell_util.c:819
int hide(object *op, object *skill)
Definition: skills.c:491
void command_setgod(object *op, const char *params)
Definition: c_wiz.c:416
void command_laugh(object *op, const char *params)
Definition: c_chat.c:787
void receive_party_password(object *op)
Definition: c_party.c:49
void command_hug(object *op, const char *params)
Definition: c_chat.c:875
int monster_stand_in_light(object *op)
Definition: monster.c:2526
void key_confirm_quit(object *op, char key)
Definition: player.c:1562
void monster_npc_call_help(object *op)
Definition: monster.c:1831
void command_run(object *op, const char *params)
Definition: c_new.c:152
void command_archs(object *op, const char *params)
Definition: c_misc.c:806
void get_password(object *op)
Definition: player.c:866
void monster_check_apply_all(object *monster)
Definition: monster.c:1821
Definition: map.h:276
object * hit_with_arrow(object *op, object *victim)
Definition: attack.c:947
int plugins_init_plugin(const char *libfile)
Definition: plugins.c:611
void command_shake(object *op, const char *params)
Definition: c_chat.c:809
void player_set_state(player *pl, uint8_t state)
Definition: player.c:4454
Account_Char * account_char_remove(Account_Char *chars, const char *pl_name)
Definition: account_char.c:298
object * get_nearest_player(object *mon)
Definition: player.c:520
int pets_should_arena_attack(object *pet, object *owner, object *target)
Definition: pets.c:1152
void account_password(char *buf, int len, socket_struct *ns)
Definition: request.c:2879
int cast_create_obj(object *op, object *new_op, int dir)
Definition: spell_util.c:535
socket_struct * account_get_logged_in_init_socket(const char *name)
Definition: account.c:608
void party_send_message(object *op, const char *message)
Definition: party.c:305
int summon_hostile_monsters(object *op, int n, const char *monstername)
Definition: spell_util.c:1047
int perceive_self(object *op)
Definition: spell_effect.c:995
int sack_can_hold(const object *pl, const object *sack, const object *op, uint32_t nrof)
Definition: c_object.c:257
void command_rotateshoottype(object *op, const char *params)
Definition: c_range.c:368
int SP_level_duration_adjust(const object *caster, const object *spob)
Definition: spell_util.c:353
void command_rskill(object *pl, const char *params)
Definition: c_object.c:115
void command_throw(object *op, const char *params)
Definition: c_object.c:174
void command_applymode(object *op, const char *params)
Definition: c_misc.c:1198
int pets_summon_golem(object *op, object *caster, int dir, object *spob)
Definition: pets.c:672
void knowledge_read(player *pl, object *book)
Definition: knowledge.c:1064
void set_first_map(object *op)
Definition: player.c:398
void command_chat(object *op, const char *params)
Definition: c_chat.c:220
void read_map_log(void)
Definition: swap.c:70
int cast_light(object *op, object *caster, object *spell, int dir)
void command_northeast(object *op, const char *params)
Definition: c_move.c:79
void command_stack_push(object *op, const char *params)
Definition: c_wiz.c:2451
void command_apply(object *op, const char *params)
Definition: c_object.c:195
void command_cointoss(object *op, const char *params)
Definition: c_chat.c:64
void command_dumpallmaps(object *op, const char *params)
Definition: c_misc.c:975
void command_shout(object *op, const char *params)
Definition: c_chat.c:209
long seconds(void)
Definition: time.c:344
int write_mark(object *op, object *spell, const char *msg)
void command_knowledge(object *pl, const char *params)
Definition: knowledge.c:1221
player * account_get_logged_in_player(const char *name)
Definition: account.c:587
Account_Char * account_char_load(const char *account_name)
Definition: account_char.c:80
void command_wizcast(object *op, const char *params)
Definition: c_misc.c:884
void spell_effect(object *spob, int x, int y, mapstruct *map, object *originator)
Definition: spell_util.c:183
void command_showpets(object *op, const char *params)
Definition: c_misc.c:1400
int hit_map(object *op, int dir, uint32_t type, int full_hit)
Definition: attack.c:322
void command_learn_spell(object *op, const char *params)
Definition: c_wiz.c:2295
int is_true_undead(object *op)
Definition: player.c:3957
void legacy_animate_trigger(object *op)
Definition: time.c:858
int execute_global_event(int eventcode,...)
Definition: main.c:369
void command_blush(object *op, const char *params)
Definition: c_chat.c:952
void command_inventory(object *op, const char *params)
Definition: c_wiz.c:1326
int steal(object *op, int dir, object *skill)
Definition: skills.c:276
int teleport(object *teleporter, uint8_t tele_type, object *user)
Definition: move.c:188
int infect_object(object *victim, object *disease, int force)
Definition: disease.c:317
int monster_can_detect_enemy(object *op, object *enemy, rv_vector *rv)
Definition: monster.c:2386
void command_party_rejoin(object *op, const char *params)
Definition: c_party.c:333
void pets_remove_all(void)
Definition: pets.c:257
void confirm_password(object *op)
Definition: player.c:980
void command_lock_item(object *op, const char *params)
Definition: c_object.c:2263
void command_teleport(object *op, const char *params)
Definition: c_wiz.c:921
void hiscore_check(object *op, int quiet)
Definition: hiscore.c:303
void remove_locked_door(object *op)
Definition: time.c:63
void paralyze_living(object *op, int dam)
Definition: attack.c:2356
int do_skill(object *op, object *part, object *skill, int dir, const char *string)
Definition: skill_util.c:428
int cftimer_destroy(int id)
Definition: timers.c:128
int move_ob(object *op, int dir, object *originator)
Definition: move.c:58
player * get_player(player *p)
Definition: player.c:280
void do_learn_spell(object *op, object *spell, int special_prayer)
Definition: apply.c:391
void cftimer_init(void)
Definition: timers.c:157
int plugins_remove_plugin(const char *id)
Definition: plugins.c:702
void examine(object *op, object *tmp)
Definition: c_object.c:1438
void execute_newserver_command(object *pl, char *command)
Definition: c_new.c:83
int trap_see(object *op, object *trap)
Definition: rune.c:380
void player_unready_range_ob(player *pl, object *ob)
Definition: player.c:4436
int min_casting_level(const object *caster, const object *spell)
Definition: spell_util.c:203
int user_event(object *op, object *activator, object *third, const char *message, int fix)
Definition: plugins.c:308
int op_on_battleground(object *op, int *x, int *y, archetype **trophy)
Definition: player.c:4228
int cast_detection(object *op, object *caster, object *spell)
void cast_magic_storm(object *op, object *tmp, int lvl)
Definition: spell_effect.c:44
void command_west(object *op, const char *params)
Definition: c_move.c:134
object * find_marked_object(object *op)
Definition: c_object.c:1256
partylist * party_find(const char *partyname)
Definition: party.c:147
void command_snap(object *op, const char *params)
Definition: c_chat.c:1128
void tick_the_clock(void)
Definition: weather.c:96
void command_debug(object *op, const char *params)
Definition: c_misc.c:830
void knowledge_show_monster_detail(object *op, const char *name)
Definition: knowledge.c:1536
void do_harvest(object *pl, int dir, object *skill)
Definition: c_misc.c:2208
void command_snore(object *op, const char *params)
Definition: c_chat.c:1172
int process_object(object *op)
Definition: time.c:794
void init(int argc, char **argv)
Definition: init.c:995
void command_lick(object *op, const char *params)
Definition: c_chat.c:1062
void command_resistances(object *op, const char *params)
Definition: c_misc.c:1513
void command_follow(object *op, const char *params)
Definition: c_wiz.c:2705
int cast_wonder(object *op, object *caster, int dir, object *spell_ob)
Definition: spell_effect.c:961
void command_thank(object *op, const char *params)
Definition: c_chat.c:1205
void command_dumpfriendlyobjects(object *op, const char *params)
Definition: c_misc.c:926
void command_listen(object *op, const char *params)
Definition: c_misc.c:1014
void cleanupPlugins(void)
Definition: plugins.c:4782
void process_events(void)
Definition: server.c:981
void fix_luck(void)
Definition: player.c:3887
int cast_invisible(object *op, object *caster, object *spell_ob)
Definition: spell_effect.c:787
void emergency_save(int flag)
Definition: main.c:333
partylist * party_get_first(void)
Definition: party.c:217
int write_rune(object *op, object *caster, object *spell, int dir, const char *runename)
Definition: rune.c:50
void knowledge_process_incremental(void)
Definition: knowledge.c:1447
void delete_character(const char *name)
Definition: login.c:86
int cast_consecrate(object *op, object *caster, object *spell)
void plugins_display_list(object *op)
Definition: plugins.c:744
void give_initial_items(object *pl, treasurelist *items)
Definition: player.c:762
void command_kill_pets(object *op, const char *params)
Definition: c_misc.c:2145
void put_object_in_sack(object *op, object *sack, object *tmp, uint32_t nrof)
Definition: c_object.c:678
void command_forget_spell(object *op, const char *params)
Definition: c_wiz.c:2320
int quest_get_player_state(player *pl, sstring quest_code)
Definition: quest.c:1076
void command_unloadplugin(object *op, const char *params)
Definition: c_wiz.c:2396
void command_purge_quest(object *op, const char *param)
Definition: c_wiz.c:2733
void command_sigh(object *op, const char *params)
Definition: c_chat.c:853
int fire_bow(object *op, object *arrow, int dir, int wc_mod, int16_t sx, int16_t sy)
Definition: player.c:2166
int ok_to_put_more(mapstruct *m, int16_t x, int16_t y, object *op, uint32_t immune_stop)
Definition: spell_util.c:571
void explode_bullet(object *op)
Definition: spell_attack.c:121
int cast_transfer(object *op, object *caster, object *spell, int dir)
void quest_send_initial_states(player *pl)
Definition: quest.c:1346
void drop(object *op, object *tmp)
Definition: c_object.c:910
int players_on_map(mapstruct *m, int show_all)
Definition: swap.c:271
void skill_attack(object *tmp, object *pl, int dir, const char *string, object *skill)
Definition: skill_util.c:1239
void knowledge_first_player_save(player *pl)
Definition: knowledge.c:1431
void command_north(object *op, const char *params)
Definition: c_move.c:68
int dimension_door(object *op, object *caster, object *spob, int dir)
void command_poke(object *op, const char *params)
Definition: c_chat.c:897
void command_help(object *op, const char *params)
Definition: c_misc.c:1706
int handle_newcs_player(object *op)
Definition: player.c:3096
void fire(object *op, int dir)
Definition: player.c:2459
void map_info(object *op, const char *search)
Definition: c_misc.c:45
void command_maps(object *op, const char *params)
Definition: c_misc.c:762
signed __int64 int64_t
Definition: win32.h:168
void save_throw_object(object *op, uint32_t type, object *originator)
Definition: attack.c:182
int cast_destruction(object *op, object *caster, object *spell_ob)
Definition: spell_attack.c:707
void command_free(object *op, const char *params)
Definition: c_wiz.c:1570
static const flag_definition flags[]
void command_cry(object *op, const char *params)
Definition: c_chat.c:886
void inventory(object *op, object *inv)
Definition: c_object.c:1708
void move_firewall(object *op)
Definition: main.c:330
Account_Char * account_char_add(Account_Char *chars, player *pl)
Definition: account_char.c:194
void receive_player_name(object *op)
Definition: c_misc.c:1887
void command_dropall(object *op, const char *params)
Definition: c_object.c:972
void command_cackle(object *op, const char *params)
Definition: c_chat.c:776
int learn_skill(object *pl, object *scroll)
Definition: skill_util.c:749
const char * sstring
Definition: global.h:40
void command_ssdumptable(object *op, const char *params)
Definition: c_misc.c:950
void remove_unpaid_objects(object *op, object *env, int free_items)
Definition: player.c:3217
unsigned int uint32_t
Definition: win32.h:162
void dump_spells(void)
Definition: spell_util.c:146
void check_spells(void)
Definition: spell_util.c:109
int set_object_face_main(object *op)
Definition: apply.c:149
void store_spell_expiry(object *spell)
Definition: spell_util.c:2028
void server_main(int argc, char *argv[])
Definition: server.c:1418
void knowledge_send_known(player *pl)
Definition: knowledge.c:1411
int tailor_god_spell(object *spellop, object *caster)
Definition: gods.c:1318
int account_check_string(const char *str)
Definition: account.c:369
void command_empty(object *op, const char *params)
Definition: c_object.c:1186
int account_link(const char *account_name, const char *player_name)
Definition: account.c:461
int pray(object *pl, object *skill)
Definition: skills.c:1356
void command_sulk(object *op, const char *params)
Definition: c_chat.c:864
void command_banish(object *op, const char *params)
Definition: c_wiz.c:522
void command_run_stop(object *op, const char *params)
Definition: c_new.c:175
int cast_cause_disease(object *op, object *caster, object *spell, int dir)
void command_growl(object *op, const char *params)
Definition: c_chat.c:831
void command_dmhide(object *op, const char *params)
Definition: c_wiz.c:2424
int detect_magic_on_item(object *pl, object *tmp, object *skill)
Definition: skills.c:744
int cast_heal(object *op, object *caster, object *spell, int dir)
void quest_set_player_state(player *pl, sstring quest_code, int state)
Definition: quest.c:1132
void command_southeast(object *op, const char *params)
Definition: c_move.c:112
void command_giggle(object *op, const char *params)
Definition: c_chat.c:798
void pray_at_altar(object *pl, object *altar, object *skill)
Definition: gods.c:303
archetype * determine_holy_arch(const object *god, const char *type)
Definition: gods.c:742
object * find_random_spell_in_ob(object *ob, const char *skill)
Definition: spell_util.c:48
int become_follower(object *op, const object *new_god)
Definition: gods.c:473
void command_burp(object *op, const char *params)
Definition: c_chat.c:963
int cast_create_missile(object *op, object *caster, object *spell, int dir, const char *stringarg)
Definition: spell_effect.c:498
int SP_level_range_adjust(const object *caster, const object *spob)
Definition: spell_util.c:379
player * find_player_socket(const socket_struct *ns)
Definition: player.c:118
void command_mapinfo(object *op, const char *params)
Definition: c_misc.c:738
int cftimer_create(int id, long delay, object *ob, int mode)
Definition: timers.c:97
void command_time(object *op, const char *params)
Definition: c_misc.c:794
void party_obsolete_parties(void)
Definition: party.c:236
int onoff_value(const char *line)
Definition: c_misc.c:1808
object * monster_find_throw_ob(object *op)
Definition: monster.c:2347
int mood_change(object *op, object *caster, object *spell)
Definition: spell_attack.c:904
void command_take(object *op, const char *params)
Definition: c_object.c:585
void recursive_roll(object *op, int dir, object *pusher)
Definition: move.c:276
void set_spell_skill(object *op, object *caster, object *spob, object *dest)
Definition: spell_util.c:94
void command_south(object *op, const char *params)
Definition: c_move.c:101
int remove_curse(object *op, object *caster, object *spell)
void command_rename_item(object *op, const char *params)
Definition: c_object.c:2077
int apply_container(object *op, object *sack)
Definition: apply.c:216
void command_groan(object *op, const char *params)
Definition: c_chat.c:1040
void clear_skill(object *who)
Definition: skill_util.c:395
void account_char_save(const char *account, Account_Char *chars)
Definition: account_char.c:146
int cftimer_find_free_id(void)
Definition: timers.c:144
void command_mon_aggr(object *op, const char *params)
Definition: c_wiz.c:1396
void command_save(object *op, const char *params)
Definition: c_misc.c:2048
int cast_earth_to_dust(object *op, object *caster, object *spell_ob)
Definition: spell_effect.c:848
void destroy_object(object *op)
Definition: login.c:190
void command_stack_clear(object *op, const char *params)
Definition: c_wiz.c:2499
void command_northwest(object *op, const char *params)
Definition: c_move.c:90
void quest_first_player_save(player *pl)
Definition: quest.c:1407
int singing(object *pl, int dir, object *skill)
Definition: skills.c:1119
void check_login(object *op, int check_pass)
Definition: login.c:494
void command_kiss(object *op, const char *params)
Definition: c_chat.c:743
void command_listplugins(object *op, const char *params)
Definition: c_wiz.c:2348
void command_dumpbelow(object *op, const char *params)
Definition: c_wiz.c:2751
void command_shutdown(object *op, const char *params)
Definition: c_wiz.c:677
void command_overlay_reset(object *op, const char *params)
Definition: c_wiz.c:608
void current_region_info(object *op)
Definition: c_misc.c:341
void command_disarm(object *op, const char *params)
Definition: c_object.c:159
void current_map_info(object *op)
Definition: c_misc.c:363
void check_physically_infect(object *victim, object *hitter)
Definition: disease.c:663
int fire_bolt(object *op, object *caster, int dir, object *spob)
Definition: spell_attack.c:61
void party_join(object *op, partylist *party)
Definition: party.c:84
int transport_can_hold(const object *transport, const object *op, int nrof)
Definition: apply.c:54
int move_object(object *op, int dir)
Definition: move.c:39
void command_bleed(object *op, const char *params)
Definition: c_chat.c:1282
void command_orcknuckle(object *op, const char *params)
Definition: c_chat.c:107
int execute_event(object *op, int eventcode, object *activator, object *third, const char *message, int fix)
Definition: main.c:364
void monster_check_doors(object *op, mapstruct *m, int x, int y)
Definition: monster.c:2086
void scroll_failure(object *op, int failure, int power)
Definition: apply.c:1509
void command_possess(object *op, const char *params)
Definition: c_wiz.c:1422
void init_commands(void)
Definition: commands.c:286
void apply_auto_fix(mapstruct *m)
Definition: main.c:261
void cftimer_process_timers(void)
Definition: timers.c:44
int find_traps(object *pl, object *skill)
Definition: skills.c:1212
void command_nowiz(object *op, const char *params)
Definition: c_wiz.c:1986
int hideability(object *ob)
Definition: player.c:3980
void list_players(object *op, region *reg, partylist *party)
Definition: c_misc.c:484
void get_who_escape_code_value(char *return_val, int size, const char letter, player *pl)
Definition: c_misc.c:630
void send_news(const object *op)
Definition: player.c:201
void apply_builder_remove(object *pl, int dir)
Definition: build_map.c:889
void receive_play_again(object *op, char key)
Definition: player.c:930
int fire_arch_from_position(object *op, object *caster, int16_t x, int16_t y, int dir, object *spell)
Definition: spell_util.c:672
void command_printlos(object *op, const char *params)
Definition: c_misc.c:987
void monster_check_earthwalls(object *op, mapstruct *m, int x, int y)
Definition: monster.c:2070
void command_mark(object *op, const char *params)
Definition: c_object.c:1303
void command_hide(object *op, const char *params)
Definition: c_wiz.c:388
int party_confirm_password(const partylist *party, const char *password)
Definition: party.c:290
void send_rules(const object *op)
Definition: player.c:165
int alchemy(object *op, object *caster, object *spell_ob)
void link_player_skills(object *op)
Definition: skill_util.c:112
int playername_ok(const char *cp)
Definition: player.c:252
void accounts_clear(void)
Definition: account.c:112
void initPlugins(void)
Definition: plugins.c:4732
void counterspell(object *op, int dir)
void command_hiccup(object *op, const char *params)
Definition: c_chat.c:1051
int animate_weapon(object *op, object *caster, object *spell, int dir)
void command_frown(object *op, const char *params)
Definition: c_chat.c:1007
int use_oratory(object *pl, int dir, object *skill)
Definition: skills.c:965
void monster_do_living(object *op)
Definition: monster.c:564
void command_rules(object *op, const char *params)
Definition: c_misc.c:181
void dragon_ability_gain(object *who, int atnr, int level)
Definition: main.c:345
void command_pickup(object *op, const char *params)
Definition: c_object.c:1898
void make_visible(object *op)
Definition: player.c:3937
void roll_stats(object *op)
Definition: player.c:1038
void free_knowledge(void)
Definition: knowledge.c:1288
int pets_summon_object(object *op, object *caster, object *spell_ob, int dir, const char *stringarg)
Definition: pets.c:935
int transfer_ob(object *op, int x, int y, int randomly, object *originator)
Definition: move.c:144
char ** account_get_players_for_account(const char *account_name)
Definition: account.c:543
void command_sound(object *op, const char *params)
Definition: c_misc.c:1865
void command_loadtest(object *op, const char *params)
Definition: c_wiz.c:305
object * find_key(object *pl, object *container, object *door)
Definition: player.c:2531
void command_cast_spell(object *op, const char *params, char command)
Definition: c_range.c:159
int cast_change_map_lightlevel(object *op, object *caster, object *spell)
void rod_adjust(object *rod)
Definition: main.c:361
void command_patch(object *op, const char *params)
Definition: c_wiz.c:1483
void apply_map_builder(object *pl, int dir)
Definition: build_map.c:959
void knowledge_send_info(socket_struct *ns)
Definition: knowledge.c:1382
void set_darkness_map(mapstruct *m)
Definition: main.c:348
object * find_skill_by_number(object *who, int skillno)
Definition: main.c:351
void command_dumpallobjects(object *op, const char *params)
Definition: c_misc.c:914
Definition: map.h:325
object * pets_get_enemy(object *pet, rv_vector *rv)
Definition: pets.c:57
partylist * party_form(object *op, const char *partyname)
Definition: party.c:40
int use_skill(object *op, const char *string)
Definition: skill_util.c:923
void command_southwest(object *op, const char *params)
Definition: c_move.c:123
void command_afk(object *op, const char *params)
Definition: c_misc.c:706
int should_director_abort(const object *op, const object *victim)
Definition: apply.c:68
void free_server(void)
Definition: init.c:1035
void command_whereami(object *op, const char *params)
Definition: c_misc.c:750
void command_news(object *op, const char *params)
Definition: c_misc.c:193
void command_accuse(object *op, const char *params)
Definition: c_chat.c:908
int spell_find_dir(mapstruct *m, int x, int y, object *exclude)
Definition: spell_util.c:929
void command_usekeys(object *op, const char *params)
Definition: c_misc.c:1472
int hit_player(object *op, int dam, object *hitter, uint32_t type, int full_hit)
Definition: attack.c:1871
void move_player_attack(object *op, int dir)
Definition: player.c:2683
void hiscore_init(void)
Definition: hiscore.c:285
int write_on_item(object *pl, const char *params, object *skill)
Definition: skills.c:1735
void command_shrug(object *op, const char *params)
Definition: c_chat.c:1095
void command_toggle_shout(object *op, const char *params)
Definition: c_wiz.c:633
void enter_player_savebed(object *op)
Definition: server.c:128
object * monster_find_nearest_living_creature(object *npc)
Definition: monster.c:152
void command_uskill(object *pl, const char *params)
Definition: c_object.c:98
void command_dumpmap(object *op, const char *params)
Definition: c_misc.c:962
char const * newhash(char const *password)
void do_goto(object *op, const char *name, int x, int y)
Definition: c_move.c:151
object * drop_object(object *op, object *tmp, uint32_t nrof)
Definition: c_object.c:814
void command_beg(object *op, const char *params)
Definition: c_chat.c:1271
player * find_player_partial_name(const char *plname)
Definition: player.c:109
void meditate(object *pl, object *skill)
Definition: skills.c:1404
int quest_was_completed(player *pl, sstring quest_code)
Definition: quest.c:1142
object * find_skill_by_name(object *who, const char *name)
Definition: skill_util.c:213
void command_purge_quest_definitions(object *op, const char *param)
Definition: c_wiz.c:2738
void command_petmode(object *op, const char *params)
Definition: c_misc.c:1356
void init_ob_methods(void)
Definition: ob_methods.c:35
int cast_identify(object *op, object *caster, object *spell)
void command_me(object *op, const char *params)
Definition: c_chat.c:47
void change_object(object *op)
Definition: time.c:587
void pets_move_golem(object *op)
Definition: pets.c:534
int check_race_and_class(living *stats, archetype *race, archetype *opclass)
Definition: player.c:1400
void command_statistics(object *pl, const char *params)
Definition: c_misc.c:1045
int get_party_password(object *op, partylist *party)
Definition: player.c:996
int dispel_rune(object *op, object *caster, object *spell, object *skill, int dir)
Definition: rune.c:299
void command_kick(object *op, const char *params)
Definition: c_wiz.c:576
int create_aura(object *op, object *caster, object *spell)
void command_who(object *op, const char *params)
Definition: c_misc.c:557
object * fix_stopped_arrow(object *op)
Definition: time.c:507
int cast_spell(object *op, object *caster, int dir, object *spell_ob, char *stringarg)
Definition: spell_util.c:1471
void command_drop(object *op, const char *params)
Definition: c_object.c:1096
void command_puke(object *op, const char *params)
Definition: c_chat.c:820
int cast_polymorph(object *op, object *caster, object *spell_ob, int dir)
Definition: spell_effect.c:430
void init_skills(void)
Definition: skill_util.c:67
void command_wink(object *op, const char *params)
Definition: c_chat.c:1249
int magic_wall(object *op, object *caster, int dir, object *spell_ob)
void display_motd(const object *op)
Definition: player.c:134
int confirm_party_password(object *op)
Definition: c_party.c:36