Crossfire Server, Trunk  R20513
commands.c
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 1999-2014 Mark Wedel and the Crossfire Development Team
5  * Copyright (c) 1992 Frank Tore Johansen
6  *
7  * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
8  * welcome to redistribute it under certain conditions. For details, please
9  * see COPYING and LICENSE.
10  *
11  * The authors can be reached via e-mail at <crossfire@metalforge.org>.
12  */
13 
19 #include "global.h"
20 
21 #include <ctype.h>
22 #include <stdlib.h>
23 #include <string.h>
24 
25 #include "commands.h"
26 #include "sproto.h"
27 
28 /* Added times to all the commands. However, this was quickly done,
29  * and probably needs more refinements. All socket and DM commands
30  * take 0 time.
31  */
32 
37  { "afk", command_afk, 0.0 },
38  { "apply", command_apply, 1.0 }, /* should be variable */
39  { "applymode", command_applymode, 1.0 }, /* should be variable */
40  { "body", command_body, 0.0 },
41  { "bowmode", command_bowmode, 0.0 },
42  { "brace", command_brace, 0.0 },
43  { "cast", command_cast, 0.2 }, /* Is this right? */
44  { "disarm", command_disarm, 1.0 },
45  { "dm", command_dm, 0.0 },
46  { "dmhide", command_dmhide, 0.0 }, /* Like dm, but don't tell a dm arrived, hide player */
47  { "drop", command_drop, 1.0 },
48  { "dropall", command_dropall, 1.0 },
49  { "empty", command_empty, 1.0 },
50  { "examine", command_examine, 0.5 },
51  { "fix_me", command_fix_me, 0.0 },
52  { "forget_spell", command_forget_spell, 0.0 },
53  { "get", command_take, 1.0 },
54  { "help", command_help, 0.0 },
55  { "hiscore", command_hiscore, 0.0 },
56  { "inventory", command_inventory, 0.0 },
57  { "invoke", command_invoke, 1.0 },
58  { "killpets", command_kill_pets, 0.0 },
59  { "language", command_language, 0.0 },
60  { "listen", command_listen, 0.0 },
61  { "lock", command_lock_item, 0.0 },
62  { "maps", command_maps, 0.0 },
63  { "mapinfo", command_mapinfo, 0.0 },
64  { "mark", command_mark, 0.0 },
65  { "motd", command_motd, 0.0 },
66  { "news", command_news, 0.0 },
67  { "party", command_party, 0.0 },
68  { "party_rejoin", command_party_rejoin, 0.0 },
69  { "passwd", command_passwd, 0.0 },
70  { "peaceful", command_peaceful, 0.0 },
71  { "petmode", command_petmode, 0.0 },
72  { "pickup", command_pickup, 1.0 },
73  { "prepare", command_prepare, 1.0 },
74  { "printlos", command_printlos, 0.0 },
75  { "quit", command_quit, 0.0 },
76  { "ready_skill", command_rskill, 1.0 },
77  { "rename", command_rename_item, 0.0 },
78  { "resistances", command_resistances, 0.0 },
79  { "rotateshoottype", command_rotateshoottype, 0.0 },
80  { "rules", command_rules, 0.0 },
81  { "save", command_save, 0.0 },
82  { "skills", command_skills, 0.0 }, /* shows player list of skills */
83  { "use_skill", command_uskill, 1.0 },
84  { "search", command_search, 1.0 },
85  { "search-items", command_search_items, 0.0 },
86  { "showpets", command_showpets, 1.0 },
87  { "sound", command_sound, 0.0 },
88  { "statistics", command_statistics, 0.0 },
89  { "take", command_take, 1.0 },
90  { "throw", command_throw, 1.0 },
91  { "time", command_time, 0.0 },
92  { "title", command_title, 0.0 },
93  { "use", command_use, 1.0 },
94  { "usekeys", command_usekeys, 0.0 },
95  { "whereabouts", command_whereabouts, 0.0 },
96  { "whereami", command_whereami, 0.0 },
97  { "unarmed_skill", command_unarmed_skill, 0.0 },
98 #ifdef DEBUG_MALLOC_LEVEL
99  { "verify", command_malloc_verify, 0.0 },
100 #endif
101  { "version", command_version, 0.0 },
102  { "wimpy", command_wimpy, 0.0 },
103  { "who", command_who, 0.0 },
104  /*
105  * directional commands
106  */
107  { "stay", command_stay, 1.0 }, /* 1.0 because it is used when using a
108  * skill on yourself */
109  { "north", command_north, 1.0 },
110  { "east", command_east, 1.0 },
111  { "south", command_south, 1.0 },
112  { "west", command_west, 1.0 },
113  { "northeast", command_northeast, 1.0 },
114  { "southeast", command_southeast, 1.0 },
115  { "southwest", command_southwest, 1.0 },
116  { "northwest", command_northwest, 1.0 },
117  { "run", command_run, 1.0 },
118  { "run_stop", command_run_stop, 0.0 },
119  { "fire", command_fire, 1.0 },
120  { "fire_stop", command_fire_stop, 0.0 },
121  { "quest", command_quest, 0.0 },
122  { "knowledge", command_knowledge, 0.0 }
123 };
124 
126 const int CommandsSize = sizeof(Commands)/sizeof(command_array_struct);
127 
130  { "tell", command_tell, 0.1 },
131  { "reply", command_reply, 0.0 },
132  { "say", command_say, 0.1 },
133  { "gsay", command_gsay, 1.0 },
134  { "shout", command_shout, 0.1 },
135  { "chat", command_chat, 0.1 },
136  { "me", command_me, 0.1 },
137  { "cointoss", command_cointoss, 0.0 },
138  { "orcknuckle", command_orcknuckle, 0.0 },
139  /*
140  * begin emotions
141  */
142  { "nod", command_nod, 0.0 },
143  { "dance", command_dance, 0.0 },
144  { "kiss", command_kiss, 0.0 },
145  { "bounce", command_bounce, 0.0 },
146  { "smile", command_smile, 0.0 },
147  { "cackle", command_cackle, 0.0 },
148  { "laugh", command_laugh, 0.0 },
149  { "giggle", command_giggle, 0.0 },
150  { "shake", command_shake, 0.0 },
151  { "puke", command_puke, 0.0 },
152  { "growl", command_growl, 0.0 },
153  { "scream", command_scream, 0.0 },
154  { "sigh", command_sigh, 0.0 },
155  { "sulk", command_sulk, 0.0 },
156  { "hug", command_hug, 0.0 },
157  { "cry", command_cry, 0.0 },
158  { "poke", command_poke, 0.0 },
159  { "accuse", command_accuse, 0.0 },
160  { "grin", command_grin, 0.0 },
161  { "bow", command_bow, 0.0 },
162  { "clap", command_clap, 0.0 },
163  { "blush", command_blush, 0.0 },
164  { "burp", command_burp, 0.0 },
165  { "chuckle", command_chuckle, 0.0 },
166  { "cough", command_cough, 0.0 },
167  { "flip", command_flip, 0.0 },
168  { "frown", command_frown, 0.0 },
169  { "gasp", command_gasp, 0.0 },
170  { "glare", command_glare, 0.0 },
171  { "groan", command_groan, 0.0 },
172  { "hiccup", command_hiccup, 0.0 },
173  { "lick", command_lick, 0.0 },
174  { "pout", command_pout, 0.0 },
175  { "shiver", command_shiver, 0.0 },
176  { "shrug", command_shrug, 0.0 },
177  { "slap", command_slap, 0.0 },
178  { "smirk", command_smirk, 0.0 },
179  { "snap", command_snap, 0.0 },
180  { "sneeze", command_sneeze, 0.0 },
181  { "snicker", command_snicker, 0.0 },
182  { "sniff", command_sniff, 0.0 },
183  { "snore", command_snore, 0.0 },
184  { "spit", command_spit, 0.0 },
185  { "strut", command_strut, 0.0 },
186  { "thank", command_thank, 0.0 },
187  { "twiddle", command_twiddle, 0.0 },
188  { "wave", command_wave, 0.0 },
189  { "whistle", command_whistle, 0.0 },
190  { "wink", command_wink, 0.0 },
191  { "yawn", command_yawn, 0.0 },
192  { "beg", command_beg, 0.0 },
193  { "bleed", command_bleed, 0.0 },
194  { "cringe", command_cringe, 0.0 },
195  { "think", command_think, 0.0 }
196 };
197 
200 
203  { "abil", command_abil, 0.0 },
204  { "addexp", command_addexp, 0.0 },
205  { "archs", command_archs, 0.0 },
206  { "arrest", command_arrest, 0.0 },
207  { "banish", command_banish, 0.0 },
208  { "create", command_create, 0.0 },
209  { "debug", command_debug, 0.0 },
210  { "diff", command_diff, 0.0 },
211  { "dmtell", command_dmtell, 0.0 },
212  { "dump", command_dump, 0.0 },
213  { "dumpbelow", command_dumpbelow, 0.0 },
214  { "dumpfriendlyobjects", command_dumpfriendlyobjects, 0.0 },
215  { "dumpallarchetypes", command_dumpallarchetypes, 0.0 },
216  { "dumpallmaps", command_dumpallmaps, 0.0 },
217  { "dumpallobjects", command_dumpallobjects, 0.0 },
218  { "dumpmap", command_dumpmap, 0.0 },
219  { "follow", command_follow, 0.0 },
220  { "free", command_free, 0.0 },
221  { "freeze", command_freeze, 0.0 },
222  { "goto", command_goto, 0.0 },
223  { "hide", command_hide, 0.0 },
224  { "insert_into", command_insert_into, 0.0 },
225  { "invisible", command_invisible, 0.0 },
226  { "kick", command_kick, 0.0 },
227  { "learn_special_prayer", command_learn_special_prayer, 0.0 },
228  { "learn_spell", command_learn_spell, 0.0 },
229  { "malloc", command_malloc, 0.0 },
230  { "nodm", command_nowiz, 0.0 },
231  { "nowiz", command_nowiz, 0.0 },
232  { "patch", command_patch, 0.0 },
233  { "players", command_players, 0.0 },
234  { "plugin", command_loadplugin, 0.0 },
235  { "pluglist", command_listplugins, 0.0 },
236  { "plugout", command_unloadplugin, 0.0 },
237  { "purge_quest_state", command_purge_quest, 0.0 },
238  { "purge_quests", command_purge_quest_definitions, 0.0 },
239  { "remove", command_remove, 0.0 },
240  { "reset", command_reset, 0.0 },
241  { "set_god", command_setgod, 0.0 },
242  { "settings", command_settings, 0.0 },
243  { "server_speed", command_speed, 0.0 },
244  { "shutdown", command_shutdown, 0.0 },
245  { "ssdumptable", command_ssdumptable, 0.0 },
246  { "stack_clear", command_stack_clear, 0.0 },
247  { "stack_list", command_stack_list, 0.0 },
248  { "stack_pop", command_stack_pop, 0.0 },
249  { "stack_push", command_stack_push, 0.0 },
250  { "stats", command_stats, 0.0 },
251  { "strings", command_strings, 0.0 },
252  { "style_info", command_style_map_info, 0.0 }, /* Costly command, so make it wiz only */
253  { "summon", command_summon, 0.0 },
254  { "teleport", command_teleport, 0.0 },
255  { "toggle_shout", command_toggle_shout, 0.0 },
256  { "wizpass", command_wizpass, 0.0 },
257  { "wizcast", command_wizcast, 0.0 },
258  { "overlay_save", command_overlay_save, 0.0 },
259  { "overlay_reset", command_overlay_reset, 0.0 },
260 /* { "possess", command_possess, 0.0 }, */
261  { "mon_aggr", command_mon_aggr, 0.0 },
262  { "loadtest", command_loadtest, 0.0 },
263 };
266 
279 static int compare_A(const void *a, const void *b) {
280  return strcmp(((const command_array_struct *)a)->name, ((const command_array_struct *)b)->name);
281 }
282 
286 void init_commands(void) {
287  qsort(Commands, CommandsSize, sizeof(command_array_struct), compare_A);
288  qsort(CommunicationCommands, CommunicationCommandSize, sizeof(command_array_struct), compare_A);
289  qsort(WizCommands, WizCommandsSize, sizeof(command_array_struct), compare_A);
290 }
void command_speed(object *op, const char *params)
Changes the server speed.
Definition: c_wiz.c:1669
void command_smile(object *op, const char *params)
&#39;smile&#39; command.
Definition: c_chat.c:765
void command_bounce(object *op, const char *params)
&#39;bounce&#39; command.
Definition: c_chat.c:754
void command_arrest(object *op, const char *params)
Wizard jails player.
Definition: c_wiz.c:838
void command_hiscore(object *op, const char *params)
Player is asking for the hiscore.
Definition: c_misc.c:818
void command_east(object *op, const char *params)
&#39;east&#39; command.
Definition: c_move.c:57
void command_yawn(object *op, const char *params)
&#39;yawn&#39; command.
Definition: c_chat.c:1260
void command_prepare(object *op, const char *params)
Equivalent to command_cast().
Definition: c_range.c:63
void command_diff(object *op, const char *params)
Get a diff of specified items.
Definition: c_wiz.c:2540
void command_quit(object *op, const char *params)
Player wants to totally delete her character.
Definition: c_misc.c:1845
void command_bow(object *op, const char *params)
&#39;bow&#39; command.
Definition: c_chat.c:930
void command_skills(object *op, const char *params)
Player is asking for her skills.
Definition: c_wiz.c:1365
void command_pout(object *op, const char *params)
&#39;pout&#39; command.
Definition: c_chat.c:1073
const int CommunicationCommandSize
Length of the CommunicationCommands array.
Definition: commands.c:199
void command_motd(object *op, const char *params)
Display the message of the day.
Definition: c_misc.c:169
void command_strut(object *op, const char *params)
&#39;strut&#39; command.
Definition: c_chat.c:1194
void command_flip(object *op, const char *params)
&#39;flip&#39; command.
Definition: c_chat.c:996
void command_cast(object *op, const char *params)
&#39;cast&#39; command, prepares a spell for laster casting.
Definition: c_range.c:50
void command_overlay_save(object *op, const char *params)
Saves the op&#39;s map as an overlay - objects are persisted.
Definition: c_wiz.c:585
void command_title(object *op, const char *params)
Player wishes to change her title.
Definition: c_misc.c:1997
void command_dm(object *op, const char *params)
Actual command to perhaps become dm.
Definition: c_wiz.c:2136
void init_commands(void)
Sorts the command arrays for easy search through bsearch().
Definition: commands.c:286
void command_dump(object *op, const char *params)
Dumps the difference between an object and its archetype.
Definition: c_wiz.c:1377
void command_snicker(object *op, const char *params)
&#39;snicker&#39; command.
Definition: c_chat.c:1150
void command_stay(object *op, const char *params)
&#39;stay&#39; command.
Definition: c_move.c:145
void command_smirk(object *op, const char *params)
&#39;smirk&#39; command.
Definition: c_chat.c:1117
void command_grin(object *op, const char *params)
&#39;grin&#39; command.
Definition: c_chat.c:919
void command_invisible(object *op, const char *params)
Wizard wants to become invisible.
Definition: c_wiz.c:2148
void command_nod(object *op, const char *params)
&#39;nod&#39; command.
Definition: c_chat.c:721
void command_freeze(object *op, const char *params)
Freezes a player for a specified tick count, 100 by default.
Definition: c_wiz.c:762
void command_body(object *op, const char *params)
This command dumps the body information for object *op.
Definition: c_misc.c:128
void command_examine(object *op, const char *params)
&#39;examine&#39; command.
Definition: c_object.c:1225
void command_stack_pop(object *op, const char *params)
Pop the stack top.
Definition: c_wiz.c:2455
void command_sniff(object *op, const char *params)
&#39;sniff&#39; command.
Definition: c_chat.c:1161
void command_loadplugin(object *op, const char *params)
Loads the given plugin.
Definition: c_wiz.c:2378
void command_dumpallarchetypes(object *op, const char *params)
Various archetypes-related statistics.
Definition: c_misc.c:938
void command_use(object *op, const char *params)
Try to use an item on another.
Definition: c_object.c:2292
void command_style_map_info(object *op, const char *params)
Displays information about styles loaded for random maps.
Definition: c_wiz.c:2681
void command_malloc(object *op, const char *params)
Display memory information.
Definition: c_misc.c:726
void command_scream(object *op, const char *params)
&#39;scream&#39; command.
Definition: c_chat.c:842
void command_learn_special_prayer(object *op, const char *params)
Wizard wants to learn a god-given spell.
Definition: c_wiz.c:2323
void command_whereabouts(object *op, const char *params)
&#39;whereabouts&#39; command.
Definition: c_misc.c:418
void command_chuckle(object *op, const char *params)
&#39;chuckle&#39; command.
Definition: c_chat.c:974
void command_reset(object *op, const char *params)
Resets a map.
Definition: c_wiz.c:1822
void command_glare(object *op, const char *params)
&#39;glare&#39; command.
Definition: c_chat.c:1029
void command_summon(object *op, const char *params)
Summons player near DM.
Definition: c_wiz.c:883
command_array_struct WizCommands[]
Wizard commands.
Definition: commands.c:202
void command_create(object *op, const char *params)
Wizard wants to create an object.
Definition: c_wiz.c:996
void command_version(object *op, const char *params)
Server version.
Definition: c_misc.c:1001
void command_cringe(object *op, const char *params)
&#39;cringe&#39; command.
Definition: c_chat.c:1293
void command_gasp(object *op, const char *params)
&#39;gasp&#39; command.
Definition: c_chat.c:1018
void command_passwd(object *pl, const char *params)
Player is asking to change password.
Definition: c_misc.c:2185
void command_settings(object *op, const char *ignored)
Wizard wants to know some server settings, so display.
Definition: c_wiz.c:2788
void command_insert_into(object *op, const char *params)
Puts an object into another.
Definition: c_wiz.c:2604
void command_wimpy(object *op, const char *params)
Player wants to change how soon she&#39;ll flee.
Definition: c_misc.c:2090
void command_wave(object *op, const char *params)
&#39;wave&#39; command.
Definition: c_chat.c:1227
void command_abil(object *op, const char *params)
Changes an object&#39;s statistics.
Definition: c_wiz.c:1756
void command_fire_stop(object *op, const char *params)
Player wants to stop firing.
Definition: c_new.c:208
void command_spit(object *op, const char *params)
&#39;spit&#39; command.
Definition: c_chat.c:1183
void command_search(object *op, const char *params)
&#39;search&#39; command.
Definition: c_object.c:147
void command_dance(object *op, const char *params)
&#39;dance&#39; command.
Definition: c_chat.c:732
Global type definitions and header inclusions.
void command_language(object *op, const char *params)
This is the &#39;language&#39; command.
Definition: c_misc.c:85
void command_quest(object *op, const char *params)
Command handler for &#39;quest&#39;.
Definition: quest.c:1154
void command_party(object *op, const char *params)
&#39;party&#39; command, subdivided in different sub commands.
Definition: c_party.c:116
void command_stats(object *op, const char *params)
Displays the statistics of a player.
Definition: c_wiz.c:1699
void command_players(object *op, const char *params)
Display all known players.
Definition: c_misc.c:1149
void command_think(object *op, const char *params)
&#39;think&#39; command.
Definition: c_chat.c:1304
void command_stack_list(object *op, const char *params)
Displays stack contents.
Definition: c_wiz.c:2485
void command_fire(object *op, const char *params)
Player wants to start furing.
Definition: c_new.c:187
void command_remove(object *op, const char *params)
Remove an object from its position.
Definition: c_wiz.c:1532
void command_slap(object *op, const char *params)
&#39;slap&#39; command.
Definition: c_chat.c:1106
void command_reply(object *op, const char *params)
Reply to last person who told you something [mids 01/14/2002].
Definition: c_chat.c:335
void command_gsay(object *op, const char *params)
&#39;gsay&#39; command, talks to party.
Definition: c_party.c:71
void command_unarmed_skill(object *op, const char *params)
Player wants to change prefered unarmed skill.
Definition: c_misc.c:1300
void command_peaceful(object *op, const char *params)
Player toggles her peaceful status.
Definition: c_misc.c:2073
void command_clap(object *op, const char *params)
&#39;clap&#39; command.
Definition: c_chat.c:941
void command_say(object *op, const char *params)
&#39;say&#39; command.
Definition: c_chat.c:34
void command_strings(object *op, const char *params)
Various string-related statistics.
Definition: c_misc.c:774
void command_brace(object *op, const char *params)
Player toggles her braced status.
Definition: c_misc.c:2121
void command_whistle(object *op, const char *params)
&#39;whistle&#39; command.
Definition: c_chat.c:1238
void command_cough(object *op, const char *params)
&#39;cough&#39; command.
Definition: c_chat.c:985
void command_invoke(object *op, const char *params)
&#39;invoke&#39; command, fires a spell immediately.
Definition: c_range.c:38
void command_fix_me(object *op, const char *params)
Wrapper to fix a player.
Definition: c_misc.c:1136
void command_dmtell(object *op, const char *params)
Private communication, by a DM (can&#39;t be ignored by player).
Definition: c_chat.c:319
void command_twiddle(object *op, const char *params)
&#39;twiddle&#39; command.
Definition: c_chat.c:1216
void command_shiver(object *op, const char *params)
&#39;shiver&#39; command.
Definition: c_chat.c:1084
void command_bowmode(object *op, const char *params)
Player wants to change the bowmode, how arrows are fired.
Definition: c_misc.c:1239
void command_goto(object *op, const char *params)
Wizard teleports to a map.
Definition: c_wiz.c:726
void command_addexp(object *op, const char *params)
This adds exp to a player.
Definition: c_wiz.c:1613
void command_wizpass(object *op, const char *params)
Wizard toggling wall-crossing.
Definition: c_misc.c:854
void command_tell(object *op, const char *params)
Private communication.
Definition: c_chat.c:307
void command_search_items(object *op, const char *params)
&#39;search-items&#39; command.
Definition: c_object.c:2018
void command_sneeze(object *op, const char *params)
&#39;sneeze&#39; command.
Definition: c_chat.c:1139
void command_setgod(object *op, const char *params)
Sets the god for some objects.
Definition: c_wiz.c:413
void command_laugh(object *op, const char *params)
&#39;laugh&#39; command.
Definition: c_chat.c:787
void command_hug(object *op, const char *params)
&#39;hug&#39; command.
Definition: c_chat.c:875
void command_run(object *op, const char *params)
Player wants to start running.
Definition: c_new.c:152
void command_archs(object *op, const char *params)
Archetype-related statistics.
Definition: c_misc.c:806
void command_shake(object *op, const char *params)
&#39;shake&#39; command.
Definition: c_chat.c:809
void command_rotateshoottype(object *op, const char *params)
&#39;rotateshoottype&#39; command, switch range attack.
Definition: c_range.c:368
void command_rskill(object *pl, const char *params)
&#39;ready_skill&#39; command.
Definition: c_object.c:115
void command_throw(object *op, const char *params)
&#39;throw&#39; command.
Definition: c_object.c:174
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.c:1198
void command_chat(object *op, const char *params)
&#39;chat&#39; command.
Definition: c_chat.c:220
void command_northeast(object *op, const char *params)
&#39;northeast&#39; command.
Definition: c_move.c:79
void command_stack_push(object *op, const char *params)
Push specified item on stack.
Definition: c_wiz.c:2467
void command_apply(object *op, const char *params)
&#39;apply&#39; command.
Definition: c_object.c:195
void command_cointoss(object *op, const char *params)
&#39;cointoss&#39; command.
Definition: c_chat.c:64
void command_dumpallmaps(object *op, const char *params)
Various map-related statistics.
Definition: c_misc.c:975
void command_shout(object *op, const char *params)
&#39;shout&#39; command.
Definition: c_chat.c:209
void command_knowledge(object *pl, const char *params)
Handle the &#39;knowledge&#39; for a player.
Definition: knowledge.c:1221
void command_wizcast(object *op, const char *params)
Wizard toggling "cast everywhere" ability.
Definition: c_misc.c:884
const int CommandsSize
Length of Commands array.
Definition: commands.c:126
void command_showpets(object *op, const char *params)
Players wants to know her pets.
Definition: c_misc.c:1400
void command_learn_spell(object *op, const char *params)
Wizard wants to learn a regular spell.
Definition: c_wiz.c:2311
void command_blush(object *op, const char *params)
&#39;blush&#39; command.
Definition: c_chat.c:952
void command_inventory(object *op, const char *params)
Shows the inventory or some item.
Definition: c_wiz.c:1335
void command_party_rejoin(object *op, const char *params)
Handles the &#39;party_rejoin&#39; command.
Definition: c_party.c:333
void command_lock_item(object *op, const char *params)
Alternate way to lock/unlock items (command line).
Definition: c_object.c:2249
void command_teleport(object *op, const char *params)
Teleport next to target player.
Definition: c_wiz.c:930
Defines and structures related to commands the player can send.
command_array_struct CommunicationCommands[]
Chat/shout related commands.
Definition: commands.c:129
void command_west(object *op, const char *params)
&#39;west&#39; command.
Definition: c_move.c:134
void command_snap(object *op, const char *params)
&#39;snap&#39; command.
Definition: c_chat.c:1128
void command_debug(object *op, const char *params)
Player wants to see/change the debug level.
Definition: c_misc.c:830
void command_snore(object *op, const char *params)
&#39;snore&#39; command.
Definition: c_chat.c:1172
void command_lick(object *op, const char *params)
&#39;lick&#39; command.
Definition: c_chat.c:1062
void command_resistances(object *op, const char *params)
Players wants to know her resistances.
Definition: c_misc.c:1513
void command_follow(object *op, const char *params)
DM wants to follow a player, or stop following a player.
Definition: c_wiz.c:2721
void command_thank(object *op, const char *params)
&#39;thank&#39; command.
Definition: c_chat.c:1205
void command_dumpfriendlyobjects(object *op, const char *params)
Various friendly object-related statistics.
Definition: c_misc.c:926
void command_listen(object *op, const char *params)
Change the player&#39;s listen level.
Definition: c_misc.c:1014
void command_kill_pets(object *op, const char *params)
Player wants to get rid of pets.
Definition: c_misc.c:2145
void command_forget_spell(object *op, const char *params)
Command for players to forget a spell.
Definition: c_wiz.c:2336
void command_unloadplugin(object *op, const char *params)
Unloads the given plugin.
Definition: c_wiz.c:2412
void command_purge_quest(object *op, const char *param)
Definition: c_wiz.c:2749
void command_sigh(object *op, const char *params)
&#39;sigh&#39; command.
Definition: c_chat.c:853
void command_north(object *op, const char *params)
&#39;north&#39; command.
Definition: c_move.c:68
const int WizCommandsSize
Length of WizCommands array.
Definition: commands.c:265
void command_poke(object *op, const char *params)
&#39;poke&#39; command.
Definition: c_chat.c:897
void command_help(object *op, const char *params)
Player is asking for some help.
Definition: c_misc.c:1706
void command_maps(object *op, const char *params)
&#39;maps&#39; command.
Definition: c_misc.c:762
void command_free(object *op, const char *params)
Totally free an object.
Definition: c_wiz.c:1579
void command_cry(object *op, const char *params)
&#39;cry&#39; command.
Definition: c_chat.c:886
void command_dropall(object *op, const char *params)
Command to drop all items that have not been locked.
Definition: c_object.c:972
void command_cackle(object *op, const char *params)
&#39;cackle&#39; command.
Definition: c_chat.c:776
void command_ssdumptable(object *op, const char *params)
Various string-related statistics.
Definition: c_misc.c:950
void command_empty(object *op, const char *params)
&#39;empty&#39; command.
Definition: c_object.c:1186
Represents one command.
Definition: commands.h:37
void command_sulk(object *op, const char *params)
&#39;sulk&#39; command.
Definition: c_chat.c:864
void command_banish(object *op, const char *params)
Add player&#39;s IP to ban_file and kick them off the server.
Definition: c_wiz.c:519
void command_run_stop(object *op, const char *params)
Player wants to stop running.
Definition: c_new.c:175
void command_growl(object *op, const char *params)
&#39;growl&#39; command.
Definition: c_chat.c:831
void command_dmhide(object *op, const char *params)
A players wants to become DM and hide.
Definition: c_wiz.c:2440
void command_southeast(object *op, const char *params)
&#39;southeast&#39; command.
Definition: c_move.c:112
void command_giggle(object *op, const char *params)
&#39;giggle&#39; command.
Definition: c_chat.c:798
void command_burp(object *op, const char *params)
&#39;burp&#39; command.
Definition: c_chat.c:963
void command_mapinfo(object *op, const char *params)
&#39;mapinfo&#39; command.
Definition: c_misc.c:738
void command_time(object *op, const char *params)
Players asks for the time.
Definition: c_misc.c:794
void command_take(object *op, const char *params)
This takes (picks up) and item.
Definition: c_object.c:585
void command_south(object *op, const char *params)
&#39;south&#39; command.
Definition: c_move.c:101
void command_rename_item(object *op, const char *params)
Changing the custom name of an item.
Definition: c_object.c:2063
void command_groan(object *op, const char *params)
&#39;groan&#39; command.
Definition: c_chat.c:1040
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.c:1405
void command_save(object *op, const char *params)
Player wants to get saved.
Definition: c_misc.c:2048
void command_stack_clear(object *op, const char *params)
Empty DM item stack.
Definition: c_wiz.c:2515
void command_northwest(object *op, const char *params)
&#39;northwest&#39; command.
Definition: c_move.c:90
void command_kiss(object *op, const char *params)
&#39;kiss&#39; command.
Definition: c_chat.c:743
void command_listplugins(object *op, const char *params)
Lists all plugins currently loaded with their IDs and full names.
Definition: c_wiz.c:2364
static int compare_A(const void *a, const void *b)
Comparison function for 2 command_array_struct.
Definition: commands.c:279
void command_dumpbelow(object *op, const char *params)
Player wants to dump object below her.
Definition: c_wiz.c:2767
void command_shutdown(object *op, const char *params)
Totally shutdowns the server.
Definition: c_wiz.c:674
void command_overlay_reset(object *op, const char *params)
Removes the overlay for op&#39;s current map.
Definition: c_wiz.c:605
void command_disarm(object *op, const char *params)
&#39;disarm&#39; command.
Definition: c_object.c:159
void command_bleed(object *op, const char *params)
&#39;bleed&#39; command.
Definition: c_chat.c:1282
void command_orcknuckle(object *op, const char *params)
Plays the "orcknucke" game.
Definition: c_chat.c:107
void command_nowiz(object *op, const char *params)
Steps down from wizard mode.
Definition: c_wiz.c:1995
void command_printlos(object *op, const char *params)
Various LOS-related statistics.
Definition: c_misc.c:987
void command_mark(object *op, const char *params)
&#39;mark&#39; command, to mark an item for some effects (enchant armor, ...).
Definition: c_object.c:1289
void command_hide(object *op, const char *params)
Wizard &#39;hide&#39; command.
Definition: c_wiz.c:385
void command_hiccup(object *op, const char *params)
&#39;hiccup&#39; command.
Definition: c_chat.c:1051
void command_frown(object *op, const char *params)
&#39;frown&#39; command.
Definition: c_chat.c:1007
void command_rules(object *op, const char *params)
Display the server rules.
Definition: c_misc.c:181
void command_pickup(object *op, const char *params)
&#39;pickup&#39; command.
Definition: c_object.c:1884
void command_sound(object *op, const char *params)
Player wants to change sound status.
Definition: c_misc.c:1865
void command_loadtest(object *op, const char *params)
This command will stress server.
Definition: c_wiz.c:305
void command_patch(object *op, const char *params)
Wizard wants to altar an object.
Definition: c_wiz.c:1492
void command_dumpallobjects(object *op, const char *params)
Various object-related statistics.
Definition: c_misc.c:914
command_array_struct Commands[]
Normal game commands.
Definition: commands.c:36
void command_southwest(object *op, const char *params)
&#39;southwest&#39; command.
Definition: c_move.c:123
void command_afk(object *op, const char *params)
Toggles the afk status of a player.
Definition: c_misc.c:706
void command_whereami(object *op, const char *params)
&#39;whereami&#39; command.
Definition: c_misc.c:750
void command_news(object *op, const char *params)
Display the server news.
Definition: c_misc.c:193
void command_accuse(object *op, const char *params)
&#39;accuse&#39; command.
Definition: c_chat.c:908
void command_usekeys(object *op, const char *params)
Player wants to change how keys are used.
Definition: c_misc.c:1472
void command_shrug(object *op, const char *params)
&#39;shrug&#39; command.
Definition: c_chat.c:1095
void command_toggle_shout(object *op, const char *params)
A simple toggle for the no_shout field.
Definition: c_wiz.c:630
void command_uskill(object *pl, const char *params)
&#39;use_skill&#39; command.
Definition: c_object.c:98
void command_dumpmap(object *op, const char *params)
Various map-related statistics.
Definition: c_misc.c:962
void command_beg(object *op, const char *params)
&#39;beg&#39; command.
Definition: c_chat.c:1271
void command_purge_quest_definitions(object *op, const char *param)
Definition: c_wiz.c:2754
void command_petmode(object *op, const char *params)
Player wants to change how her pets behave.
Definition: c_misc.c:1356
void command_me(object *op, const char *params)
&#39;me&#39; command.
Definition: c_chat.c:47
void command_statistics(object *pl, const char *params)
Prints out some useful information for the character.
Definition: c_misc.c:1045
void command_kick(object *op, const char *params)
Kicks a player from the server.
Definition: c_wiz.c:573
void command_who(object *op, const char *params)
&#39;who&#39; command.
Definition: c_misc.c:557
void command_drop(object *op, const char *params)
&#39;drop&#39; command.
Definition: c_object.c:1096
void command_puke(object *op, const char *params)
&#39;puke&#39; command.
Definition: c_chat.c:820
void command_wink(object *op, const char *params)
&#39;wink&#39; command.
Definition: c_chat.c:1249