Go to the documentation of this file.
72 "You flip a coin.... %s!",
75 snprintf(
buf,
sizeof(
buf),
"%s flips a coin.... %s!",
op->name,
result);
108 void command_orcknuckle(object *op, const char *params) {
112 int i, j, k,
l, dice_count, number_dice;
119 for (dice_count = 0; dice_count <
DICE; dice_count++)
120 dice[dice_count] = NULL;
125 if (dice_count >=
DICE || number_dice >=
DICE)
128 number_dice +=
ob->nrof;
129 dice[dice_count++] =
ob;
133 if (number_dice <
DICE) {
135 "You need at least %d dice to play orcknuckle!",
DICE);
147 snprintf(buf2,
sizeof(buf2),
"%s rolls %s, %s, %s, %s!",
op->name,
orcknuckle[i],
orcknuckle[j],
orcknuckle[k],
orcknuckle[
l]);
161 "Oops, you lost a die!");
184 if (
op->contr->no_shout == 1) {
186 "You are no longer allowed to shout or chat.");
239 uint8_t original_listen;
251 if (strlen(
name) == 0) {
264 snprintf(
buf,
sizeof(
buf),
"%s tells you: %s",
op->name,
msg);
269 original_listen =
pl->listening;
281 pl->listening = original_listen;
297 "No such player or ambiguous name.");
345 if (
op->contr->last_tell[0] ==
'\0') {
347 "You can't reply to nobody.");
355 "You can't reply, this player left.");
368 "You can't reply, this player left.");
373 "You tell to %s: %s",
381 #define EMOTE_FIRST 0
383 #define EMOTE_DANCE 2
385 #define EMOTE_BOUNCE 4
386 #define EMOTE_SMILE 5
387 #define EMOTE_CACKLE 6
388 #define EMOTE_LAUGH 7
389 #define EMOTE_GIGGLE 8
390 #define EMOTE_SHAKE 9
391 #define EMOTE_PUKE 10
392 #define EMOTE_GROWL 11
393 #define EMOTE_SCREAM 12
394 #define EMOTE_SIGH 13
395 #define EMOTE_SULK 14
398 #define EMOTE_POKE 17
399 #define EMOTE_ACCUSE 18
400 #define EMOTE_GRIN 19
402 #define EMOTE_CLAP 21
403 #define EMOTE_BLUSH 22
404 #define EMOTE_BURP 23
405 #define EMOTE_CHUCKLE 24
406 #define EMOTE_COUGH 25
407 #define EMOTE_FLIP 26
408 #define EMOTE_FROWN 27
409 #define EMOTE_GASP 28
410 #define EMOTE_GLARE 29
411 #define EMOTE_GROAN 30
412 #define EMOTE_HICCUP 31
413 #define EMOTE_LICK 32
414 #define EMOTE_POUT 33
415 #define EMOTE_SHIVER 34
416 #define EMOTE_SHRUG 35
417 #define EMOTE_SLAP 36
418 #define EMOTE_SMIRK 37
419 #define EMOTE_SNAP 38
420 #define EMOTE_SNEEZE 39
421 #define EMOTE_SNICKER 40
422 #define EMOTE_SNIFF 41
423 #define EMOTE_SNORE 42
424 #define EMOTE_SPIT 43
425 #define EMOTE_STRUT 44
426 #define EMOTE_THANK 45
427 #define EMOTE_TWIDDLE 46
428 #define EMOTE_WAVE 47
429 #define EMOTE_WHISTLE 48
430 #define EMOTE_WINK 49
431 #define EMOTE_YAWN 50
433 #define EMOTE_BLEED 52
434 #define EMOTE_CRINGE 53
435 #define EMOTE_THINK 54
436 #define EMOTE_LAST 55
446 {
"You nod solemnly.",
"%s nods solemnly." },
447 {
"You dance with glee.",
"%s expresses himself through interpretive dance." },
448 {
"All the lonely people...",
"%s makes a weird facial contortion" },
449 {
"BOIINNNNNNGG!",
"%s bounces around." },
450 {
"You smile happily.",
"%s smiles happily." },
451 {
"You cackle gleefully.",
"%s throws back his head and cackles with insane glee!" },
452 {
"You fall down laughing.",
"%s falls down laughing." },
453 {
"You giggle.",
"%s giggles." },
454 {
"You shake your head.",
"%s shakes his head." },
455 {
"Bleaaaaaghhhhhhh!",
"%s pukes." },
456 {
"Grrrrrrrrr....",
"%s growls." },
457 {
"ARRRRRRRRRRGH!!!!!",
"%s screams at the top of his lungs!" },
458 {
"You sigh.",
"%s sighs loudly." },
459 {
"You sulk.",
"%s sulks in the corner." },
461 {
"Waaaaaaahhh...",
"%s bursts into tears." },
464 {
"You grin evilly.",
"%s grins evilly." },
465 {
"You bow deeply.",
"%s bows deeply." },
466 {
"Clap, clap, clap.",
"%s gives a round of applause." },
467 {
"Your cheeks are burning.",
"%s blushes." },
468 {
"You burp loudly.",
"%s burps loudly." },
469 {
"You chuckle politely",
"%s chuckles politely." },
470 {
"Yuck, try to cover your mouth next time!",
"%s coughs loudly." },
471 {
"You flip head over heels.",
"%s flips head over heels." },
472 {
"What's bothering you?",
"%s frowns." },
473 {
"You gasp in astonishment.",
"%s gasps in astonishment." },
474 {
"You glare at nothing in particular.",
"%s glares around him." },
475 {
"You groan loudly.",
"%s groans loudly." },
476 {
"*HIC*",
"%s hiccups." },
477 {
"You lick your mouth and smile.",
"%s licks his mouth and smiles." },
478 {
"Aww, don't take it so hard.",
"%s pouts." },
479 {
"Brrrrrrrrr.",
"%s shivers uncomfortably." },
480 {
"You shrug.",
"%s shrugs helplessly." },
482 {
"You smirk.",
"%s smirks." },
483 {
"PRONTO! You snap your fingers.",
"%s snaps his fingers." },
484 {
"Gesundheit!",
"%s sneezes." },
485 {
"You snicker softly.",
"%s snickers softly." },
486 {
"You sniff sadly. *SNIFF*",
"%s sniffs sadly." },
487 {
"Zzzzzzzzzzzzzzz.",
"%s snores loudly." },
488 {
"You spit over your left shoulder.",
"%s spits over his left shoulder." },
489 {
"Strut your stuff.",
"%s struts proudly." },
491 {
"You patiently twiddle your thumbs.",
"%s patiently twiddles his thumbs." },
492 {
"You wave.",
"%s waves happily." },
493 {
"You whistle appreciatively.",
"%s whistles appreciatively." },
494 {
"Have you got something in your eye?",
"%s winks suggestively." },
495 {
"You open up your yap and let out a big breeze of stale air.",
"%s yawns sleepily." },
497 {
"You bleed all over your nice new armour.",
"%s is bleeding all over the carpet - got a spare tourniquet?" },
498 {
"You cringe in terror.",
"%s cringes in terror!" },
499 {
"Anything in particular that you'd care to think about?",
"%s closes his eyes and thinks really hard." },
508 {
"My god! is that LEGAL?",
"You look away from %s." },
509 {
"You skip and dance around by yourself.",
"%s embraces himself and begins to dance!"},
514 {
"Laugh at yourself all you want, the others won't understand." "%s is laughing at something." },
516 {
"You are shaken by yourself.",
"%s shakes and quivers like a bowlful of jelly." },
517 {
"You puke on yourself.",
"%s pukes on his clothes." },
522 {
"You hug yourself.",
"%s hugs himself." },
523 {
"You cry to yourself.",
"%s sobs quietly to himself." },
524 {
"You poke yourself in the ribs, feeling very silly.",
"%s pokes himself in the ribs, looking very sheepish." },
525 {
"You accuse yourself.",
"%s seems to have a bad conscience." },
527 {
"You kiss your toes.",
"%s folds up like a jackknife and kisses his own toes." },
534 {
"You frown at yourself.",
"%s frowns at himself." },
536 {
"You glare icily at your feet, they are suddenly very cold.",
"%s glares at his feet, what is bothering him?" },
539 {
"You lick yourself.",
"%s licks himself - YUCK." },
543 {
"You slap yourself, silly you.",
"%s slaps himself, really strange..." },
546 {
"You sneeze on yourself, what a mess!",
"%s sneezes, and covers himself in a slimy substance." },
548 {
"You sniff yourself.",
"%s sniffs himself." },
550 {
"You drool all over yourself.",
"%s drools all over himself." },
552 {
"You thank yourself since nobody else wants to!",
"%s thanks himself since you won't." },
554 {
"Are you going on adventures as well??",
"%s waves goodbye to himself."},
555 {
"You whistle while you work.",
"%s whistles to himself in boredom." },
556 {
"You wink at yourself?? What are you up to?",
"%s winks at himself - something strange is going on..." },
559 {
"Very impressive! You wipe your blood all over yourself.",
"%s performs some satanic ritual while wiping his blood on himself." },
572 {
"You nod solemnly to %s.",
"%s nods solemnly to you.",
"%s nods solemnly to %s." },
573 {
"You grab %s and begin doing the Cha-Cha!",
"%s grabs you, and begins dancing!",
"Yipe! %s and %s are doing the Macarena!" },
574 {
"You kiss %s.",
"%s kisses you.",
"%s kisses %s." },
575 {
"You bounce around the room with %s.",
"%s bounces around the room with you.",
"%s bounces around the room with %s." },
576 {
"You smile at %s.",
"%s smiles at you.",
"%s beams a smile at %s." },
577 { NULL, NULL, NULL },
578 {
"You take one look at %s and fall down laughing.",
"%s looks at you and falls down on the ground laughing.",
"%s looks at %s and falls down on the ground laughing." },
579 { NULL, NULL, NULL },
580 {
"You shake %s's hand.",
"%s shakes your hand.",
"%s shakes %s's hand." },
581 {
"You puke on %s.",
"%s pukes on your clothes!",
"%s pukes on %s." },
582 { NULL, NULL, NULL },
583 { NULL, NULL, NULL },
584 { NULL, NULL, NULL },
585 { NULL, NULL, NULL },
586 {
"You hug %s.",
"%s hugs you.",
"%s hugs %s." },
587 {
"You cry on %s's shoulder.",
"%s cries on your shoulder.",
"%s cries on %s's shoulder." },
588 {
"You poke %s in the ribs.",
"%s pokes you in the ribs.",
"%s pokes %s in the ribs." },
589 {
"You look accusingly at %s.",
"%s looks accusingly at you.",
"%s looks accusingly at %s." },
590 {
"You grin at %s.",
"%s grins evilly at you.",
"%s grins evilly at %s." },
591 {
"You bow before %s.",
"%s bows before you.",
"%s bows before %s." },
592 { NULL, NULL, NULL },
593 { NULL, NULL, NULL },
594 { NULL, NULL, NULL },
595 { NULL, NULL, NULL },
596 { NULL, NULL, NULL },
597 { NULL, NULL, NULL },
598 {
"You frown darkly at %s.",
"%s frowns darkly at you.",
"%s frowns darkly at %s." },
599 { NULL, NULL, NULL },
600 {
"You glare icily at %s.",
"%s glares icily at you, you feel cold to your bones.",
"%s glares at %s." },
601 { NULL, NULL, NULL },
602 { NULL, NULL, NULL },
603 {
"You lick %s.",
"%s licks you.",
"%s licks %s." },
604 { NULL, NULL, NULL },
605 { NULL, NULL, NULL },
606 {
"You shrug at %s.",
"%s shrugs at you.",
"%s shrugs at %s." },
607 {
"You slap %s.",
"You are slapped by %s.",
"%s slaps %s." },
608 { NULL, NULL, NULL },
609 { NULL, NULL, NULL },
610 {
"You sneeze at %s and a film of snot shoots onto him.",
"%s sneezes on you, you feel the snot cover you. EEEEEEW.",
"%s sneezes on %s and a film of snot covers him." },
611 { NULL, NULL, NULL },
612 {
"You sniff %s.",
"%s sniffs you.",
"%s sniffs %s" },
613 { NULL, NULL, NULL },
614 {
"You spit on %s.",
"%s spits in your face!",
"%s spits in %s's face." },
615 { NULL, NULL, NULL },
616 {
"You thank %s heartily.",
"%s thanks you heartily.",
"%s thanks %s heartily." },
617 { NULL, NULL, NULL },
618 {
"You wave goodbye to %s.",
"%s waves goodbye to you. Have a good journey.",
"%s waves goodbye to %s." },
619 {
"You whistle at %s.",
"%s whistles at you.",
"%s whistles at %s." },
620 {
"You wink suggestively at %s.",
"%s winks suggestively at you.",
"%s winks at %s." },
621 { NULL, NULL, NULL },
622 {
"You beg %s for mercy.",
"%s begs you for mercy! Show no quarter!",
"%s begs %s for mercy!" },
623 {
"You slash your wrist and bleed all over %s",
"%s slashes his wrist and bleeds all over you.",
"%s slashes his wrist and bleeds all over %s." },
624 {
"You cringe away from %s.",
"%s cringes away from you.",
"%s cringes away from %s in mortal terror." },
625 { NULL, NULL, NULL },
652 const char *self_reply;
657 self_reply =
"You are a nut.";
658 snprintf(buf2,
sizeof(buf2),
"%s dances with glee.",
op->name);
677 const char *self_reply;
680 snprintf(buf2,
sizeof(buf2),
self_emotes[emotion - 1][1],
op->name);
682 self_reply =
"My god! is that LEGAL?";
683 snprintf(buf2,
sizeof(buf2),
"You look away from %s.",
op->name);
695 snprintf(buf2,
sizeof(buf2),
other_emotes[emotion - 1][1],
op->name);
696 snprintf(buf3,
sizeof(buf3),
other_emotes[emotion - 1][2],
op->name,
pl->ob->name);
698 snprintf(
buf,
sizeof(
buf),
"You are still nuts.");
699 snprintf(buf2,
sizeof(buf2),
"You get the distinct feeling that %s is nuts.",
op->name);
700 snprintf(buf3,
sizeof(buf3),
"%s is eyeing %s quizzically.",
pl->ob->name,
op->name);
void command_cackle(object *op, const char *params)
void command_flip(object *op, const char *params)
void command_snicker(object *op, const char *params)
void command_burp(object *op, const char *params)
void command_whistle(object *op, const char *params)
void command_wink(object *op, const char *params)
void command_slap(object *op, const char *params)
static void do_tell(object *op, const char *params, int adjust_listen)
void command_thank(object *op, const char *params)
void command_nod(object *op, const char *params)
void command_laugh(object *op, const char *params)
void command_shout(object *op, const char *params)
static void command_tell_all(object *op, const char *params, int pri, int color, int subtype, const char *desc)
void command_hiccup(object *op, const char *params)
#define QUERY_FLAG(xyz, p)
static void basic_emote(object *op, const char *params, int emotion)
void command_cry(object *op, const char *params)
void command_giggle(object *op, const char *params)
void command_sigh(object *op, const char *params)
void command_snap(object *op, const char *params)
void command_dance(object *op, const char *params)
void command_dmtell(object *op, const char *params)
#define MSG_TYPE_COMMUNICATION_RANDOM
void command_shake(object *op, const char *params)
void command_hug(object *op, const char *params)
void draw_ext_info_format(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *format,...) PRINTF_ARGS(6
void command_gasp(object *op, const char *params)
static const char * single_emotes[EMOTE_LAST - 1][2]
void command_chat(object *op, const char *params)
void command_frown(object *op, const char *params)
void command_sneeze(object *op, const char *params)
#define MSG_TYPE_COMMUNICATION_ME
void command_cringe(object *op, const char *params)
int rndm(int min, int max)
void command_chuckle(object *op, const char *params)
#define MSG_TYPE_COMMAND_ERROR
#define MSG_TYPE_COMMUNICATION_CHAT
void command_glare(object *op, const char *params)
void command_bleed(object *op, const char *params)
#define object_decrease_nrof_by_one(xyz)
void command_spit(object *op, const char *params)
void command_shiver(object *op, const char *params)
void command_snore(object *op, const char *params)
void ext_info_map_except2(int color, const mapstruct *map, const object *op1, const object *op2, int type, int subtype, const char *str1)
void command_growl(object *op, const char *params)
static const char * other_emotes[EMOTE_LAST - 1][3]
void void ext_info_map(int color, const mapstruct *map, uint8_t type, uint8_t subtype, const char *str1)
sstring find_string(const char *str)
void command_pout(object *op, const char *params)
void command_accuse(object *op, const char *params)
void command_clap(object *op, const char *params)
void command_wave(object *op, const char *params)
void monster_communicate(object *op, const char *txt)
static const char *const orcknuckle[7]
#define FIND_PLAYER_PARTIAL_NAME
#define MSG_TYPE_COMMUNICATION_TELL
void command_puke(object *op, const char *params)
size_t strlcpy(char *dst, const char *src, size_t size)
#define FIND_PLAYER_NO_HIDDEN_DM
void command_smile(object *op, const char *params)
void ext_info_map_except(int color, const mapstruct *map, const object *op, uint8_t type, uint8_t subtype, const char *str1)
#define MSG_TYPE_COMMUNICATION_SHOUT
void command_groan(object *op, const char *params)
void command_kiss(object *op, const char *params)
void command_beg(object *op, const char *params)
void command_smirk(object *op, const char *params)
void command_sulk(object *op, const char *params)
static const char * self_emotes[EMOTE_LAST - 1][2]
void command_tell(object *op, const char *params)
void command_cough(object *op, const char *params)
void command_think(object *op, const char *params)
void command_grin(object *op, const char *params)
player * find_player_partial_name(const char *plname)
int die_roll(int num, int size, const object *op, int goodbad)
void command_me(object *op, const char *params)
void command_strut(object *op, const char *params)
void command_cointoss(object *op, const char *params)
void command_lick(object *op, const char *params)
void command_sniff(object *op, const char *params)
player * find_player_options(const char *plname, int options, const mapstruct *map)
void command_blush(object *op, const char *params)
void command_twiddle(object *op, const char *params)
void draw_ext_info(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *message)
void command_bow(object *op, const char *params)
#define MSG_TYPE_COMMUNICATION_EMOTE
#define MSG_TYPE_COMMUNICATION
void command_say(object *op, const char *params)
void command_yawn(object *op, const char *params)
void command_shrug(object *op, const char *params)
#define FOR_INV_PREPARE(op_, it_)
void events_execute_global_event(int eventcode,...)
void command_scream(object *op, const char *params)
void command_bounce(object *op, const char *params)
void command_poke(object *op, const char *params)
player * find_player(const char *plname)
void command_reply(object *op, const char *params)