密猟オンラインサーバープログラム
システムメッセージの書式を変更
(クライアント側で表示幅などを制御予定)
| @@ -741,6 +741,74 @@ | ||
| 741 | 741 | return 0; |
| 742 | 742 | } |
| 743 | 743 | |
| 744 | +/* adjsut string length */ | |
| 745 | +/* (outbuffer no null-terminate) */ | |
| 746 | +static void | |
| 747 | +adjust_string (char *poutbuffer, const char *pinbuffer, int nlimit, | |
| 748 | + char fillchar) | |
| 749 | +{ | |
| 750 | + int i; | |
| 751 | + for (i = 0; i < nlimit && *pinbuffer != '\0'; i++) | |
| 752 | + { | |
| 753 | + unsigned char c = (unsigned char) *pinbuffer++; | |
| 754 | + if (c >= 0xc2 && c <= 0xfd) | |
| 755 | + { | |
| 756 | + int ncount = 1; | |
| 757 | + unsigned char c2; | |
| 758 | + i++; | |
| 759 | + if (i == nlimit) | |
| 760 | + { | |
| 761 | + *poutbuffer++ = fillchar; | |
| 762 | + break; | |
| 763 | + } | |
| 764 | + else | |
| 765 | + { | |
| 766 | + *poutbuffer++ = (char) c; | |
| 767 | + } | |
| 768 | + for (; (c2 = (unsigned char) *pinbuffer++) != '\0'; ncount++, i++) | |
| 769 | + { | |
| 770 | + if (c2 >= 0x80 && c2 <= 0xbf) | |
| 771 | + { | |
| 772 | + if (i == nlimit) | |
| 773 | + { | |
| 774 | + /* over size */ | |
| 775 | + for (; ncount > 0; ncount--) | |
| 776 | + { | |
| 777 | + /* clear last sequence */ | |
| 778 | + *poutbuffer-- = fillchar; | |
| 779 | + } | |
| 780 | + break; | |
| 781 | + } | |
| 782 | + else | |
| 783 | + { | |
| 784 | + *poutbuffer++ = (char) c2; | |
| 785 | + } | |
| 786 | + } | |
| 787 | + else | |
| 788 | + { | |
| 789 | + /* found next character sequence */ | |
| 790 | + i--; | |
| 791 | + pinbuffer--; | |
| 792 | + break; | |
| 793 | + } | |
| 794 | + } | |
| 795 | + if (c2 == '\0') | |
| 796 | + { | |
| 797 | + /* null terminate */ | |
| 798 | + break; | |
| 799 | + } | |
| 800 | + } | |
| 801 | + else | |
| 802 | + { | |
| 803 | + *poutbuffer++ = (char) c; | |
| 804 | + } | |
| 805 | + } | |
| 806 | + for (; i < nlimit; i++) | |
| 807 | + { | |
| 808 | + *poutbuffer++ = fillchar; | |
| 809 | + } | |
| 810 | +} | |
| 811 | + | |
| 744 | 812 | /* cut tail space (this use fixed single buffer!) */ |
| 745 | 813 | static const char * |
| 746 | 814 | cut_tail (const char *p, int n) |
| @@ -1483,7 +1551,7 @@ | ||
| 1483 | 1551 | { |
| 1484 | 1552 | char namebuf[BUFFER_SIZE]; |
| 1485 | 1553 | memcpy (namebuf, User[i].myshop[j].name, USERNAME_LEN + 1); |
| 1486 | - fprintf (optr, "%d,%d,%d,%-.24s\n", | |
| 1554 | + fprintf (optr, "%d,%d,%d,%s\n", | |
| 1487 | 1555 | User[i].myshop[j].build, |
| 1488 | 1556 | User[i].myshop[j].pos.x, User[i].myshop[j].pos.y, |
| 1489 | 1557 | CUTTAIL (namebuf)); |
| @@ -1495,7 +1563,7 @@ | ||
| 1495 | 1563 | memcpy (namebuf, |
| 1496 | 1564 | Weapon[User[i].myshop[j].list[0][k]].name, |
| 1497 | 1565 | WEAPONNAME_LEN + 1); |
| 1498 | - fprintf (optr, "%-.24s,%u,%u,%lu\n", | |
| 1566 | + fprintf (optr, "%s,%u,%u,%lu\n", | |
| 1499 | 1567 | CUTTAIL (namebuf), |
| 1500 | 1568 | User[i].myshop[j].leftuse[0][k], |
| 1501 | 1569 | User[i].myshop[j].count[0][k], |
| @@ -1506,7 +1574,7 @@ | ||
| 1506 | 1574 | memcpy (namebuf, |
| 1507 | 1575 | Item[User[i].myshop[j].list[1][k]].name, |
| 1508 | 1576 | ITEMNAME_LEN + 1); |
| 1509 | - fprintf (optr, "%-.24s,%u,%u,%lu\n", | |
| 1577 | + fprintf (optr, "%s,%u,%u,%lu\n", | |
| 1510 | 1578 | CUTTAIL (namebuf), |
| 1511 | 1579 | User[i].myshop[j].leftuse[1][k], |
| 1512 | 1580 | User[i].myshop[j].count[1][k], |
| @@ -1972,7 +2040,8 @@ | ||
| 1972 | 2040 | p->left = left; |
| 1973 | 2041 | if (pstr != NULL) |
| 1974 | 2042 | { |
| 1975 | - strncpy (p->message, pstr, sizeof (p->message)); | |
| 2043 | + //strncpy (p->message, pstr, sizeof (p->message)); | |
| 2044 | + adjust_string (p->message, pstr, sizeof (p->message), 0); | |
| 1976 | 2045 | } |
| 1977 | 2046 | else |
| 1978 | 2047 | { |
| @@ -2129,7 +2198,7 @@ | ||
| 2129 | 2198 | memset (User[userno].statusinfo, 0, PACKET_MAX); |
| 2130 | 2199 | memset (User[userno].mapdata, 0, PACKET_MAX); |
| 2131 | 2200 | memcpy (work, User[userno].name, USERNAME_LEN); |
| 2132 | - printf ("user(%d)[%-.24s] logoff.\n", userno, CUTTAIL (work)); | |
| 2201 | + printf ("user(%d)[%s] logoff.\n", userno, CUTTAIL (work)); | |
| 2133 | 2202 | User[userno].idletimer = 0; |
| 2134 | 2203 | } |
| 2135 | 2204 | ClearUser (userno); |
| @@ -2493,7 +2562,8 @@ | ||
| 2493 | 2562 | pmail->subject[0] = n; |
| 2494 | 2563 | if (n) |
| 2495 | 2564 | { |
| 2496 | - strncpy (&pmail->subject[1], namebuf, n); | |
| 2565 | + //strncpy (&pmail->subject[1], namebuf, n); | |
| 2566 | + adjust_string (&pmail->subject[1], namebuf, n, 0); | |
| 2497 | 2567 | } |
| 2498 | 2568 | for (j = 0; j < pmail->line; j++) |
| 2499 | 2569 | { |
| @@ -2512,7 +2582,9 @@ | ||
| 2512 | 2582 | pmail->message[j][0] = n; |
| 2513 | 2583 | if (n) |
| 2514 | 2584 | { |
| 2515 | - strncpy (&pmail->message[j][1], namebuf, n); | |
| 2585 | + //strncpy (&pmail->message[j][1], namebuf, n); | |
| 2586 | + adjust_string (&pmail->message[j][1], namebuf, n, | |
| 2587 | + 0); | |
| 2516 | 2588 | } |
| 2517 | 2589 | } |
| 2518 | 2590 | if (j < pmail->line) |
| @@ -2560,9 +2632,9 @@ | ||
| 2560 | 2632 | } |
| 2561 | 2633 | strncpy (namebuf, User[pmail->fromuser].name, USERNAME_LEN); |
| 2562 | 2634 | namebuf[USERNAME_LEN] = '\0'; |
| 2563 | - fprintf (optr, "%d,%d,%lu\n%-.24s\n", | |
| 2635 | + fprintf (optr, "%d,%d,%lu\n%s\n", | |
| 2564 | 2636 | pmail->readflag, pmail->line, pmail->timestamp, |
| 2565 | - CUTTAIL (namebuf)); | |
| 2637 | + cut_tail (namebuf, USERNAME_LEN)); | |
| 2566 | 2638 | n = (unsigned char) (pmail->subject[0]); |
| 2567 | 2639 | if (n) |
| 2568 | 2640 | { |
| @@ -2703,7 +2775,8 @@ | ||
| 2703 | 2775 | pmail->subject[0] = n; |
| 2704 | 2776 | if (n) |
| 2705 | 2777 | { |
| 2706 | - strncpy (&pmail->subject[1], namebuf, n); | |
| 2778 | + //strncpy (&pmail->subject[1], namebuf, n); | |
| 2779 | + adjust_string (&pmail->subject[1], namebuf, n, 0); | |
| 2707 | 2780 | } |
| 2708 | 2781 | for (j = 0; j < pmail->line; j++) |
| 2709 | 2782 | { |
| @@ -2722,7 +2795,9 @@ | ||
| 2722 | 2795 | pmail->message[j][0] = n; |
| 2723 | 2796 | if (n) |
| 2724 | 2797 | { |
| 2725 | - strncpy (&pmail->message[j][1], namebuf, n); | |
| 2798 | + //strncpy (&pmail->message[j][1], namebuf, n); | |
| 2799 | + adjust_string (&pmail->message[j][1], namebuf, n, | |
| 2800 | + 0); | |
| 2726 | 2801 | } |
| 2727 | 2802 | } |
| 2728 | 2803 | if (j < pmail->line) |
| @@ -2770,9 +2845,9 @@ | ||
| 2770 | 2845 | } |
| 2771 | 2846 | strncpy (namebuf, User[pmail->fromuser].name, USERNAME_LEN); |
| 2772 | 2847 | namebuf[USERNAME_LEN] = '\0'; |
| 2773 | - fprintf (optr, "%d,%d,%lu\n%-.24s\n", | |
| 2848 | + fprintf (optr, "%d,%d,%lu\n%s\n", | |
| 2774 | 2849 | pmail->readflag, pmail->line, pmail->timestamp, |
| 2775 | - CUTTAIL (namebuf)); | |
| 2850 | + cut_tail (namebuf, USERNAME_LEN)); | |
| 2776 | 2851 | n = (unsigned char) (pmail->subject[0]); |
| 2777 | 2852 | if (n) |
| 2778 | 2853 | { |
| @@ -3322,7 +3397,8 @@ | ||
| 3322 | 3397 | /* can't read data */ |
| 3323 | 3398 | break; |
| 3324 | 3399 | } |
| 3325 | - strncpy (p->name, namebuf, WEAPONNAME_LEN); | |
| 3400 | + //strncpy (p->name, namebuf, WEAPONNAME_LEN); | |
| 3401 | + adjust_string (p->name, namebuf, WEAPONNAME_LEN, 0); | |
| 3326 | 3402 | p->b_type = (enum bullet_type) b_type; |
| 3327 | 3403 | n++; |
| 3328 | 3404 | } |
| @@ -3384,7 +3460,8 @@ | ||
| 3384 | 3460 | /* can't read data */ |
| 3385 | 3461 | break; |
| 3386 | 3462 | } |
| 3387 | - strncpy (p->name, namebuf, ITEMNAME_LEN); | |
| 3463 | + //strncpy (p->name, namebuf, ITEMNAME_LEN); | |
| 3464 | + adjust_string (p->name, namebuf, ITEMNAME_LEN, 0); | |
| 3388 | 3465 | p->id = ntype; |
| 3389 | 3466 | p->effect = neffect; |
| 3390 | 3467 | p->count = ncount; |
| @@ -4435,8 +4512,8 @@ | ||
| 4435 | 4512 | if (User[nowner].myshop[nshop].count[n][i]) |
| 4436 | 4513 | { |
| 4437 | 4514 | sprintf (work, |
| 4438 | - n ? MESG ("<%2d:%-32.32s:%10luP %4ucount (stock:%4u)>") : | |
| 4439 | - MESG ("<%2d:%-32.32s:%10luP %4uround (stock:%4u)>"), | |
| 4515 | + n ? MESG ("<%2d:%s:%10luP:%4ucount:(stock:%4u)>") : | |
| 4516 | + MESG ("<%2d:%s:%10luP:%4uround:(stock:%4u)>"), | |
| 4440 | 4517 | i, |
| 4441 | 4518 | (n ? Item[User[nowner].myshop[nshop].list[n][i]].name : |
| 4442 | 4519 | Weapon[User[nowner].myshop[nshop].list[n][i]].name), |
| @@ -4479,8 +4556,8 @@ | ||
| 4479 | 4556 | { |
| 4480 | 4557 | WEAPONINFO *pw = Weapon + plist[i]; |
| 4481 | 4558 | sprintf (work, |
| 4482 | - MESG ("<%3d:%-32.32s:%10luP %4uround HP%4u/Moral%4u " | |
| 4483 | - "Range:%4ublock>"), | |
| 4559 | + MESG ("<%3d:%s:%10luP:%4uround:HP%4u/Moral%4u:" | |
| 4560 | + "Range %4ublock>"), | |
| 4484 | 4561 | i, pw->name, pw->cost, pw->bullette, |
| 4485 | 4562 | pw->firepower, pw->moral, pw->range); |
| 4486 | 4563 | SendSystemMessagePacket (nuser, work); |
| @@ -4520,7 +4597,7 @@ | ||
| 4520 | 4597 | { |
| 4521 | 4598 | ITEMINFO *pi = Item + plist[i]; |
| 4522 | 4599 | sprintf (work, |
| 4523 | - MESG ("<%3d:%-32.32s:%10luP %4ucount>"), | |
| 4600 | + MESG ("<%3d:%s:%10luP:%4ucount>"), | |
| 4524 | 4601 | i, pi->name, pi->cost, pi->count); |
| 4525 | 4602 | SendSystemMessagePacket (nuser, work); |
| 4526 | 4603 | } |
| @@ -4643,15 +4720,15 @@ | ||
| 4643 | 4720 | switch (t) |
| 4644 | 4721 | { |
| 4645 | 4722 | case TargetUser: |
| 4646 | - sprintf (work, MESG ("%-.24s damages you. lost %uHP."), | |
| 4723 | + sprintf (work, MESG ("%s damages you. lost %uHP."), | |
| 4647 | 4724 | CUTTAIL (User[fromuser].name), ndamage); |
| 4648 | 4725 | break; |
| 4649 | 4726 | case TargetNpc: |
| 4650 | - sprintf (work, MESG ("%-.24s damages you. lost %uHP."), | |
| 4727 | + sprintf (work, MESG ("%s damages you. lost %uHP."), | |
| 4651 | 4728 | CUTTAIL (Npc[fromuser].name), ndamage); |
| 4652 | 4729 | break; |
| 4653 | 4730 | case TargetAnimal: |
| 4654 | - sprintf (work, MESG ("Animal '%-.24s' damages you. lost %uHP"), | |
| 4731 | + sprintf (work, MESG ("Animal '%s' damages you. lost %uHP"), | |
| 4655 | 4732 | CUTTAIL (Animal[fromuser].name), ndamage); |
| 4656 | 4733 | break; |
| 4657 | 4734 | default: |
| @@ -4664,7 +4741,7 @@ | ||
| 4664 | 4741 | } |
| 4665 | 4742 | if (t == TargetUser) |
| 4666 | 4743 | { |
| 4667 | - sprintf (work, MESG ("You attack %-.24s"), | |
| 4744 | + sprintf (work, MESG ("You attack %s"), | |
| 4668 | 4745 | CUTTAIL (User[nuser].name)); |
| 4669 | 4746 | SendSystemMessagePacket (fromuser, work); |
| 4670 | 4747 | } |
| @@ -4883,7 +4960,7 @@ | ||
| 4883 | 4960 | char uname[USERNAME_LEN]; |
| 4884 | 4961 | char work[PASSWORD_LEN]; |
| 4885 | 4962 | memcpy (uname, User[nuser].name, USERNAME_LEN); |
| 4886 | - printf ("User name:%-.24s\n", CUTTAIL (uname)); | |
| 4963 | + printf ("User name:%s\n", CUTTAIL (uname)); | |
| 4887 | 4964 | for (i = 0; i < PASSWORD_LEN; i++) |
| 4888 | 4965 | { |
| 4889 | 4966 | char c = (char) *(p + i); |
| @@ -4976,8 +5053,7 @@ | ||
| 4976 | 5053 | } |
| 4977 | 5054 | else |
| 4978 | 5055 | { |
| 4979 | - printf ("Blocked User:%-.24s\n", | |
| 4980 | - CUTTAIL (User[nuser].name)); | |
| 5056 | + printf ("Blocked User:%s\n", CUTTAIL (User[nuser].name)); | |
| 4981 | 5057 | } |
| 4982 | 5058 | SendResultPacket (psession->handle, -1); |
| 4983 | 5059 | } |
| @@ -5293,7 +5369,8 @@ | ||
| 5293 | 5369 | } |
| 5294 | 5370 | if (nlen) |
| 5295 | 5371 | { |
| 5296 | - strncpy (User[nuser].mesg_for_action, (char *) (p + 1), nlen); | |
| 5372 | + //strncpy (User[nuser].mesg_for_action, (char *) (p + 1), nlen); | |
| 5373 | + adjust_string (User[nuser].mesg_for_action, (char *) (p + 1), nlen, 0); | |
| 5297 | 5374 | } |
| 5298 | 5375 | User[nuser].mesg_for_action[nlen] = '\0'; |
| 5299 | 5376 | return; |
| @@ -5304,8 +5381,13 @@ | ||
| 5304 | 5381 | doSay (int nuser, unsigned char *p) |
| 5305 | 5382 | { |
| 5306 | 5383 | User[nuser].action = DoSay; |
| 5384 | +#if 0 | |
| 5307 | 5385 | memcpy (User[nuser].mesg_for_action, p, |
| 5308 | 5386 | sizeof (User[nuser].mesg_for_action)); |
| 5387 | +#else | |
| 5388 | + adjust_string (User[nuser].mesg_for_action, (char *) p, | |
| 5389 | + sizeof (User[nuser].mesg_for_action), 0); | |
| 5390 | +#endif | |
| 5309 | 5391 | return; |
| 5310 | 5392 | } |
| 5311 | 5393 |
| @@ -5314,8 +5396,13 @@ | ||
| 5314 | 5396 | doTell (int nuser, unsigned char *p) |
| 5315 | 5397 | { |
| 5316 | 5398 | User[nuser].action = DoTell; |
| 5399 | +#if 0 | |
| 5317 | 5400 | memcpy (User[nuser].mesg_for_action, p, |
| 5318 | 5401 | sizeof (User[nuser].mesg_for_action)); |
| 5402 | +#else | |
| 5403 | + adjust_string (User[nuser].mesg_for_action, (char *) p, | |
| 5404 | + sizeof (User[nuser].mesg_for_action), 0); | |
| 5405 | +#endif | |
| 5319 | 5406 | return; |
| 5320 | 5407 | } |
| 5321 | 5408 |
| @@ -5324,8 +5411,13 @@ | ||
| 5324 | 5411 | doBroadcast (int nuser, unsigned char *p) |
| 5325 | 5412 | { |
| 5326 | 5413 | User[nuser].action = DoBroadcast; |
| 5414 | +#if 0 | |
| 5327 | 5415 | memcpy (User[nuser].mesg_for_action, p, |
| 5328 | 5416 | sizeof (User[nuser].mesg_for_action)); |
| 5417 | +#else | |
| 5418 | + adjust_string (User[nuser].mesg_for_action, (char *) p, | |
| 5419 | + sizeof (User[nuser].mesg_for_action), 0); | |
| 5420 | +#endif | |
| 5329 | 5421 | return; |
| 5330 | 5422 | } |
| 5331 | 5423 |
| @@ -5557,10 +5649,10 @@ | ||
| 5557 | 5649 | } |
| 5558 | 5650 | dec_score (nuser, n + ntax); |
| 5559 | 5651 | add_score (ndist, n); |
| 5560 | - sprintf (work, MESG ("[You transfer %upoint to %-.24s. Tax:%upoint]"), | |
| 5652 | + sprintf (work, MESG ("[You transfer %upoint to %s. Tax:%upoint]"), | |
| 5561 | 5653 | n, CUTTAIL (User[ndist].name), ntax); |
| 5562 | 5654 | SendSystemMessagePacket (nuser, work); |
| 5563 | - sprintf (work, MESG ("[You receive %upoint from %-.24s]"), | |
| 5655 | + sprintf (work, MESG ("[You receive %upoint from %s]"), | |
| 5564 | 5656 | n, CUTTAIL (User[nuser].name)); |
| 5565 | 5657 | SendSystemMessagePacket (ndist, work); |
| 5566 | 5658 | } |
| @@ -5602,11 +5694,10 @@ | ||
| 5602 | 5694 | { |
| 5603 | 5695 | /* block user account */ |
| 5604 | 5696 | puts ("block user account"); |
| 5605 | - printf ("User %d [%-.24s]\n", ntarget, | |
| 5606 | - CUTTAIL (User[ntarget].name)); | |
| 5697 | + printf ("User %d [%s]\n", ntarget, CUTTAIL (User[ntarget].name)); | |
| 5607 | 5698 | DisconnectUser (ntarget); |
| 5608 | 5699 | User[ntarget].account_status = AccountBlock; |
| 5609 | - sprintf (work, MESG ("[user '%-.24s' is blocked]"), | |
| 5700 | + sprintf (work, MESG ("[user '%s' is blocked]"), | |
| 5610 | 5701 | CUTTAIL (User[ntarget].name)); |
| 5611 | 5702 | SendSystemMessagePacket (0, work); |
| 5612 | 5703 | } |
| @@ -5614,10 +5705,9 @@ | ||
| 5614 | 5705 | { |
| 5615 | 5706 | /* recover user account */ |
| 5616 | 5707 | puts ("recover user account"); |
| 5617 | - printf ("User %d [%-.24s]\n", ntarget, | |
| 5618 | - CUTTAIL (User[ntarget].name)); | |
| 5708 | + printf ("User %d [%s]\n", ntarget, CUTTAIL (User[ntarget].name)); | |
| 5619 | 5709 | User[ntarget].account_status = AccountActive; |
| 5620 | - sprintf (work, MESG ("[user '%-.24s' is recoverd]"), | |
| 5710 | + sprintf (work, MESG ("[user '%s' is recoverd]"), | |
| 5621 | 5711 | CUTTAIL (User[ntarget].name)); |
| 5622 | 5712 | SendSystemMessagePacket (0, work); |
| 5623 | 5713 | } |
| @@ -5661,9 +5751,9 @@ | ||
| 5661 | 5751 | { |
| 5662 | 5752 | wkpassword[i] = ' '; |
| 5663 | 5753 | } |
| 5664 | - printf ("Change %-.24s password\n", CUTTAIL (User[nuser].name)); | |
| 5754 | + printf ("Change %s password\n", CUTTAIL (User[nuser].name)); | |
| 5665 | 5755 | memcpy (User[nuser].password, wkpassword, PASSWORD_LEN); |
| 5666 | - sprintf (work, MESG ("[user '%-.24s' password is changed]"), | |
| 5756 | + sprintf (work, MESG ("[user '%s' password is changed]"), | |
| 5667 | 5757 | CUTTAIL (User[nuser].name)); |
| 5668 | 5758 | SendSystemMessagePacket (0, work); |
| 5669 | 5759 | } |
| @@ -5877,7 +5967,7 @@ | ||
| 5877 | 5967 | { |
| 5878 | 5968 | char uname[USERNAME_LEN]; |
| 5879 | 5969 | memcpy (uname, User[ntarget].name, USERNAME_LEN); |
| 5880 | - printf ("Delete User name:%-.24s\n", CUTTAIL (uname)); | |
| 5970 | + printf ("Delete User name:%s\n", CUTTAIL (uname)); | |
| 5881 | 5971 | DeleteUser (ntarget); |
| 5882 | 5972 | SendSystemMessagePacket (nuser, "[Delete complete]"); |
| 5883 | 5973 | } |
| @@ -5889,7 +5979,7 @@ | ||
| 5889 | 5979 | } |
| 5890 | 5980 | else |
| 5891 | 5981 | { |
| 5892 | - printf ("User:%d [%-.24s] is cracking!\n", nuser, | |
| 5982 | + printf ("User:%d [%s] is cracking!\n", nuser, | |
| 5893 | 5983 | CUTTAIL (User[nuser].name)); |
| 5894 | 5984 | SendSystemMessagePacket (nuser, "[uh?]"); |
| 5895 | 5985 | } |
| @@ -5991,12 +6081,11 @@ | ||
| 5991 | 6081 | switch (User[i].crime_level) |
| 5992 | 6082 | { |
| 5993 | 6083 | case 1: |
| 5994 | - sprintf (work, MESG ("<WANTED '%-.24s'>"), | |
| 5995 | - CUTTAIL (User[i].name)); | |
| 6084 | + sprintf (work, MESG ("<WANTED '%s'>"), CUTTAIL (User[i].name)); | |
| 5996 | 6085 | SendSystemMessagePacket (nuser, work); |
| 5997 | 6086 | break; |
| 5998 | 6087 | case 2: |
| 5999 | - sprintf (work, MESG ("<Dead or Alive '%-.24s'>"), | |
| 6088 | + sprintf (work, MESG ("<Dead or Alive '%s'>"), | |
| 6000 | 6089 | CUTTAIL (User[i].name)); |
| 6001 | 6090 | SendSystemMessagePacket (nuser, work); |
| 6002 | 6091 | break; |
| @@ -6337,8 +6426,7 @@ | ||
| 6337 | 6426 | name_len = sizeof (Weapon[n].name); |
| 6338 | 6427 | } |
| 6339 | 6428 | User[nuser].myshop[nshop].count[isitem][i]++; |
| 6340 | - sprintf (work, MESG ("[%-.24s stocked]"), | |
| 6341 | - cut_tail (pname, name_len)); | |
| 6429 | + sprintf (work, MESG ("[%s stocked]"), cut_tail (pname, name_len)); | |
| 6342 | 6430 | SendSystemMessagePacket (nuser, work); |
| 6343 | 6431 | } |
| 6344 | 6432 | else |
| @@ -6605,7 +6693,7 @@ | ||
| 6605 | 6693 | { |
| 6606 | 6694 | nlen = PACKET_DATA_MAX - USERNAME_LEN - 10; |
| 6607 | 6695 | } |
| 6608 | - sprintf (work, "You tell %-.24s,", CUTTAIL (User[destuser].name)); | |
| 6696 | + sprintf (work, "You tell %s,", CUTTAIL (User[destuser].name)); | |
| 6609 | 6697 | if (nlen) |
| 6610 | 6698 | { |
| 6611 | 6699 | memcpy (work + USERNAME_LEN + 10, p + 1 + USERNAME_LEN, nlen); |
| @@ -6641,7 +6729,7 @@ | ||
| 6641 | 6729 | else |
| 6642 | 6730 | { |
| 6643 | 6731 | char work[PACKET_DATA_MAX]; |
| 6644 | - sprintf (work, MESG ("[Weapon:%-32.32s NOT READY]"), | |
| 6732 | + sprintf (work, MESG ("[Weapon:%s NOT READY]"), | |
| 6645 | 6733 | Weapon[User[nuser].weapon[nweapon]].name); |
| 6646 | 6734 | SendSystemMessagePacket (nuser, work); |
| 6647 | 6735 | } |
| @@ -6693,7 +6781,7 @@ | ||
| 6693 | 6781 | { |
| 6694 | 6782 | /* list up this */ |
| 6695 | 6783 | int relpos = get_rel_position_in (dx1, dx2, dy1, dy2); |
| 6696 | - sprintf (work, MESG ("<%-.24s %10s %5dBlock>"), | |
| 6784 | + sprintf (work, MESG ("<%s:%s:%5dBlock>"), | |
| 6697 | 6785 | CUTTAIL (Animal[i].name), |
| 6698 | 6786 | MESG (RelDirection[relpos]), n); |
| 6699 | 6787 | SendSystemMessagePacket (nuser, work); |
| @@ -6734,7 +6822,7 @@ | ||
| 6734 | 6822 | if (User[i].c_type == Hunter) |
| 6735 | 6823 | { |
| 6736 | 6824 | sprintf (work, |
| 6737 | - MESG ("<Hunter:%-.24s %10s %5dBlock crime:%lu>"), | |
| 6825 | + MESG ("<Hunter:%s:%10s:%5dBlock:crime %lu>"), | |
| 6738 | 6826 | CUTTAIL (User[i].name), |
| 6739 | 6827 | MESG (RelDirection[relpos]), n, |
| 6740 | 6828 | User[i].maybearrest); |
| @@ -6742,7 +6830,7 @@ | ||
| 6742 | 6830 | else |
| 6743 | 6831 | { |
| 6744 | 6832 | sprintf (work, |
| 6745 | - MESG ("<Guard :%-.24s %10s %5dBlock>"), | |
| 6833 | + MESG ("<Guard :%s:%10s:%5dBlock>"), | |
| 6746 | 6834 | CUTTAIL (User[i].name), |
| 6747 | 6835 | MESG (RelDirection[relpos]), n); |
| 6748 | 6836 | } |
| @@ -6777,13 +6865,13 @@ | ||
| 6777 | 6865 | if (Npc[i].c_type == NpcHunter) |
| 6778 | 6866 | { |
| 6779 | 6867 | sprintf (work, |
| 6780 | - MESG ("<Hunter:%-.24s %10s %5dBlock crime:NA>"), | |
| 6868 | + MESG ("<Hunter:%s:%10s:%5dBlock:crime NA>"), | |
| 6781 | 6869 | CUTTAIL (Npc[i].name), |
| 6782 | 6870 | MESG (RelDirection[relpos]), n); |
| 6783 | 6871 | } |
| 6784 | 6872 | else |
| 6785 | 6873 | { |
| 6786 | - sprintf (work, MESG ("<Guard :%-.24s %10s %5dBlock>"), | |
| 6874 | + sprintf (work, MESG ("<Guard :%s:%10s:%5dBlock>"), | |
| 6787 | 6875 | CUTTAIL (Npc[i].name), |
| 6788 | 6876 | MESG (RelDirection[relpos]), n); |
| 6789 | 6877 | } |
| @@ -6861,10 +6949,10 @@ | ||
| 6861 | 6949 | if (Npc[i].name[0] == '\0') |
| 6862 | 6950 | { |
| 6863 | 6951 | static const char *mesg[4] = { |
| 6864 | - "%-.24s say,OK Boss. I will guard you.", | |
| 6865 | - "%-.24s say,Ready for deployment", | |
| 6866 | - "%-.24s say,It's show time!", | |
| 6867 | - "%-.24s say,Do you wanna use my design?" | |
| 6952 | + "%s say,OK Boss. I will guard you.", | |
| 6953 | + "%s say,Ready for deployment", | |
| 6954 | + "%s say,It's show time!", | |
| 6955 | + "%s say,Do you wanna use my design?" | |
| 6868 | 6956 | }; |
| 6869 | 6957 | static const int ck_x[8] = { 0, 1, 1, 1, 0, -1, -1, -1 }; |
| 6870 | 6958 | static const int ck_y[8] = { -1, -1, 0, 1, 1, 1, 0, -1 }; |
| @@ -7018,13 +7106,13 @@ | ||
| 7018 | 7106 | } |
| 7019 | 7107 | break; |
| 7020 | 7108 | case Vehicle: |
| 7021 | - sprintf (work, MESG ("You ride on %-.24s"), CUTTAIL (pitem->name)); | |
| 7109 | + sprintf (work, MESG ("You ride on %s"), CUTTAIL (pitem->name)); | |
| 7022 | 7110 | rideVehicle (nuser, pitem->effect % 100, pitem->effect / 100, |
| 7023 | 7111 | pitem->pattern); |
| 7024 | 7112 | break; |
| 7025 | 7113 | case Food: |
| 7026 | 7114 | cause_eat (nuser, pitem->effect); |
| 7027 | - sprintf (work, MESG ("You eat %-.24s..."), CUTTAIL (pitem->name)); | |
| 7115 | + sprintf (work, MESG ("You eat %s..."), CUTTAIL (pitem->name)); | |
| 7028 | 7116 | if (pitem->effect > 100) |
| 7029 | 7117 | { |
| 7030 | 7118 | strcat (work, MESG ("Delicious!")); |
| @@ -7087,7 +7175,7 @@ | ||
| 7087 | 7175 | } |
| 7088 | 7176 | User[nuser].item[i] = nitem; |
| 7089 | 7177 | User[nuser].itemcount[i] = Item[User[nuser].item[i]].count; |
| 7090 | - sprintf (work, MESG ("[Get item%1d:%-.24s]"), | |
| 7178 | + sprintf (work, MESG ("[Get item%1d:%s]"), | |
| 7091 | 7179 | i + 1, CUTTAIL (Item[User[nuser].item[i]].name)); |
| 7092 | 7180 | SendSystemMessagePacket (nuser, work); |
| 7093 | 7181 | return i; |
| @@ -7115,7 +7203,7 @@ | ||
| 7115 | 7203 | User[nuser].weapon[i] = nweapon; |
| 7116 | 7204 | User[nuser].bullette[i] = Weapon[User[nuser].weapon[i]].bullette; |
| 7117 | 7205 | User[nuser].reload[i] = 0; |
| 7118 | - sprintf (work, MESG ("[Get weapon%1d:%-.24s]"), | |
| 7206 | + sprintf (work, MESG ("[Get weapon%1d:%s]"), | |
| 7119 | 7207 | i + 1, CUTTAIL (Weapon[User[nuser].weapon[i]].name)); |
| 7120 | 7208 | SendSystemMessagePacket (nuser, work); |
| 7121 | 7209 | return i; |
| @@ -7211,7 +7299,7 @@ | ||
| 7211 | 7299 | { |
| 7212 | 7300 | /* can't get this. drop original position */ |
| 7213 | 7301 | char work[MESG_BUFFER]; |
| 7214 | - sprintf (work, MESG ("[You have no space to get %-.24s!]"), | |
| 7302 | + sprintf (work, MESG ("[You have no space to get %s!]"), | |
| 7215 | 7303 | isitem ? CUTTAIL (Item[nitem].name) : |
| 7216 | 7304 | CUTTAIL (Weapon[nitem].name)); |
| 7217 | 7305 | SendSystemMessagePacket (nuser, work); |
| @@ -7245,7 +7333,7 @@ | ||
| 7245 | 7333 | } |
| 7246 | 7334 | add_score (nuser, n); |
| 7247 | 7335 | add_crime (nuser, n); |
| 7248 | - sprintf (work, MESG ("[You catch %-.24s:%upoint]"), | |
| 7336 | + sprintf (work, MESG ("[You catch %s:%upoint]"), | |
| 7249 | 7337 | CUTTAIL (Animal[nanimal].name), n); |
| 7250 | 7338 | SendSystemMessagePacket (nuser, work); |
| 7251 | 7339 | DeleteAnimal (nanimal); |
| @@ -7266,7 +7354,7 @@ | ||
| 7266 | 7354 | /* it is animal corpse */ |
| 7267 | 7355 | char work[MESG_BUFFER]; |
| 7268 | 7356 | sprintf (work, |
| 7269 | - MESG ("[You collect %-.24s's corpse:10point]"), | |
| 7357 | + MESG ("[You collect %s's corpse:10point]"), | |
| 7270 | 7358 | CUTTAIL (Animal[nanimal].name)); |
| 7271 | 7359 | SendSystemMessagePacket (nuser, work); |
| 7272 | 7360 | MAP (x, y)->id &= ~MAP_THERE_ANIMAL; |
| @@ -7288,7 +7376,7 @@ | ||
| 7288 | 7376 | { |
| 7289 | 7377 | /* arrest! */ |
| 7290 | 7378 | char work[MESG_BUFFER]; |
| 7291 | - sprintf (work, MESG ("[You arrest %-.24s. Get 500point.]"), | |
| 7379 | + sprintf (work, MESG ("[You arrest %s. Get 500point.]"), | |
| 7292 | 7380 | CUTTAIL (Npc[npc].name)); |
| 7293 | 7381 | SendSystemMessagePacket (nuser, work); |
| 7294 | 7382 | add_score (nuser, 500); |
| @@ -7317,10 +7405,10 @@ | ||
| 7317 | 7405 | break; |
| 7318 | 7406 | } |
| 7319 | 7407 | User[ntarget].crime_level = 0; |
| 7320 | - sprintf (work, MESG ("[You arrest %-.24s. Get %lupoint.]"), | |
| 7408 | + sprintf (work, MESG ("[You arrest %s. Get %lupoint.]"), | |
| 7321 | 7409 | CUTTAIL (User[ntarget].name), npts); |
| 7322 | 7410 | SendSystemMessagePacket (nuser, work); |
| 7323 | - sprintf (work, MESG ("[You were arrested by %-.24s]"), | |
| 7411 | + sprintf (work, MESG ("[You were arrested by %s]"), | |
| 7324 | 7412 | CUTTAIL (User[nuser].name)); |
| 7325 | 7413 | SendSystemMessagePacket (ntarget, work); |
| 7326 | 7414 | SendSystemMessagePacket (ntarget, MESG ("[Go to Jail!]")); |
| @@ -7336,11 +7424,11 @@ | ||
| 7336 | 7424 | } |
| 7337 | 7425 | else |
| 7338 | 7426 | { |
| 7339 | - sprintf (work, MESG ("[You attempt to arrest %-.24s]"), | |
| 7427 | + sprintf (work, MESG ("[You attempt to arrest %s]"), | |
| 7340 | 7428 | CUTTAIL (User[ntarget].name)); |
| 7341 | 7429 | SendSystemMessagePacket (nuser, work); |
| 7342 | 7430 | SendSystemMessagePacket (nuser, MESG ("[But he do not crime]")); |
| 7343 | - sprintf (work, MESG ("[%-.24s attempt to arrest you]"), | |
| 7431 | + sprintf (work, MESG ("[%s attempt to arrest you]"), | |
| 7344 | 7432 | CUTTAIL (User[nuser].name)); |
| 7345 | 7433 | SendSystemMessagePacket (ntarget, work); |
| 7346 | 7434 | SendSystemMessagePacket (ntarget, |
| @@ -7662,7 +7750,7 @@ | ||
| 7662 | 7750 | { |
| 7663 | 7751 | char work[MESG_BUFFER]; |
| 7664 | 7752 | sprintf (work, |
| 7665 | - MESG ("<%d:%-.24s (%3d,%3d)>"), i + 1, | |
| 7753 | + MESG ("<%d:%s:(%3d,%3d)>"), i + 1, | |
| 7666 | 7754 | CUTTAIL (User[nuser].myshop[i].name), |
| 7667 | 7755 | User[nuser].myshop[i].pos.x, User[nuser].myshop[i].pos.y); |
| 7668 | 7756 | SendSystemMessagePacket (nuser, work); |
| @@ -7686,7 +7774,7 @@ | ||
| 7686 | 7774 | if (p != NULL) |
| 7687 | 7775 | { |
| 7688 | 7776 | strncpy (namebuffer, CUTTAIL (p->name), sizeof (namebuffer)); |
| 7689 | - sprintf (work, MESG ("<%d:%-.24s(%-.24s)>"), i + 1, namebuffer, | |
| 7777 | + sprintf (work, MESG ("<%d:%s(%s)>"), i + 1, namebuffer, | |
| 7690 | 7778 | CUTTAIL (Item[p->forsell_item].name)); |
| 7691 | 7779 | SendSystemMessagePacket (nuser, work); |
| 7692 | 7780 | } |
| @@ -7791,7 +7879,7 @@ | ||
| 7791 | 7879 | { |
| 7792 | 7880 | if (animal[i]) |
| 7793 | 7881 | { |
| 7794 | - sprintf (work, MESG ("<'%-.24s' lives:%3d rate:%3u value:%5u>"), | |
| 7882 | + sprintf (work, MESG ("<'%s':lives %3d:rate %3u:value %5u>"), | |
| 7795 | 7883 | CUTTAIL (AnimalData[i].name), animal[i], |
| 7796 | 7884 | AnimalData[i].rate, AnimalData[i].value); |
| 7797 | 7885 | SendSystemMessagePacket (nuser, work); |
| @@ -7835,7 +7923,7 @@ | ||
| 7835 | 7923 | { |
| 7836 | 7924 | strcpy (subjectbuffer, "NO SUBJECT"); |
| 7837 | 7925 | } |
| 7838 | - sprintf (work, "<%c%2d:%-.24s %-.32s>", | |
| 7926 | + sprintf (work, "<%c%2d:%s %s>", | |
| 7839 | 7927 | pmail->readflag ? ' ' : '*', i + 1, |
| 7840 | 7928 | CUTTAIL (User[pmail->fromuser].name), subjectbuffer); |
| 7841 | 7929 | SendSystemMessagePacket (nuser, work); |
| @@ -7929,7 +8017,7 @@ | ||
| 7929 | 8017 | { |
| 7930 | 8018 | strcpy (subjectbuffer, "NO SUBJECT"); |
| 7931 | 8019 | } |
| 7932 | - sprintf (work, "<%2d:%-.24s %-.32s>", | |
| 8020 | + sprintf (work, "<%2d:%s %s>", | |
| 7933 | 8021 | i + 1, CUTTAIL (User[pmail->fromuser].name), |
| 7934 | 8022 | subjectbuffer); |
| 7935 | 8023 | SendSystemMessagePacket (nuser, work); |
| @@ -8211,11 +8299,11 @@ | ||
| 8211 | 8299 | { |
| 8212 | 8300 | if (pb->t_type == TargetUser) |
| 8213 | 8301 | { |
| 8214 | - sprintf (work, MESG ("You attack animal '%-.24s'"), | |
| 8302 | + sprintf (work, MESG ("You attack animal '%s'"), | |
| 8215 | 8303 | CUTTAIL (Animal[nanimal].name)); |
| 8216 | 8304 | SendSystemMessagePacket (pb->nuser, work); |
| 8217 | 8305 | } |
| 8218 | - sprintf (work, MESG ("[%-.24s shoot animal!]"), | |
| 8306 | + sprintf (work, MESG ("[%s shoot animal!]"), | |
| 8219 | 8307 | cut_tail (((pb->t_type == TargetUser) ? |
| 8220 | 8308 | User[pb->nuser].name : |
| 8221 | 8309 | Npc[pb->nuser].name), |
| @@ -8236,7 +8324,7 @@ | ||
| 8236 | 8324 | if (pb->nuser != -1 && pb->t_type == TargetUser) |
| 8237 | 8325 | { |
| 8238 | 8326 | sprintf (work, |
| 8239 | - MESG ("animal '%-.24s' died."), | |
| 8327 | + MESG ("animal '%s' died."), | |
| 8240 | 8328 | CUTTAIL (Animal[nanimal].name)); |
| 8241 | 8329 | SendSystemMessagePacket (pb->nuser, work); |
| 8242 | 8330 | if (CountLiveAnimal (Animal[nanimal].pdata) == 0) |
| @@ -8244,7 +8332,7 @@ | ||
| 8244 | 8332 | /* this is last animal! */ |
| 8245 | 8333 | sprintf (work, |
| 8246 | 8334 | MESG |
| 8247 | - ("[animal '%-.24s' is extermination!]"), | |
| 8335 | + ("[animal '%s' is extermination!]"), | |
| 8248 | 8336 | CUTTAIL (Animal[nanimal].name)); |
| 8249 | 8337 | SendSystemMessagePacket (pb->nuser, work); |
| 8250 | 8338 | if (User[pb->nuser].c_type == Observer) |
| @@ -8281,7 +8369,7 @@ | ||
| 8281 | 8369 | { |
| 8282 | 8370 | if (pb->nuser != -1 && pb->t_type == TargetUser) |
| 8283 | 8371 | { |
| 8284 | - sprintf (work, MESG ("animal '%-.24s' stun."), | |
| 8372 | + sprintf (work, MESG ("animal '%s' stun."), | |
| 8285 | 8373 | CUTTAIL (Animal[nanimal].name)); |
| 8286 | 8374 | SendSystemMessagePacket (pb->nuser, work); |
| 8287 | 8375 | } |
| @@ -8299,7 +8387,7 @@ | ||
| 8299 | 8387 | { |
| 8300 | 8388 | sprintf (work, |
| 8301 | 8389 | MESG |
| 8302 | - ("You charm animal '%-.24s'!"), | |
| 8390 | + ("You charm animal '%s'!"), | |
| 8303 | 8391 | CUTTAIL (Animal[nanimal].name)); |
| 8304 | 8392 | SendSystemMessagePacket (pb->nuser, work); |
| 8305 | 8393 | Animal[nanimal].owner_user = pb->nuser; |
| @@ -8308,7 +8396,7 @@ | ||
| 8308 | 8396 | { |
| 8309 | 8397 | sprintf (work, |
| 8310 | 8398 | MESG |
| 8311 | - ("Animal '%-.24s' is free now!"), | |
| 8399 | + ("Animal '%s' is free now!"), | |
| 8312 | 8400 | CUTTAIL (Animal[nanimal].name)); |
| 8313 | 8401 | SendMessageNearUserPosition (pb->pos, work); |
| 8314 | 8402 | Animal[nanimal].owner_user = -1; |
| @@ -8319,7 +8407,7 @@ | ||
| 8319 | 8407 | /* fail */ |
| 8320 | 8408 | sprintf (work, |
| 8321 | 8409 | MESG |
| 8322 | - ("You fail to charm animal '%-.24s'."), | |
| 8410 | + ("You fail to charm animal '%s'."), | |
| 8323 | 8411 | CUTTAIL (Animal[nanimal].name)); |
| 8324 | 8412 | SendSystemMessagePacket (pb->nuser, work); |
| 8325 | 8413 | } |
| @@ -8369,7 +8457,7 @@ | ||
| 8369 | 8457 | char work[MESG_BUFFER]; |
| 8370 | 8458 | if (pb->nuser != -1 && pb->t_type == TargetUser) |
| 8371 | 8459 | { |
| 8372 | - sprintf (work, MESG ("You attack '%-.24s'"), | |
| 8460 | + sprintf (work, MESG ("You attack '%s'"), | |
| 8373 | 8461 | CUTTAIL (Npc[npc].name)); |
| 8374 | 8462 | SendSystemMessagePacket (pb->nuser, work); |
| 8375 | 8463 | } |
| @@ -8378,7 +8466,7 @@ | ||
| 8378 | 8466 | { |
| 8379 | 8467 | if (pb->nuser != -1 && pb->t_type == TargetUser) |
| 8380 | 8468 | { |
| 8381 | - sprintf (work, MESG ("'%-.24s' died."), | |
| 8469 | + sprintf (work, MESG ("'%s' died."), | |
| 8382 | 8470 | CUTTAIL (Npc[npc].name)); |
| 8383 | 8471 | SendSystemMessagePacket (pb->nuser, work); |
| 8384 | 8472 | if (User[pb->nuser].c_type == Hunter && |
| @@ -8399,13 +8487,13 @@ | ||
| 8399 | 8487 | strncpy (namebuffer, CUTTAIL (Npc[npc].name), |
| 8400 | 8488 | sizeof (namebuffer)); |
| 8401 | 8489 | sprintf (work, |
| 8402 | - MESG ("'%-.24s' killed by %-.24s!"), | |
| 8490 | + MESG ("'%s' killed by %s!"), | |
| 8403 | 8491 | namebuffer, |
| 8404 | 8492 | CUTTAIL (Npc[pb->nuser].name)); |
| 8405 | 8493 | } |
| 8406 | 8494 | else |
| 8407 | 8495 | { |
| 8408 | - sprintf (work, MESG ("'%-.24s' killed by any!"), | |
| 8496 | + sprintf (work, MESG ("'%s' killed by any!"), | |
| 8409 | 8497 | CUTTAIL (Npc[npc].name)); |
| 8410 | 8498 | } |
| 8411 | 8499 | SendMessageNearUserPosition (Npc[npc].pos, work); |
| @@ -8423,11 +8511,11 @@ | ||
| 8423 | 8511 | if (!(pb->t_type == TargetNpc && pb->nuser == npc)) |
| 8424 | 8512 | { |
| 8425 | 8513 | static const char *mesg[5] = { |
| 8426 | - "%-.24s say,Hey! Why do you attack me?", | |
| 8427 | - "%-.24s say,No! Don't shoot me!", | |
| 8428 | - "%-.24s say,What's think?!", | |
| 8429 | - "%-.24s say,Ohch! We are under fire!", | |
| 8430 | - "%-.24s say,Ok. I will kill you." | |
| 8514 | + "%s say,Hey! Why do you attack me?", | |
| 8515 | + "%s say,No! Don't shoot me!", | |
| 8516 | + "%s say,What's think?!", | |
| 8517 | + "%s say,Ohch! We are under fire!", | |
| 8518 | + "%s say,Ok. I will kill you." | |
| 8431 | 8519 | }; |
| 8432 | 8520 | NPCsay (npc, mesg, 5); |
| 8433 | 8521 | Npc[npc].ntarget_user = pb->nuser; |
| @@ -8454,11 +8542,11 @@ | ||
| 8454 | 8542 | if (willcounter) |
| 8455 | 8543 | { |
| 8456 | 8544 | static const char *mesg[5] = { |
| 8457 | - "%-.24s say,Detect one boggy!", | |
| 8458 | - "%-.24s say,We are under attack!", | |
| 8459 | - "%-.24s say,Engage!", | |
| 8460 | - "%-.24s say,Caution! Enemy fire!", | |
| 8461 | - "%-.24s say,Emergency! Enemy attack us!" | |
| 8545 | + "%s say,Detect one boggy!", | |
| 8546 | + "%s say,We are under attack!", | |
| 8547 | + "%s say,Engage!", | |
| 8548 | + "%s say,Caution! Enemy fire!", | |
| 8549 | + "%s say,Emergency! Enemy attack us!" | |
| 8462 | 8550 | }; |
| 8463 | 8551 | NPCsay (npc, mesg, 5); |
| 8464 | 8552 | Npc[npc].ntarget_user = pb->nuser; |
| @@ -8467,11 +8555,11 @@ | ||
| 8467 | 8555 | else |
| 8468 | 8556 | { |
| 8469 | 8557 | static const char *mesg[5] = { |
| 8470 | - "%-.24s say,Hey! No shoot me!", | |
| 8471 | - "%-.24s say,I'm friendly!", | |
| 8472 | - "%-.24s say,This is friendly! Don't shoot!", | |
| 8473 | - "%-.24s say,Don't shoot! Are you enemy's spy?", | |
| 8474 | - "%-.24s say,Take more care!" | |
| 8558 | + "%s say,Hey! No shoot me!", | |
| 8559 | + "%s say,I'm friendly!", | |
| 8560 | + "%s say,This is friendly! Don't shoot!", | |
| 8561 | + "%s say,Don't shoot! Are you enemy's spy?", | |
| 8562 | + "%s say,Take more care!" | |
| 8475 | 8563 | }; |
| 8476 | 8564 | NPCsay (npc, mesg, 5); |
| 8477 | 8565 | } |
| @@ -8614,7 +8702,7 @@ | ||
| 8614 | 8702 | int nuser = User[i].lastuser; |
| 8615 | 8703 | if (User[i].lastuser_type == TargetUser) |
| 8616 | 8704 | { |
| 8617 | - sprintf (work, MESG ("[You kill %-.24s]"), | |
| 8705 | + sprintf (work, MESG ("[You kill %s]"), | |
| 8618 | 8706 | CUTTAIL (User[i].name)); |
| 8619 | 8707 | SendSystemMessagePacket (nuser, work); |
| 8620 | 8708 | } |
| @@ -8640,7 +8728,7 @@ | ||
| 8640 | 8728 | if (pname != NULL) |
| 8641 | 8729 | { |
| 8642 | 8730 | sprintf (work, |
| 8643 | - MESG ("[You were killed by %-.24s]"), | |
| 8731 | + MESG ("[You were killed by %s]"), | |
| 8644 | 8732 | cut_tail (pname, name_len)); |
| 8645 | 8733 | SendSystemMessagePacket (i, work); |
| 8646 | 8734 | } |
| @@ -8789,7 +8877,7 @@ | ||
| 8789 | 8877 | User[i].hold_count = HoldCount; |
| 8790 | 8878 | SendSystemMessagePacket (i, MESG ("[You fall in hole!]")); |
| 8791 | 8879 | SendEffectFallInHolePacket (i); |
| 8792 | - sprintf (work, MESG ("[You hear sound %-.24s fall in hole]"), | |
| 8880 | + sprintf (work, MESG ("[You hear sound %s fall in hole]"), | |
| 8793 | 8881 | CUTTAIL (User[i].name)); |
| 8794 | 8882 | SendMessageNearUser (i, work); |
| 8795 | 8883 | } |
| @@ -8799,7 +8887,7 @@ | ||
| 8799 | 8887 | /* perhaps,disconnect session. */ |
| 8800 | 8888 | char work[USERNAME_LEN]; |
| 8801 | 8889 | memcpy (work, User[i].name, USERNAME_LEN); |
| 8802 | - printf ("user(%d)[%-.24s] no response\n", i, CUTTAIL (work)); | |
| 8890 | + printf ("user(%d)[%s] no response\n", i, CUTTAIL (work)); | |
| 8803 | 8891 | DisconnectUser (i); |
| 8804 | 8892 | } |
| 8805 | 8893 | } |
| @@ -8999,7 +9087,7 @@ | ||
| 8999 | 9087 | char namebuffer[24 + 1]; |
| 9000 | 9088 | strncpy (namebuffer, CUTTAIL (Animal[nanimal].name), |
| 9001 | 9089 | sizeof (namebuffer)); |
| 9002 | - sprintf (work, MESG ("animal '%-.24s' eat %-.24s"), namebuffer, | |
| 9090 | + sprintf (work, MESG ("animal '%s' eat %s"), namebuffer, | |
| 9003 | 9091 | CUTTAIL (Animal[targetanimal].name)); |
| 9004 | 9092 | SendMessageNearUserPosition (Animal[nanimal].pos, work); |
| 9005 | 9093 | MAP (Animal[targetanimal].pos.x, Animal[targetanimal].pos.y)->id &= |
| @@ -9069,11 +9157,11 @@ | ||
| 9069 | 9157 | if (Npc[npc].hp) |
| 9070 | 9158 | { |
| 9071 | 9159 | static const char *mesg[5] = { |
| 9072 | - "%-.24s say,Nooo!", | |
| 9073 | - "%-.24s say,Animal bite me!", | |
| 9074 | - "%-.24s say,Danger! This animal is ferocity!", | |
| 9075 | - "%-.24s say,Help! Animal bite ...Arrrrgh!", | |
| 9076 | - "%-.24s say,Why is this animal angry?" | |
| 9160 | + "%s say,Nooo!", | |
| 9161 | + "%s say,Animal bite me!", | |
| 9162 | + "%s say,Danger! This animal is ferocity!", | |
| 9163 | + "%s say,Help! Animal bite ...Arrrrgh!", | |
| 9164 | + "%s say,Why is this animal angry?" | |
| 9077 | 9165 | }; |
| 9078 | 9166 | NPCsay (npc, mesg, 5); |
| 9079 | 9167 | } |
| @@ -9080,7 +9168,7 @@ | ||
| 9080 | 9168 | if (Npc[npc].hp == 0) |
| 9081 | 9169 | { |
| 9082 | 9170 | char work[MESG_BUFFER]; |
| 9083 | - sprintf (work, MESG ("'%-.24s' died."), CUTTAIL (Npc[npc].name)); | |
| 9171 | + sprintf (work, MESG ("'%s' died."), CUTTAIL (Npc[npc].name)); | |
| 9084 | 9172 | SendMessageNearUserPosition (Npc[npc].pos, work); |
| 9085 | 9173 | Npc[npc].name[0] = '\0'; |
| 9086 | 9174 | MAP (Npc[npc].pos.x, Npc[npc].pos.y)->id &= ~MAP_THERE_NPC; |
| @@ -9606,7 +9694,7 @@ | ||
| 9606 | 9694 | Animal[i].hold_count = HoldCount; |
| 9607 | 9695 | sprintf (work, |
| 9608 | 9696 | MESG |
| 9609 | - ("[You hear sound '%-.24s' fall in hole]"), | |
| 9697 | + ("[You hear sound '%s' fall in hole]"), | |
| 9610 | 9698 | CUTTAIL (Animal[i].name)); |
| 9611 | 9699 | SendMessageNearUserAnimal (i, work); |
| 9612 | 9700 | } |
| @@ -9999,11 +10087,11 @@ | ||
| 9999 | 10087 | if (ret == 0) |
| 10000 | 10088 | { |
| 10001 | 10089 | static const char *mesg[5] = { |
| 10002 | - "%-.24s say,FREEZE!", | |
| 10003 | - "%-.24s say,FIRE!", | |
| 10004 | - "%-.24s say,Hey! I know your position!", | |
| 10005 | - "%-.24s say,You can't escape from me!", | |
| 10006 | - "%-.24s say,Contact!" | |
| 10090 | + "%s say,FREEZE!", | |
| 10091 | + "%s say,FIRE!", | |
| 10092 | + "%s say,Hey! I know your position!", | |
| 10093 | + "%s say,You can't escape from me!", | |
| 10094 | + "%s say,Contact!" | |
| 10007 | 10095 | }; |
| 10008 | 10096 | NPCsay (npc, mesg, 5); |
| 10009 | 10097 | } |
| @@ -10016,11 +10104,11 @@ | ||
| 10016 | 10104 | if (User[ntarget_user].maybearrest) |
| 10017 | 10105 | { |
| 10018 | 10106 | static const char *mesg[5] = { |
| 10019 | - "%-.24s say,Do not move!", | |
| 10020 | - "%-.24s say,You are criminal!", | |
| 10021 | - "%-.24s say,Hold up!", | |
| 10022 | - "%-.24s say,Do not escape! If you do so,I will shoot you!", | |
| 10023 | - "%-.24s say,You should surrender!" | |
| 10107 | + "%s say,Do not move!", | |
| 10108 | + "%s say,You are criminal!", | |
| 10109 | + "%s say,Hold up!", | |
| 10110 | + "%s say,Do not escape! If you do so,I will shoot you!", | |
| 10111 | + "%s say,You should surrender!" | |
| 10024 | 10112 | }; |
| 10025 | 10113 | NPCsay (npc, mesg, 5); |
| 10026 | 10114 | } |
| @@ -10028,11 +10116,11 @@ | ||
| 10028 | 10116 | User[ntarget_user].crime_level) |
| 10029 | 10117 | { |
| 10030 | 10118 | static const char *mesg2[5] = { |
| 10031 | - "%-.24s say,Go out!", | |
| 10032 | - "%-.24s say,You can't escape!", | |
| 10033 | - "%-.24s say,You no have choise!", | |
| 10034 | - "%-.24s say,Do anyone call SWAT? We need!", | |
| 10035 | - "%-.24s say,We have surrounded you!" | |
| 10119 | + "%s say,Go out!", | |
| 10120 | + "%s say,You can't escape!", | |
| 10121 | + "%s say,You no have choise!", | |
| 10122 | + "%s say,Do anyone call SWAT? We need!", | |
| 10123 | + "%s say,We have surrounded you!" | |
| 10036 | 10124 | }; |
| 10037 | 10125 | NPCsay (npc, mesg2, 5); |
| 10038 | 10126 | } |
| @@ -10099,7 +10187,7 @@ | ||
| 10099 | 10187 | char work[MESG_BUFFER]; |
| 10100 | 10188 | MAP (x, y)->id &= ~MAP_THERE_HOLE; |
| 10101 | 10189 | Npc[n].hold_count = HoldCount; |
| 10102 | - sprintf (work, MESG ("[You hear sound %-.24s fall in hole!]"), | |
| 10190 | + sprintf (work, MESG ("[You hear sound %s fall in hole!]"), | |
| 10103 | 10191 | CUTTAIL (Npc[n].name)); |
| 10104 | 10192 | SendMessageNearUserPosition (Npc[n].pos, work); |
| 10105 | 10193 | } |
| @@ -10122,9 +10210,9 @@ | ||
| 10122 | 10210 | if (getrand (1, 100) < HUNTER_SPEAK_RATE) |
| 10123 | 10211 | { |
| 10124 | 10212 | static const char *mesg[3] = { |
| 10125 | - "%-.24s say,Oh! I am innoucence!", | |
| 10126 | - "%-.24s say,Leave alone!", | |
| 10127 | - "%-.24s say,HELP ME! HELP! HELP!" | |
| 10213 | + "%s say,Oh! I am innoucence!", | |
| 10214 | + "%s say,Leave alone!", | |
| 10215 | + "%s say,HELP ME! HELP! HELP!" | |
| 10128 | 10216 | }; |
| 10129 | 10217 | NPCsay (n, mesg, 3); |
| 10130 | 10218 | } |
| @@ -10177,11 +10265,11 @@ | ||
| 10177 | 10265 | if (getrand (1, 100) < HUNTER_SPEAK_RATE) |
| 10178 | 10266 | { |
| 10179 | 10267 | static const char *mesg[5] = { |
| 10180 | - "%-.24s say,Anyone see animal?", | |
| 10181 | - "%-.24s say,Oh sorry.", | |
| 10182 | - "%-.24s say,Nice meet you!", | |
| 10183 | - "%-.24s say,Hello. Is there anyone?", | |
| 10184 | - "%-.24s say,I want any food. Anyone have?" | |
| 10268 | + "%s say,Anyone see animal?", | |
| 10269 | + "%s say,Oh sorry.", | |
| 10270 | + "%s say,Nice meet you!", | |
| 10271 | + "%s say,Hello. Is there anyone?", | |
| 10272 | + "%s say,I want any food. Anyone have?" | |
| 10185 | 10273 | }; |
| 10186 | 10274 | NPCsay (n, mesg, 5); |
| 10187 | 10275 | } |
| @@ -10211,8 +10299,7 @@ | ||
| 10211 | 10299 | { |
| 10212 | 10300 | /* get */ |
| 10213 | 10301 | char work[MESG_BUFFER]; |
| 10214 | - sprintf (work, MESG ("%-.24s say,Get!"), | |
| 10215 | - CUTTAIL (Npc[n].name)); | |
| 10302 | + sprintf (work, MESG ("%s say,Get!"), CUTTAIL (Npc[n].name)); | |
| 10216 | 10303 | SendMessageNearUserPosition (Npc[n].pos, work); |
| 10217 | 10304 | MAP (Animal[ntarget].pos.x, Animal[ntarget].pos.y)->id &= |
| 10218 | 10305 | ~MAP_THERE_ANIMAL; |
| @@ -10227,14 +10314,14 @@ | ||
| 10227 | 10314 | if (getrand (1, 100) < HUNTER_SPEAK_RATE) |
| 10228 | 10315 | { |
| 10229 | 10316 | static const char *mesg_a[3] = { |
| 10230 | - "%-.24s say,Fire! Fire!", | |
| 10231 | - "%-.24s say,Oh! This animal is strong!", | |
| 10232 | - "%-.24s say,Hey! Cover me!" | |
| 10317 | + "%s say,Fire! Fire!", | |
| 10318 | + "%s say,Oh! This animal is strong!", | |
| 10319 | + "%s say,Hey! Cover me!" | |
| 10233 | 10320 | }; |
| 10234 | 10321 | static const char *mesg_n[3] = { |
| 10235 | - "%-.24s say,Fire! Fire! Fire!", | |
| 10236 | - "%-.24s say,We are under attack!", | |
| 10237 | - "%-.24s say,Anyone! Help me!" | |
| 10322 | + "%s say,Fire! Fire! Fire!", | |
| 10323 | + "%s say,We are under attack!", | |
| 10324 | + "%s say,Anyone! Help me!" | |
| 10238 | 10325 | }; |
| 10239 | 10326 | NPCsay (n, |
| 10240 | 10327 | (t_type == TargetAnimal) ? mesg_a : mesg_n, |
| @@ -10257,14 +10344,14 @@ | ||
| 10257 | 10344 | { |
| 10258 | 10345 | /* out of range */ |
| 10259 | 10346 | static const char *mesg_a[3] = { |
| 10260 | - "%-.24s say,OH NO! I miss animal!", | |
| 10261 | - "%-.24s say,Hey! Don't you get my animal?", | |
| 10262 | - "%-.24s say,I think animal enter hyper-space." | |
| 10347 | + "%s say,OH NO! I miss animal!", | |
| 10348 | + "%s say,Hey! Don't you get my animal?", | |
| 10349 | + "%s say,I think animal enter hyper-space." | |
| 10263 | 10350 | }; |
| 10264 | 10351 | static const char *mesg_n[3] = { |
| 10265 | - "%-.24s say,hehe! bye bye!", | |
| 10266 | - "%-.24s say,Enemy escape from me.", | |
| 10267 | - "%-.24s say,Where?" | |
| 10352 | + "%s say,hehe! bye bye!", | |
| 10353 | + "%s say,Enemy escape from me.", | |
| 10354 | + "%s say,Where?" | |
| 10268 | 10355 | }; |
| 10269 | 10356 | NPCsay (n, (t_type == TargetAnimal) ? mesg_a : mesg_n, 3); |
| 10270 | 10357 | Npc[n].ntarget_user = -1; |
| @@ -10334,11 +10421,11 @@ | ||
| 10334 | 10421 | if (getrand (1, 100) < OBSERVER_SPEAK_RATE) |
| 10335 | 10422 | { |
| 10336 | 10423 | static const char *mesg[5] = { |
| 10337 | - "%-.24s say,*anyone see bad hunter?*", | |
| 10338 | - "%-.24s say,*uhmm. where is he?*", | |
| 10339 | - "%-.24s say,*are you bad hunter?*", | |
| 10340 | - "%-.24s say,*I want to rest here...*", | |
| 10341 | - "%-.24s say,*Zzzzz*" | |
| 10424 | + "%s say,*anyone see bad hunter?*", | |
| 10425 | + "%s say,*uhmm. where is he?*", | |
| 10426 | + "%s say,*are you bad hunter?*", | |
| 10427 | + "%s say,*I want to rest here...*", | |
| 10428 | + "%s say,*Zzzzz*" | |
| 10342 | 10429 | }; |
| 10343 | 10430 | NPCsay (n, mesg, 5); |
| 10344 | 10431 | } |
| @@ -10400,9 +10487,9 @@ | ||
| 10400 | 10487 | if (ndistance == 1) |
| 10401 | 10488 | { |
| 10402 | 10489 | static const char *g_mesg[3] = { |
| 10403 | - "%-.24s say,Hey! You do crime!", | |
| 10404 | - "%-.24s say,Arrest you!", | |
| 10405 | - "%-.24s say,Hold up!" | |
| 10490 | + "%s say,Hey! You do crime!", | |
| 10491 | + "%s say,Arrest you!", | |
| 10492 | + "%s say,Hold up!" | |
| 10406 | 10493 | }; |
| 10407 | 10494 | if (t_type == TargetUser) |
| 10408 | 10495 | { |
| @@ -10412,7 +10499,7 @@ | ||
| 10412 | 10499 | /* arrest */ |
| 10413 | 10500 | char work[MESG_BUFFER]; |
| 10414 | 10501 | NPCsay (n, g_mesg, 3); |
| 10415 | - sprintf (work, MESG ("[You were arrested by %-.24s!]"), | |
| 10502 | + sprintf (work, MESG ("[You were arrested by %s!]"), | |
| 10416 | 10503 | CUTTAIL (Npc[n].name)); |
| 10417 | 10504 | SendSystemMessagePacket (ntarget, work); |
| 10418 | 10505 | ClearUser (ntarget); |
| @@ -10449,9 +10536,9 @@ | ||
| 10449 | 10536 | { |
| 10450 | 10537 | /* arrest NPC */ |
| 10451 | 10538 | static const char *h_mesg[3] = { |
| 10452 | - "%-.24s say,Oh NO! PLEASE HELP ME!", | |
| 10453 | - "%-.24s say,ARGGGH!", | |
| 10454 | - "%-.24s say,Yeah I understand your claim. But..." | |
| 10539 | + "%s say,Oh NO! PLEASE HELP ME!", | |
| 10540 | + "%s say,ARGGGH!", | |
| 10541 | + "%s say,Yeah I understand your claim. But..." | |
| 10455 | 10542 | }; |
| 10456 | 10543 | NPCsay (n, g_mesg, 3); |
| 10457 | 10544 | NPCsay (ntarget, h_mesg, 3); |
| @@ -10479,9 +10566,9 @@ | ||
| 10479 | 10566 | NPCfire (n, ndir) == 0) |
| 10480 | 10567 | { |
| 10481 | 10568 | static const char *mesg[3] = { |
| 10482 | - "%-.24s say,Hey! Stop!", | |
| 10483 | - "%-.24s say,You are BAD HUNTER!", | |
| 10484 | - "%-.24s say,Shoot!" | |
| 10569 | + "%s say,Hey! Stop!", | |
| 10570 | + "%s say,You are BAD HUNTER!", | |
| 10571 | + "%s say,Shoot!" | |
| 10485 | 10572 | }; |
| 10486 | 10573 | NPCsay (n, mesg, 3); |
| 10487 | 10574 | return; |
| @@ -10492,9 +10579,9 @@ | ||
| 10492 | 10579 | { |
| 10493 | 10580 | /* out of range */ |
| 10494 | 10581 | static const char *mesg[3] = { |
| 10495 | - "%-.24s say,Shit!", | |
| 10496 | - "%-.24s say,I miss bad hunter.", | |
| 10497 | - "%-.24s say,Oh no! My radar device is malfunction!" | |
| 10582 | + "%s say,Shit!", | |
| 10583 | + "%s say,I miss bad hunter.", | |
| 10584 | + "%s say,Oh no! My radar device is malfunction!" | |
| 10498 | 10585 | }; |
| 10499 | 10586 | NPCsay (n, mesg, 3); |
| 10500 | 10587 | Npc[n].ntarget_user = -1; |
| @@ -10579,11 +10666,11 @@ | ||
| 10579 | 10666 | if (getrand (1, 100) < HIRENPC_SPEAK_RATE) |
| 10580 | 10667 | { |
| 10581 | 10668 | static const char *mesg[5] = { |
| 10582 | - "%-.24s say,sorry.", | |
| 10583 | - "%-.24s say,I cover your back.", | |
| 10584 | - "%-.24s say,Anyone see enemy?", | |
| 10585 | - "%-.24s say,no boggy.", | |
| 10586 | - "%-.24s say,I no see enemy." | |
| 10669 | + "%s say,sorry.", | |
| 10670 | + "%s say,I cover your back.", | |
| 10671 | + "%s say,Anyone see enemy?", | |
| 10672 | + "%s say,no boggy.", | |
| 10673 | + "%s say,I no see enemy." | |
| 10587 | 10674 | }; |
| 10588 | 10675 | NPCsay (n, mesg, 5); |
| 10589 | 10676 | } |
| @@ -10596,11 +10683,11 @@ | ||
| 10596 | 10683 | if (getrand (1, 100) < HIRENPC_SPEAK_RATE) |
| 10597 | 10684 | { |
| 10598 | 10685 | static const char *mesg[5] = { |
| 10599 | - "%-.24s say,on the way.", | |
| 10600 | - "%-.24s say,search trap now...", | |
| 10601 | - "%-.24s say,Don't go away from me!", | |
| 10602 | - "%-.24s say,no enemy in sight.", | |
| 10603 | - "%-.24s say,I no see any on my radar." | |
| 10686 | + "%s say,on the way.", | |
| 10687 | + "%s say,search trap now...", | |
| 10688 | + "%s say,Don't go away from me!", | |
| 10689 | + "%s say,no enemy in sight.", | |
| 10690 | + "%s say,I no see any on my radar." | |
| 10604 | 10691 | }; |
| 10605 | 10692 | NPCsay (n, mesg, 5); |
| 10606 | 10693 | } |
| @@ -10625,9 +10712,9 @@ | ||
| 10625 | 10712 | { |
| 10626 | 10713 | /* boggy! */ |
| 10627 | 10714 | static const char *mesg[3] = { |
| 10628 | - "%-.24s say,Engage enemy!", | |
| 10629 | - "%-.24s say,Hey! Do not enter!", | |
| 10630 | - "%-.24s say,Formation alpha! move to attack position!" | |
| 10715 | + "%s say,Engage enemy!", | |
| 10716 | + "%s say,Hey! Do not enter!", | |
| 10717 | + "%s say,Formation alpha! move to attack position!" | |
| 10631 | 10718 | }; |
| 10632 | 10719 | NPCsay (n, mesg, 3); |
| 10633 | 10720 | Npc[n].ntarget_user = ntarget; |
| @@ -10641,9 +10728,9 @@ | ||
| 10641 | 10728 | { |
| 10642 | 10729 | /* owner is under attack! */ |
| 10643 | 10730 | static const char *mesg[3] = { |
| 10644 | - "%-.24s say,Alert! HQ is under attack!", | |
| 10645 | - "%-.24s say,Condition RED! All guard HQ!", | |
| 10646 | - "%-.24s say,Formation sigma! move to support position!" | |
| 10731 | + "%s say,Alert! HQ is under attack!", | |
| 10732 | + "%s say,Condition RED! All guard HQ!", | |
| 10733 | + "%s say,Formation sigma! move to support position!" | |
| 10647 | 10734 | }; |
| 10648 | 10735 | NPCsay (n, mesg, 3); |
| 10649 | 10736 | Npc[n].ntarget_user = User[nuser].lastuser; |
| @@ -10655,9 +10742,9 @@ | ||
| 10655 | 10742 | { |
| 10656 | 10743 | /* animal aproach */ |
| 10657 | 10744 | static const char *mesg[3] = { |
| 10658 | - "%-.24s say,I find dangerous animal!", | |
| 10659 | - "%-.24s say,Animal aproach!", | |
| 10660 | - "%-.24s say,Formation delta! move to attack position!" | |
| 10745 | + "%s say,I find dangerous animal!", | |
| 10746 | + "%s say,Animal aproach!", | |
| 10747 | + "%s say,Formation delta! move to attack position!" | |
| 10661 | 10748 | }; |
| 10662 | 10749 | NPCsay (n, mesg, 3); |
| 10663 | 10750 | Npc[n].ntarget_user = ntarget; |
| @@ -10718,9 +10805,9 @@ | ||
| 10718 | 10805 | if (ndistance == 1 && Npc[n].weapon) |
| 10719 | 10806 | { |
| 10720 | 10807 | static const char *mesg[3] = { |
| 10721 | - "%-.24s say,I wanna need your support!", | |
| 10722 | - "%-.24s say,Shit! This enemy is too near!", | |
| 10723 | - "%-.24s say,HAHAHA!" | |
| 10808 | + "%s say,I wanna need your support!", | |
| 10809 | + "%s say,Shit! This enemy is too near!", | |
| 10810 | + "%s say,HAHAHA!" | |
| 10724 | 10811 | }; |
| 10725 | 10812 | NPCsay (n, mesg, 3); |
| 10726 | 10813 | } |
| @@ -10729,9 +10816,9 @@ | ||
| 10729 | 10816 | if (ndistance < VIEW_LIMIT && Npc[n].reload == 0) |
| 10730 | 10817 | { |
| 10731 | 10818 | static const char *mesg[3] = { |
| 10732 | - "%-.24s say,I attack this enemy.", | |
| 10733 | - "%-.24s say,We are under fire!", | |
| 10734 | - "%-.24s say,Cover me!" | |
| 10819 | + "%s say,I attack this enemy.", | |
| 10820 | + "%s say,We are under fire!", | |
| 10821 | + "%s say,Cover me!" | |
| 10735 | 10822 | }; |
| 10736 | 10823 | NPCsay (n, mesg, 3); |
| 10737 | 10824 | } |
| @@ -10740,9 +10827,9 @@ | ||
| 10740 | 10827 | { |
| 10741 | 10828 | /* out of range */ |
| 10742 | 10829 | static const char *mesg[3] = { |
| 10743 | - "%-.24s say,I lost target-lock.", | |
| 10744 | - "%-.24s say,no see anyone.", | |
| 10745 | - "%-.24s say,ok. clear." | |
| 10830 | + "%s say,I lost target-lock.", | |
| 10831 | + "%s say,no see anyone.", | |
| 10832 | + "%s say,ok. clear." | |
| 10746 | 10833 | }; |
| 10747 | 10834 | NPCsay (n, mesg, 3); |
| 10748 | 10835 | Npc[n].ntarget_user = -1; |