1 | /* |
1 | /* |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | * |
3 | * |
4 | * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
5 | * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
7 | * |
7 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify |
8 | * Deliantra is free software: you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License as published by |
9 | * it under the terms of the GNU General Public License as published by |
… | |
… | |
32 | { |
32 | { |
33 | display_motd (op); |
33 | display_motd (op); |
34 | return 1; |
34 | return 1; |
35 | } |
35 | } |
36 | |
36 | |
37 | #ifdef DEBUG_MALLOC_LEVEL |
|
|
38 | int |
|
|
39 | command_malloc_verify (object *op, char *parms) |
|
|
40 | { |
|
|
41 | extern int malloc_verify (void); |
|
|
42 | |
|
|
43 | if (!malloc_verify ()) |
|
|
44 | new_draw_info (NDI_UNIQUE, 0, op, "Heap is corrupted."); |
|
|
45 | else |
|
|
46 | new_draw_info (NDI_UNIQUE, 0, op, "Heap checks out OK."); |
|
|
47 | return 1; |
|
|
48 | } |
|
|
49 | #endif |
|
|
50 | |
|
|
51 | typedef struct |
37 | typedef struct |
52 | { |
38 | { |
53 | char namebuf[MAX_BUF]; |
39 | char namebuf[MAX_BUF]; |
54 | int login_order; |
40 | int login_order; |
55 | } chars_names; |
41 | } chars_names; |
… | |
… | |
104 | command_dumpfriendlyobjects (object *op, char *params) |
90 | command_dumpfriendlyobjects (object *op, char *params) |
105 | { |
91 | { |
106 | dump_friendly_objects (); |
92 | dump_friendly_objects (); |
107 | return 0; |
93 | return 0; |
108 | } |
94 | } |
109 | |
|
|
110 | int |
|
|
111 | command_printlos (object *op, char *params) |
|
|
112 | { |
|
|
113 | if (op) |
|
|
114 | print_los (op); |
|
|
115 | return 0; |
|
|
116 | } |
|
|
117 | |
|
|
118 | |
95 | |
119 | int |
96 | int |
120 | command_version (object *op, char *params) |
97 | command_version (object *op, char *params) |
121 | { |
98 | { |
122 | version (op); |
99 | version (op); |
… | |
… | |
177 | } |
154 | } |
178 | |
155 | |
179 | int |
156 | int |
180 | command_fix_me (object *op, char *params) |
157 | command_fix_me (object *op, char *params) |
181 | { |
158 | { |
182 | sum_weight (op); |
159 | op->update_weight (); |
183 | op->update_stats (); |
160 | op->update_stats (); |
184 | new_draw_info (NDI_UNIQUE, 0, op, "Your character was fixed."); |
161 | new_draw_info (NDI_UNIQUE, 0, op, "Your character was fixed."); |
185 | |
|
|
186 | return 1; |
|
|
187 | } |
|
|
188 | |
|
|
189 | int |
|
|
190 | command_logs (object *op, char *params) |
|
|
191 | { |
|
|
192 | new_draw_info (NDI_UNIQUE, 0, op, "Nobody is currently logging kills."); |
|
|
193 | |
162 | |
194 | return 1; |
163 | return 1; |
195 | } |
164 | } |
196 | |
165 | |
197 | int |
166 | int |