• R/O
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

密猟オンラインサーバープログラム


Commit MetaInfo

Revision4 (tree)
Time2016-01-24 23:29:58
Authormanjihq

Log Message

utf-8に変更した結果、名称バッファが足りなくなっていたのでそれを修正

Change Summary

Incremental Difference

--- trunk/huntserv.c (revision 3)
+++ trunk/huntserv.c (revision 4)
@@ -367,7 +367,7 @@
367367 typedef struct animal_info
368368 {
369369 ANIMALDATA *pdata;
370- char name[USERNAME_LEN];
370+ char name[ANIMALNAME_LEN];
371371 unsigned long hp;
372372 unsigned moral;
373373 unsigned w_power;
@@ -1524,7 +1524,7 @@
15241524 #ifdef MAKEWIN32
15251525 convertH2C (namebuf, USERNAME_LEN);
15261526 #endif
1527- fprintf (optr, "%d,%d,%d,%-.16s\n",
1527+ fprintf (optr, "%d,%d,%d,%-.24s\n",
15281528 User[i].myshop[j].build,
15291529 User[i].myshop[j].pos.x, User[i].myshop[j].pos.y,
15301530 namebuf);
@@ -1539,7 +1539,7 @@
15391539 #ifdef MAKEWIN32
15401540 convertH2C (namebuf, WEAPONNAME_LEN);
15411541 #endif
1542- fprintf (optr, "%-.32s,%u,%u,%lu\n",
1542+ fprintf (optr, "%-.24s,%u,%u,%lu\n",
15431543 namebuf,
15441544 User[i].myshop[j].leftuse[0][k],
15451545 User[i].myshop[j].count[0][k],
@@ -1553,7 +1553,7 @@
15531553 #ifdef MAKEWIN32
15541554 convertH2C (namebuf, ITEMNAME_LEN);
15551555 #endif
1556- fprintf (optr, "%-.32s,%u,%u,%lu\n",
1556+ fprintf (optr, "%-.24s,%u,%u,%lu\n",
15571557 namebuf,
15581558 User[i].myshop[j].leftuse[1][k],
15591559 User[i].myshop[j].count[1][k],
@@ -2188,7 +2188,7 @@
21882188 #ifdef MAKEWIN32
21892189 convertH2C (work, USERNAME_LEN);
21902190 #endif
2191- printf ("user(%d)[%-16.16s] logoff.\n", userno, work);
2191+ printf ("user(%d)[%-.24s] logoff.\n", userno, work);
21922192 User[userno].idletimer = 0;
21932193 }
21942194 ClearUser (userno);
@@ -2623,7 +2623,7 @@
26232623 #ifdef MAKEWIN32
26242624 convertH2C (namebuf, USERNAME_LEN);
26252625 #endif
2626- fprintf (optr, "%d,%d,%lu\n%-.16s\n",
2626+ fprintf (optr, "%d,%d,%lu\n%-.24s\n",
26272627 pmail->readflag, pmail->line, pmail->timestamp, namebuf);
26282628 n = (unsigned char) (pmail->subject[0]);
26292629 if (n)
@@ -2850,7 +2850,7 @@
28502850 #ifdef MAKEWIN32
28512851 convertH2C (namebuf, USERNAME_LEN);
28522852 #endif
2853- fprintf (optr, "%d,%d,%lu\n%-.16s\n",
2853+ fprintf (optr, "%d,%d,%lu\n%-.24s\n",
28542854 pmail->readflag, pmail->line, pmail->timestamp, namebuf);
28552855 n = (unsigned char) (pmail->subject[0]);
28562856 if (n)
@@ -2961,7 +2961,7 @@
29612961 {
29622962 User[i].password[j] = work[j];
29632963 }
2964- for (; j < USERNAME_LEN; j++)
2964+ for (; j < PASSWORD_LEN; j++)
29652965 {
29662966 User[i].password[j] = ' ';
29672967 }
@@ -3251,7 +3251,7 @@
32513251 int x;
32523252 int y;
32533253 Animal[i].pdata = pdata;
3254- memcpy (Animal[i].name, pdata->name, USERNAME_LEN);
3254+ memcpy (Animal[i].name, pdata->name, ANIMALNAME_LEN);
32553255 Animal[i].hp = pdata->hp;
32563256 Animal[i].moral = pdata->moral;
32573257 Animal[i].speed = pdata->speed;
@@ -3792,7 +3792,7 @@
37923792 int nanimal = MAP (x, y)->animal;
37933793 if (nplayer && User[nplayer - 1].cloak_count == 0)
37943794 {
3795- memcpy (p, User[nplayer - 1].name, 16);
3795+ memcpy (p, User[nplayer - 1].name, USERNAME_LEN);
37963796 if (User[nplayer - 1].maybearrest > 0)
37973797 {
37983798 if (User[nplayer - 1].maybearrest <= ArrestPass)
@@ -3826,7 +3826,7 @@
38263826 {
38273827 if (id & MAP_THERE_ANIMAL)
38283828 {
3829- memcpy (p, Animal[nanimal].name, 16);
3829+ memcpy (p, Animal[nanimal].name, USERNAME_LEN);
38303830 if (Animal[nanimal].owner_user == userno)
38313831 {
38323832 /* your animal */
@@ -3852,7 +3852,7 @@
38523852 }
38533853 else if (id & MAP_THERE_NPC)
38543854 {
3855- memcpy (p, Npc[nanimal].name, 16);
3855+ memcpy (p, Npc[nanimal].name, USERNAME_LEN);
38563856 if (Npc[nanimal].c_type == NpcHunter)
38573857 {
38583858 ret = 3;
@@ -3871,17 +3871,17 @@
38713871 int nshop = searchUserShopFromPos (nowner - 1, x, y);
38723872 if (nshop != -1)
38733873 {
3874- memcpy (p, User[nowner - 1].myshop[nshop].name, 16);
3874+ memcpy (p, User[nowner - 1].myshop[nshop].name, USERNAME_LEN);
38753875 }
38763876 else
38773877 {
38783878 /* error??? */
3879- memset (p, ' ', 16);
3879+ memset (p, ' ', USERNAME_LEN);
38803880 }
38813881 }
38823882 else
38833883 {
3884- memset (p, ' ', 16);
3884+ memset (p, ' ', USERNAME_LEN);
38853885 }
38863886 }
38873887 return ret;
@@ -3890,7 +3890,8 @@
38903890 /* make map detail data for send */
38913891 static void
38923892 make_send_mapdetaildata (int userno,
3893- unsigned char d[VIEW_LIMIT * VIEW_WIDTH * 16],
3893+ unsigned char d[VIEW_LIMIT * VIEW_WIDTH *
3894+ USERNAME_LEN],
38943895 unsigned char crime[VIEW_LIMIT * VIEW_WIDTH])
38953896 {
38963897 int x;
@@ -3909,24 +3910,24 @@
39093910 ny = y - RGVectorY[direction] * 2;
39103911 adjust_pos (&nx, &ny);
39113912 *pcrime++ = copy_mapdetaildata (userno, p, nx, ny);
3912- p += 16;
3913+ p += USERNAME_LEN;
39133914 nx += RGVectorX[direction];
39143915 ny += RGVectorY[direction];
39153916 adjust_pos (&nx, &ny);
39163917 *pcrime++ = copy_mapdetaildata (userno, p, nx, ny);
3917- p += 16;
3918+ p += USERNAME_LEN;
39183919 *pcrime++ = copy_mapdetaildata (userno, p, x, y);
3919- p += 16;
3920+ p += USERNAME_LEN;
39203921 nx = x + RGVectorX[direction];
39213922 ny = y + RGVectorY[direction];
39223923 adjust_pos (&nx, &ny);
39233924 *pcrime++ = copy_mapdetaildata (userno, p, nx, ny);
3924- p += 16;
3925+ p += USERNAME_LEN;
39253926 nx += RGVectorX[direction];
39263927 ny += RGVectorY[direction];
39273928 adjust_pos (&nx, &ny);
39283929 *pcrime++ = copy_mapdetaildata (userno, p, nx, ny);
3929- p += 16;
3930+ p += USERNAME_LEN;
39303931 x += FWVectorX[direction];
39313932 y += FWVectorY[direction];
39323933 adjust_pos (&x, &y);
@@ -4028,8 +4029,9 @@
40284029 make_send_playeronmapdata (userno, packet + n);
40294030 n += VIEW_LIMIT * VIEW_WIDTH;
40304031 make_send_mapdetaildata (userno, packet + n,
4031- packet + n + VIEW_LIMIT * VIEW_WIDTH * 16);
4032- n += VIEW_LIMIT * VIEW_WIDTH * 16;
4032+ packet + n +
4033+ VIEW_LIMIT * VIEW_WIDTH * USERNAME_LEN);
4034+ n += VIEW_LIMIT * VIEW_WIDTH * USERNAME_LEN;
40334035 n += VIEW_LIMIT * VIEW_WIDTH;
40344036 if (!memcmp (User[userno].mapdata + 2, packet + 2, n - 2))
40354037 {
@@ -4103,14 +4105,14 @@
41034105 unsigned char packet[PACKET_MAX];
41044106 int nlen = strlen (p);
41054107 packet[0] = HSERV_MESG;
4106- memcpy (packet + 2, User[srcuser].name, 16);
4107- if (nlen > PACKET_DATA_MAX - 17)
4108+ memcpy (packet + 2, User[srcuser].name, USERNAME_LEN);
4109+ if (nlen > PACKET_DATA_MAX - 1 - USERNAME_LEN)
41084110 {
4109- nlen = PACKET_DATA_MAX - 17;
4111+ nlen = PACKET_DATA_MAX - 1 - USERNAME_LEN;
41104112 }
4111- packet[18] = nlen;
4112- memcpy (packet + 19, p, nlen);
4113- ret = SENDPACKET (userno, packet, nlen + 17);
4113+ packet[2 + USERNAME_LEN] = nlen;
4114+ memcpy (packet + 3 + USERNAME_LEN, p, nlen);
4115+ ret = SENDPACKET (userno, packet, nlen + 1 + USERNAME_LEN);
41144116 }
41154117 return ret;
41164118 }
@@ -4291,8 +4293,8 @@
42914293 {
42924294 int n = 2;
42934295 packet[0] = HSERV_WHO;
4294- memcpy (packet + n, User[i].name, 16);
4295- n += 16;
4296+ memcpy (packet + n, User[i].name, USERNAME_LEN);
4297+ n += USERNAME_LEN;
42964298 *(unsigned long *) (packet + n) = htonl (User[i].score);
42974299 n += 4;
42984300 packet[n++] =
@@ -4373,8 +4375,8 @@
43734375 unsigned char packet[PACKET_MAX];
43744376 int n = 2;
43754377 packet[0] = HSERV_SENDMAIL;
4376- memcpy (packet + n, User[p->fromuser].name, 16);
4377- n += 16;
4378+ memcpy (packet + n, User[p->fromuser].name, USERNAME_LEN);
4379+ n += USERNAME_LEN;
43784380 *(unsigned long *) (packet + n) = htonl (p->timestamp);
43794381 n += 4;
43804382 packet[n++] = p->subject[0];
@@ -4430,8 +4432,8 @@
44304432 unsigned char packet[PACKET_MAX];
44314433 int n = 2;
44324434 packet[0] = HSERV_BBS_HEADER;
4433- memcpy (packet + n, User[p->fromuser].name, 16);
4434- n += 16;
4435+ memcpy (packet + n, User[p->fromuser].name, USERNAME_LEN);
4436+ n += USERNAME_LEN;
44354437 *(unsigned long *) (packet + n) = htonl (p->timestamp);
44364438 n += 4;
44374439 packet[n++] = p->subject[0];
@@ -4499,8 +4501,8 @@
44994501 if (User[nowner].myshop[nshop].count[n][i])
45004502 {
45014503 sprintf (work,
4502- n ? MESG ("<%2d:%-32.32s:%10luP %4ucount (stock:%4u)>") :
4503- MESG ("<%2d:%-32.32s:%10luP %4uround (stock:%4u)>"),
4504+ n ? MESG ("<%2d:%-32.24s:%10luP %4ucount (stock:%4u)>") :
4505+ MESG ("<%2d:%-32.24s:%10luP %4uround (stock:%4u)>"),
45044506 i,
45054507 (n ? Item[User[nowner].myshop[nshop].list[n][i]].name :
45064508 Weapon[User[nowner].myshop[nshop].list[n][i]].name),
@@ -4543,7 +4545,7 @@
45434545 {
45444546 WEAPONINFO *pw = Weapon + plist[i];
45454547 sprintf (work,
4546- MESG ("<%3d:%-32.32s:%10luP %4uround HP%4u/Moral%4u "
4548+ MESG ("<%3d:%-32.24s:%10luP %4uround HP%4u/Moral%4u "
45474549 "Range:%4ublock>"),
45484550 i, pw->name, pw->cost, pw->bullette,
45494551 pw->firepower, pw->moral, pw->range);
@@ -4584,7 +4586,7 @@
45844586 {
45854587 ITEMINFO *pi = Item + plist[i];
45864588 sprintf (work,
4587- MESG ("<%3d:%-32.32s:%10luP %4ucount>"),
4589+ MESG ("<%3d:%-32.24s:%10luP %4ucount>"),
45884590 i, pi->name, pi->cost, pi->count);
45894591 SendSystemMessagePacket (nuser, work);
45904592 }
@@ -4707,15 +4709,15 @@
47074709 switch (t)
47084710 {
47094711 case TargetUser:
4710- sprintf (work, MESG ("%-.16s damages you. lost %uHP."),
4712+ sprintf (work, MESG ("%-.24s damages you. lost %uHP."),
47114713 CUTTAIL (User[fromuser].name), ndamage);
47124714 break;
47134715 case TargetNpc:
4714- sprintf (work, MESG ("%-.16s damages you. lost %uHP."),
4716+ sprintf (work, MESG ("%-.24s damages you. lost %uHP."),
47154717 CUTTAIL (Npc[fromuser].name), ndamage);
47164718 break;
47174719 case TargetAnimal:
4718- sprintf (work, MESG ("Animal '%-.16s' damages you. lost %uHP"),
4720+ sprintf (work, MESG ("Animal '%-.24s' damages you. lost %uHP"),
47194721 CUTTAIL (Animal[fromuser].name), ndamage);
47204722 break;
47214723 default:
@@ -4728,7 +4730,7 @@
47284730 }
47294731 if (t == TargetUser)
47304732 {
4731- sprintf (work, MESG ("You attack %-.16s"),
4733+ sprintf (work, MESG ("You attack %-.24s"),
47324734 CUTTAIL (User[nuser].name));
47334735 SendSystemMessagePacket (fromuser, work);
47344736 }
@@ -4932,8 +4934,9 @@
49324934 /* login */
49334935 int nuser = SearchUser ((char *) (packet + 2));
49344936 puts ("attempt to login.");
4935- if (packet[1] != 16 + 16 + 2 ||
4936- packet[2 + 16 + 16 + 1] != HPROTOCOL_VERSION)
4937+ if (packet[1] != USERNAME_LEN + PASSWORD_LEN + 2 ||
4938+ packet[2 + USERNAME_LEN + PASSWORD_LEN + 1] !=
4939+ HPROTOCOL_VERSION)
49374940 {
49384941 /* illegal protocol */
49394942 puts ("protocol mismatch.");
@@ -4942,7 +4945,7 @@
49424945 else if (nuser != -1)
49434946 {
49444947 int i;
4945- const unsigned char *p = packet + 2 + 16;
4948+ const unsigned char *p = packet + 2 + USERNAME_LEN;
49464949 char uname[USERNAME_LEN];
49474950 char work[PASSWORD_LEN];
49484951 memcpy (uname, User[nuser].name, USERNAME_LEN);
@@ -4949,7 +4952,7 @@
49494952 #ifdef MAKEWIN32
49504953 convertH2C (uname, USERNAME_LEN);
49514954 #endif
4952- printf ("User name:%-16.16s\n", uname);
4955+ printf ("User name:%-16.24s\n", uname);
49534956 for (i = 0; i < PASSWORD_LEN; i++)
49544957 {
49554958 if (*(p + i) == '\0')
@@ -5038,19 +5041,20 @@
50385041 if (packet[1] == USERNAME_LEN + PASSWORD_LEN + 16 + PASSWORD_LEN)
50395042 {
50405043 /* ok */
5041- if (packet[2 + 16 + 16 + 1] != HPROTOCOL_VERSION)
5044+ if (packet[2 + USERNAME_LEN + PASSWORD_LEN + 1] !=
5045+ HPROTOCOL_VERSION)
50425046 {
50435047 /* illegal protocol */
50445048 puts ("protocol mismatch");
50455049 SendResultPacket (psession->handle, -1);
50465050 }
5047- else if (memcmp (packet + 2 + 16 + 16 + 16, makeUserKey,
5048- PASSWORD_LEN))
5051+ else if (memcmp (packet + 2 + USERNAME_LEN + PASSWORD_LEN + 16,
5052+ makeUserKey, PASSWORD_LEN))
50495053 {
50505054 /* illegal system password */
50515055 puts ("system password mismatch");
5052- printf ("Client key[%-16.16s]\n",
5053- packet + 2 + 16 + 16 + 16);
5056+ printf ("Client key[%-16.24s]\n",
5057+ packet + 2 + USERNAME_LEN + PASSWORD_LEN + 16);
50545058 SendResultPacket (psession->handle, -1);
50555059 }
50565060 else
@@ -5075,7 +5079,7 @@
50755079 char *ps;
50765080 char *pd;
50775081 puts ("ok. new user!");
5078- ps = (char *) (packet + 2 + 16);
5082+ ps = (char *) (packet + 2 + USERNAME_LEN);
50795083 pd = User[nuser].password;
50805084 for (i = 0; i < PASSWORD_LEN; i++)
50815085 {
@@ -5090,7 +5094,8 @@
50905094 *pd++ = ' ';
50915095 }
50925096 User[nuser].c_type =
5093- packet[2 + 16 + 16] ? Observer : Hunter;
5097+ packet[2 + USERNAME_LEN + PASSWORD_LEN] ?
5098+ Observer : Hunter;
50945099 if (SendResultPacket (psession->handle, 0) == -1)
50955100 {
50965101 /* ?? error */
@@ -5133,7 +5138,7 @@
51335138 if (nuser != -1)
51345139 {
51355140 int i;
5136- const unsigned char *p = packet + 2 + 16;
5141+ const unsigned char *p = packet + 2 + USERNAME_LEN;
51375142 char uname[USERNAME_LEN];
51385143 char work[PASSWORD_LEN];
51395144 memcpy (uname, User[nuser].name, USERNAME_LEN);
@@ -5140,7 +5145,7 @@
51405145 #ifdef MAKEWIN32
51415146 convertH2C (uname, USERNAME_LEN);
51425147 #endif
5143- printf ("User name:%-16.16s\n", uname);
5148+ printf ("User name:%-16.24s\n", uname);
51445149 for (i = 0; i < PASSWORD_LEN; i++)
51455150 {
51465151 if (*(p + i) == '\0')
@@ -5428,8 +5433,8 @@
54285433 doChangeShopName (int nuser, const char *p)
54295434 {
54305435 User[nuser].action = DoChangeShopName;
5431- strncpy (User[nuser].mesg_for_action, p, 16);
5432- User[nuser].mesg_for_action[16] = '\0';
5436+ strncpy (User[nuser].mesg_for_action, p, USERNAME_LEN);
5437+ User[nuser].mesg_for_action[USERNAME_LEN] = '\0';
54335438 return;
54345439 }
54355440
@@ -5460,9 +5465,9 @@
54605465 User[nuser].t_target = ntarget;
54615466 if (User[nuser].t_mail != NULL)
54625467 {
5463- int n = *(p + 16);
5468+ int n = *(p + USERNAME_LEN);
54645469 User[nuser].t_mail->fromuser = nuser;
5465- memcpy (User[nuser].t_mail->subject, p + 16, n + 1);
5470+ memcpy (User[nuser].t_mail->subject, p + USERNAME_LEN, n + 1);
54665471 }
54675472 }
54685473 else
@@ -5631,7 +5636,7 @@
56315636 if (ndist != -1)
56325637 {
56335638 char work[MESG_BUFFER];
5634- unsigned n = ntohl (*(unsigned long *) (p + 16));
5639+ unsigned n = ntohl (*(unsigned long *) (p + USERNAME_LEN));
56355640 unsigned ntax = n / 100;
56365641 if (User[nuser].score < n + ntax)
56375642 {
@@ -5641,10 +5646,10 @@
56415646 }
56425647 dec_score (nuser, n + ntax);
56435648 add_score (ndist, n);
5644- sprintf (work, MESG ("[You transfer %upoint to %-.16s. Tax:%upoint]"),
5649+ sprintf (work, MESG ("[You transfer %upoint to %-.24s. Tax:%upoint]"),
56455650 n, CUTTAIL (User[ndist].name), ntax);
56465651 SendSystemMessagePacket (nuser, work);
5647- sprintf (work, MESG ("[You receive %upoint from %-.16s]"),
5652+ sprintf (work, MESG ("[You receive %upoint from %-.24s]"),
56485653 n, CUTTAIL (User[nuser].name));
56495654 SendSystemMessagePacket (ndist, work);
56505655 }
@@ -5660,8 +5665,8 @@
56605665 doChangeUserAnimalName (int nuser, unsigned char *p)
56615666 {
56625667 User[nuser].action = DoChangeAnimalName;
5663- strncpy (User[nuser].mesg_for_action, (char *) p, 16);
5664- User[nuser].mesg_for_action[16] = '\0';
5668+ strncpy (User[nuser].mesg_for_action, (char *) p, ANIMALNAME_LEN);
5669+ User[nuser].mesg_for_action[ANIMALNAME_LEN] = '\0';
56655670 return;
56665671 }
56675672
@@ -5907,12 +5912,12 @@
59075912 switch (User[i].crime_level)
59085913 {
59095914 case 1:
5910- sprintf (work, MESG ("<WANTED '%-.16s'>"),
5915+ sprintf (work, MESG ("<WANTED '%-.24s'>"),
59115916 CUTTAIL (User[i].name));
59125917 SendSystemMessagePacket (nuser, work);
59135918 break;
59145919 case 2:
5915- sprintf (work, MESG ("<Dead or Alive '%-.16s'>"),
5920+ sprintf (work, MESG ("<Dead or Alive '%-.24s'>"),
59165921 CUTTAIL (User[i].name));
59175922 SendSystemMessagePacket (nuser, work);
59185923 break;
@@ -6247,7 +6252,7 @@
62476252 User[nuser].bullette[nslot] = 0;
62486253 }
62496254 User[nuser].myshop[nshop].count[isitem][i]++;
6250- sprintf (work, MESG ("[%-.32s stocked]"),
6255+ sprintf (work, MESG ("[%-.24s stocked]"),
62516256 isitem ? Item[n].name : Weapon[n].name);
62526257 SendSystemMessagePacket (nuser, work);
62536258 }
@@ -6501,8 +6506,8 @@
65016506 if (destuser != -1)
65026507 {
65036508 char work[PACKET_DATA_MAX];
6504- int nlen = *(p + 16);
6505- memcpy (work, p + 17, nlen);
6509+ int nlen = *(p + USERNAME_LEN);
6510+ memcpy (work, p + 1 + USERNAME_LEN, nlen);
65066511 work[nlen] = '\0';
65076512 SendMessagePacket (destuser, nuser, work);
65086513 if (nlen > PACKET_DATA_MAX - USERNAME_LEN - 10)
@@ -6509,11 +6514,10 @@
65096514 {
65106515 nlen = PACKET_DATA_MAX - USERNAME_LEN - 10;
65116516 }
6512- sprintf (work, MESG ("You tell %-.16s,"),
6513- CUTTAIL (User[destuser].name));
6517+ sprintf (work, "You tell %-.24s,", CUTTAIL (User[destuser].name));
65146518 if (nlen)
65156519 {
6516- memcpy (work + USERNAME_LEN + 10, p + 17, nlen);
6520+ memcpy (work + USERNAME_LEN + 10, p + 1 + USERNAME_LEN, nlen);
65176521 }
65186522 work[USERNAME_LEN + 10 + nlen] = '\0';
65196523 SendSystemMessagePacket (nuser, work);
@@ -6546,7 +6550,7 @@
65466550 else
65476551 {
65486552 char work[PACKET_DATA_MAX];
6549- sprintf (work, MESG ("[Weapon:%-32.32s NOT READY]"),
6553+ sprintf (work, MESG ("[Weapon:%-32.24s NOT READY]"),
65506554 Weapon[User[nuser].weapon[nweapon]].name);
65516555 SendSystemMessagePacket (nuser, work);
65526556 }
@@ -6598,7 +6602,7 @@
65986602 {
65996603 /* list up this */
66006604 int relpos = get_rel_position_in (dx1, dx2, dy1, dy2);
6601- sprintf (work, MESG ("<%-16.16s %10s %5dBlock>"),
6605+ sprintf (work, MESG ("<%-16.24s %10s %5dBlock>"),
66026606 Animal[i].name, MESG (RelDirection[relpos]), n);
66036607 SendSystemMessagePacket (nuser, work);
66046608 }
@@ -6638,7 +6642,7 @@
66386642 if (User[i].c_type == Hunter)
66396643 {
66406644 sprintf (work,
6641- MESG ("<Hunter:%-16.16s %10s %5dBlock crime:%lu>"),
6645+ MESG ("<Hunter:%-16.24s %10s %5dBlock crime:%lu>"),
66426646 User[i].name, MESG (RelDirection[relpos]), n,
66436647 User[i].maybearrest);
66446648 }
@@ -6645,7 +6649,7 @@
66456649 else
66466650 {
66476651 sprintf (work,
6648- MESG ("<Guard :%-16.16s %10s %5dBlock>"),
6652+ MESG ("<Guard :%-16.24s %10s %5dBlock>"),
66496653 User[i].name, MESG (RelDirection[relpos]), n);
66506654 }
66516655 SendSystemMessagePacket (nuser, work);
@@ -6679,12 +6683,12 @@
66796683 if (Npc[i].c_type == NpcHunter)
66806684 {
66816685 sprintf (work,
6682- MESG ("<Hunter:%-16.16s %10s %5dBlock crime:NA>"),
6686+ MESG ("<Hunter:%-16.24s %10s %5dBlock crime:NA>"),
66836687 Npc[i].name, MESG (RelDirection[relpos]), n);
66846688 }
66856689 else
66866690 {
6687- sprintf (work, MESG ("<Guard :%-16.16s %10s %5dBlock>"),
6691+ sprintf (work, MESG ("<Guard :%-16.24s %10s %5dBlock>"),
66886692 Npc[i].name, MESG (RelDirection[relpos]), n);
66896693 }
66906694 SendSystemMessagePacket (nuser, work);
@@ -6761,10 +6765,10 @@
67616765 if (Npc[i].name[0] == '\0')
67626766 {
67636767 static const char *mesg[4] = {
6764- "%-.16s say,OK Boss. I will guard you.",
6765- "%-.16s say,Ready for deployment",
6766- "%-.16s say,It's show time!",
6767- "%-.16s say,Do you wanna use my design?"
6768+ "%-.24s say,OK Boss. I will guard you.",
6769+ "%-.24s say,Ready for deployment",
6770+ "%-.24s say,It's show time!",
6771+ "%-.24s say,Do you wanna use my design?"
67686772 };
67696773 static const int ck_x[8] = { 0, 1, 1, 1, 0, -1, -1, -1 };
67706774 static const int ck_y[8] = { -1, -1, 0, 1, 1, 1, 0, -1 };
@@ -6918,13 +6922,13 @@
69186922 }
69196923 break;
69206924 case Vehicle:
6921- sprintf (work, MESG ("You ride on %-.32s"), pitem->name);
6925+ sprintf (work, MESG ("You ride on %-.24s"), pitem->name);
69226926 rideVehicle (nuser, pitem->effect % 100, pitem->effect / 100,
69236927 pitem->pattern);
69246928 break;
69256929 case Food:
69266930 cause_eat (nuser, pitem->effect);
6927- sprintf (work, MESG ("You eat %-.32s..."), pitem->name);
6931+ sprintf (work, MESG ("You eat %-.24s..."), pitem->name);
69286932 if (pitem->effect > 100)
69296933 {
69306934 strcat (work, MESG ("Delicious!"));
@@ -6987,7 +6991,7 @@
69876991 }
69886992 User[nuser].item[i] = nitem;
69896993 User[nuser].itemcount[i] = Item[User[nuser].item[i]].count;
6990- sprintf (work, MESG ("[Get item%1d:%-.32s]"),
6994+ sprintf (work, MESG ("[Get item%1d:%-.24s]"),
69916995 i + 1, Item[User[nuser].item[i]].name);
69926996 SendSystemMessagePacket (nuser, work);
69936997 return i;
@@ -7015,7 +7019,7 @@
70157019 User[nuser].weapon[i] = nweapon;
70167020 User[nuser].bullette[i] = Weapon[User[nuser].weapon[i]].bullette;
70177021 User[nuser].reload[i] = 0;
7018- sprintf (work, MESG ("[Get weapon%1d:%-.32s]"),
7022+ sprintf (work, MESG ("[Get weapon%1d:%-.24s]"),
70197023 i + 1, Weapon[User[nuser].weapon[i]].name);
70207024 SendSystemMessagePacket (nuser, work);
70217025 return i;
@@ -7111,7 +7115,7 @@
71117115 {
71127116 /* can't get this. drop original position */
71137117 char work[MESG_BUFFER];
7114- sprintf (work, MESG ("[You have no space to get %-.32s!]"),
7118+ sprintf (work, MESG ("[You have no space to get %-.24s!]"),
71157119 isitem ? Item[nitem].name : Weapon[nitem].name);
71167120 SendSystemMessagePacket (nuser, work);
71177121 addUserItemBox (x, y, isitem, nitem, nleft, NULL);
@@ -7144,7 +7148,7 @@
71447148 }
71457149 add_score (nuser, n);
71467150 add_crime (nuser, n);
7147- sprintf (work, MESG ("[You catch %-.16s:%upoint]"),
7151+ sprintf (work, MESG ("[You catch %-.24s:%upoint]"),
71487152 CUTTAIL (Animal[nanimal].name), n);
71497153 SendSystemMessagePacket (nuser, work);
71507154 DeleteAnimal (nanimal);
@@ -7165,7 +7169,7 @@
71657169 /* it is animal corpse */
71667170 char work[MESG_BUFFER];
71677171 sprintf (work,
7168- MESG ("[You collect %-.16s's corpse:10point]"),
7172+ MESG ("[You collect %-.24s's corpse:10point]"),
71697173 CUTTAIL (Animal[nanimal].name));
71707174 SendSystemMessagePacket (nuser, work);
71717175 MAP (x, y)->id &= ~MAP_THERE_ANIMAL;
@@ -7187,7 +7191,7 @@
71877191 {
71887192 /* arrest! */
71897193 char work[MESG_BUFFER];
7190- sprintf (work, MESG ("[You arrest %-.16s. Get 500point.]"),
7194+ sprintf (work, MESG ("[You arrest %-.24s. Get 500point.]"),
71917195 CUTTAIL (Npc[npc].name));
71927196 SendSystemMessagePacket (nuser, work);
71937197 add_score (nuser, 500);
@@ -7216,10 +7220,10 @@
72167220 break;
72177221 }
72187222 User[ntarget].crime_level = 0;
7219- sprintf (work, MESG ("[You arrest %-.16s. Get %lupoint.]"),
7223+ sprintf (work, MESG ("[You arrest %-.24s. Get %lupoint.]"),
72207224 CUTTAIL (User[ntarget].name), npts);
72217225 SendSystemMessagePacket (nuser, work);
7222- sprintf (work, MESG ("[You were arrested by %-.16s]"),
7226+ sprintf (work, MESG ("[You were arrested by %-.24s]"),
72237227 CUTTAIL (User[nuser].name));
72247228 SendSystemMessagePacket (ntarget, work);
72257229 SendSystemMessagePacket (ntarget, MESG ("[Go to Jail!]"));
@@ -7235,11 +7239,11 @@
72357239 }
72367240 else
72377241 {
7238- sprintf (work, MESG ("[You attempt to arrest %-.16s]"),
7242+ sprintf (work, MESG ("[You attempt to arrest %-.24s]"),
72397243 CUTTAIL (User[ntarget].name));
72407244 SendSystemMessagePacket (nuser, work);
72417245 SendSystemMessagePacket (nuser, MESG ("[But he do not crime]"));
7242- sprintf (work, MESG ("[%-.16s attempt to arrest you]"),
7246+ sprintf (work, MESG ("[%-.24s attempt to arrest you]"),
72437247 CUTTAIL (User[nuser].name));
72447248 SendSystemMessagePacket (ntarget, work);
72457249 SendSystemMessagePacket (ntarget,
@@ -7561,7 +7565,7 @@
75617565 {
75627566 char work[MESG_BUFFER];
75637567 sprintf (work,
7564- MESG ("<%d:%-16.16s (%3d,%3d)>"), i + 1,
7568+ MESG ("<%d:%-16.24s (%3d,%3d)>"), i + 1,
75657569 User[nuser].myshop[i].name,
75667570 User[nuser].myshop[i].pos.x, User[nuser].myshop[i].pos.y);
75677571 SendSystemMessagePacket (nuser, work);
@@ -7583,7 +7587,7 @@
75837587 ANIMALDATA *p = User[nuser].lastPickupAnimal[i];
75847588 if (p != NULL)
75857589 {
7586- sprintf (work, MESG ("<%d:%-16.16s(%-.32s)>"), i + 1, p->name,
7590+ sprintf (work, MESG ("<%d:%-16.24s(%-.24s)>"), i + 1, p->name,
75877591 Item[p->forsell_item].name);
75887592 SendSystemMessagePacket (nuser, work);
75897593 }
@@ -7688,7 +7692,7 @@
76887692 {
76897693 if (animal[i])
76907694 {
7691- sprintf (work, MESG ("<'%-16.16s' lives:%3d rate:%3u value:%5u>"),
7695+ sprintf (work, MESG ("<'%-16.24s' lives:%3d rate:%3u value:%5u>"),
76927696 AnimalData[i].name, animal[i],
76937697 AnimalData[i].rate, AnimalData[i].value);
76947698 SendSystemMessagePacket (nuser, work);
@@ -7732,7 +7736,7 @@
77327736 {
77337737 strcpy (subjectbuffer, "NO SUBJECT");
77347738 }
7735- sprintf (work, "<%c%2d:%-16.16s %-.32s>",
7739+ sprintf (work, "<%c%2d:%-16.24s %-.24s>",
77367740 pmail->readflag ? ' ' : '*', i + 1,
77377741 User[pmail->fromuser].name, subjectbuffer);
77387742 SendSystemMessagePacket (nuser, work);
@@ -7826,7 +7830,7 @@
78267830 {
78277831 strcpy (subjectbuffer, "NO SUBJECT");
78287832 }
7829- sprintf (work, "<%2d:%-16.16s %-.32s>",
7833+ sprintf (work, "<%2d:%-16.24s %-.24s>",
78307834 i + 1, User[pmail->fromuser].name, subjectbuffer);
78317835 SendSystemMessagePacket (nuser, work);
78327836 f = 1;
@@ -8107,11 +8111,11 @@
81078111 {
81088112 if (pb->t_type == TargetUser)
81098113 {
8110- sprintf (work, MESG ("You attack animal '%-.16s'"),
8114+ sprintf (work, MESG ("You attack animal '%-.24s'"),
81118115 CUTTAIL (Animal[nanimal].name));
81128116 SendSystemMessagePacket (pb->nuser, work);
81138117 }
8114- sprintf (work, MESG ("[%-.16s shoot animal!]"),
8118+ sprintf (work, MESG ("[%-.24s shoot animal!]"),
81158119 CUTTAIL ((pb->t_type == TargetUser) ?
81168120 User[pb->nuser].name :
81178121 Npc[pb->nuser].name));
@@ -8131,7 +8135,7 @@
81318135 if (pb->nuser != -1 && pb->t_type == TargetUser)
81328136 {
81338137 sprintf (work,
8134- MESG ("animal '%-.16s' died."),
8138+ MESG ("animal '%-.24s' died."),
81358139 CUTTAIL (Animal[nanimal].name));
81368140 SendSystemMessagePacket (pb->nuser, work);
81378141 if (CountLiveAnimal (Animal[nanimal].pdata) == 0)
@@ -8139,7 +8143,7 @@
81398143 /* this is last animal! */
81408144 sprintf (work,
81418145 MESG
8142- ("[animal '%-.16s' is extermination!]"),
8146+ ("[animal '%-.24s' is extermination!]"),
81438147 CUTTAIL (Animal[nanimal].name));
81448148 SendSystemMessagePacket (pb->nuser, work);
81458149 if (User[pb->nuser].c_type == Observer)
@@ -8176,7 +8180,7 @@
81768180 {
81778181 if (pb->nuser != -1 && pb->t_type == TargetUser)
81788182 {
8179- sprintf (work, MESG ("animal '%-.16s' stun."),
8183+ sprintf (work, MESG ("animal '%-.24s' stun."),
81808184 CUTTAIL (Animal[nanimal].name));
81818185 SendSystemMessagePacket (pb->nuser, work);
81828186 }
@@ -8194,7 +8198,7 @@
81948198 {
81958199 sprintf (work,
81968200 MESG
8197- ("You charm animal '%-.16s'!"),
8201+ ("You charm animal '%-.24s'!"),
81988202 CUTTAIL (Animal[nanimal].name));
81998203 SendSystemMessagePacket (pb->nuser, work);
82008204 Animal[nanimal].owner_user = pb->nuser;
@@ -8203,7 +8207,7 @@
82038207 {
82048208 sprintf (work,
82058209 MESG
8206- ("Animal '%-.16s' is free now!"),
8210+ ("Animal '%-.24s' is free now!"),
82078211 CUTTAIL (Animal[nanimal].name));
82088212 SendMessageNearUserPosition (pb->pos, work);
82098213 Animal[nanimal].owner_user = -1;
@@ -8214,7 +8218,7 @@
82148218 /* fail */
82158219 sprintf (work,
82168220 MESG
8217- ("You fail to charm animal '%-.16s'."),
8221+ ("You fail to charm animal '%-.24s'."),
82188222 CUTTAIL (Animal[nanimal].name));
82198223 SendSystemMessagePacket (pb->nuser, work);
82208224 }
@@ -8264,7 +8268,7 @@
82648268 char work[MESG_BUFFER];
82658269 if (pb->nuser != -1 && pb->t_type == TargetUser)
82668270 {
8267- sprintf (work, MESG ("You attack '%-.16s'"),
8271+ sprintf (work, MESG ("You attack '%-.24s'"),
82688272 CUTTAIL (Npc[npc].name));
82698273 SendSystemMessagePacket (pb->nuser, work);
82708274 }
@@ -8273,7 +8277,7 @@
82738277 {
82748278 if (pb->nuser != -1 && pb->t_type == TargetUser)
82758279 {
8276- sprintf (work, MESG ("'%-.16s' died."),
8280+ sprintf (work, MESG ("'%-.24s' died."),
82778281 CUTTAIL (Npc[npc].name));
82788282 SendSystemMessagePacket (pb->nuser, work);
82798283 if (User[pb->nuser].c_type == Hunter &&
@@ -8291,13 +8295,13 @@
82918295 if (pb->nuser != -1 && pb->t_type == TargetNpc)
82928296 {
82938297 sprintf (work,
8294- MESG ("'%-.16s' killed by %-.16s!"),
8298+ MESG ("'%-.24s' killed by %-.24s!"),
82958299 CUTTAIL (Npc[npc].name),
82968300 CUTTAIL (Npc[pb->nuser].name));
82978301 }
82988302 else
82998303 {
8300- sprintf (work, MESG ("'%-.16s' killed by any!"),
8304+ sprintf (work, MESG ("'%-.24s' killed by any!"),
83018305 CUTTAIL (Npc[npc].name));
83028306 }
83038307 SendMessageNearUserPosition (Npc[npc].pos, work);
@@ -8315,11 +8319,11 @@
83158319 if (!(pb->t_type == TargetNpc && pb->nuser == npc))
83168320 {
83178321 static const char *mesg[5] = {
8318- "%-.16s say,Hey! Why do you attack me?",
8319- "%-.16s say,No! Don't shoot me!",
8320- "%-.16s say,What's think?!",
8321- "%-.16s say,Ohch! We are under fire!",
8322- "%-.16s say,Ok. I will kill you."
8322+ "%-.24s say,Hey! Why do you attack me?",
8323+ "%-.24s say,No! Don't shoot me!",
8324+ "%-.24s say,What's think?!",
8325+ "%-.24s say,Ohch! We are under fire!",
8326+ "%-.24s say,Ok. I will kill you."
83238327 };
83248328 NPCsay (npc, mesg, 5);
83258329 Npc[npc].ntarget_user = pb->nuser;
@@ -8346,11 +8350,11 @@
83468350 if (willcounter)
83478351 {
83488352 static const char *mesg[5] = {
8349- "%-.16s say,Detect one boggy!",
8350- "%-.16s say,We are under attack!",
8351- "%-.16s say,Engage!",
8352- "%-.16s say,Caution! Enemy fire!",
8353- "%-.16s say,Emergency! Enemy attack us!"
8353+ "%-.24s say,Detect one boggy!",
8354+ "%-.24s say,We are under attack!",
8355+ "%-.24s say,Engage!",
8356+ "%-.24s say,Caution! Enemy fire!",
8357+ "%-.24s say,Emergency! Enemy attack us!"
83548358 };
83558359 NPCsay (npc, mesg, 5);
83568360 Npc[npc].ntarget_user = pb->nuser;
@@ -8359,11 +8363,11 @@
83598363 else
83608364 {
83618365 static const char *mesg[5] = {
8362- "%-.16s say,Hey! No shoot me!",
8363- "%-.16s say,I'm friendly!",
8364- "%-.16s say,This is friendly! Don't shoot!",
8365- "%-.16s say,Don't shoot! Are you enemy's spy?",
8366- "%-.16s say,Take more care!"
8366+ "%-.24s say,Hey! No shoot me!",
8367+ "%-.24s say,I'm friendly!",
8368+ "%-.24s say,This is friendly! Don't shoot!",
8369+ "%-.24s say,Don't shoot! Are you enemy's spy?",
8370+ "%-.24s say,Take more care!"
83678371 };
83688372 NPCsay (npc, mesg, 5);
83698373 }
@@ -8505,7 +8509,7 @@
85058509 int nuser = User[i].lastuser;
85068510 if (User[i].lastuser_type == TargetUser)
85078511 {
8508- sprintf (work, MESG ("[You kill %-.16s]"),
8512+ sprintf (work, MESG ("[You kill %-.24s]"),
85098513 CUTTAIL (User[i].name));
85108514 SendSystemMessagePacket (nuser, work);
85118515 }
@@ -8527,7 +8531,7 @@
85278531 if (pname != NULL)
85288532 {
85298533 sprintf (work,
8530- MESG ("[You were killed by %-.16s]"),
8534+ MESG ("[You were killed by %-.24s]"),
85318535 CUTTAIL (pname));
85328536 SendSystemMessagePacket (i, work);
85338537 }
@@ -8676,7 +8680,7 @@
86768680 User[i].hold_count = HoldCount;
86778681 SendSystemMessagePacket (i, MESG ("[You fall in hole!]"));
86788682 SendEffectFallInHolePacket (i);
8679- sprintf (work, MESG ("[You hear sound %-.16s fall in hole]"),
8683+ sprintf (work, MESG ("[You hear sound %-.24s fall in hole]"),
86808684 CUTTAIL (User[i].name));
86818685 SendMessageNearUser (i, work);
86828686 }
@@ -8689,7 +8693,7 @@
86898693 #ifdef MAKEWIN32
86908694 convertH2C (work, USERNAME_LEN);
86918695 #endif
8692- printf ("user(%d)[%-16.16s] no response\n", i, work);
8696+ printf ("user(%d)[%-16.24s] no response\n", i, work);
86938697 DisconnectUser (i);
86948698 }
86958699 }
@@ -8886,7 +8890,7 @@
88868890 {
88878891 /* eat meat */
88888892 char work[MESG_BUFFER];
8889- sprintf (work, MESG ("animal '%-.16s' eat %-.16s"),
8893+ sprintf (work, MESG ("animal '%-.24s' eat %-.24s"),
88908894 CUTTAIL (Animal[nanimal].name),
88918895 CUTTAIL (Animal[targetanimal].name));
88928896 SendMessageNearUserPosition (Animal[nanimal].pos, work);
@@ -8957,11 +8961,11 @@
89578961 if (Npc[npc].hp)
89588962 {
89598963 static const char *mesg[5] = {
8960- "%-.16s say,Nooo!",
8961- "%-.16s say,Animal bite me!",
8962- "%-.16s say,Danger! This animal is ferocity!",
8963- "%-.16s say,Help! Animal bite ...Arrrrgh!",
8964- "%-.16s say,Why is this animal angry?"
8964+ "%-.24s say,Nooo!",
8965+ "%-.24s say,Animal bite me!",
8966+ "%-.24s say,Danger! This animal is ferocity!",
8967+ "%-.24s say,Help! Animal bite ...Arrrrgh!",
8968+ "%-.24s say,Why is this animal angry?"
89658969 };
89668970 NPCsay (npc, mesg, 5);
89678971 }
@@ -8968,7 +8972,7 @@
89688972 if (Npc[npc].hp == 0)
89698973 {
89708974 char work[MESG_BUFFER];
8971- sprintf (work, MESG ("'%-.16s' died."), CUTTAIL (Npc[npc].name));
8975+ sprintf (work, MESG ("'%-.24s' died."), CUTTAIL (Npc[npc].name));
89728976 SendMessageNearUserPosition (Npc[npc].pos, work);
89738977 Npc[npc].name[0] = '\0';
89748978 MAP (Npc[npc].pos.x, Npc[npc].pos.y)->id &= ~MAP_THERE_NPC;
@@ -9494,7 +9498,7 @@
94949498 Animal[i].hold_count = HoldCount;
94959499 sprintf (work,
94969500 MESG
9497- ("[You hear sound '%-.16s' fall in hole]"),
9501+ ("[You hear sound '%-.24s' fall in hole]"),
94989502 CUTTAIL (Animal[i].name));
94999503 SendMessageNearUserAnimal (i, work);
95009504 }
@@ -9887,11 +9891,11 @@
98879891 if (ret == 0)
98889892 {
98899893 static const char *mesg[5] = {
9890- "%-.16s say,FREEZE!",
9891- "%-.16s say,FIRE!",
9892- "%-.16s say,Hey! I know your position!",
9893- "%-.16s say,You can't escape from me!",
9894- "%-.16s say,Contact!"
9894+ "%-.24s say,FREEZE!",
9895+ "%-.24s say,FIRE!",
9896+ "%-.24s say,Hey! I know your position!",
9897+ "%-.24s say,You can't escape from me!",
9898+ "%-.24s say,Contact!"
98959899 };
98969900 NPCsay (npc, mesg, 5);
98979901 }
@@ -9904,11 +9908,11 @@
99049908 if (User[ntarget_user].maybearrest)
99059909 {
99069910 static const char *mesg[5] = {
9907- "%-.16s say,Do not move!",
9908- "%-.16s say,You are criminal!",
9909- "%-.16s say,Hold up!",
9910- "%-.16s say,Do not escape! If you do so,I will shoot you!",
9911- "%-.16s say,You should surrender!"
9911+ "%-.24s say,Do not move!",
9912+ "%-.24s say,You are criminal!",
9913+ "%-.24s say,Hold up!",
9914+ "%-.24s say,Do not escape! If you do so,I will shoot you!",
9915+ "%-.24s say,You should surrender!"
99129916 };
99139917 NPCsay (npc, mesg, 5);
99149918 }
@@ -9916,11 +9920,11 @@
99169920 User[ntarget_user].crime_level)
99179921 {
99189922 static const char *mesg2[5] = {
9919- "%-.16s say,Go out!",
9920- "%-.16s say,You can't escape!",
9921- "%-.16s say,You no have choise!",
9922- "%-.16s say,Do anyone call SWAT? We need!",
9923- "%-.16s say,We have surrounded you!"
9923+ "%-.24s say,Go out!",
9924+ "%-.24s say,You can't escape!",
9925+ "%-.24s say,You no have choise!",
9926+ "%-.24s say,Do anyone call SWAT? We need!",
9927+ "%-.24s say,We have surrounded you!"
99249928 };
99259929 NPCsay (npc, mesg2, 5);
99269930 }
@@ -9987,7 +9991,7 @@
99879991 char work[MESG_BUFFER];
99889992 MAP (x, y)->id &= ~MAP_THERE_HOLE;
99899993 Npc[n].hold_count = HoldCount;
9990- sprintf (work, MESG ("[You hear sound %-.16s fall in hole!]"),
9994+ sprintf (work, MESG ("[You hear sound %-.24s fall in hole!]"),
99919995 Npc[n].name);
99929996 SendMessageNearUserPosition (Npc[n].pos, work);
99939997 }
@@ -10010,9 +10014,9 @@
1001010014 if (getrand (1, 100) < HUNTER_SPEAK_RATE)
1001110015 {
1001210016 static const char *mesg[3] = {
10013- "%-.16s say,Oh! I am innoucence!",
10014- "%-.16s say,Leave alone!",
10015- "%-.16s say,HELP ME! HELP! HELP!"
10017+ "%-.24s say,Oh! I am innoucence!",
10018+ "%-.24s say,Leave alone!",
10019+ "%-.24s say,HELP ME! HELP! HELP!"
1001610020 };
1001710021 NPCsay (n, mesg, 3);
1001810022 }
@@ -10065,11 +10069,11 @@
1006510069 if (getrand (1, 100) < HUNTER_SPEAK_RATE)
1006610070 {
1006710071 static const char *mesg[5] = {
10068- "%-.16s say,Anyone see animal?",
10069- "%-.16s say,Oh sorry.",
10070- "%-.16s say,Nice meet you!",
10071- "%-.16s say,Hello. Is there anyone?",
10072- "%-.16s say,I want any food. Anyone have?"
10072+ "%-.24s say,Anyone see animal?",
10073+ "%-.24s say,Oh sorry.",
10074+ "%-.24s say,Nice meet you!",
10075+ "%-.24s say,Hello. Is there anyone?",
10076+ "%-.24s say,I want any food. Anyone have?"
1007310077 };
1007410078 NPCsay (n, mesg, 5);
1007510079 }
@@ -10099,7 +10103,7 @@
1009910103 {
1010010104 /* get */
1010110105 char work[MESG_BUFFER];
10102- sprintf (work, MESG ("%-.16s say,Get!"),
10106+ sprintf (work, MESG ("%-.24s say,Get!"),
1010310107 CUTTAIL (Npc[n].name));
1010410108 SendMessageNearUserPosition (Npc[n].pos, work);
1010510109 MAP (Animal[ntarget].pos.x, Animal[ntarget].pos.y)->id &=
@@ -10115,14 +10119,14 @@
1011510119 if (getrand (1, 100) < HUNTER_SPEAK_RATE)
1011610120 {
1011710121 static const char *mesg_a[3] = {
10118- "%-.16s say,Fire! Fire!",
10119- "%-.16s say,Oh! This animal is strong!",
10120- "%-.16s say,Hey! Cover me!"
10122+ "%-.24s say,Fire! Fire!",
10123+ "%-.24s say,Oh! This animal is strong!",
10124+ "%-.24s say,Hey! Cover me!"
1012110125 };
1012210126 static const char *mesg_n[3] = {
10123- "%-.16s say,Fire! Fire! Fire!",
10124- "%-.16s say,We are under attack!",
10125- "%-.16s say,Anyone! Help me!"
10127+ "%-.24s say,Fire! Fire! Fire!",
10128+ "%-.24s say,We are under attack!",
10129+ "%-.24s say,Anyone! Help me!"
1012610130 };
1012710131 NPCsay (n,
1012810132 (t_type == TargetAnimal) ? mesg_a : mesg_n,
@@ -10145,14 +10149,14 @@
1014510149 {
1014610150 /* out of range */
1014710151 static const char *mesg_a[3] = {
10148- "%-.16s say,OH NO! I miss animal!",
10149- "%-.16s say,Hey! Don't you get my animal?",
10150- "%-.16s say,I think animal enter hyper-space."
10152+ "%-.24s say,OH NO! I miss animal!",
10153+ "%-.24s say,Hey! Don't you get my animal?",
10154+ "%-.24s say,I think animal enter hyper-space."
1015110155 };
1015210156 static const char *mesg_n[3] = {
10153- "%-.16s say,hehe! bye bye!",
10154- "%-.16s say,Enemy escape from me.",
10155- "%-.16s say,Where?"
10157+ "%-.24s say,hehe! bye bye!",
10158+ "%-.24s say,Enemy escape from me.",
10159+ "%-.24s say,Where?"
1015610160 };
1015710161 NPCsay (n, (t_type == TargetAnimal) ? mesg_a : mesg_n, 3);
1015810162 Npc[n].ntarget_user = -1;
@@ -10222,11 +10226,11 @@
1022210226 if (getrand (1, 100) < OBSERVER_SPEAK_RATE)
1022310227 {
1022410228 static const char *mesg[5] = {
10225- "%-.16s say,*anyone see bad hunter?*",
10226- "%-.16s say,*uhmm. where is he?*",
10227- "%-.16s say,*are you bad hunter?*",
10228- "%-.16s say,*I want to rest here...*",
10229- "%-.16s say,*Zzzzz*"
10229+ "%-.24s say,*anyone see bad hunter?*",
10230+ "%-.24s say,*uhmm. where is he?*",
10231+ "%-.24s say,*are you bad hunter?*",
10232+ "%-.24s say,*I want to rest here...*",
10233+ "%-.24s say,*Zzzzz*"
1023010234 };
1023110235 NPCsay (n, mesg, 5);
1023210236 }
@@ -10288,9 +10292,9 @@
1028810292 if (ndistance == 1)
1028910293 {
1029010294 static const char *g_mesg[3] = {
10291- "%-.16s say,Hey! You do crime!",
10292- "%-.16s say,Arrest you!",
10293- "%-.16s say,Hold up!"
10295+ "%-.24s say,Hey! You do crime!",
10296+ "%-.24s say,Arrest you!",
10297+ "%-.24s say,Hold up!"
1029410298 };
1029510299 if (t_type == TargetUser)
1029610300 {
@@ -10300,7 +10304,7 @@
1030010304 /* arrest */
1030110305 char work[MESG_BUFFER];
1030210306 NPCsay (n, g_mesg, 3);
10303- sprintf (work, MESG ("[You were arrested by %-.16s!]"),
10307+ sprintf (work, MESG ("[You were arrested by %-.24s!]"),
1030410308 CUTTAIL (Npc[n].name));
1030510309 SendSystemMessagePacket (ntarget, work);
1030610310 ClearUser (ntarget);
@@ -10337,9 +10341,9 @@
1033710341 {
1033810342 /* arrest NPC */
1033910343 static const char *h_mesg[3] = {
10340- "%-.16s say,Oh NO! PLEASE HELP ME!",
10341- "%-.16s say,ARGGGH!",
10342- "%-.16s say,Yeah I understand your claim. But..."
10344+ "%-.24s say,Oh NO! PLEASE HELP ME!",
10345+ "%-.24s say,ARGGGH!",
10346+ "%-.24s say,Yeah I understand your claim. But..."
1034310347 };
1034410348 NPCsay (n, g_mesg, 3);
1034510349 NPCsay (ntarget, h_mesg, 3);
@@ -10367,9 +10371,9 @@
1036710371 NPCfire (n, ndir) == 0)
1036810372 {
1036910373 static const char *mesg[3] = {
10370- "%-.16s say,Hey! Stop!",
10371- "%-.16s say,You are BAD HUNTER!",
10372- "%-.16s say,Shoot!"
10374+ "%-.24s say,Hey! Stop!",
10375+ "%-.24s say,You are BAD HUNTER!",
10376+ "%-.24s say,Shoot!"
1037310377 };
1037410378 NPCsay (n, mesg, 3);
1037510379 return;
@@ -10380,9 +10384,9 @@
1038010384 {
1038110385 /* out of range */
1038210386 static const char *mesg[3] = {
10383- "%-.16s say,Shit!",
10384- "%-.16s say,I miss bad hunter.",
10385- "%-.16s say,Oh no! My radar device is malfunction!"
10387+ "%-.24s say,Shit!",
10388+ "%-.24s say,I miss bad hunter.",
10389+ "%-.24s say,Oh no! My radar device is malfunction!"
1038610390 };
1038710391 NPCsay (n, mesg, 3);
1038810392 Npc[n].ntarget_user = -1;
@@ -10467,11 +10471,11 @@
1046710471 if (getrand (1, 100) < HIRENPC_SPEAK_RATE)
1046810472 {
1046910473 static const char *mesg[5] = {
10470- "%-.16s say,sorry.",
10471- "%-.16s say,I cover your back.",
10472- "%-.16s say,Anyone see enemy?",
10473- "%-.16s say,no boggy.",
10474- "%-.16s say,I no see enemy."
10474+ "%-.24s say,sorry.",
10475+ "%-.24s say,I cover your back.",
10476+ "%-.24s say,Anyone see enemy?",
10477+ "%-.24s say,no boggy.",
10478+ "%-.24s say,I no see enemy."
1047510479 };
1047610480 NPCsay (n, mesg, 5);
1047710481 }
@@ -10484,11 +10488,11 @@
1048410488 if (getrand (1, 100) < HIRENPC_SPEAK_RATE)
1048510489 {
1048610490 static const char *mesg[5] = {
10487- "%-.16s say,on the way.",
10488- "%-.16s say,search trap now...",
10489- "%-.16s say,Don't go away from me!",
10490- "%-.16s say,no enemy in sight.",
10491- "%-.16s say,I no see any on my radar."
10491+ "%-.24s say,on the way.",
10492+ "%-.24s say,search trap now...",
10493+ "%-.24s say,Don't go away from me!",
10494+ "%-.24s say,no enemy in sight.",
10495+ "%-.24s say,I no see any on my radar."
1049210496 };
1049310497 NPCsay (n, mesg, 5);
1049410498 }
@@ -10513,9 +10517,9 @@
1051310517 {
1051410518 /* boggy! */
1051510519 static const char *mesg[3] = {
10516- "%-.16s say,Engage enemy!",
10517- "%-.16s say,Hey! Do not enter!",
10518- "%-.16s say,Formation alpha! move to attack position!"
10520+ "%-.24s say,Engage enemy!",
10521+ "%-.24s say,Hey! Do not enter!",
10522+ "%-.24s say,Formation alpha! move to attack position!"
1051910523 };
1052010524 NPCsay (n, mesg, 3);
1052110525 Npc[n].ntarget_user = ntarget;
@@ -10529,9 +10533,9 @@
1052910533 {
1053010534 /* owner is under attack! */
1053110535 static const char *mesg[3] = {
10532- "%-.16s say,Alert! HQ is under attack!",
10533- "%-.16s say,Condition RED! All guard HQ!",
10534- "%-.16s say,Formation sigma! move to support position!"
10536+ "%-.24s say,Alert! HQ is under attack!",
10537+ "%-.24s say,Condition RED! All guard HQ!",
10538+ "%-.24s say,Formation sigma! move to support position!"
1053510539 };
1053610540 NPCsay (n, mesg, 3);
1053710541 Npc[n].ntarget_user = User[nuser].lastuser;
@@ -10543,9 +10547,9 @@
1054310547 {
1054410548 /* animal aproach */
1054510549 static const char *mesg[3] = {
10546- "%-.16s say,I find dangerous animal!",
10547- "%-.16s say,Animal aproach!",
10548- "%-.16s say,Formation delta! move to attack position!"
10550+ "%-.24s say,I find dangerous animal!",
10551+ "%-.24s say,Animal aproach!",
10552+ "%-.24s say,Formation delta! move to attack position!"
1054910553 };
1055010554 NPCsay (n, mesg, 3);
1055110555 Npc[n].ntarget_user = ntarget;
@@ -10606,9 +10610,9 @@
1060610610 if (ndistance == 1 && Npc[n].weapon)
1060710611 {
1060810612 static const char *mesg[3] = {
10609- "%-.16s say,I wanna need your support!",
10610- "%-.16s say,Shit! This enemy is too near!",
10611- "%-.16s say,HAHAHA!"
10613+ "%-.24s say,I wanna need your support!",
10614+ "%-.24s say,Shit! This enemy is too near!",
10615+ "%-.24s say,HAHAHA!"
1061210616 };
1061310617 NPCsay (n, mesg, 3);
1061410618 }
@@ -10617,9 +10621,9 @@
1061710621 if (ndistance < VIEW_LIMIT && Npc[n].reload == 0)
1061810622 {
1061910623 static const char *mesg[3] = {
10620- "%-.16s say,I attack this enemy.",
10621- "%-.16s say,We are under fire!",
10622- "%-.16s say,Cover me!"
10624+ "%-.24s say,I attack this enemy.",
10625+ "%-.24s say,We are under fire!",
10626+ "%-.24s say,Cover me!"
1062310627 };
1062410628 NPCsay (n, mesg, 3);
1062510629 }
@@ -10628,9 +10632,9 @@
1062810632 {
1062910633 /* out of range */
1063010634 static const char *mesg[3] = {
10631- "%-.16s say,I lost target-lock.",
10632- "%-.16s say,no see anyone.",
10633- "%-.16s say,ok. clear."
10635+ "%-.24s say,I lost target-lock.",
10636+ "%-.24s say,no see anyone.",
10637+ "%-.24s say,ok. clear."
1063410638 };
1063510639 NPCsay (n, mesg, 3);
1063610640 Npc[n].ntarget_user = -1;
--- trunk/hunt.h (revision 3)
+++ trunk/hunt.h (revision 4)
@@ -8,10 +8,10 @@
88
99 #define DEFAULT_PORT 10001
1010
11-#define USERNAME_LEN 16
11+#define USERNAME_LEN 24
1212 #define PASSWORD_LEN 16
1313 #define SCORE_LIMIT 999999999L
14-#define ANIMALNAME_LEN 16
14+#define ANIMALNAME_LEN USERNAME_LEN
1515 #define WEAPON_MAX 2
1616 #define WEAPONNAME_LEN 32
1717 #define ITEM_MAX 4