ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/c_chat.C
(Generate patch)

Comparing deliantra/server/server/c_chat.C (file contents):
Revision 1.4 by root, Sun Sep 3 00:18:42 2006 UTC vs.
Revision 1.7 by root, Mon Dec 25 11:25:49 2006 UTC

1/*
2 * static char *rcsid_c_chat_c =
3 * "$Id: c_chat.C,v 1.4 2006/09/03 00:18:42 root Exp $";
4 */
5
6/* 1/*
7 CrossFire, A Multiplayer game for X-windows 2 CrossFire, A Multiplayer game for X-windows
8 3
9 Copyright (C) 2002 Mark Wedel & Crossfire Development Team 4 Copyright (C) 2002 Mark Wedel & Crossfire Development Team
10 Copyright (C) 1992 Frank Tore Johansen 5 Copyright (C) 1992 Frank Tore Johansen
21 16
22 You should have received a copy of the GNU General Public License 17 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software 18 along with this program; if not, write to the Free Software
24 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 20
26 The authors can be reached via e-mail at crossfire-devel@real-time.com 21 The authors can be reached via e-mail at <crossfire@schmorp.de>
27*/ 22*/
28 23
29#include <global.h> 24#include <global.h>
30#include <loader.h> 25#include <loader.h>
31#include <sproto.h> 26#include <sproto.h>
32 27
28int
33int command_me (object *op, char *params) 29command_me (object *op, char *params)
34{ 30{
35 char buf[MAX_BUF]; 31 char buf[MAX_BUF];
36 32
37 if (!params) return 0; 33 if (!params)
38 snprintf(buf, MAX_BUF-1, "%s %s",&op->name, params);
39 new_info_map(NDI_UNIQUE|NDI_BLUE,op->map, buf);
40
41 return 0; 34 return 0;
42} 35 snprintf (buf, MAX_BUF - 1, "%s %s", &op->name, params);
36 new_info_map (NDI_UNIQUE | NDI_BLUE, op->map, buf);
43 37
38 return 0;
39}
44 40
41
42int
45int command_cointoss(object *op, char *params) 43command_cointoss (object *op, char *params)
46{ 44{
47 char buf[MAX_BUF]; 45 char buf[MAX_BUF];
48 char buf2[MAX_BUF]; 46 char buf2[MAX_BUF];
49 int i; 47 int i;
50 48
51 i = rndm(1, 2); 49 i = rndm (1, 2);
52 if (i == 1) { 50 if (i == 1)
51 {
53 snprintf(buf, MAX_BUF-1, "%s flips a coin.... Heads!", &op->name); 52 snprintf (buf, MAX_BUF - 1, "%s flips a coin.... Heads!", &op->name);
54 snprintf(buf2, MAX_BUF-1, "You flip a coin.... Heads!"); 53 snprintf (buf2, MAX_BUF - 1, "You flip a coin.... Heads!");
55 } else {
56 snprintf(buf, MAX_BUF-1, "%s flips a coin.... Tails!", &op->name);
57 snprintf(buf2, MAX_BUF-1, "You flip a coin.... Tails!");
58 } 54 }
55 else
56 {
57 snprintf (buf, MAX_BUF - 1, "%s flips a coin.... Tails!", &op->name);
58 snprintf (buf2, MAX_BUF - 1, "You flip a coin.... Tails!");
59 }
59 new_draw_info(NDI_UNIQUE, 0, op, buf2); 60 new_draw_info (NDI_UNIQUE, 0, op, buf2);
60 new_info_map_except(NDI_WHITE, op->map, op, buf); 61 new_info_map_except (NDI_WHITE, op->map, op, buf);
61 return 0; 62 return 0;
62} 63}
63 64
64static const char* const orcknuckle[7] = {"none", "beholder", "ghost", "knight", 65static const char *const orcknuckle[7] = { "none", "beholder", "ghost", "knight",
65 "princess", "dragon", "orc"}; 66 "princess", "dragon", "orc"
67};
66 68
69int
67int command_orcknuckle(object *op, char *params) 70command_orcknuckle (object *op, char *params)
68{ 71{
69 char buf[MAX_BUF]; 72 char buf[MAX_BUF];
70 char buf2[MAX_BUF]; 73 char buf2[MAX_BUF];
71 int i, j, k, l; 74 int i, j, k, l;
72 75
73 i = rndm(1, 5); 76 i = rndm (1, 5);
74 j = rndm(1, 5); 77 j = rndm (1, 5);
75 k = rndm(1, 5); 78 k = rndm (1, 5);
76 l = rndm(1, 6); 79 l = rndm (1, 6);
77 80
78 snprintf(buf2, MAX_BUF-1, "%s rolls %s, %s, %s, %s!", &op->name, 81 snprintf (buf2, MAX_BUF - 1, "%s rolls %s, %s, %s, %s!", &op->name, orcknuckle[i], orcknuckle[j], orcknuckle[k], orcknuckle[l]);
79 orcknuckle[i], orcknuckle[j], orcknuckle[k], orcknuckle[l]); 82 snprintf (buf, MAX_BUF - 1, "You roll %s, %s, %s, %s!", orcknuckle[i], orcknuckle[j], orcknuckle[k], orcknuckle[l]);
80 snprintf(buf, MAX_BUF-1, "You roll %s, %s, %s, %s!",
81 orcknuckle[i], orcknuckle[j], orcknuckle[k], orcknuckle[l]);
82 new_draw_info(NDI_UNIQUE, 0, op, buf); 83 new_draw_info (NDI_UNIQUE, 0, op, buf);
83 new_info_map_except(NDI_UNIQUE, op->map, op, buf2); 84 new_info_map_except (NDI_UNIQUE, op->map, op, buf2);
84 return 0; 85 return 0;
85} 86}
86 87
87/* 88/*
88 * This function covers basic emotions a player can have. An emotion can be 89 * This function covers basic emotions a player can have. An emotion can be
89 * one of three things currently. Directed at oneself, directed at someone, 90 * one of three things currently. Directed at oneself, directed at someone,
94 * arguments, translating them into commands. Adding a new emotion can be 95 * arguments, translating them into commands. Adding a new emotion can be
95 * done by editing command.c and command.h. 96 * done by editing command.c and command.h.
96 * [garbled 09-25-2001] 97 * [garbled 09-25-2001]
97 */ 98 */
98 99
100static int
99static int basic_emote(object *op, char *params, int emotion) 101basic_emote (object *op, char *params, int emotion)
100{ 102{
101 char buf[MAX_BUF], buf2[MAX_BUF], buf3[MAX_BUF]; 103 char buf[MAX_BUF], buf2[MAX_BUF], buf3[MAX_BUF];
102 player *pl; 104 player *pl;
103 105
104 if (!params) { 106 if (!params)
107 {
105 switch(emotion) { 108 switch (emotion)
109 {
106 case EMOTE_NOD: 110 case EMOTE_NOD:
107 sprintf(buf, "%s nods solemnly.", &op->name); 111 sprintf (buf, "%s nods solemnly.", &op->name);
108 sprintf(buf2, "You nod solemnly."); 112 sprintf (buf2, "You nod solemnly.");
109 break; 113 break;
110 case EMOTE_DANCE: 114 case EMOTE_DANCE:
111 sprintf(buf, "%s expresses himself through interpretive dance.", 115 sprintf (buf, "%s expresses himself through interpretive dance.", &op->name);
112 &op->name);
113 sprintf(buf2, "You dance with glee."); 116 sprintf (buf2, "You dance with glee.");
114 break; 117 break;
115 case EMOTE_KISS: 118 case EMOTE_KISS:
116 sprintf(buf, "%s makes a weird facial contortion", &op->name); 119 sprintf (buf, "%s makes a weird facial contortion", &op->name);
117 sprintf(buf2, "All the lonely people.."); 120 sprintf (buf2, "All the lonely people..");
118 break; 121 break;
119 case EMOTE_BOUNCE: 122 case EMOTE_BOUNCE:
120 sprintf(buf, "%s bounces around.", &op->name); 123 sprintf (buf, "%s bounces around.", &op->name);
121 sprintf(buf2, "BOIINNNNNNGG!"); 124 sprintf (buf2, "BOIINNNNNNGG!");
122 break; 125 break;
123 case EMOTE_SMILE: 126 case EMOTE_SMILE:
124 sprintf(buf, "%s smiles happily.", &op->name); 127 sprintf (buf, "%s smiles happily.", &op->name);
125 sprintf(buf2, "You smile happily."); 128 sprintf (buf2, "You smile happily.");
126 break; 129 break;
127 case EMOTE_CACKLE: 130 case EMOTE_CACKLE:
128 sprintf(buf, "%s throws back his head and cackles with insane " 131 sprintf (buf, "%s throws back his head and cackles with insane " "glee!", &op->name);
129 "glee!", &op->name);
130 sprintf(buf2, "You cackle gleefully."); 132 sprintf (buf2, "You cackle gleefully.");
131 break; 133 break;
132 case EMOTE_LAUGH: 134 case EMOTE_LAUGH:
133 sprintf(buf, "%s falls down laughing.", &op->name); 135 sprintf (buf, "%s falls down laughing.", &op->name);
134 sprintf(buf2, "You fall down laughing."); 136 sprintf (buf2, "You fall down laughing.");
135 break; 137 break;
136 case EMOTE_GIGGLE: 138 case EMOTE_GIGGLE:
137 sprintf(buf, "%s giggles.", &op->name); 139 sprintf (buf, "%s giggles.", &op->name);
138 sprintf(buf2, "You giggle."); 140 sprintf (buf2, "You giggle.");
139 break; 141 break;
140 case EMOTE_SHAKE: 142 case EMOTE_SHAKE:
141 sprintf(buf, "%s shakes his head.", &op->name); 143 sprintf (buf, "%s shakes his head.", &op->name);
142 sprintf(buf2, "You shake your head."); 144 sprintf (buf2, "You shake your head.");
143 break; 145 break;
144 case EMOTE_PUKE: 146 case EMOTE_PUKE:
145 sprintf(buf, "%s pukes.", &op->name); 147 sprintf (buf, "%s pukes.", &op->name);
146 sprintf(buf2, "Bleaaaaaghhhhhhh!"); 148 sprintf (buf2, "Bleaaaaaghhhhhhh!");
147 break; 149 break;
148 case EMOTE_GROWL: 150 case EMOTE_GROWL:
149 sprintf(buf, "%s growls.", &op->name); 151 sprintf (buf, "%s growls.", &op->name);
150 sprintf(buf2, "Grrrrrrrrr...."); 152 sprintf (buf2, "Grrrrrrrrr....");
151 break; 153 break;
152 case EMOTE_SCREAM: 154 case EMOTE_SCREAM:
153 sprintf(buf, "%s screams at the top of his lungs!", &op->name); 155 sprintf (buf, "%s screams at the top of his lungs!", &op->name);
154 sprintf(buf2, "ARRRRRRRRRRGH!!!!!"); 156 sprintf (buf2, "ARRRRRRRRRRGH!!!!!");
155 break; 157 break;
156 case EMOTE_SIGH: 158 case EMOTE_SIGH:
157 sprintf(buf, "%s sighs loudly.", &op->name); 159 sprintf (buf, "%s sighs loudly.", &op->name);
158 sprintf(buf2, "You sigh."); 160 sprintf (buf2, "You sigh.");
159 break; 161 break;
160 case EMOTE_SULK: 162 case EMOTE_SULK:
161 sprintf(buf, "%s sulks in the corner.", &op->name); 163 sprintf (buf, "%s sulks in the corner.", &op->name);
162 sprintf(buf2, "You sulk."); 164 sprintf (buf2, "You sulk.");
163 break; 165 break;
164 case EMOTE_CRY: 166 case EMOTE_CRY:
165 sprintf(buf, "%s bursts into tears.", &op->name); 167 sprintf (buf, "%s bursts into tears.", &op->name);
166 sprintf(buf2, "Waaaaaaahhh.."); 168 sprintf (buf2, "Waaaaaaahhh..");
167 break; 169 break;
168 case EMOTE_GRIN: 170 case EMOTE_GRIN:
169 sprintf(buf, "%s grins evilly.", &op->name); 171 sprintf (buf, "%s grins evilly.", &op->name);
170 sprintf(buf2, "You grin evilly."); 172 sprintf (buf2, "You grin evilly.");
171 break; 173 break;
172 case EMOTE_BOW: 174 case EMOTE_BOW:
173 sprintf(buf, "%s bows deeply.", &op->name); 175 sprintf (buf, "%s bows deeply.", &op->name);
174 sprintf(buf2, "You bow deeply."); 176 sprintf (buf2, "You bow deeply.");
175 break; 177 break;
176 case EMOTE_CLAP: 178 case EMOTE_CLAP:
177 sprintf(buf, "%s gives a round of applause.", &op->name); 179 sprintf (buf, "%s gives a round of applause.", &op->name);
178 sprintf(buf2, "Clap, clap, clap."); 180 sprintf (buf2, "Clap, clap, clap.");
179 break; 181 break;
180 case EMOTE_BLUSH: 182 case EMOTE_BLUSH:
181 sprintf(buf, "%s blushes.", &op->name); 183 sprintf (buf, "%s blushes.", &op->name);
182 sprintf(buf2, "Your cheeks are burning."); 184 sprintf (buf2, "Your cheeks are burning.");
183 break; 185 break;
184 case EMOTE_BURP: 186 case EMOTE_BURP:
185 sprintf(buf, "%s burps loudly.", &op->name); 187 sprintf (buf, "%s burps loudly.", &op->name);
186 sprintf(buf2, "You burp loudly."); 188 sprintf (buf2, "You burp loudly.");
187 break; 189 break;
188 case EMOTE_CHUCKLE: 190 case EMOTE_CHUCKLE:
189 sprintf(buf, "%s chuckles politely.", &op->name); 191 sprintf (buf, "%s chuckles politely.", &op->name);
190 sprintf(buf2, "You chuckle politely"); 192 sprintf (buf2, "You chuckle politely");
191 break; 193 break;
192 case EMOTE_COUGH: 194 case EMOTE_COUGH:
193 sprintf(buf, "%s coughs loudly.", &op->name); 195 sprintf (buf, "%s coughs loudly.", &op->name);
194 sprintf(buf2, "Yuck, try to cover your mouth next time!"); 196 sprintf (buf2, "Yuck, try to cover your mouth next time!");
195 break; 197 break;
196 case EMOTE_FLIP: 198 case EMOTE_FLIP:
197 sprintf(buf, "%s flips head over heels.", &op->name); 199 sprintf (buf, "%s flips head over heels.", &op->name);
198 sprintf(buf2, "You flip head over heels."); 200 sprintf (buf2, "You flip head over heels.");
199 break; 201 break;
200 case EMOTE_FROWN: 202 case EMOTE_FROWN:
201 sprintf(buf, "%s frowns.", &op->name); 203 sprintf (buf, "%s frowns.", &op->name);
202 sprintf(buf2, "What's bothering you?"); 204 sprintf (buf2, "What's bothering you?");
203 break; 205 break;
204 case EMOTE_GASP: 206 case EMOTE_GASP:
205 sprintf(buf, "%s gasps in astonishment.", &op->name); 207 sprintf (buf, "%s gasps in astonishment.", &op->name);
206 sprintf(buf2, "You gasp in astonishment."); 208 sprintf (buf2, "You gasp in astonishment.");
207 break; 209 break;
208 case EMOTE_GLARE: 210 case EMOTE_GLARE:
209 sprintf(buf, "%s glares around him.", &op->name); 211 sprintf (buf, "%s glares around him.", &op->name);
210 sprintf(buf2, "You glare at nothing in particular."); 212 sprintf (buf2, "You glare at nothing in particular.");
211 break; 213 break;
212 case EMOTE_GROAN: 214 case EMOTE_GROAN:
213 sprintf(buf, "%s groans loudly.", &op->name); 215 sprintf (buf, "%s groans loudly.", &op->name);
214 sprintf(buf2, "You groan loudly."); 216 sprintf (buf2, "You groan loudly.");
215 break; 217 break;
216 case EMOTE_HICCUP: 218 case EMOTE_HICCUP:
217 sprintf(buf, "%s hiccups.", &op->name); 219 sprintf (buf, "%s hiccups.", &op->name);
218 sprintf(buf2, "*HIC*"); 220 sprintf (buf2, "*HIC*");
219 break; 221 break;
220 case EMOTE_LICK: 222 case EMOTE_LICK:
221 sprintf(buf, "%s licks his mouth and smiles.", &op->name); 223 sprintf (buf, "%s licks his mouth and smiles.", &op->name);
222 sprintf(buf2, "You lick your mouth and smile."); 224 sprintf (buf2, "You lick your mouth and smile.");
223 break; 225 break;
224 case EMOTE_POUT: 226 case EMOTE_POUT:
225 sprintf(buf, "%s pouts.", &op->name); 227 sprintf (buf, "%s pouts.", &op->name);
226 sprintf(buf2, "Aww, don't take it so hard."); 228 sprintf (buf2, "Aww, don't take it so hard.");
227 break; 229 break;
228 case EMOTE_SHIVER: 230 case EMOTE_SHIVER:
229 sprintf(buf, "%s shivers uncomfortably.", &op->name); 231 sprintf (buf, "%s shivers uncomfortably.", &op->name);
230 sprintf(buf2, "Brrrrrrrrr."); 232 sprintf (buf2, "Brrrrrrrrr.");
231 break; 233 break;
232 case EMOTE_SHRUG: 234 case EMOTE_SHRUG:
233 sprintf(buf, "%s shrugs helplessly.", &op->name); 235 sprintf (buf, "%s shrugs helplessly.", &op->name);
234 sprintf(buf2, "You shrug."); 236 sprintf (buf2, "You shrug.");
235 break; 237 break;
236 case EMOTE_SMIRK: 238 case EMOTE_SMIRK:
237 sprintf(buf, "%s smirks.", &op->name); 239 sprintf (buf, "%s smirks.", &op->name);
238 sprintf(buf2, "You smirk."); 240 sprintf (buf2, "You smirk.");
239 break; 241 break;
240 case EMOTE_SNAP: 242 case EMOTE_SNAP:
241 sprintf(buf, "%s snaps his fingers.", &op->name); 243 sprintf (buf, "%s snaps his fingers.", &op->name);
242 sprintf(buf2, "PRONTO! You snap your fingers."); 244 sprintf (buf2, "PRONTO! You snap your fingers.");
243 break; 245 break;
244 case EMOTE_SNEEZE: 246 case EMOTE_SNEEZE:
245 sprintf(buf, "%s sneezes.", &op->name); 247 sprintf (buf, "%s sneezes.", &op->name);
246 sprintf(buf2, "Gesundheit!"); 248 sprintf (buf2, "Gesundheit!");
247 break; 249 break;
248 case EMOTE_SNICKER: 250 case EMOTE_SNICKER:
249 sprintf(buf, "%s snickers softly.", &op->name); 251 sprintf (buf, "%s snickers softly.", &op->name);
250 sprintf(buf2, "You snicker softly."); 252 sprintf (buf2, "You snicker softly.");
251 break; 253 break;
252 case EMOTE_SNIFF: 254 case EMOTE_SNIFF:
253 sprintf(buf, "%s sniffs sadly.", &op->name); 255 sprintf (buf, "%s sniffs sadly.", &op->name);
254 sprintf(buf2, "You sniff sadly. *SNIFF*"); 256 sprintf (buf2, "You sniff sadly. *SNIFF*");
255 break; 257 break;
256 case EMOTE_SNORE: 258 case EMOTE_SNORE:
257 sprintf(buf, "%s snores loudly.", &op->name); 259 sprintf (buf, "%s snores loudly.", &op->name);
258 sprintf(buf2, "Zzzzzzzzzzzzzzz."); 260 sprintf (buf2, "Zzzzzzzzzzzzzzz.");
259 break; 261 break;
260 case EMOTE_SPIT: 262 case EMOTE_SPIT:
261 sprintf(buf, "%s spits over his left shoulder.", &op->name); 263 sprintf (buf, "%s spits over his left shoulder.", &op->name);
262 sprintf(buf2, "You spit over your left shoulder."); 264 sprintf (buf2, "You spit over your left shoulder.");
263 break; 265 break;
264 case EMOTE_STRUT: 266 case EMOTE_STRUT:
265 sprintf(buf, "%s struts proudly.", &op->name); 267 sprintf (buf, "%s struts proudly.", &op->name);
266 sprintf(buf2, "Strut your stuff."); 268 sprintf (buf2, "Strut your stuff.");
267 break; 269 break;
268 case EMOTE_TWIDDLE: 270 case EMOTE_TWIDDLE:
269 sprintf(buf, "%s patiently twiddles his thumbs.", &op->name); 271 sprintf (buf, "%s patiently twiddles his thumbs.", &op->name);
270 sprintf(buf2, "You patiently twiddle your thumbs."); 272 sprintf (buf2, "You patiently twiddle your thumbs.");
271 break; 273 break;
272 case EMOTE_WAVE: 274 case EMOTE_WAVE:
273 sprintf(buf, "%s waves happily.", &op->name); 275 sprintf (buf, "%s waves happily.", &op->name);
274 sprintf(buf2, "You wave."); 276 sprintf (buf2, "You wave.");
275 break; 277 break;
276 case EMOTE_WHISTLE: 278 case EMOTE_WHISTLE:
277 sprintf(buf, "%s whistles appreciatively.", &op->name); 279 sprintf (buf, "%s whistles appreciatively.", &op->name);
278 sprintf(buf2, "You whistle appreciatively."); 280 sprintf (buf2, "You whistle appreciatively.");
279 break; 281 break;
280 case EMOTE_WINK: 282 case EMOTE_WINK:
281 sprintf(buf, "%s winks suggestively.", &op->name); 283 sprintf (buf, "%s winks suggestively.", &op->name);
282 sprintf(buf2, "Have you got something in your eye?"); 284 sprintf (buf2, "Have you got something in your eye?");
283 break; 285 break;
284 case EMOTE_YAWN: 286 case EMOTE_YAWN:
285 sprintf(buf, "%s yawns sleepily.", &op->name); 287 sprintf (buf, "%s yawns sleepily.", &op->name);
286 sprintf(buf2, "You open up your yap and let out a big breeze " 288 sprintf (buf2, "You open up your yap and let out a big breeze " "of stale air.");
287 "of stale air.");
288 break; 289 break;
289 case EMOTE_CRINGE: 290 case EMOTE_CRINGE:
290 sprintf(buf, "%s cringes in terror!", &op->name); 291 sprintf (buf, "%s cringes in terror!", &op->name);
291 sprintf(buf2, "You cringe in terror."); 292 sprintf (buf2, "You cringe in terror.");
292 break; 293 break;
293 case EMOTE_BLEED: 294 case EMOTE_BLEED:
294 sprintf(buf, "%s is bleeding all over the carpet" 295 sprintf (buf, "%s is bleeding all over the carpet" " - got a spare tourniquet?", &op->name);
295 " - got a spare tourniquet?", &op->name);
296 sprintf(buf2, "You bleed all over your nice new armour."); 296 sprintf (buf2, "You bleed all over your nice new armour.");
297 break; 297 break;
298 case EMOTE_THINK: 298 case EMOTE_THINK:
299 sprintf(buf, "%s closes his eyes and thinks really hard.", 299 sprintf (buf, "%s closes his eyes and thinks really hard.", &op->name);
300 &op->name);
301 sprintf(buf2, "Anything in particular that you'd care to think " 300 sprintf (buf2, "Anything in particular that you'd care to think " "about?");
302 "about?");
303 break; 301 break;
304 default: 302 default:
305 sprintf(buf, "%s dances with glee.", &op->name); 303 sprintf (buf, "%s dances with glee.", &op->name);
306 sprintf(buf2, "You are a nut."); 304 sprintf (buf2, "You are a nut.");
307 break; 305 break;
308 } /*case*/ 306 } /*case */
309 new_info_map_except(NDI_WHITE, op->map, op, buf); 307 new_info_map_except (NDI_WHITE, op->map, op, buf);
310 new_draw_info(NDI_UNIQUE|NDI_WHITE, 0, op, buf2); 308 new_draw_info (NDI_UNIQUE | NDI_WHITE, 0, op, buf2);
311 return(0); 309 return (0);
312 } else { 310 }
313 for(pl=first_player;pl!=NULL;pl=pl->next) { 311 else
312 {
313 for_all_players (pl)
314 {
314 if(strncasecmp(pl->ob->name, params, MAX_NAME)==0 && 315 if (strncasecmp (pl->ob->name, params, MAX_NAME) == 0 &&
315 pl->ob->map == op->map && pl->ob != op && 316 pl->ob->map == op->map && pl->ob != op && !(QUERY_FLAG (pl->ob, FLAG_WIZ) && pl->ob->contr->hidden))
316 !(QUERY_FLAG(pl->ob,FLAG_WIZ) && pl->ob->contr->hidden)) { 317 {
317 /* Hidden dms are not affected by emotions*/ 318 /* Hidden dms are not affected by emotions */
318 switch(emotion) { 319 switch (emotion)
320 {
319 case EMOTE_NOD: 321 case EMOTE_NOD:
320 sprintf(buf, "You nod solemnly to %s.", &pl->ob->name); 322 sprintf (buf, "You nod solemnly to %s.", &pl->ob->name);
321 sprintf(buf2, "%s nods solemnly to you.", &op->name); 323 sprintf (buf2, "%s nods solemnly to you.", &op->name);
322 sprintf(buf3, "%s nods solemnly to %s.", &op->name, 324 sprintf (buf3, "%s nods solemnly to %s.", &op->name, &pl->ob->name);
323 &pl->ob->name);
324 break; 325 break;
325 case EMOTE_DANCE: 326 case EMOTE_DANCE:
326 sprintf(buf, "You grab %s and begin doing the Cha-Cha!", 327 sprintf (buf, "You grab %s and begin doing the Cha-Cha!", &pl->ob->name);
327 &pl->ob->name);
328 sprintf(buf2, "%s grabs you, and begins dancing!", 328 sprintf (buf2, "%s grabs you, and begins dancing!", &op->name);
329 &op->name);
330 sprintf(buf3, "Yipe! %s and %s are doing the Macarena!", 329 sprintf (buf3, "Yipe! %s and %s are doing the Macarena!", &op->name, &pl->ob->name);
331 &op->name, &pl->ob->name);
332 break; 330 break;
333 case EMOTE_KISS: 331 case EMOTE_KISS:
334 sprintf(buf, "You kiss %s.", &pl->ob->name); 332 sprintf (buf, "You kiss %s.", &pl->ob->name);
335 sprintf(buf2, "%s kisses you.", &op->name); 333 sprintf (buf2, "%s kisses you.", &op->name);
336 sprintf(buf3, "%s kisses %s.", &op->name, &pl->ob->name); 334 sprintf (buf3, "%s kisses %s.", &op->name, &pl->ob->name);
337 break; 335 break;
338 case EMOTE_BOUNCE: 336 case EMOTE_BOUNCE:
339 sprintf(buf, "You bounce around the room with %s.", 337 sprintf (buf, "You bounce around the room with %s.", &pl->ob->name);
340 &pl->ob->name);
341 sprintf(buf2, "%s bounces around the room with you.", 338 sprintf (buf2, "%s bounces around the room with you.", &op->name);
342 &op->name);
343 sprintf(buf3, "%s bounces around the room with %s.", 339 sprintf (buf3, "%s bounces around the room with %s.", &op->name, &pl->ob->name);
344 &op->name, &pl->ob->name);
345 break; 340 break;
346 case EMOTE_SMILE: 341 case EMOTE_SMILE:
347 sprintf(buf, "You smile at %s.", &pl->ob->name); 342 sprintf (buf, "You smile at %s.", &pl->ob->name);
348 sprintf(buf2, "%s smiles at you.", &op->name); 343 sprintf (buf2, "%s smiles at you.", &op->name);
349 sprintf(buf3, "%s beams a smile at %s.", &op->name, 344 sprintf (buf3, "%s beams a smile at %s.", &op->name, &pl->ob->name);
350 &pl->ob->name);
351 break; 345 break;
352 case EMOTE_LAUGH: 346 case EMOTE_LAUGH:
353 sprintf(buf, "You take one look at %s and fall down " 347 sprintf (buf, "You take one look at %s and fall down " "laughing.", &pl->ob->name);
354 "laughing.", &pl->ob->name);
355 sprintf(buf2, "%s looks at you and falls down on the " 348 sprintf (buf2, "%s looks at you and falls down on the " "ground laughing.", &op->name);
356 "ground laughing.", &op->name); 349 sprintf (buf3, "%s looks at %s and falls down on the " "ground laughing.", &op->name, &pl->ob->name);
357 sprintf(buf3, "%s looks at %s and falls down on the "
358 "ground laughing.", &op->name, &pl->ob->name);
359 break; 350 break;
360 case EMOTE_SHAKE: 351 case EMOTE_SHAKE:
361 sprintf(buf, "You shake %s's hand.", &pl->ob->name); 352 sprintf (buf, "You shake %s's hand.", &pl->ob->name);
362 sprintf(buf2, "%s shakes your hand.", &op->name); 353 sprintf (buf2, "%s shakes your hand.", &op->name);
363 sprintf(buf3, "%s shakes %s's hand.", &op->name, 354 sprintf (buf3, "%s shakes %s's hand.", &op->name, &pl->ob->name);
364 &pl->ob->name);
365 break; 355 break;
366 case EMOTE_PUKE: 356 case EMOTE_PUKE:
367 sprintf(buf, "You puke on %s.", &pl->ob->name); 357 sprintf (buf, "You puke on %s.", &pl->ob->name);
368 sprintf(buf2, "%s pukes on your clothes!", &op->name); 358 sprintf (buf2, "%s pukes on your clothes!", &op->name);
369 sprintf(buf3, "%s pukes on %s.", &op->name, &pl->ob->name); 359 sprintf (buf3, "%s pukes on %s.", &op->name, &pl->ob->name);
370 break; 360 break;
371 case EMOTE_HUG: 361 case EMOTE_HUG:
372 sprintf(buf, "You hug %s.", &pl->ob->name); 362 sprintf (buf, "You hug %s.", &pl->ob->name);
373 sprintf(buf2, "%s hugs you.", &op->name); 363 sprintf (buf2, "%s hugs you.", &op->name);
374 sprintf(buf3, "%s hugs %s.", &op->name, &pl->ob->name); 364 sprintf (buf3, "%s hugs %s.", &op->name, &pl->ob->name);
375 break; 365 break;
376 case EMOTE_CRY: 366 case EMOTE_CRY:
377 sprintf(buf, "You cry on %s's shoulder.", &pl->ob->name); 367 sprintf (buf, "You cry on %s's shoulder.", &pl->ob->name);
378 sprintf(buf2, "%s cries on your shoulder.", &op->name); 368 sprintf (buf2, "%s cries on your shoulder.", &op->name);
379 sprintf(buf3, "%s cries on %s's shoulder.", &op->name, 369 sprintf (buf3, "%s cries on %s's shoulder.", &op->name, &pl->ob->name);
380 &pl->ob->name);
381 break; 370 break;
382 case EMOTE_POKE: 371 case EMOTE_POKE:
383 sprintf(buf, "You poke %s in the ribs.", &pl->ob->name); 372 sprintf (buf, "You poke %s in the ribs.", &pl->ob->name);
384 sprintf(buf2, "%s pokes you in the ribs.", &op->name); 373 sprintf (buf2, "%s pokes you in the ribs.", &op->name);
385 sprintf(buf3, "%s pokes %s in the ribs.", &op->name, 374 sprintf (buf3, "%s pokes %s in the ribs.", &op->name, &pl->ob->name);
386 &pl->ob->name);
387 break; 375 break;
388 case EMOTE_ACCUSE: 376 case EMOTE_ACCUSE:
389 sprintf(buf, "You look accusingly at %s.", &pl->ob->name); 377 sprintf (buf, "You look accusingly at %s.", &pl->ob->name);
390 sprintf(buf2, "%s looks accusingly at you.", &op->name); 378 sprintf (buf2, "%s looks accusingly at you.", &op->name);
391 sprintf(buf3, "%s looks accusingly at %s.", &op->name, 379 sprintf (buf3, "%s looks accusingly at %s.", &op->name, &pl->ob->name);
392 &pl->ob->name);
393 break; 380 break;
394 case EMOTE_GRIN: 381 case EMOTE_GRIN:
395 sprintf(buf, "You grin at %s.", &pl->ob->name); 382 sprintf (buf, "You grin at %s.", &pl->ob->name);
396 sprintf(buf2, "%s grins evilly at you.", &op->name); 383 sprintf (buf2, "%s grins evilly at you.", &op->name);
397 sprintf(buf3, "%s grins evilly at %s.", &op->name, 384 sprintf (buf3, "%s grins evilly at %s.", &op->name, &pl->ob->name);
398 &pl->ob->name);
399 break; 385 break;
400 case EMOTE_BOW: 386 case EMOTE_BOW:
401 sprintf(buf, "You bow before %s.", &pl->ob->name); 387 sprintf (buf, "You bow before %s.", &pl->ob->name);
402 sprintf(buf2, "%s bows before you.", &op->name); 388 sprintf (buf2, "%s bows before you.", &op->name);
403 sprintf(buf3, "%s bows before %s.", &op->name, 389 sprintf (buf3, "%s bows before %s.", &op->name, &pl->ob->name);
404 &pl->ob->name);
405 break; 390 break;
406 case EMOTE_FROWN: 391 case EMOTE_FROWN:
407 sprintf(buf, "You frown darkly at %s.", &pl->ob->name); 392 sprintf (buf, "You frown darkly at %s.", &pl->ob->name);
408 sprintf(buf2, "%s frowns darkly at you.", &op->name); 393 sprintf (buf2, "%s frowns darkly at you.", &op->name);
409 sprintf(buf3, "%s frowns darkly at %s.", &op->name, 394 sprintf (buf3, "%s frowns darkly at %s.", &op->name, &pl->ob->name);
410 &pl->ob->name);
411 break; 395 break;
412 case EMOTE_GLARE: 396 case EMOTE_GLARE:
413 sprintf(buf, "You glare icily at %s.", &pl->ob->name); 397 sprintf (buf, "You glare icily at %s.", &pl->ob->name);
414 sprintf(buf2, "%s glares icily at you, you feel cold to" 398 sprintf (buf2, "%s glares icily at you, you feel cold to" " your bones.", &op->name);
415 " your bones.", &op->name);
416 sprintf(buf3, "%s glares at %s.", &op->name, &pl->ob->name); 399 sprintf (buf3, "%s glares at %s.", &op->name, &pl->ob->name);
417 break; 400 break;
418 case EMOTE_LICK: 401 case EMOTE_LICK:
419 sprintf(buf, "You lick %s.", &pl->ob->name); 402 sprintf (buf, "You lick %s.", &pl->ob->name);
420 sprintf(buf2, "%s licks you.", &op->name); 403 sprintf (buf2, "%s licks you.", &op->name);
421 sprintf(buf3, "%s licks %s.", &op->name, &pl->ob->name); 404 sprintf (buf3, "%s licks %s.", &op->name, &pl->ob->name);
422 break; 405 break;
423 case EMOTE_SHRUG: 406 case EMOTE_SHRUG:
424 sprintf(buf, "You shrug at %s.", &pl->ob->name); 407 sprintf (buf, "You shrug at %s.", &pl->ob->name);
425 sprintf(buf2, "%s shrugs at you.", &op->name); 408 sprintf (buf2, "%s shrugs at you.", &op->name);
426 sprintf(buf3, "%s shrugs at %s.", &op->name, &pl->ob->name); 409 sprintf (buf3, "%s shrugs at %s.", &op->name, &pl->ob->name);
427 break; 410 break;
428 case EMOTE_SLAP: 411 case EMOTE_SLAP:
429 sprintf(buf, "You slap %s.", &pl->ob->name); 412 sprintf (buf, "You slap %s.", &pl->ob->name);
430 sprintf(buf2, "You are slapped by %s.", &op->name); 413 sprintf (buf2, "You are slapped by %s.", &op->name);
431 sprintf(buf3, "%s slaps %s.", &op->name, &pl->ob->name); 414 sprintf (buf3, "%s slaps %s.", &op->name, &pl->ob->name);
432 break; 415 break;
433 case EMOTE_SNEEZE: 416 case EMOTE_SNEEZE:
434 sprintf(buf, "You sneeze at %s and a film of snot shoots" 417 sprintf (buf, "You sneeze at %s and a film of snot shoots" " onto him.", &pl->ob->name);
435 " onto him.", &pl->ob->name);
436 sprintf(buf2, "%s sneezes on you, you feel the snot cover" 418 sprintf (buf2, "%s sneezes on you, you feel the snot cover" " you. EEEEEEW.", &op->name);
437 " you. EEEEEEW.", &op->name);
438 sprintf(buf3, "%s sneezes on %s and a film of snot covers" 419 sprintf (buf3, "%s sneezes on %s and a film of snot covers" " him.", &op->name, &pl->ob->name);
439 " him.", &op->name, &pl->ob->name);
440 break; 420 break;
441 case EMOTE_SNIFF: 421 case EMOTE_SNIFF:
442 sprintf(buf, "You sniff %s.", &pl->ob->name); 422 sprintf (buf, "You sniff %s.", &pl->ob->name);
443 sprintf(buf2, "%s sniffs you.", &op->name); 423 sprintf (buf2, "%s sniffs you.", &op->name);
444 sprintf(buf3, "%s sniffs %s", &op->name, &pl->ob->name); 424 sprintf (buf3, "%s sniffs %s", &op->name, &pl->ob->name);
445 break; 425 break;
446 case EMOTE_SPIT: 426 case EMOTE_SPIT:
447 sprintf(buf, "You spit on %s.", &pl->ob->name); 427 sprintf (buf, "You spit on %s.", &pl->ob->name);
448 sprintf(buf2, "%s spits in your face!", &op->name); 428 sprintf (buf2, "%s spits in your face!", &op->name);
449 sprintf(buf3, "%s spits in %s's face.", &op->name, 429 sprintf (buf3, "%s spits in %s's face.", &op->name, &pl->ob->name);
450 &pl->ob->name);
451 break; 430 break;
452 case EMOTE_THANK: 431 case EMOTE_THANK:
453 sprintf(buf, "You thank %s heartily.", &pl->ob->name); 432 sprintf (buf, "You thank %s heartily.", &pl->ob->name);
454 sprintf(buf2, "%s thanks you heartily.", &op->name); 433 sprintf (buf2, "%s thanks you heartily.", &op->name);
455 sprintf(buf3, "%s thanks %s heartily.", &op->name, 434 sprintf (buf3, "%s thanks %s heartily.", &op->name, &pl->ob->name);
456 &pl->ob->name);
457 break; 435 break;
458 case EMOTE_WAVE: 436 case EMOTE_WAVE:
459 sprintf(buf, "You wave goodbye to %s.", &pl->ob->name); 437 sprintf (buf, "You wave goodbye to %s.", &pl->ob->name);
460 sprintf(buf2, "%s waves goodbye to you. Have a good" 438 sprintf (buf2, "%s waves goodbye to you. Have a good" " journey.", &op->name);
461 " journey.", &op->name);
462 sprintf(buf3, "%s waves goodbye to %s.", &op->name, 439 sprintf (buf3, "%s waves goodbye to %s.", &op->name, &pl->ob->name);
463 &pl->ob->name);
464 break; 440 break;
465 case EMOTE_WHISTLE: 441 case EMOTE_WHISTLE:
466 sprintf(buf, "You whistle at %s.", &pl->ob->name); 442 sprintf (buf, "You whistle at %s.", &pl->ob->name);
467 sprintf(buf2, "%s whistles at you.", &op->name); 443 sprintf (buf2, "%s whistles at you.", &op->name);
468 sprintf(buf2, "%s whistles at %s.", &op->name, &pl->ob->name); 444 sprintf (buf2, "%s whistles at %s.", &op->name, &pl->ob->name);
469 break; 445 break;
470 case EMOTE_WINK: 446 case EMOTE_WINK:
471 sprintf(buf, "You wink suggestively at %s.", &pl->ob->name); 447 sprintf (buf, "You wink suggestively at %s.", &pl->ob->name);
472 sprintf(buf2, "%s winks suggestively at you.", &op->name); 448 sprintf (buf2, "%s winks suggestively at you.", &op->name);
473 sprintf(buf2, "%s winks at %s.", &op->name, &pl->ob->name); 449 sprintf (buf2, "%s winks at %s.", &op->name, &pl->ob->name);
474 break; 450 break;
475 case EMOTE_BEG: 451 case EMOTE_BEG:
476 sprintf(buf, "You beg %s for mercy.", &pl->ob->name); 452 sprintf (buf, "You beg %s for mercy.", &pl->ob->name);
477 sprintf(buf2, "%s begs you for mercy! Show no quarter!", 453 sprintf (buf2, "%s begs you for mercy! Show no quarter!", &op->name);
478 &op->name);
479 sprintf(buf2, "%s begs %s for mercy!", &op->name, 454 sprintf (buf2, "%s begs %s for mercy!", &op->name, &pl->ob->name);
480 &pl->ob->name);
481 break; 455 break;
482 case EMOTE_BLEED: 456 case EMOTE_BLEED:
483 sprintf(buf, "You slash your wrist and bleed all over %s", 457 sprintf (buf, "You slash your wrist and bleed all over %s", &pl->ob->name);
484 &pl->ob->name);
485 sprintf(buf2, "%s slashes his wrist and bleeds all over" 458 sprintf (buf2, "%s slashes his wrist and bleeds all over" " you.", &op->name);
486 " you.", &op->name);
487 sprintf(buf2, "%s slashes his wrist and bleeds all " 459 sprintf (buf2, "%s slashes his wrist and bleeds all " "over %s.", &op->name, &pl->ob->name);
488 "over %s.", &op->name, &pl->ob->name);
489 break; 460 break;
490 case EMOTE_CRINGE: 461 case EMOTE_CRINGE:
491 sprintf(buf, "You cringe away from %s.", &pl->ob->name); 462 sprintf (buf, "You cringe away from %s.", &pl->ob->name);
492 sprintf(buf2, "%s cringes away from you.", &op->name); 463 sprintf (buf2, "%s cringes away from you.", &op->name);
493 sprintf(buf2, "%s cringes away from %s in mortal terror.", 464 sprintf (buf2, "%s cringes away from %s in mortal terror.", &op->name, &pl->ob->name);
494 &op->name, &pl->ob->name);
495 break; 465 break;
496 default: 466 default:
497 sprintf(buf, "You are still nuts."); 467 sprintf (buf, "You are still nuts.");
498 sprintf(buf2, "You get the distinct feeling that %s is nuts.", 468 sprintf (buf2, "You get the distinct feeling that %s is nuts.", &op->name);
499 &op->name);
500 sprintf(buf3, "%s is eyeing %s quizzically.", &pl->ob->name, 469 sprintf (buf3, "%s is eyeing %s quizzically.", &pl->ob->name, &op->name);
501 &op->name);
502 break; 470 break;
503 } /*case*/ 471 } /*case */
504 new_draw_info(NDI_UNIQUE|NDI_WHITE, 0, op, buf); 472 new_draw_info (NDI_UNIQUE | NDI_WHITE, 0, op, buf);
505 new_draw_info(NDI_UNIQUE|NDI_WHITE, 0, pl->ob, buf2); 473 new_draw_info (NDI_UNIQUE | NDI_WHITE, 0, pl->ob, buf2);
506 new_info_map_except2(NDI_WHITE, op->map, op, pl->ob, buf3); 474 new_info_map_except2 (NDI_WHITE, op->map, op, pl->ob, buf3);
507 return(0); 475 return (0);
508 } 476 }
509 if(strncasecmp(pl->ob->name, params, MAX_NAME)==0 && 477 if (strncasecmp (pl->ob->name, params, MAX_NAME) == 0 && pl->ob->map == op->map && pl->ob == op)
510 pl->ob->map == op->map && pl->ob == op) { 478 {
511 switch(emotion) { 479 switch (emotion)
480 {
512 case EMOTE_DANCE: 481 case EMOTE_DANCE:
513 sprintf(buf, "You skip and dance around by yourself."); 482 sprintf (buf, "You skip and dance around by yourself.");
514 sprintf(buf2, "%s embraces himself and begins to dance!", 483 sprintf (buf2, "%s embraces himself and begins to dance!", &op->name);
515 &op->name);
516 break; 484 break;
517 case EMOTE_LAUGH: 485 case EMOTE_LAUGH:
518 sprintf(buf, "Laugh at yourself all you want, the others " 486 sprintf (buf, "Laugh at yourself all you want, the others " "won't understand.");
519 "won't understand.");
520 sprintf(buf2, "%s is laughing at something.", &op->name); 487 sprintf (buf2, "%s is laughing at something.", &op->name);
521 break; 488 break;
522 case EMOTE_SHAKE: 489 case EMOTE_SHAKE:
523 sprintf(buf, "You are shaken by yourself."); 490 sprintf (buf, "You are shaken by yourself.");
524 sprintf(buf2, "%s shakes and quivers like a bowlful of " 491 sprintf (buf2, "%s shakes and quivers like a bowlful of " "jelly.", &op->name);
525 "jelly.", &op->name);
526 break; 492 break;
527 case EMOTE_PUKE: 493 case EMOTE_PUKE:
528 sprintf(buf, "You puke on yourself."); 494 sprintf (buf, "You puke on yourself.");
529 sprintf(buf2, "%s pukes on his clothes.", &op->name); 495 sprintf (buf2, "%s pukes on his clothes.", &op->name);
530 break; 496 break;
531 case EMOTE_HUG: 497 case EMOTE_HUG:
532 sprintf(buf, "You hug yourself."); 498 sprintf (buf, "You hug yourself.");
533 sprintf(buf2, "%s hugs himself.", &op->name); 499 sprintf (buf2, "%s hugs himself.", &op->name);
534 break; 500 break;
535 case EMOTE_CRY: 501 case EMOTE_CRY:
536 sprintf(buf, "You cry to yourself."); 502 sprintf (buf, "You cry to yourself.");
537 sprintf(buf2, "%s sobs quietly to himself.", &op->name); 503 sprintf (buf2, "%s sobs quietly to himself.", &op->name);
538 break; 504 break;
539 case EMOTE_POKE: 505 case EMOTE_POKE:
540 sprintf(buf, "You poke yourself in the ribs, feeling very" 506 sprintf (buf, "You poke yourself in the ribs, feeling very" " silly.");
541 " silly.");
542 sprintf(buf2, "%s pokes himself in the ribs, looking very" 507 sprintf (buf2, "%s pokes himself in the ribs, looking very" " sheepish.", &op->name);
543 " sheepish.", &op->name);
544 break; 508 break;
545 case EMOTE_ACCUSE: 509 case EMOTE_ACCUSE:
546 sprintf(buf, "You accuse yourself."); 510 sprintf (buf, "You accuse yourself.");
547 sprintf(buf2, "%s seems to have a bad conscience.", 511 sprintf (buf2, "%s seems to have a bad conscience.", &op->name);
548 &op->name);
549 break; 512 break;
550 case EMOTE_BOW: 513 case EMOTE_BOW:
551 sprintf(buf, "You kiss your toes."); 514 sprintf (buf, "You kiss your toes.");
552 sprintf(buf2, "%s folds up like a jackknife and kisses his" 515 sprintf (buf2, "%s folds up like a jackknife and kisses his" " own toes.", &op->name);
553 " own toes.", &op->name);
554 break; 516 break;
555 case EMOTE_FROWN: 517 case EMOTE_FROWN:
556 sprintf(buf, "You frown at yourself."); 518 sprintf (buf, "You frown at yourself.");
557 sprintf(buf2, "%s frowns at himself.", &op->name); 519 sprintf (buf2, "%s frowns at himself.", &op->name);
558 break; 520 break;
559 case EMOTE_GLARE: 521 case EMOTE_GLARE:
560 sprintf(buf, "You glare icily at your feet, they are " 522 sprintf (buf, "You glare icily at your feet, they are " "suddenly very cold.");
561 "suddenly very cold.");
562 sprintf(buf2, "%s glares at his feet, what is bothering " 523 sprintf (buf2, "%s glares at his feet, what is bothering " "him?", &op->name);
563 "him?", &op->name);
564 break; 524 break;
565 case EMOTE_LICK: 525 case EMOTE_LICK:
566 sprintf(buf, "You lick yourself."); 526 sprintf (buf, "You lick yourself.");
567 sprintf(buf2, "%s licks himself - YUCK.", &op->name); 527 sprintf (buf2, "%s licks himself - YUCK.", &op->name);
568 break; 528 break;
569 case EMOTE_SLAP: 529 case EMOTE_SLAP:
570 sprintf(buf, "You slap yourself, silly you."); 530 sprintf (buf, "You slap yourself, silly you.");
571 sprintf(buf2, "%s slaps himself, really strange...", 531 sprintf (buf2, "%s slaps himself, really strange...", &op->name);
572 &op->name);
573 break; 532 break;
574 case EMOTE_SNEEZE: 533 case EMOTE_SNEEZE:
575 sprintf(buf, "You sneeze on yourself, what a mess!"); 534 sprintf (buf, "You sneeze on yourself, what a mess!");
576 sprintf(buf2, "%s sneezes, and covers himself in a slimy" 535 sprintf (buf2, "%s sneezes, and covers himself in a slimy" " substance.", &op->name);
577 " substance.", &op->name);
578 break; 536 break;
579 case EMOTE_SNIFF: 537 case EMOTE_SNIFF:
580 sprintf(buf, "You sniff yourself."); 538 sprintf (buf, "You sniff yourself.");
581 sprintf(buf2, "%s sniffs himself.", &op->name); 539 sprintf (buf2, "%s sniffs himself.", &op->name);
582 break; 540 break;
583 case EMOTE_SPIT: 541 case EMOTE_SPIT:
584 sprintf(buf, "You drool all over yourself."); 542 sprintf (buf, "You drool all over yourself.");
585 sprintf(buf2, "%s drools all over himself.", &op->name); 543 sprintf (buf2, "%s drools all over himself.", &op->name);
586 break; 544 break;
587 case EMOTE_THANK: 545 case EMOTE_THANK:
588 sprintf(buf, "You thank yourself since nobody else " 546 sprintf (buf, "You thank yourself since nobody else " "wants to!");
589 "wants to!");
590 sprintf(buf2, "%s thanks himself since you won't.", 547 sprintf (buf2, "%s thanks himself since you won't.", &op->name);
591 &op->name);
592 break; 548 break;
593 case EMOTE_WAVE: 549 case EMOTE_WAVE:
594 sprintf(buf, "Are you going on adventures as well??"); 550 sprintf (buf, "Are you going on adventures as well??");
595 sprintf(buf2, "%s waves goodbye to himself.", &op->name); 551 sprintf (buf2, "%s waves goodbye to himself.", &op->name);
596 break; 552 break;
597 case EMOTE_WHISTLE: 553 case EMOTE_WHISTLE:
598 sprintf(buf, "You whistle while you work."); 554 sprintf (buf, "You whistle while you work.");
599 sprintf(buf2, "%s whistles to himself in boredom.", 555 sprintf (buf2, "%s whistles to himself in boredom.", &op->name);
600 &op->name);
601 break; 556 break;
602 case EMOTE_WINK: 557 case EMOTE_WINK:
603 sprintf(buf, "You wink at yourself?? What are you up to?"); 558 sprintf (buf, "You wink at yourself?? What are you up to?");
604 sprintf(buf2, "%s winks at himself - something strange " 559 sprintf (buf2, "%s winks at himself - something strange " "is going on...", &op->name);
605 "is going on...", &op->name);
606 break; 560 break;
607 case EMOTE_BLEED: 561 case EMOTE_BLEED:
608 sprintf(buf, "Very impressive! You wipe your blood all " 562 sprintf (buf, "Very impressive! You wipe your blood all " "over yourself.");
609 "over yourself.");
610 sprintf(buf2, "%s performs some satanic ritual while " 563 sprintf (buf2, "%s performs some satanic ritual while " "wiping his blood on himself.", &op->name);
611 "wiping his blood on himself.", &op->name);
612 break; 564 break;
613 default: 565 default:
614 sprintf(buf, "My god! is that LEGAL?"); 566 sprintf (buf, "My god! is that LEGAL?");
615 sprintf(buf2, "You look away from %s.", &op->name); 567 sprintf (buf2, "You look away from %s.", &op->name);
616 break; 568 break;
617 }/*case*/ 569 } /*case */
618 new_draw_info(NDI_UNIQUE|NDI_WHITE, 0, op, buf); 570 new_draw_info (NDI_UNIQUE | NDI_WHITE, 0, op, buf);
619 new_info_map_except(NDI_WHITE, op->map, op, buf2); 571 new_info_map_except (NDI_WHITE, op->map, op, buf2);
620 return(0); 572 return (0);
621 }/*if self*/ 573 } /*if self */
622 }/*for*/ 574 } /*for */
623 new_draw_info_format(NDI_UNIQUE, 0, op, "%s is not around.", params); 575 new_draw_info_format (NDI_UNIQUE, 0, op, "%s is not around.", params);
624 return(1); 576 return (1);
625 } /*else*/ 577 } /*else */
626 578
627 return(0); 579 return (0);
628} 580}
629 581
630/* 582/*
631 * everything from here on out are just wrapper calls to basic_emote 583 * everything from here on out are just wrapper calls to basic_emote
632 */ 584 */
633 585
586int
634int command_nod(object *op, char *params) 587command_nod (object *op, char *params)
635{ 588{
636 return(basic_emote(op, params, EMOTE_NOD)); 589 return (basic_emote (op, params, EMOTE_NOD));
637} 590}
638 591
592int
639int command_dance(object *op, char *params) 593command_dance (object *op, char *params)
640{ 594{
641 return(basic_emote(op, params, EMOTE_DANCE)); 595 return (basic_emote (op, params, EMOTE_DANCE));
642} 596}
643 597
598int
644int command_kiss(object *op, char *params) 599command_kiss (object *op, char *params)
645{ 600{
646 return(basic_emote(op, params, EMOTE_KISS)); 601 return (basic_emote (op, params, EMOTE_KISS));
647} 602}
648 603
604int
649int command_bounce(object *op, char *params) 605command_bounce (object *op, char *params)
650{ 606{
651 return(basic_emote(op, params, EMOTE_BOUNCE)); 607 return (basic_emote (op, params, EMOTE_BOUNCE));
652} 608}
653 609
610int
654int command_smile(object *op, char *params) 611command_smile (object *op, char *params)
655{ 612{
656 return(basic_emote(op, params, EMOTE_SMILE)); 613 return (basic_emote (op, params, EMOTE_SMILE));
657} 614}
658 615
616int
659int command_cackle(object *op, char *params) 617command_cackle (object *op, char *params)
660{ 618{
661 return(basic_emote(op, params, EMOTE_CACKLE)); 619 return (basic_emote (op, params, EMOTE_CACKLE));
662} 620}
663 621
622int
664int command_laugh(object *op, char *params) 623command_laugh (object *op, char *params)
665{ 624{
666 return(basic_emote(op, params, EMOTE_LAUGH)); 625 return (basic_emote (op, params, EMOTE_LAUGH));
667} 626}
668 627
628int
669int command_giggle(object *op, char *params) 629command_giggle (object *op, char *params)
670{ 630{
671 return(basic_emote(op, params, EMOTE_GIGGLE)); 631 return (basic_emote (op, params, EMOTE_GIGGLE));
672} 632}
673 633
634int
674int command_shake(object *op, char *params) 635command_shake (object *op, char *params)
675{ 636{
676 return(basic_emote(op, params, EMOTE_SHAKE)); 637 return (basic_emote (op, params, EMOTE_SHAKE));
677} 638}
678 639
640int
679int command_puke(object *op, char *params) 641command_puke (object *op, char *params)
680{ 642{
681 return(basic_emote(op, params, EMOTE_PUKE)); 643 return (basic_emote (op, params, EMOTE_PUKE));
682} 644}
683 645
646int
684int command_growl(object *op, char *params) 647command_growl (object *op, char *params)
685{ 648{
686 return(basic_emote(op, params, EMOTE_GROWL)); 649 return (basic_emote (op, params, EMOTE_GROWL));
687} 650}
688 651
652int
689int command_scream(object *op, char *params) 653command_scream (object *op, char *params)
690{ 654{
691 return(basic_emote(op, params, EMOTE_SCREAM)); 655 return (basic_emote (op, params, EMOTE_SCREAM));
692} 656}
693 657
658int
694int command_sigh(object *op, char *params) 659command_sigh (object *op, char *params)
695{ 660{
696 return(basic_emote(op, params, EMOTE_SIGH)); 661 return (basic_emote (op, params, EMOTE_SIGH));
697} 662}
698 663
664int
699int command_sulk(object *op, char *params) 665command_sulk (object *op, char *params)
700{ 666{
701 return(basic_emote(op, params, EMOTE_SULK)); 667 return (basic_emote (op, params, EMOTE_SULK));
702} 668}
703 669
670int
704int command_hug(object *op, char *params) 671command_hug (object *op, char *params)
705{ 672{
706 return(basic_emote(op, params, EMOTE_HUG)); 673 return (basic_emote (op, params, EMOTE_HUG));
707} 674}
708 675
676int
709int command_cry(object *op, char *params) 677command_cry (object *op, char *params)
710{ 678{
711 return(basic_emote(op, params, EMOTE_CRY)); 679 return (basic_emote (op, params, EMOTE_CRY));
712} 680}
713 681
682int
714int command_poke(object *op, char *params) 683command_poke (object *op, char *params)
715{ 684{
716 return(basic_emote(op, params, EMOTE_POKE)); 685 return (basic_emote (op, params, EMOTE_POKE));
717} 686}
718 687
688int
719int command_accuse(object *op, char *params) 689command_accuse (object *op, char *params)
720{ 690{
721 return(basic_emote(op, params, EMOTE_ACCUSE)); 691 return (basic_emote (op, params, EMOTE_ACCUSE));
722} 692}
723 693
694int
724int command_grin(object *op, char *params) 695command_grin (object *op, char *params)
725{ 696{
726 return(basic_emote(op, params, EMOTE_GRIN)); 697 return (basic_emote (op, params, EMOTE_GRIN));
727} 698}
728 699
700int
729int command_bow(object *op, char *params) 701command_bow (object *op, char *params)
730{ 702{
731 return(basic_emote(op, params, EMOTE_BOW)); 703 return (basic_emote (op, params, EMOTE_BOW));
732} 704}
733 705
706int
734int command_clap(object *op, char *params) 707command_clap (object *op, char *params)
735{ 708{
736 return(basic_emote(op, params, EMOTE_CLAP)); 709 return (basic_emote (op, params, EMOTE_CLAP));
737} 710}
738 711
712int
739int command_blush(object *op, char *params) 713command_blush (object *op, char *params)
740{ 714{
741 return(basic_emote(op, params, EMOTE_BLUSH)); 715 return (basic_emote (op, params, EMOTE_BLUSH));
742} 716}
743 717
718int
744int command_burp(object *op, char *params) 719command_burp (object *op, char *params)
745{ 720{
746 return(basic_emote(op, params, EMOTE_BURP)); 721 return (basic_emote (op, params, EMOTE_BURP));
747} 722}
748 723
724int
749int command_chuckle(object *op, char *params) 725command_chuckle (object *op, char *params)
750{ 726{
751 return(basic_emote(op, params, EMOTE_CHUCKLE)); 727 return (basic_emote (op, params, EMOTE_CHUCKLE));
752} 728}
753 729
730int
754int command_cough(object *op, char *params) 731command_cough (object *op, char *params)
755{ 732{
756 return(basic_emote(op, params, EMOTE_COUGH)); 733 return (basic_emote (op, params, EMOTE_COUGH));
757} 734}
758 735
736int
759int command_flip(object *op, char *params) 737command_flip (object *op, char *params)
760{ 738{
761 return(basic_emote(op, params, EMOTE_FLIP)); 739 return (basic_emote (op, params, EMOTE_FLIP));
762} 740}
763 741
742int
764int command_frown(object *op, char *params) 743command_frown (object *op, char *params)
765{ 744{
766 return(basic_emote(op, params, EMOTE_FROWN)); 745 return (basic_emote (op, params, EMOTE_FROWN));
767} 746}
768 747
748int
769int command_gasp(object *op, char *params) 749command_gasp (object *op, char *params)
770{ 750{
771 return(basic_emote(op, params, EMOTE_GASP)); 751 return (basic_emote (op, params, EMOTE_GASP));
772} 752}
773 753
754int
774int command_glare(object *op, char *params) 755command_glare (object *op, char *params)
775{ 756{
776 return(basic_emote(op, params, EMOTE_GLARE)); 757 return (basic_emote (op, params, EMOTE_GLARE));
777} 758}
778 759
760int
779int command_groan(object *op, char *params) 761command_groan (object *op, char *params)
780{ 762{
781 return(basic_emote(op, params, EMOTE_GROAN)); 763 return (basic_emote (op, params, EMOTE_GROAN));
782} 764}
783 765
766int
784int command_hiccup(object *op, char *params) 767command_hiccup (object *op, char *params)
785{ 768{
786 return(basic_emote(op, params, EMOTE_HICCUP)); 769 return (basic_emote (op, params, EMOTE_HICCUP));
787} 770}
788 771
772int
789int command_lick(object *op, char *params) 773command_lick (object *op, char *params)
790{ 774{
791 return(basic_emote(op, params, EMOTE_LICK)); 775 return (basic_emote (op, params, EMOTE_LICK));
792} 776}
793 777
778int
794int command_pout(object *op, char *params) 779command_pout (object *op, char *params)
795{ 780{
796 return(basic_emote(op, params, EMOTE_POUT)); 781 return (basic_emote (op, params, EMOTE_POUT));
797} 782}
798 783
784int
799int command_shiver(object *op, char *params) 785command_shiver (object *op, char *params)
800{ 786{
801 return(basic_emote(op, params, EMOTE_SHIVER)); 787 return (basic_emote (op, params, EMOTE_SHIVER));
802} 788}
803 789
790int
804int command_shrug(object *op, char *params) 791command_shrug (object *op, char *params)
805{ 792{
806 return(basic_emote(op, params, EMOTE_SHRUG)); 793 return (basic_emote (op, params, EMOTE_SHRUG));
807} 794}
808 795
796int
809int command_slap(object *op, char *params) 797command_slap (object *op, char *params)
810{ 798{
811 return(basic_emote(op, params, EMOTE_SLAP)); 799 return (basic_emote (op, params, EMOTE_SLAP));
812} 800}
813 801
802int
814int command_smirk(object *op, char *params) 803command_smirk (object *op, char *params)
815{ 804{
816 return(basic_emote(op, params, EMOTE_SMIRK)); 805 return (basic_emote (op, params, EMOTE_SMIRK));
817} 806}
818 807
808int
819int command_snap(object *op, char *params) 809command_snap (object *op, char *params)
820{ 810{
821 return(basic_emote(op, params, EMOTE_SNAP)); 811 return (basic_emote (op, params, EMOTE_SNAP));
822} 812}
823 813
814int
824int command_sneeze(object *op, char *params) 815command_sneeze (object *op, char *params)
825{ 816{
826 return(basic_emote(op, params, EMOTE_SNEEZE)); 817 return (basic_emote (op, params, EMOTE_SNEEZE));
827} 818}
828 819
820int
829int command_snicker(object *op, char *params) 821command_snicker (object *op, char *params)
830{ 822{
831 return(basic_emote(op, params, EMOTE_SNICKER)); 823 return (basic_emote (op, params, EMOTE_SNICKER));
832} 824}
833 825
826int
834int command_sniff(object *op, char *params) 827command_sniff (object *op, char *params)
835{ 828{
836 return(basic_emote(op, params, EMOTE_SNIFF)); 829 return (basic_emote (op, params, EMOTE_SNIFF));
837} 830}
838 831
832int
839int command_snore(object *op, char *params) 833command_snore (object *op, char *params)
840{ 834{
841 return(basic_emote(op, params, EMOTE_SNORE)); 835 return (basic_emote (op, params, EMOTE_SNORE));
842} 836}
843 837
838int
844int command_spit(object *op, char *params) 839command_spit (object *op, char *params)
845{ 840{
846 return(basic_emote(op, params, EMOTE_SPIT)); 841 return (basic_emote (op, params, EMOTE_SPIT));
847} 842}
848 843
844int
849int command_strut(object *op, char *params) 845command_strut (object *op, char *params)
850{ 846{
851 return(basic_emote(op, params, EMOTE_STRUT)); 847 return (basic_emote (op, params, EMOTE_STRUT));
852} 848}
853 849
850int
854int command_thank(object *op, char *params) 851command_thank (object *op, char *params)
855{ 852{
856 return(basic_emote(op, params, EMOTE_THANK)); 853 return (basic_emote (op, params, EMOTE_THANK));
857} 854}
858 855
856int
859int command_twiddle(object *op, char *params) 857command_twiddle (object *op, char *params)
860{ 858{
861 return(basic_emote(op, params, EMOTE_TWIDDLE)); 859 return (basic_emote (op, params, EMOTE_TWIDDLE));
862} 860}
863 861
862int
864int command_wave(object *op, char *params) 863command_wave (object *op, char *params)
865{ 864{
866 return(basic_emote(op, params, EMOTE_WAVE)); 865 return (basic_emote (op, params, EMOTE_WAVE));
867} 866}
868 867
868int
869int command_whistle(object *op, char *params) 869command_whistle (object *op, char *params)
870{ 870{
871 return(basic_emote(op, params, EMOTE_WHISTLE)); 871 return (basic_emote (op, params, EMOTE_WHISTLE));
872} 872}
873 873
874int
874int command_wink(object *op, char *params) 875command_wink (object *op, char *params)
875{ 876{
876 return(basic_emote(op, params, EMOTE_WINK)); 877 return (basic_emote (op, params, EMOTE_WINK));
877} 878}
878 879
880int
879int command_yawn(object *op, char *params) 881command_yawn (object *op, char *params)
880{ 882{
881 return(basic_emote(op, params, EMOTE_YAWN)); 883 return (basic_emote (op, params, EMOTE_YAWN));
882} 884}
883 885
886int
884int command_beg(object *op, char *params) 887command_beg (object *op, char *params)
885{ 888{
886 return(basic_emote(op, params, EMOTE_BEG)); 889 return (basic_emote (op, params, EMOTE_BEG));
887} 890}
888 891
892int
889int command_bleed(object *op, char *params) 893command_bleed (object *op, char *params)
890{ 894{
891 return(basic_emote(op, params, EMOTE_BLEED)); 895 return (basic_emote (op, params, EMOTE_BLEED));
892} 896}
893 897
898int
894int command_cringe(object *op, char *params) 899command_cringe (object *op, char *params)
895{ 900{
896 return(basic_emote(op, params, EMOTE_CRINGE)); 901 return (basic_emote (op, params, EMOTE_CRINGE));
897} 902}
898 903
904int
899int command_think(object *op, char *params) 905command_think (object *op, char *params)
900{ 906{
901 return(basic_emote(op, params, EMOTE_THINK)); 907 return (basic_emote (op, params, EMOTE_THINK));
902} 908}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines