diff options
Diffstat (limited to 'src')
41 files changed, 1767 insertions, 1767 deletions
diff --git a/src/char/int_guild.c b/src/char/int_guild.c index 49bb238..5b4fe30 100644 --- a/src/char/int_guild.c +++ b/src/char/int_guild.c @@ -32,17 +32,17 @@ int mapif_guild_basicinfochanged (int guild_id, int type, const void *data, int mapif_guild_info (int fd, struct guild *g); int guild_break_sub (void *key, void *data, va_list ap); -// Mhf[^̶ñÖÌÏ· +// ã®ã«ãããŒã¿ã®æååãžã®å€æ int inter_guild_tostr (char *str, struct guild *g) { int i, c, len; - // î{f[^ + // åºæ¬ããŒã¿ len = sprintf (str, "%d\t%s\t%s\t%d,%d,%d,%d,%d\t%s#\t%s#\t", g->guild_id, g->name, g->master, g->guild_lv, g->max_member, g->exp, g->skill_point, g->castle_id, g->mes1, g->mes2); - // o[ + // ã¡ã³ã㌠for (i = 0; i < g->max_member; i++) { struct guild_member *m = &g->member[i]; @@ -52,7 +52,7 @@ int inter_guild_tostr (char *str, struct guild *g) m->class, m->lv, m->exp, m->exp_payper, m->position, ((m->account_id > 0) ? m->name : "-")); } - // ðE + // åœ¹è· for (i = 0; i < MAX_GUILDPOSITION; i++) { struct guild_position *p = &g->position[i]; @@ -60,7 +60,7 @@ int inter_guild_tostr (char *str, struct guild *g) sprintf (str + len, "%d,%d\t%s#\t", p->mode, p->exp_mode, p->name); } - // Gu + // ãšã³ãã¬ã len += sprintf (str + len, "%d,%d,", g->emblem_len, g->emblem_id); for (i = 0; i < g->emblem_len; i++) { @@ -68,7 +68,7 @@ int inter_guild_tostr (char *str, struct guild *g) sprintf (str + len, "%02x", (unsigned char) (g->emblem_data[i])); } len += sprintf (str + len, "$\t"); - // ¯¿Xg + // åçãªã¹ã c = 0; for (i = 0; i < MAX_GUILDALLIANCE; i++) if (g->alliance[i].guild_id > 0) @@ -82,7 +82,7 @@ int inter_guild_tostr (char *str, struct guild *g) sprintf (str + len, "%d,%d\t%s\t", a->guild_id, a->opposition, a->name); } - // ÇúXg + // è¿œæŸãªã¹ã c = 0; for (i = 0; i < MAX_GUILDEXPLUSION; i++) if (g->explusion[i].account_id > 0) @@ -96,7 +96,7 @@ int inter_guild_tostr (char *str, struct guild *g) e->account_id, e->rsv1, e->rsv2, e->rsv3, e->name, e->acc, e->mes); } - // MhXL + // ã®ã«ãã¹ãã« for (i = 0; i < MAX_GUILDSKILL; i++) { len += sprintf (str + len, "%d,%d ", g->skill[i].id, g->skill[i].lv); @@ -106,7 +106,7 @@ int inter_guild_tostr (char *str, struct guild *g) return 0; } -// Mhf[^̶ñ©çÌÏ· +// ã®ã«ãããŒã¿ã®æååããã®å€æ int inter_guild_fromstr (char *str, struct guild *g) { int i, j, c; @@ -115,7 +115,7 @@ int inter_guild_fromstr (char *str, struct guild *g) char tmp_str2[4096]; char *pstr; - // î{f[^ + // åºæ¬ããŒã¿ memset (g, 0, sizeof (struct guild)); if (sscanf (str, "%d\t%[^\t]\t%[^\t]\t%d,%d,%d,%d,%d\t%[^\t]\t%[^\t]\t", @@ -136,11 +136,11 @@ int inter_guild_fromstr (char *str, struct guild *g) g->mes1[strlen (g->mes1) - 1] = 0; g->mes2[strlen (g->mes2) - 1] = 0; - for (j = 0; j < 6 && str != NULL; j++) // ÊuXLbv + for (j = 0; j < 6 && str != NULL; j++) // äœçœ®ã¹ããã str = strchr (str + 1, '\t'); // printf("GuildBaseInfo OK\n"); - // o[ + // ã¡ã³ã㌠for (i = 0; i < g->max_member; i++) { struct guild_member *m = &g->member[i]; @@ -161,11 +161,11 @@ int inter_guild_fromstr (char *str, struct guild *g) m->position = tmp_int[9]; memcpy (m->name, tmp_str[0], 24); - for (j = 0; j < 2 && str != NULL; j++) // ÊuXLbv + for (j = 0; j < 2 && str != NULL; j++) // äœçœ®ã¹ããã str = strchr (str + 1, '\t'); } // printf("GuildMemberInfo OK\n"); - // ðE + // åœ¹è· i = 0; while (sscanf (str + 1, "%d,%d%n", &tmp_int[0], &tmp_int[1], &j) == 2 && str[1 + j] == '\t') @@ -180,12 +180,12 @@ int inter_guild_fromstr (char *str, struct guild *g) tmp_str[0][strlen (tmp_str[0]) - 1] = 0; memcpy (p->name, tmp_str[0], 24); - for (j = 0; j < 2 && str != NULL; j++) // ÊuXLbv + for (j = 0; j < 2 && str != NULL; j++) // äœçœ®ã¹ããã str = strchr (str + 1, '\t'); i++; } // printf("GuildPositionInfo OK\n"); - // Gu + // ãšã³ãã¬ã tmp_int[1] = 0; if (sscanf (str + 1, "%d,%d,%[^\t]\t", &tmp_int[0], &tmp_int[1], tmp_str2) < 3 && sscanf (str + 1, "%d,%[^\t]\t", &tmp_int[0], tmp_str2) < 2) @@ -210,12 +210,12 @@ int inter_guild_fromstr (char *str, struct guild *g) g->emblem_data[i] = (x1 << 4) | x2; } // printf("GuildEmblemInfo OK\n"); - str = strchr (str + 1, '\t'); // ÊuXLbv + str = strchr (str + 1, '\t'); // äœçœ®ã¹ããã - // ¯¿Xg + // åçãªã¹ã if (sscanf (str + 1, "%d\t", &c) < 1) return 1; - str = strchr (str + 1, '\t'); // ÊuXLbv + str = strchr (str + 1, '\t'); // äœçœ®ã¹ããã for (i = 0; i < c; i++) { struct guild_alliance *a = &g->alliance[i]; @@ -227,14 +227,14 @@ int inter_guild_fromstr (char *str, struct guild *g) a->opposition = tmp_int[1]; memcpy (a->name, tmp_str[0], 24); - for (j = 0; j < 2 && str != NULL; j++) // ÊuXLbv + for (j = 0; j < 2 && str != NULL; j++) // äœçœ®ã¹ããã str = strchr (str + 1, '\t'); } // printf("GuildAllianceInfo OK\n"); - // ÇúXg + // è¿œæŸãªã¹ã if (sscanf (str + 1, "%d\t", &c) < 1) return 1; - str = strchr (str + 1, '\t'); // ÊuXLbv + str = strchr (str + 1, '\t'); // äœçœ®ã¹ããã for (i = 0; i < c; i++) { struct guild_explusion *e = &g->explusion[i]; @@ -251,11 +251,11 @@ int inter_guild_fromstr (char *str, struct guild *g) tmp_str[2][strlen (tmp_str[2]) - 1] = 0; memcpy (e->mes, tmp_str[2], 40); - for (j = 0; j < 4 && str != NULL; j++) // ÊuXLbv + for (j = 0; j < 4 && str != NULL; j++) // äœçœ®ã¹ããã str = strchr (str + 1, '\t'); } // printf("GuildExplusionInfo OK\n"); - // MhXL + // ã®ã«ãã¹ãã« for (i = 0; i < MAX_GUILDSKILL; i++) { if (sscanf (str + 1, "%d,%d ", &tmp_int[0], &tmp_int[1]) < 2) @@ -270,7 +270,7 @@ int inter_guild_fromstr (char *str, struct guild *g) return 0; } -// Mhéf[^̶ñÖÌÏ· +// ã®ã«ãåããŒã¿ã®æååãžã®å€æ int inter_guildcastle_tostr (char *str, struct guild_castle *gc) { int len; @@ -286,7 +286,7 @@ int inter_guildcastle_tostr (char *str, struct guild_castle *gc) return 0; } -// Mhéf[^̶ñ©çÌÏ· +// ã®ã«ãåããŒã¿ã®æååããã®å€æ int inter_guildcastle_fromstr (char *str, struct guild_castle *gc) { int tmp_int[26]; @@ -397,7 +397,7 @@ int inter_guildcastle_fromstr (char *str, struct guild_castle *gc) return 0; } -// MhÖAf[^x[XÇÝÝ +// ã®ã«ãé¢é£ããŒã¿ããŒã¹èªã¿èŸŒã¿ int inter_guild_readdb () { int i; @@ -423,7 +423,7 @@ int inter_guild_readdb () return 0; } -// Mhf[^ÌÇÝÝ +// ã®ã«ãããŒã¿ã®èªã¿èŸŒã¿ int inter_guild_init () { char line[16384]; @@ -474,7 +474,7 @@ int inter_guild_init () fclose_ (fp); // printf("int_guild: %s read done (%d guilds)\n", guild_txt, c); - c = 0; //JE^ú» + c = 0; //ã«ãŠã³ã¿åæå if ((fp = fopen_ (castle_txt, "r")) == NULL) { @@ -505,7 +505,7 @@ int inter_guild_init () if (!c) { printf (" %s - making Default Data...\n", castle_txt); - //ftHgf[^ðì¬ + //ããã©ã«ãããŒã¿ãäœæ for (i = 0; i < MAX_GUILDCASTLE; i++) { gc = calloc (sizeof (struct guild_castle), 1); @@ -561,7 +561,7 @@ struct guild *inter_guild_search (int guild_id) return g; } -// Mhf[^ÌZ[up +// ã®ã«ãããŒã¿ã®ã»ãŒãçš int inter_guild_save_sub (void *key, void *data, va_list ap) { char line[16384]; @@ -574,7 +574,7 @@ int inter_guild_save_sub (void *key, void *data, va_list ap) return 0; } -// Mhéf[^ÌZ[up +// ã®ã«ãåããŒã¿ã®ã»ãŒãçš int inter_castle_save_sub (void *key, void *data, va_list ap) { char line[16384]; @@ -587,7 +587,7 @@ int inter_castle_save_sub (void *key, void *data, va_list ap) return 0; } -// Mhf[^ÌZ[u +// ã®ã«ãããŒã¿ã®ã»ãŒã int inter_guild_save () { FILE *fp; @@ -616,7 +616,7 @@ int inter_guild_save () return 0; } -// MhŒõp +// ã®ã«ãåæ€çŽ¢çš int search_guildname_sub (void *key, void *data, va_list ap) { struct guild *g = (struct guild *) data, **dst; @@ -629,7 +629,7 @@ int search_guildname_sub (void *key, void *data, va_list ap) return 0; } -// MhŒõ +// ã®ã«ãåæ€çŽ¢ struct guild *search_guildname (char *str) { struct guild *g = NULL; @@ -637,7 +637,7 @@ struct guild *search_guildname (char *str) return g; } -// Mhªó©Ç€©`FbN +// ã®ã«ãã空ãã©ãããã§ã㯠int guild_check_empty (struct guild *g) { int i; @@ -649,7 +649,7 @@ int guild_check_empty (struct guild *g) return 0; } } - // Nà¢È¢ÌÅðU + // 誰ãããªãã®ã§è§£æ£ numdb_foreach (guild_db, guild_break_sub, g->guild_id); numdb_erase (guild_db, g->guild_id); inter_guild_storage_delete (g->guild_id); @@ -659,7 +659,7 @@ int guild_check_empty (struct guild *g) return 1; } -// LÌ£ªÈ¢©`FbNp +// ãã£ã©ã®ç«¶åããªãããã§ãã¯çš int guild_check_conflict_sub (void *key, void *data, va_list ap) { struct guild *g = (struct guild *) data; @@ -669,25 +669,25 @@ int guild_check_conflict_sub (void *key, void *data, va_list ap) account_id = va_arg (ap, int); char_id = va_arg (ap, int); - if (g->guild_id == guild_id) // {Ì®ÈÌÅâèȵ + if (g->guild_id == guild_id) // æ¬æ¥ã®æå±ãªã®ã§åé¡ãªã return 0; for (i = 0; i < MAX_GUILD; i++) { if (g->member[i].account_id == account_id) { - // ÊÌMhÉUÌ®f[^ª éÌÅEÞ + // å¥ã®ã®ã«ãã«åœã®æå±ããŒã¿ãããã®ã§è±é printf ("int_guild: guild conflict! %d,%d %d!=%d\n", account_id, char_id, guild_id, g->guild_id); mapif_parse_GuildLeave (-1, g->guild_id, account_id, 0 /*char_id*/, 0, - "**f[^£**"); + "**ããŒã¿ç«¶å**"); } } return 0; } -// LÌ£ªÈ¢©`FbN +// ãã£ã©ã®ç«¶åããªãããã§ã㯠int guild_check_conflict (int guild_id, int account_id, int char_id) { numdb_foreach (guild_db, guild_check_conflict_sub, guild_id, account_id, @@ -704,30 +704,30 @@ int guild_nextexp (int level) return 0; } -// MhXLª é©mF +// ã®ã«ãã¹ãã«ããããç¢ºèª int guild_checkskill (struct guild *g, int id) { return g->skill[id - 10000].lv; } -// MhÌîñÌÄvZ +// ã®ã«ãã®æ
å ±ã®åèšç® int guild_calcinfo (struct guild *g) { int i, c, nextexp; struct guild before = *g; - // XLIDÌÝè + // ã¹ãã«IDã®èšå® for (i = 0; i < 5; i++) g->skill[i].id = i + 10000; - // Mhx + // ã®ã«ãã¬ãã« if (g->guild_lv <= 0) g->guild_lv = 1; nextexp = guild_nextexp (g->guild_lv); if (nextexp > 0) { while (g->exp >= nextexp) - { // xAbv + { // ã¬ãã«ã¢ããåŠç g->exp -= nextexp; g->guild_lv++; g->skill_point++; @@ -735,13 +735,13 @@ int guild_calcinfo (struct guild *g) } } - // MhÌÌo±l + // ã®ã«ãã®æ¬¡ã®çµéšå€ g->next_exp = guild_nextexp (g->guild_lv); - // oãÀiMhg£Kpj + // ã¡ã³ãäžéïŒã®ã«ãæ¡åŒµé©çšïŒ g->max_member = 100 + guild_checkskill (g, 10004) * 2; - // œÏxÆICl + // å¹³åã¬ãã«ãšãªã³ã©ã€ã³äººæ° g->average_lv = 0; g->connect_member = 0; c = 0; @@ -757,7 +757,7 @@ int guild_calcinfo (struct guild *g) } g->average_lv /= c; - // Sf[^ðéKvª 軀 + // å
šããŒã¿ãéãå¿
èŠããããã if (g->max_member != before.max_member || g->guild_lv != before.guild_lv || g->skill_point != before.skill_point) @@ -770,9 +770,9 @@ int guild_calcinfo (struct guild *g) } //------------------------------------------------------------------- -// map serverÖÌÊM +// map serverãžã®éä¿¡ -// Mhì¬ÂÛ +// ã®ã«ãäœæå¯åŠ int mapif_guild_created (int fd, int account_id, struct guild *g) { WFIFOW (fd, 0) = 0x3830; @@ -790,7 +790,7 @@ int mapif_guild_created (int fd, int account_id, struct guild *g) return 0; } -// Mhîñ©Â©çž +// ã®ã«ãæ
å ±èŠã€ããã int mapif_guild_noinfo (int fd, int guild_id) { WFIFOW (fd, 0) = 0x3831; @@ -802,7 +802,7 @@ int mapif_guild_noinfo (int fd, int guild_id) return 0; } -// MhîñÜÆßè +// ã®ã«ãæ
å ±ãŸãšãéã int mapif_guild_info (int fd, struct guild *g) { unsigned char buf[4 + sizeof (struct guild)]; @@ -820,7 +820,7 @@ int mapif_guild_info (int fd, struct guild *g) return 0; } -// oÇÁÂÛ +// ã¡ã³ãè¿œå å¯åŠ int mapif_guild_memberadded (int fd, int guild_id, int account_id, int char_id, int flag) { @@ -834,7 +834,7 @@ int mapif_guild_memberadded (int fd, int guild_id, int account_id, return 0; } -// EÞ/ÇúÊm +// è±é/è¿œæŸéç¥ int mapif_guild_leaved (int guild_id, int account_id, int char_id, int flag, const char *name, const char *mes) { @@ -854,7 +854,7 @@ int mapif_guild_leaved (int guild_id, int account_id, int char_id, int flag, return 0; } -// ICóÔÆLvXVÊm +// ãªã³ã©ã€ã³ç¶æ
ãšLvæŽæ°éç¥ int mapif_guild_memberinfoshort (struct guild *g, int idx) { unsigned char buf[19]; @@ -870,7 +870,7 @@ int mapif_guild_memberinfoshort (struct guild *g, int idx) return 0; } -// ðUÊm +// 解æ£éç¥ int mapif_guild_broken (int guild_id, int flag) { unsigned char buf[7]; @@ -884,7 +884,7 @@ int mapif_guild_broken (int guild_id, int flag) return 0; } -// MhàŸ +// ã®ã«ãå
çºèš int mapif_guild_message (int guild_id, int account_id, char *mes, int len) { unsigned char buf[len + 12]; @@ -899,7 +899,7 @@ int mapif_guild_message (int guild_id, int account_id, char *mes, int len) return 0; } -// Mhî{îñÏXÊm +// ã®ã«ãåºæ¬æ
å ±å€æŽéç¥ int mapif_guild_basicinfochanged (int guild_id, int type, const void *data, int len) { @@ -914,7 +914,7 @@ int mapif_guild_basicinfochanged (int guild_id, int type, const void *data, return 0; } -// MhoîñÏXÊm +// ã®ã«ãã¡ã³ãæ
å ±å€æŽéç¥ int mapif_guild_memberinfochanged (int guild_id, int account_id, int char_id, int type, const void *data, int len) { @@ -932,7 +932,7 @@ int mapif_guild_memberinfochanged (int guild_id, int account_id, int char_id, return 0; } -// MhXLAbvÊm +// ã®ã«ãã¹ãã«ã¢ããéç¥ int mapif_guild_skillupack (int guild_id, int skill_num, int account_id) { unsigned char buf[14]; @@ -946,7 +946,7 @@ int mapif_guild_skillupack (int guild_id, int skill_num, int account_id) return 0; } -// Mh¯¿/GÎÊm +// ã®ã«ãåç/æµå¯Ÿéç¥ int mapif_guild_alliance (int guild_id1, int guild_id2, int account_id1, int account_id2, int flag, const char *name1, const char *name2) @@ -966,7 +966,7 @@ int mapif_guild_alliance (int guild_id1, int guild_id2, int account_id1, return 0; } -// MhðEÏXÊm +// ã®ã«ã圹è·å€æŽéç¥ int mapif_guild_position (struct guild *g, int idx) { unsigned char buf[sizeof (struct guild_position) + 12]; @@ -982,7 +982,7 @@ int mapif_guild_position (struct guild *g, int idx) return 0; } -// MhmÏXÊm +// ã®ã«ãåç¥å€æŽéç¥ int mapif_guild_notice (struct guild *g) { unsigned char buf[186]; @@ -996,7 +996,7 @@ int mapif_guild_notice (struct guild *g) return 0; } -// MhGuÏXÊm +// ã®ã«ããšã³ãã¬ã å€æŽéç¥ int mapif_guild_emblem (struct guild *g) { unsigned char buf[2048]; @@ -1062,9 +1062,9 @@ int mapif_guild_castle_alldataload (int fd) } //------------------------------------------------------------------- -// map server©çÌÊM +// map serverããã®éä¿¡ -// Mhì¬v +// ã®ã«ãäœæèŠæ± int mapif_parse_CreateGuild (int fd, int account_id, char *name, struct guild_member *master) { @@ -1106,7 +1106,7 @@ int mapif_parse_CreateGuild (int fd, int account_id, char *name, for (i = 1; i < MAX_GUILDPOSITION - 1; i++) sprintf (g->position[i].name, "Position %d", i + 1); - // ±±ÅMhîñvZªKvÆvíêé + // ããã§ã®ã«ãæ
å ±èšç®ãå¿
èŠãšæããã g->max_member = 100; g->average_lv = master->lv; for (i = 0; i < 5; i++) @@ -1123,7 +1123,7 @@ int mapif_parse_CreateGuild (int fd, int account_id, char *name, return 0; } -// Mhîñv +// ã®ã«ãæ
å ±èŠæ± int mapif_parse_GuildInfo (int fd, int guild_id) { struct guild *g; @@ -1140,7 +1140,7 @@ int mapif_parse_GuildInfo (int fd, int guild_id) return 0; } -// MhoÇÁv +// ã®ã«ãã¡ã³ãè¿œå èŠæ± int mapif_parse_GuildAddMember (int fd, int guild_id, struct guild_member *m) { struct guild *g; @@ -1171,7 +1171,7 @@ int mapif_parse_GuildAddMember (int fd, int guild_id, struct guild_member *m) return 0; } -// MhEÞ/Çúv +// ã®ã«ãè±é/è¿œæŸèŠæ± int mapif_parse_GuildLeave (int fd, int guild_id, int account_id, int char_id, int flag, const char *mes) { @@ -1189,14 +1189,14 @@ int mapif_parse_GuildLeave (int fd, int guild_id, int account_id, int char_id, // printf("%d %s\n", i, g->member[i].name); if (flag) - { // ÇúÌêÇúXgÉüêé + { // è¿œæŸã®å Žåè¿œæŸãªã¹ãã«å
¥ãã for (j = 0; j < MAX_GUILDEXPLUSION; j++) { if (g->explusion[j].account_id == 0) break; } if (j == MAX_GUILDEXPLUSION) - { // êtÈÌÅâÌðÁ· + { // äžæ¯ãªã®ã§å€ãã®ãæ¶ã for (j = 0; j < MAX_GUILDEXPLUSION - 1; j++) g->explusion[j] = g->explusion[j + 1]; j = MAX_GUILDEXPLUSION - 1; @@ -1214,7 +1214,7 @@ int mapif_parse_GuildLeave (int fd, int guild_id, int account_id, int char_id, memset (&g->member[i], 0, sizeof (struct guild_member)); if (guild_check_empty (g) == 0) - mapif_guild_info (-1, g); // ÜŸlª¢éÌÅf[^M + mapif_guild_info (-1, g); // ãŸã 人ãããã®ã§ããŒã¿éä¿¡ return 0; } @@ -1223,7 +1223,7 @@ int mapif_parse_GuildLeave (int fd, int guild_id, int account_id, int char_id, return 0; } -// IC/LvXV +// ãªã³ã©ã€ã³/LvæŽæ° int mapif_parse_GuildChangeMemberInfoShort (int fd, int guild_id, int account_id, int char_id, int online, int lv, int class) @@ -1256,13 +1256,13 @@ int mapif_parse_GuildChangeMemberInfoShort (int fd, int guild_id, if (g->member[i].online) g->connect_member++; } - // œÏx + // å¹³åã¬ãã« g->average_lv = alv / c; return 0; } -// MhðUpi¯¿/GÎððj +// ã®ã«ã解æ£åŠççšïŒåç/æµå¯Ÿã解é€ïŒ int guild_break_sub (void *key, void *data, va_list ap) { struct guild *g = (struct guild *) data; @@ -1277,7 +1277,7 @@ int guild_break_sub (void *key, void *data, va_list ap) return 0; } -// MhðUv +// ã®ã«ã解æ£èŠæ± int mapif_parse_BreakGuild (int fd, int guild_id) { struct guild *g; @@ -1297,14 +1297,14 @@ int mapif_parse_BreakGuild (int fd, int guild_id) return 0; } -// MhbZ[WM +// ã®ã«ãã¡ãã»ãŒãžéä¿¡ int mapif_parse_GuildMessage (int fd, int guild_id, int account_id, char *mes, int len) { return mapif_guild_message (guild_id, account_id, mes, len); } -// Mhî{f[^ÏXv +// ã®ã«ãåºæ¬ããŒã¿å€æŽèŠæ± int mapif_parse_GuildBasicInfoChange (int fd, int guild_id, int type, const char *data, int len) { @@ -1337,7 +1337,7 @@ int mapif_parse_GuildBasicInfoChange (int fd, int guild_id, int type, return 0; } -// Mhof[^ÏXv +// ã®ã«ãã¡ã³ãããŒã¿å€æŽèŠæ± int mapif_parse_GuildMemberInfoChange (int fd, int guild_id, int account_id, int char_id, int type, const char *data, int len) @@ -1360,7 +1360,7 @@ int mapif_parse_GuildMemberInfoChange (int fd, int guild_id, int account_id, } switch (type) { - case GMI_POSITION: // ðE + case GMI_POSITION: // åœ¹è· g->member[i].position = *((int *) data); break; case GMI_EXP: // EXP @@ -1368,7 +1368,7 @@ int mapif_parse_GuildMemberInfoChange (int fd, int guild_id, int account_id, int exp, oldexp = g->member[i].exp; exp = g->member[i].exp = *((unsigned int *) data); g->exp += (exp - oldexp); - guild_calcinfo (g); // LvAbv»f + guild_calcinfo (g); // Lvã¢ããå€æ mapif_guild_basicinfochanged (guild_id, GBI_EXP, &g->exp, 4); } break; @@ -1383,7 +1383,7 @@ int mapif_parse_GuildMemberInfoChange (int fd, int guild_id, int account_id, return 0; } -// MhðEŒÏXv +// ã®ã«ã圹è·åå€æŽèŠæ± int mapif_parse_GuildPosition (int fd, int guild_id, int idx, struct guild_position *p) { @@ -1400,7 +1400,7 @@ int mapif_parse_GuildPosition (int fd, int guild_id, int idx, return 0; } -// MhXLAbvv +// ã®ã«ãã¹ãã«ã¢ããèŠæ± int mapif_parse_GuildSkillUp (int fd, int guild_id, int skill_num, int account_id) { @@ -1423,7 +1423,7 @@ int mapif_parse_GuildSkillUp (int fd, int guild_id, int skill_num, return 0; } -// Mh¯¿v +// ã®ã«ãåçèŠæ± int mapif_parse_GuildAlliance (int fd, int guild_id1, int guild_id2, int account_id1, int account_id2, int flag) { @@ -1450,7 +1450,7 @@ int mapif_parse_GuildAlliance (int fd, int guild_id1, int guild_id2, } } else - { // ÖWðÁ + { // é¢ä¿è§£æ¶ for (i = 0; i < 2 - (flag & 1); i++) { for (j = 0; j < MAX_GUILDALLIANCE; j++) @@ -1468,7 +1468,7 @@ int mapif_parse_GuildAlliance (int fd, int guild_id1, int guild_id2, return 0; } -// MhmÏXv +// ã®ã«ãåç¥å€æŽèŠæ± int mapif_parse_GuildNotice (int fd, int guild_id, const char *mes1, const char *mes2) { @@ -1483,7 +1483,7 @@ int mapif_parse_GuildNotice (int fd, int guild_id, const char *mes1, return mapif_guild_notice (g); } -// MhGuÏXv +// ã®ã«ããšã³ãã¬ã å€æŽèŠæ± int mapif_parse_GuildEmblem (int fd, int len, int guild_id, int dummy, const char *data) { @@ -1697,17 +1697,17 @@ int mapif_parse_GuildCastleDataSave (int fd, int castle_id, int index, return mapif_guild_castle_datasave (gc->castle_id, index, value); } -// Mh`FbNv +// ã®ã«ããã§ãã¯èŠæ± int mapif_parse_GuildCheck (int fd, int guild_id, int account_id, int char_id) { return guild_check_conflict (guild_id, account_id, 0 /*char_id*/); } -// map server ©çÌÊM -// EPpPbgÌÝðÍ·é±Æ -// EpPbg·f[^Íinter.cÉZbgµÄš±Æ -// EpPbg·`FbNâARFIFOSKIPÍÄÑoµ³ÅsíêéÌÅsÁÄÍÈçÈ¢ -// EG[Èç0(false)A»€ÅÈ¢Èç1(true)𩊳ȯêÎÈçÈ¢ +// map server ããã®éä¿¡ +// ã»ïŒãã±ããã®ã¿è§£æããããš +// ã»ãã±ããé·ããŒã¿ã¯inter.cã«ã»ããããŠããããš +// ã»ãã±ããé·ãã§ãã¯ããRFIFOSKIPã¯åŒã³åºãå
ã§è¡ãããã®ã§è¡ã£ãŠã¯ãªããªã +// ã»ãšã©ãŒãªã0(false)ãããã§ãªããªã1(true)ãããããªããã°ãªããªã int inter_guild_parse_frommap (int fd) { switch (RFIFOW (fd, 0)) @@ -1799,15 +1799,15 @@ int inter_guild_parse_frommap (int fd) return 1; } -// }bvT[o[ÌÚ± +// ããããµãŒããŒã®æ¥ç¶æåŠç int inter_guild_mapif_init (int fd) { return mapif_guild_castle_alldataload (fd); } -// T[o[©çEÞviLípj +// ãµãŒããŒããè±éèŠæ±ïŒãã£ã©åé€çšïŒ int inter_guild_leave (int guild_id, int account_id, int char_id) { return mapif_parse_GuildLeave (-1, guild_id, account_id, 0 /*char_id*/, 0, - "**T[o[œß**"); + "**ãµãŒããŒåœä»€**"); } diff --git a/src/char/int_party.c b/src/char/int_party.c index fb9c3ca..c501c74 100644 --- a/src/char/int_party.c +++ b/src/char/int_party.c @@ -19,7 +19,7 @@ int mapif_party_broken (int party_id, int flag); int party_check_empty (struct party *p); int mapif_parse_PartyLeave (int fd, int party_id, int account_id); -// p[eBf[^̶ñÖÌÏ· +// ããŒãã£ããŒã¿ã®æååãžã®å€æ int inter_party_tostr (char *str, struct party *p) { int i, len; @@ -38,7 +38,7 @@ int inter_party_tostr (char *str, struct party *p) return 0; } -// p[eBf[^̶ñ©çÌÏ· +// ããŒãã£ããŒã¿ã®æååããã®å€æ int inter_party_fromstr (char *str, struct party *p) { int i, j; @@ -86,7 +86,7 @@ int inter_party_fromstr (char *str, struct party *p) return 0; } -// p[eBf[^Ì[h +// ããŒãã£ããŒã¿ã®ããŒã int inter_party_init () { char line[8192]; @@ -138,7 +138,7 @@ int inter_party_init () return 0; } -// p[eB[f[^ÌZ[up +// ããŒãã£ãŒããŒã¿ã®ã»ãŒãçš int inter_party_save_sub (void *key, void *data, va_list ap) { char line[8192]; @@ -151,7 +151,7 @@ int inter_party_save_sub (void *key, void *data, va_list ap) return 0; } -// p[eB[f[^ÌZ[u +// ããŒãã£ãŒããŒã¿ã®ã»ãŒã int inter_party_save () { FILE *fp; @@ -171,7 +171,7 @@ int inter_party_save () return 0; } -// p[eBŒõp +// ããŒãã£åæ€çŽ¢çš int search_partyname_sub (void *key, void *data, va_list ap) { struct party *p = (struct party *) data, **dst; @@ -185,7 +185,7 @@ int search_partyname_sub (void *key, void *data, va_list ap) return 0; } -// p[eBŒõ +// ããŒãã£åæ€çŽ¢ struct party *search_partyname (char *str) { struct party *p = NULL; @@ -194,7 +194,7 @@ struct party *search_partyname (char *str) return p; } -// EXPöœªzÅ«é©`FbN +// EXPå
¬å¹³åé
ã§ããããã§ã㯠int party_check_exp_share (struct party *p) { int i; @@ -215,7 +215,7 @@ int party_check_exp_share (struct party *p) return (maxlv == 0 || maxlv - minlv <= party_share_level); } -// p[eBªó©Ç€©`FbN +// ããŒãã£ã空ãã©ãããã§ã㯠int party_check_empty (struct party *p) { int i; @@ -229,7 +229,7 @@ int party_check_empty (struct party *p) return 0; } } - // Nà¢È¢ÌÅðU + // 誰ãããªãã®ã§è§£æ£ mapif_party_broken (p->party_id, 0); numdb_erase (party_db, p->party_id); free (p); @@ -237,7 +237,7 @@ int party_check_empty (struct party *p) return 1; } -// LÌ£ªÈ¢©`FbNp +// ãã£ã©ã®ç«¶åããªãããã§ãã¯çš int party_check_conflict_sub (void *key, void *data, va_list ap) { struct party *p = (struct party *) data; @@ -248,7 +248,7 @@ int party_check_conflict_sub (void *key, void *data, va_list ap) account_id = va_arg (ap, int); nick = va_arg (ap, char *); - if (p->party_id == party_id) // {Ì®ÈÌÅâèȵ + if (p->party_id == party_id) // æ¬æ¥ã®æå±ãªã®ã§åé¡ãªã return 0; for (i = 0; i < MAX_PARTY; i++) @@ -256,7 +256,7 @@ int party_check_conflict_sub (void *key, void *data, va_list ap) if (p->member[i].account_id == account_id && strcmp (p->member[i].name, nick) == 0) { - // ÊÌp[eBÉUÌ®f[^ª éÌÅEÞ + // å¥ã®ããŒãã£ã«åœã®æå±ããŒã¿ãããã®ã§è±é printf ("int_party: party conflict! %d %d %d\n", account_id, party_id, p->party_id); mapif_parse_PartyLeave (-1, p->party_id, account_id); @@ -266,7 +266,7 @@ int party_check_conflict_sub (void *key, void *data, va_list ap) return 0; } -// LÌ£ªÈ¢©`FbN +// ãã£ã©ã®ç«¶åããªãããã§ã㯠int party_check_conflict (int party_id, int account_id, char *nick) { numdb_foreach (party_db, party_check_conflict_sub, party_id, account_id, @@ -276,9 +276,9 @@ int party_check_conflict (int party_id, int account_id, char *nick) } //------------------------------------------------------------------- -// map serverÖÌÊM +// map serverãžã®éä¿¡ -// p[eBì¬ÂÛ +// ããŒãã£äœæå¯åŠ int mapif_party_created (int fd, int account_id, struct party *p) { WFIFOW (fd, 0) = 0x3820; @@ -301,7 +301,7 @@ int mapif_party_created (int fd, int account_id, struct party *p) return 0; } -// p[eBîñ©Â©çž +// ããŒãã£æ
å ±èŠã€ããã int mapif_party_noinfo (int fd, int party_id) { WFIFOW (fd, 0) = 0x3821; @@ -313,7 +313,7 @@ int mapif_party_noinfo (int fd, int party_id) return 0; } -// p[eBîñÜÆßè +// ããŒãã£æ
å ±ãŸãšãéã int mapif_party_info (int fd, struct party *p) { unsigned char buf[4 + sizeof (struct party)]; @@ -330,7 +330,7 @@ int mapif_party_info (int fd, struct party *p) return 0; } -// p[eBoÇÁÂÛ +// ããŒãã£ã¡ã³ãè¿œå å¯åŠ int mapif_party_memberadded (int fd, int party_id, int account_id, int flag) { WFIFOW (fd, 0) = 0x3822; @@ -342,7 +342,7 @@ int mapif_party_memberadded (int fd, int party_id, int account_id, int flag) return 0; } -// p[eBÝèÏXÊm +// ããŒãã£èšå®å€æŽéç¥ int mapif_party_optionchanged (int fd, struct party *p, int account_id, int flag) { @@ -364,7 +364,7 @@ int mapif_party_optionchanged (int fd, struct party *p, int account_id, return 0; } -// p[eBEÞÊm +// ããŒãã£è±ééç¥ int mapif_party_leaved (int party_id, int account_id, char *name) { unsigned char buf[34]; @@ -379,7 +379,7 @@ int mapif_party_leaved (int party_id, int account_id, char *name) return 0; } -// p[eB}bvXVÊm +// ããŒãã£ãããæŽæ°éç¥ int mapif_party_membermoved (struct party *p, int idx) { unsigned char buf[29]; @@ -395,7 +395,7 @@ int mapif_party_membermoved (struct party *p, int idx) return 0; } -// p[eBðUÊm +// ããŒãã£è§£æ£éç¥ int mapif_party_broken (int party_id, int flag) { unsigned char buf[7]; @@ -408,7 +408,7 @@ int mapif_party_broken (int party_id, int flag) return 0; } -// p[eBàŸ +// ããŒãã£å
çºèš int mapif_party_message (int party_id, int account_id, char *mes, int len) { unsigned char buf[len + 12]; @@ -424,9 +424,9 @@ int mapif_party_message (int party_id, int account_id, char *mes, int len) } //------------------------------------------------------------------- -// map server©çÌÊM +// map serverããã®éä¿¡ -// p[eB +// ããŒã㣠int mapif_parse_CreateParty (int fd, int account_id, char *name, char *nick, char *map, int lv) { @@ -476,7 +476,7 @@ int mapif_parse_CreateParty (int fd, int account_id, char *name, char *nick, return 0; } -// p[eBîñv +// ããŒãã£æ
å ±èŠæ± int mapif_parse_PartyInfo (int fd, int party_id) { struct party *p; @@ -490,7 +490,7 @@ int mapif_parse_PartyInfo (int fd, int party_id) return 0; } -// p[eBÇÁv +// ããŒãã£è¿œå èŠæ± int mapif_parse_PartyAddMember (int fd, int party_id, int account_id, char *nick, char *map, int lv) { @@ -534,7 +534,7 @@ int mapif_parse_PartyAddMember (int fd, int party_id, int account_id, return 0; } -// p[eB[ÝèÏXv +// ããŒãã£ãŒèšå®å€æŽèŠæ± int mapif_parse_PartyChangeOption (int fd, int party_id, int account_id, int exp, int item) { @@ -558,7 +558,7 @@ int mapif_parse_PartyChangeOption (int fd, int party_id, int account_id, return 0; } -// p[eBEÞv +// ããŒãã£è±éèŠæ± int mapif_parse_PartyLeave (int fd, int party_id, int account_id) { struct party *p; @@ -575,7 +575,7 @@ int mapif_parse_PartyLeave (int fd, int party_id, int account_id) memset (&p->member[i], 0, sizeof (struct party_member)); if (party_check_empty (p) == 0) - mapif_party_info (-1, p); // ÜŸlª¢éÌÅf[^M + mapif_party_info (-1, p); // ãŸã 人ãããã®ã§ããŒã¿éä¿¡ return 0; } } @@ -584,7 +584,7 @@ int mapif_parse_PartyLeave (int fd, int party_id, int account_id) return 0; } -// p[eB}bvXVv +// ããŒãã£ãããæŽæ°èŠæ± int mapif_parse_PartyChangeMap (int fd, int party_id, int account_id, char *map, int online, int lv) { @@ -620,7 +620,7 @@ int mapif_parse_PartyChangeMap (int fd, int party_id, int account_id, return 0; } -// p[eBðUv +// ããŒãã£è§£æ£èŠæ± int mapif_parse_BreakParty (int fd, int party_id) { struct party *p; @@ -635,24 +635,24 @@ int mapif_parse_BreakParty (int fd, int party_id) return 0; } -// p[eBbZ[WM +// ããŒãã£ã¡ãã»ãŒãžéä¿¡ int mapif_parse_PartyMessage (int fd, int party_id, int account_id, char *mes, int len) { return mapif_party_message (party_id, account_id, mes, len); } -// p[eB`FbNv +// ããŒãã£ãã§ãã¯èŠæ± int mapif_parse_PartyCheck (int fd, int party_id, int account_id, char *nick) { return party_check_conflict (party_id, account_id, nick); } -// map server ©çÌÊM -// EPpPbgÌÝðÍ·é±Æ -// EpPbg·f[^Íinter.cÉZbgµÄš±Æ -// EpPbg·`FbNâARFIFOSKIPÍÄÑoµ³ÅsíêéÌÅsÁÄÍÈçÈ¢ -// EG[Èç0(false)A»€ÅÈ¢Èç1(true)𩊳ȯêÎÈçÈ¢ +// map server ããã®éä¿¡ +// ã»ïŒãã±ããã®ã¿è§£æããããš +// ã»ãã±ããé·ããŒã¿ã¯inter.cã«ã»ããããŠããããš +// ã»ãã±ããé·ãã§ãã¯ããRFIFOSKIPã¯åŒã³åºãå
ã§è¡ãããã®ã§è¡ã£ãŠã¯ãªããªã +// ã»ãšã©ãŒãªã0(false)ãããã§ãªããªã1(true)ãããããªããã°ãªããªã int inter_party_parse_frommap (int fd) { switch (RFIFOW (fd, 0)) @@ -700,7 +700,7 @@ int inter_party_parse_frommap (int fd) return 1; } -// T[o[©çEÞviLípj +// ãµãŒããŒããè±éèŠæ±ïŒãã£ã©åé€çšïŒ int inter_party_leave (int party_id, int account_id) { return mapif_parse_PartyLeave (-1, party_id, account_id); diff --git a/src/char/int_storage.c b/src/char/int_storage.c index 47dff67..744a59f 100644 --- a/src/char/int_storage.c +++ b/src/char/int_storage.c @@ -13,15 +13,15 @@ #include "int_storage.h" #include "int_guild.h" -// t@CŒÌftHg -// inter_config_read()ÅÄÝè³êé +// ãã¡ã€ã«åã®ããã©ã«ã +// inter_config_read()ã§åèšå®ããã char storage_txt[1024] = "save/storage.txt"; char guild_storage_txt[1024] = "save/g_storage.txt"; static struct dbt *storage_db; static struct dbt *guild_storage_db; -// qÉf[^ð¶ñÉÏ· +// å庫ããŒã¿ãæååã«å€æ int storage_tostr (char *str, struct storage *p) { int i, f = 0; @@ -49,7 +49,7 @@ int storage_tostr (char *str, struct storage *p) return 0; } -// ¶ñðqÉf[^ÉÏ· +// æååãå庫ããŒã¿ã«å€æ int storage_fromstr (char *str, struct storage *p) { int tmp_int[256]; @@ -215,7 +215,7 @@ int guild_storage_fromstr (char *str, struct guild_storage *p) return 0; } -// AJEg©çqÉf[^CfbNXðŸéiVKqÉÇÁÂ\j +// ã¢ã«ãŠã³ãããå庫ããŒã¿ã€ã³ããã¯ã¹ãåŸãïŒæ°èŠå庫远å å¯èœïŒ struct storage *account2storage (int account_id) { struct storage *s; @@ -260,7 +260,7 @@ struct guild_storage *guild2storage (int guild_id) } //--------------------------------------------------------- -// qÉf[^ðÇÝÞ +// å庫ããŒã¿ãèªã¿èŸŒã int inter_storage_init () { char line[65536]; @@ -375,7 +375,7 @@ int inter_storage_save_sub (void *key, void *data, va_list ap) } //--------------------------------------------------------- -// qÉf[^ð«Þ +// å庫ããŒã¿ãæžã蟌ã int inter_storage_save () { FILE *fp; @@ -413,7 +413,7 @@ int inter_guild_storage_save_sub (void *key, void *data, va_list ap) } //--------------------------------------------------------- -// qÉf[^ð«Þ +// å庫ããŒã¿ãæžã蟌ã int inter_guild_storage_save () { FILE *fp; @@ -434,7 +434,7 @@ int inter_guild_storage_save () return 0; } -// qÉf[^í +// å庫ããŒã¿åé€ int inter_storage_delete (int account_id) { struct storage *s = @@ -447,7 +447,7 @@ int inter_storage_delete (int account_id) return 0; } -// MhqÉf[^í +// ã®ã«ãå庫ããŒã¿åé€ int inter_guild_storage_delete (int guild_id) { struct guild_storage *gs = @@ -461,9 +461,9 @@ int inter_guild_storage_delete (int guild_id) } //--------------------------------------------------------- -// map serverÖÌÊM +// map serverãžã®éä¿¡ -// qÉf[^ÌM +// å庫ããŒã¿ã®éä¿¡ int mapif_load_storage (int fd, int account_id) { struct storage *s = account2storage (account_id); @@ -475,7 +475,7 @@ int mapif_load_storage (int fd, int account_id) return 0; } -// qÉf[^Û¶®¹M +// å庫ããŒã¿ä¿åå®äºéä¿¡ int mapif_save_storage_ack (int fd, int account_id) { WFIFOW (fd, 0) = 0x3811; @@ -519,16 +519,16 @@ int mapif_save_guild_storage_ack (int fd, int account_id, int guild_id, } //--------------------------------------------------------- -// map server©çÌÊM +// map serverããã®éä¿¡ -// qÉf[^vóM +// å庫ããŒã¿èŠæ±åä¿¡ int mapif_parse_LoadStorage (int fd) { mapif_load_storage (fd, RFIFOL (fd, 2)); return 0; } -// qÉf[^óMÛ¶ +// å庫ããŒã¿åä¿¡ïŒä¿å int mapif_parse_SaveStorage (int fd) { struct storage *s; @@ -578,11 +578,11 @@ int mapif_parse_SaveGuildStorage (int fd) return 0; } -// map server ©çÌÊM -// EPpPbgÌÝðÍ·é±Æ -// EpPbg·f[^Íinter.cÉZbgµÄš±Æ -// EpPbg·`FbNâARFIFOSKIPÍÄÑoµ³ÅsíêéÌÅsÁÄÍÈçÈ¢ -// EG[Èç0(false)A»€ÅÈ¢Èç1(true)𩊳ȯêÎÈçÈ¢ +// map server ããã®éä¿¡ +// ã»ïŒãã±ããã®ã¿è§£æããããš +// ã»ãã±ããé·ããŒã¿ã¯inter.cã«ã»ããããŠããããš +// ã»ãã±ããé·ãã§ãã¯ããRFIFOSKIPã¯åŒã³åºãå
ã§è¡ãããã®ã§è¡ã£ãŠã¯ãªããªã +// ã»ãšã©ãŒãªã0(false)ãããã§ãªããªã1(true)ãããããªããã°ãªããªã int inter_storage_parse_frommap (int fd) { switch (RFIFOW (fd, 0)) diff --git a/src/char/inter.c b/src/char/inter.c index 19e1d83..89a3e39 100644 --- a/src/char/inter.c +++ b/src/char/inter.c @@ -30,7 +30,7 @@ struct accreg int party_share_level = 10; -// MpPbg·Xg +// éä¿¡ãã±ããé·ãªã¹ã int inter_send_packet_length[] = { -1, -1, 27, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 7, 0, 0, 0, 0, 0, 0, -1, 11, 0, 0, 0, 0, 0, 0, @@ -43,7 +43,7 @@ int inter_send_packet_length[] = { 11, -1, 7, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; -// óMpPbg·Xg +// åä¿¡ãã±ããé·ãªã¹ã int inter_recv_packet_length[] = { -1, -1, 7, -1, -1, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, -1, 0, 0, 0, 0, 0, 0, 10, -1, 0, 0, 0, 0, 0, 0, @@ -67,7 +67,7 @@ static int wis_dellist[WISDELLIST_MAX], wis_delnum; //-------------------------------------------------------- -// AJEgÏð¶ñÖÏ· +// ã¢ã«ãŠã³ãå€æ°ãæååãžå€æ int inter_accreg_tostr (char *str, struct accreg *reg) { int j; @@ -82,7 +82,7 @@ int inter_accreg_tostr (char *str, struct accreg *reg) return 0; } -// AJEgÏð¶ñ©çÏ· +// ã¢ã«ãŠã³ãå€æ°ãæååããå€æ int inter_accreg_fromstr (const char *str, struct accreg *reg) { int j, v, n; @@ -105,7 +105,7 @@ int inter_accreg_fromstr (const char *str, struct accreg *reg) return 0; } -// AJEgÏÌÇÝÝ +// ã¢ã«ãŠã³ãå€æ°ã®èªã¿èŸŒã¿ int inter_accreg_init () { char line[8192]; @@ -145,7 +145,7 @@ int inter_accreg_init () return 0; } -// AJEgÏÌZ[up +// ã¢ã«ãŠã³ãå€æ°ã®ã»ãŒãçš int inter_accreg_save_sub (void *key, void *data, va_list ap) { char line[8192]; @@ -162,7 +162,7 @@ int inter_accreg_save_sub (void *key, void *data, va_list ap) return 0; } -// AJEgÏÌZ[u +// ã¢ã«ãŠã³ãå€æ°ã®ã»ãŒã int inter_accreg_save () { FILE *fp; @@ -184,7 +184,7 @@ int inter_accreg_save () //-------------------------------------------------------- /*========================================== - * Ýèt@CðÇÝÞ + * èšå®ãã¡ã€ã«ãèªã¿èŸŒã *------------------------------------------ */ int inter_config_read (const char *cfgName) @@ -251,7 +251,7 @@ int inter_config_read (const char *cfgName) return 0; } -// O«oµ +// ãã°æžãåºã int inter_log (char *fmt, ...) { FILE *logfp; @@ -269,7 +269,7 @@ int inter_log (char *fmt, ...) return 0; } -// Z[u +// ã»ãŒã int inter_save () { inter_party_save (); @@ -281,7 +281,7 @@ int inter_save () return 0; } -// ú» +// åæå int inter_init (const char *file) { inter_config_read (file); @@ -296,7 +296,7 @@ int inter_init (const char *file) return 0; } -// }bvT[o[Ú± +// ããããµãŒããŒæ¥ç¶ int inter_mapif_init (int fd) { inter_guild_mapif_init (fd); @@ -307,7 +307,7 @@ int inter_mapif_init (int fd) //-------------------------------------------------------- // sended packets to map-server -// GMbZ[WM +// GMã¡ãã»ãŒãžéä¿¡ int mapif_GMmessage (unsigned char *mes, int len) { unsigned char buf[len]; @@ -351,7 +351,7 @@ int mapif_wis_end (struct WisData *wd, int flag) return 0; } -// AJEgÏM +// ã¢ã«ãŠã³ãå€æ°éä¿¡ int mapif_account_reg (int fd, unsigned char *src) { unsigned char buf[WBUFW (src, 2)]; @@ -363,7 +363,7 @@ int mapif_account_reg (int fd, unsigned char *src) return 0; } -// AJEgÏvÔM +// ã¢ã«ãŠã³ãå€æ°èŠæ±è¿ä¿¡ int mapif_account_reg_reply (int fd, int account_id) { struct accreg *reg = numdb_search (accreg_db, account_id); @@ -433,7 +433,7 @@ int check_ttl_wisdata () //-------------------------------------------------------- // received packets from map-server -// GMbZ[WM +// GMã¡ãã»ãŒãžéä¿¡ int mapif_parse_GMmessage (int fd) { mapif_GMmessage (RFIFOP (fd, 4), RFIFOW (fd, 2)); @@ -542,7 +542,7 @@ int mapif_parse_WisToGM (int fd) return 0; } -// AJEgÏÛ¶v +// ã¢ã«ãŠã³ãå€æ°ä¿åèŠæ± int mapif_parse_AccReg (int fd) { int j, p; @@ -567,12 +567,12 @@ int mapif_parse_AccReg (int fd) } reg->reg_num = j; - mapif_account_reg (fd, RFIFOP (fd, 0)); // ŒÌMAPT[o[ÉM + mapif_account_reg (fd, RFIFOP (fd, 0)); // ä»ã®MAPãµãŒããŒã«éä¿¡ return 0; } -// AJEgÏMv +// ã¢ã«ãŠã³ãå€æ°éä¿¡èŠæ± int mapif_parse_AccRegRequest (int fd) { // printf("mapif: accreg request\n"); @@ -581,15 +581,15 @@ int mapif_parse_AccRegRequest (int fd) //-------------------------------------------------------- -// map server ©çÌÊMiPpPbgÌÝðÍ·é±Æj -// G[Èç0(false)AÅ«œÈç1A -// pPbg·ª«èȯêÎ2𩊳ȯêÎÈçÈ¢ +// map server ããã®éä¿¡ïŒïŒãã±ããã®ã¿è§£æããããšïŒ +// ãšã©ãŒãªã0(false)ãåŠçã§ãããªã1ã +// ãã±ããé·ã足ããªããã°2ãããããªããã°ãªããªã int inter_parse_frommap (int fd) { int cmd = RFIFOW (fd, 0); int len = 0; - // interIÇ©ð²×é + // interé¯ç®¡èœãã調ã¹ã if (cmd < 0x3000 || cmd >= 0x3000 + @@ -597,7 +597,7 @@ int inter_parse_frommap (int fd) sizeof (inter_recv_packet_length[0]))) return 0; - // pPbg·ð²×é + // ãã±ããé·ã調ã¹ã if ((len = inter_check_length (fd, inter_recv_packet_length[cmd - 0x3000])) == 0) @@ -637,18 +637,18 @@ int inter_parse_frommap (int fd) return 1; } -// RFIFOÌpPbg·mF -// KvpPbg·ª êÎpPbg·AÜŸ«èȯêÎ0 +// RFIFOã®ãã±ããé·ç¢ºèª +// å¿
èŠãã±ããé·ãããã°ãã±ããé·ããŸã 足ããªããã°0 int inter_check_length (int fd, int length) { if (length == -1) - { // ÂÏpPbg· - if (RFIFOREST (fd) < 4) // pPbg·ª¢
+ { // å¯å€ãã±ããé· + if (RFIFOREST (fd) < 4) // ãã±ããé·ãæªç return 0; length = RFIFOW (fd, 2); } - if (RFIFOREST (fd) < length) // pPbgª¢
+ if (RFIFOREST (fd) < length) // ãã±ãããæªç return 0; return length; diff --git a/src/char_sql/char.c b/src/char_sql/char.c index b9c8de3..4bfce6d 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -1715,7 +1715,7 @@ int parse_tologin (int fd) } break; - // account_reg2ÏXÊm + // account_reg2å€æŽéç¥ case 0x2729: if (RFIFOREST (fd) < 4 || RFIFOREST (fd) < RFIFOW (fd, 2)) return 0; @@ -1732,7 +1732,7 @@ int parse_tologin (int fd) reg[j].value = RFIFOL (fd, p + 32); } // set_account_reg2(acc,j,reg); - // ¯COCðÖ~µÄ¢êÎéKvͳ¢ + // åå¢ãã°ã€ã³ãçŠæ¢ããŠããã°éãå¿
èŠã¯ç¡ã memcpy (buf, RFIFOP (fd, 0), RFIFOW (fd, 2)); WBUFW (buf, 0) = 0x2b11; mapif_sendall (buf, WBUFW (buf, 2)); @@ -2135,7 +2135,7 @@ int parse_frommap (int fd) break; */ - // account_regÛ¶v + // account_regä¿åèŠæ± case 0x2b10: if (RFIFOREST (fd) < 4 || RFIFOREST (fd) < RFIFOW (fd, 2)) return 0; @@ -2151,7 +2151,7 @@ int parse_frommap (int fd) reg[j].value = RFIFOL (fd, p + 32); } // set_account_reg2(acc,j,reg); - // loginT[o[Öé + // loginãµãŒããŒãžéã if (login_fd > 0) { // don't send request if no login-server WFIFOW (login_fd, 0) = 0x2728; @@ -2159,7 +2159,7 @@ int parse_frommap (int fd) RFIFOW (fd, 2)); WFIFOSET (login_fd, WFIFOW (login_fd, 2)); } - // [hÖ̯COCªÈ¯êÎmapT[o[ÉéKvÍÈ¢ + // ã¯ãŒã«ããžã®åå¢ãã°ã€ã³ããªããã°mapãµãŒããŒã«éãå¿
èŠã¯ãªã //memcpy(buf,RFIFOP(fd,0),RFIFOW(fd,2)); //WBUFW(buf,0)=0x2b11; //mapif_sendall(buf,WBUFW(buf,2)); @@ -3241,7 +3241,7 @@ int check_connect_login_server (int tid, unsigned int tick, int id, int data) //---------------------------------------------------------- // Return numerical value of a switch configuration by [Yor] -// on/off, english, français, deutsch, español +// on/off, english, franè»is, deutsch, espaî«l //---------------------------------------------------------- int config_switch (const char *str) { @@ -3700,7 +3700,7 @@ int do_init (int argc, char **argv) printf ("charserver configuration reading done.....\n"); - inter_init ((argc > 2) ? argv[2] : inter_cfgName); // inter server ÃʱâÈ + inter_init ((argc > 2) ? argv[2] : inter_cfgName); // inter server ïŸïŸïœ±ç¯³ïœ printf ("interserver configuration reading done.....\n"); printf ("start char server initializing.....\n"); diff --git a/src/char_sql/int_guild.c b/src/char_sql/int_guild.c index 5030b41..7b363a1 100644 --- a/src/char_sql/int_guild.c +++ b/src/char_sql/int_guild.c @@ -856,7 +856,7 @@ int guild_check_empty (struct guild *g) } } - // Nà¢È¢ÌÅðU + // 誰ãããªãã®ã§è§£æ£ mapif_guild_broken (g->guild_id, 0); inter_guild_storage_delete (g->guild_id); inter_guild_tosql (g, 255); @@ -872,23 +872,23 @@ int guild_nextexp (int level) return 0; } -// MhXLª é©mF +// ã®ã«ãã¹ãã«ããããç¢ºèª int guild_checkskill (struct guild *g, int id) { return g->skill[id - 10000].lv; } -// MhÌîñÌÄvZ +// ã®ã«ãã®æ
å ±ã®åèšç® int guild_calcinfo (struct guild *g) { int i, c, nextexp; struct guild before = *g; - // XLIDÌÝè + // ã¹ãã«IDã®èšå® for (i = 0; i < 5; i++) g->skill[i].id = i + 10000; - // Mhx + // ã®ã«ãã¬ãã« if (g->guild_lv <= 0) g->guild_lv = 1; nextexp = guild_nextexp (g->guild_lv); @@ -903,13 +903,13 @@ int guild_calcinfo (struct guild *g) } } - // MhÌÌo±l + // ã®ã«ãã®æ¬¡ã®çµéšå€ g->next_exp = guild_nextexp (g->guild_lv); - // oãÀiMhg£Kpj + // ã¡ã³ãäžéïŒã®ã«ãæ¡åŒµé©çšïŒ g->max_member = 100 + guild_checkskill (g, 10004) * 2; // Updated max_members [PoW] - // œÏxÆICl + // å¹³åã¬ãã«ãšãªã³ã©ã€ã³äººæ° g->average_lv = 0; g->connect_member = 0; for (i = c = 0; i < g->max_member; i++) @@ -925,7 +925,7 @@ int guild_calcinfo (struct guild *g) } g->average_lv /= c; - // Sf[^ðéKvª 軀 + // å
šããŒã¿ãéãå¿
èŠããããã if (g->max_member != before.max_member || g->guild_lv != before.guild_lv || g->skill_point != before.skill_point) @@ -938,9 +938,9 @@ int guild_calcinfo (struct guild *g) } //------------------------------------------------------------------- -// map serverÖÌÊM +// map serverãžã®éä¿¡ -// Mhì¬ÂÛ +// ã®ã«ãäœæå¯åŠ int mapif_guild_created (int fd, int account_id, struct guild *g) { WFIFOW (fd, 0) = 0x3830; @@ -958,7 +958,7 @@ int mapif_guild_created (int fd, int account_id, struct guild *g) return 0; } -// Mhîñ©Â©çž +// ã®ã«ãæ
å ±èŠã€ããã int mapif_guild_noinfo (int fd, int guild_id) { WFIFOW (fd, 0) = 0x3831; @@ -969,7 +969,7 @@ int mapif_guild_noinfo (int fd, int guild_id) return 0; } -// MhîñÜÆßè +// ã®ã«ãæ
å ±ãŸãšãéã int mapif_guild_info (int fd, struct guild *g) { unsigned char buf[16384]; @@ -985,7 +985,7 @@ int mapif_guild_info (int fd, struct guild *g) return 0; } -// oÇÁÂÛ +// ã¡ã³ãè¿œå å¯åŠ int mapif_guild_memberadded (int fd, int guild_id, int account_id, int char_id, int flag) { @@ -998,7 +998,7 @@ int mapif_guild_memberadded (int fd, int guild_id, int account_id, return 0; } -// EÞ/ÇúÊm +// è±é/è¿œæŸéç¥ int mapif_guild_leaved (int guild_id, int account_id, int char_id, int flag, const char *name, const char *mes) { @@ -1016,7 +1016,7 @@ int mapif_guild_leaved (int guild_id, int account_id, int char_id, int flag, return 0; } -// ICóÔÆLvXVÊm +// ãªã³ã©ã€ã³ç¶æ
ãšLvæŽæ°éç¥ int mapif_guild_memberinfoshort (struct guild *g, int idx) { unsigned char buf[32]; @@ -1031,7 +1031,7 @@ int mapif_guild_memberinfoshort (struct guild *g, int idx) return 0; } -// ðUÊm +// 解æ£éç¥ int mapif_guild_broken (int guild_id, int flag) { unsigned char buf[16]; @@ -1043,7 +1043,7 @@ int mapif_guild_broken (int guild_id, int flag) return 0; } -// MhàŸ +// ã®ã«ãå
çºèš int mapif_guild_message (int guild_id, int account_id, char *mes, int len) { unsigned char buf[512]; @@ -1056,7 +1056,7 @@ int mapif_guild_message (int guild_id, int account_id, char *mes, int len) return 0; } -// Mhî{îñÏXÊm +// ã®ã«ãåºæ¬æ
å ±å€æŽéç¥ int mapif_guild_basicinfochanged (int guild_id, int type, const void *data, int len) { @@ -1070,7 +1070,7 @@ int mapif_guild_basicinfochanged (int guild_id, int type, const void *data, return 0; } -// MhoîñÏXÊm +// ã®ã«ãã¡ã³ãæ
å ±å€æŽéç¥ int mapif_guild_memberinfochanged (int guild_id, int account_id, int char_id, int type, const void *data, int len) { @@ -1086,7 +1086,7 @@ int mapif_guild_memberinfochanged (int guild_id, int account_id, int char_id, return 0; } -// MhXLAbvÊm +// ã®ã«ãã¹ãã«ã¢ããéç¥ int mapif_guild_skillupack (int guild_id, int skill_num, int account_id) { unsigned char buf[16]; @@ -1098,7 +1098,7 @@ int mapif_guild_skillupack (int guild_id, int skill_num, int account_id) return 0; } -// Mh¯¿/GÎÊm +// ã®ã«ãåç/æµå¯Ÿéç¥ int mapif_guild_alliance (int guild_id1, int guild_id2, int account_id1, int account_id2, int flag, const char *name1, const char *name2) @@ -1116,7 +1116,7 @@ int mapif_guild_alliance (int guild_id1, int guild_id2, int account_id1, return 0; } -// MhðEÏXÊm +// ã®ã«ã圹è·å€æŽéç¥ int mapif_guild_position (struct guild *g, int idx) { unsigned char buf[128]; @@ -1130,7 +1130,7 @@ int mapif_guild_position (struct guild *g, int idx) return 0; } -// MhmÏXÊm +// ã®ã«ãåç¥å€æŽéç¥ int mapif_guild_notice (struct guild *g) { unsigned char buf[256]; @@ -1142,7 +1142,7 @@ int mapif_guild_notice (struct guild *g) return 0; } -// MhGuÏXÊm +// ã®ã«ããšã³ãã¬ã å€æŽéç¥ int mapif_guild_emblem (struct guild *g) { unsigned char buf[2048]; @@ -1235,9 +1235,9 @@ int mapif_guild_castle_alldataload (int fd) } //------------------------------------------------------------------- -// map server©çÌÊM +// map serverããã®éä¿¡ -// Mhì¬v +// ã®ã«ãäœæèŠæ± int mapif_parse_CreateGuild (int fd, int account_id, char *name, struct guild_member *master) { @@ -1362,7 +1362,7 @@ int mapif_parse_GuildLeave (int fd, int guild_id, int account_id, int char_id, printf ("%d %s\n", i, g->member[i].name); if (flag) - { // ÇúÌêÇúXgÉüêé + { // è¿œæŸã®å Žåè¿œæŸãªã¹ãã«å
¥ãã int j; for (j = 0; j < MAX_GUILDEXPLUSION; j++) { @@ -1370,7 +1370,7 @@ int mapif_parse_GuildLeave (int fd, int guild_id, int account_id, int char_id, break; } if (j == MAX_GUILDEXPLUSION) - { // êtÈÌÅâÌðÁ· + { // äžæ¯ãªã®ã§å€ãã®ãæ¶ã for (j = 0; j < MAX_GUILDEXPLUSION - 1; j++) g->explusion[j] = g->explusion[j + 1]; j = MAX_GUILDEXPLUSION - 1; @@ -1388,10 +1388,10 @@ int mapif_parse_GuildLeave (int fd, int guild_id, int account_id, int char_id, memset (&g->member[i], 0, sizeof (struct guild_member)); if (guild_check_empty (g) == 0) - mapif_guild_info (-1, g); // ÜŸlª¢éÌÅf[^M + mapif_guild_info (-1, g); // ãŸã 人ãããã®ã§ããŒã¿éä¿¡ /* * else - * inter_guild_save(); // ðUµœÌÅêZ[u + * inter_guild_save(); // 解æ£ããã®ã§äžå¿ã»ãŒã * return 0; */ } } @@ -1451,7 +1451,7 @@ int mapif_parse_GuildChangeMemberInfoShort (int fd, int guild_id, if (g->member[i].online) g->connect_member++; } - // œÏx + // å¹³åã¬ãã« g->average_lv = alv / c; inter_guild_tosql (g, 3); // Change guild & guild_member @@ -1547,14 +1547,14 @@ int mapif_parse_BreakGuild (int fd, int guild_id) return 0; } -// MhbZ[WM +// ã®ã«ãã¡ãã»ãŒãžéä¿¡ int mapif_parse_GuildMessage (int fd, int guild_id, int account_id, char *mes, int len) { return mapif_guild_message (guild_id, account_id, mes, len); } -// Mhî{f[^ÏXv +// ã®ã«ãåºæ¬ããŒã¿å€æŽèŠæ± int mapif_parse_GuildBasicInfoChange (int fd, int guild_id, int type, const char *data, int len) { @@ -1594,7 +1594,7 @@ int mapif_parse_GuildBasicInfoChange (int fd, int guild_id, return 0; } -// Mhof[^ÏXv +// ã®ã«ãã¡ã³ãããŒã¿å€æŽèŠæ± int mapif_parse_GuildMemberInfoChange (int fd, int guild_id, int account_id, int char_id, int type, const char *data, int len) @@ -1622,7 +1622,7 @@ int mapif_parse_GuildMemberInfoChange (int fd, int guild_id, int account_id, } switch (type) { - case GMI_POSITION: // ðE + case GMI_POSITION: // åœ¹è· g->member[i].position = *((int *) data); break; case GMI_EXP: @@ -1630,7 +1630,7 @@ int mapif_parse_GuildMemberInfoChange (int fd, int guild_id, int account_id, int exp, oldexp = g->member[i].exp; exp = g->member[i].exp = *((unsigned int *) data); g->exp += (exp - oldexp); - guild_calcinfo (g); // LvAbv»f + guild_calcinfo (g); // Lvã¢ããå€æ mapif_guild_basicinfochanged (guild_id, GBI_EXP, &g->exp, 4); } break; default: @@ -1644,7 +1644,7 @@ int mapif_parse_GuildMemberInfoChange (int fd, int guild_id, int account_id, return 0; } -// MhðEŒÏXv +// ã®ã«ã圹è·åå€æŽèŠæ± int mapif_parse_GuildPosition (int fd, int guild_id, int idx, struct guild_position *p) { @@ -1664,7 +1664,7 @@ int mapif_parse_GuildPosition (int fd, int guild_id, int idx, return 0; } -// MhXLAbvv +// ã®ã«ãã¹ãã«ã¢ããèŠæ± int mapif_parse_GuildSkillUp (int fd, int guild_id, int skill_num, int account_id) { @@ -1691,7 +1691,7 @@ int mapif_parse_GuildSkillUp (int fd, int guild_id, int skill_num, return 0; } -// Mh¯¿v +// ã®ã«ãåçèŠæ± int mapif_parse_GuildAlliance (int fd, int guild_id1, int guild_id2, int account_id1, int account_id2, int flag) { @@ -1722,7 +1722,7 @@ int mapif_parse_GuildAlliance (int fd, int guild_id1, int guild_id2, } } else - { // ÖWðÁ + { // é¢ä¿è§£æ¶ for (i = 0; i < 2 - (flag & 1); i++) { for (j = 0; j < MAX_GUILDALLIANCE; j++) @@ -1741,7 +1741,7 @@ int mapif_parse_GuildAlliance (int fd, int guild_id1, int guild_id2, return 0; } -// MhmÏXv +// ã®ã«ãåç¥å€æŽèŠæ± int mapif_parse_GuildNotice (int fd, int guild_id, const char *mes1, const char *mes2) { @@ -1757,7 +1757,7 @@ int mapif_parse_GuildNotice (int fd, int guild_id, const char *mes1, return mapif_guild_notice (g); } -// MhGuÏXv +// ã®ã«ããšã³ãã¬ã å€æŽèŠæ± int mapif_parse_GuildEmblem (int fd, int len, int guild_id, int dummy, const char *data) { @@ -1996,18 +1996,18 @@ int mapif_parse_GuildCastleDataSave (int fd, int castle_id, int index, int value return mapif_guild_castle_datasave (gc->castle_id, index, value); } -// Mh`FbNv +// ã®ã«ããã§ãã¯èŠæ± int mapif_parse_GuildCheck (int fd, int guild_id, int account_id, int char_id) { // What does this mean? Check if belong to another guild? return 0; } -// map server ©çÌÊM -// EPpPbgÌÝðÍ·é±Æ -// EpPbg·f[^Íinter.cÉZbgµÄš±Æ -// EpPbg·`FbNâARFIFOSKIPÍÄÑoµ³ÅsíêéÌÅsÁÄÍÈçÈ¢ -// EG[Èç0(false)A»€ÅÈ¢Èç1(true)𩊳ȯêÎÈçÈ¢ +// map server ããã®éä¿¡ +// ã»ïŒãã±ããã®ã¿è§£æããããš +// ã»ãã±ããé·ããŒã¿ã¯inter.cã«ã»ããããŠããããš +// ã»ãã±ããé·ãã§ãã¯ããRFIFOSKIPã¯åŒã³åºãå
ã§è¡ãããã®ã§è¡ã£ãŠã¯ãªããªã +// ã»ãšã©ãŒãªã0(false)ãããã§ãªããªã1(true)ãããããªããã°ãªããªã int inter_guild_parse_frommap (int fd) { switch (RFIFOW (fd, 0)) @@ -2103,9 +2103,9 @@ int inter_guild_mapif_init (int fd) return mapif_guild_castle_alldataload (fd); } -// T[o[©çEÞviLípj +// ãµãŒããŒããè±éèŠæ±ïŒãã£ã©åé€çšïŒ int inter_guild_leave (int guild_id, int account_id, int char_id) { return mapif_parse_GuildLeave (-1, guild_id, account_id, char_id, 0, - "**T[o[œß**"); + "**ãµãŒããŒåœä»€**"); } diff --git a/src/char_sql/int_party.c b/src/char_sql/int_party.c index 0eccb83..45237de 100644 --- a/src/char_sql/int_party.c +++ b/src/char_sql/int_party.c @@ -368,7 +368,7 @@ struct party *search_partyname (char *str) return p; } -// EXPöœªzÅ«é©`FbN +// EXPå
¬å¹³åé
ã§ããããã§ã㯠int party_check_exp_share (struct party *p) { int i; @@ -415,9 +415,9 @@ int party_check_conflict (int party_id, int account_id, char *nick) } //------------------------------------------------------------------- -// map serverÖÌÊM +// map serverãžã®éä¿¡ -// p[eBì¬ÂÛ +// ããŒãã£äœæå¯åŠ int mapif_party_created (int fd, int account_id, struct party *p) { WFIFOW (fd, 0) = 0x3820; @@ -439,7 +439,7 @@ int mapif_party_created (int fd, int account_id, struct party *p) return 0; } -// p[eBîñ©Â©çž +// ããŒãã£æ
å ±èŠã€ããã int mapif_party_noinfo (int fd, int party_id) { WFIFOW (fd, 0) = 0x3821; @@ -450,7 +450,7 @@ int mapif_party_noinfo (int fd, int party_id) return 0; } -// p[eBîñÜÆßè +// ããŒãã£æ
å ±ãŸãšãéã int mapif_party_info (int fd, struct party *p) { unsigned char buf[1024]; @@ -465,7 +465,7 @@ int mapif_party_info (int fd, struct party *p) return 0; } -// p[eBoÇÁÂÛ +// ããŒãã£ã¡ã³ãè¿œå å¯åŠ int mapif_party_memberadded (int fd, int party_id, int account_id, int flag) { WFIFOW (fd, 0) = 0x3822; @@ -476,7 +476,7 @@ int mapif_party_memberadded (int fd, int party_id, int account_id, int flag) return 0; } -// p[eBÝèÏXÊm +// ããŒãã£èšå®å€æŽéç¥ int mapif_party_optionchanged (int fd, struct party *p, int account_id, int flag) { @@ -495,7 +495,7 @@ int mapif_party_optionchanged (int fd, struct party *p, int account_id, return 0; } -// p[eBEÞÊm +// ããŒãã£è±ééç¥ int mapif_party_leaved (int party_id, int account_id, char *name) { unsigned char buf[64]; @@ -508,7 +508,7 @@ int mapif_party_leaved (int party_id, int account_id, char *name) return 0; } -// p[eB}bvXVÊm +// ããŒãã£ãããæŽæ°éç¥ int mapif_party_membermoved (struct party *p, int idx) { unsigned char buf[32]; @@ -522,7 +522,7 @@ int mapif_party_membermoved (struct party *p, int idx) return 0; } -// p[eBðUÊm +// ããŒãã£è§£æ£éç¥ int mapif_party_broken (int party_id, int flag) { unsigned char buf[16]; @@ -534,7 +534,7 @@ int mapif_party_broken (int party_id, int flag) return 0; } -// p[eBàŸ +// ããŒãã£å
çºèš int mapif_party_message (int party_id, int account_id, char *mes, int len) { unsigned char buf[512]; @@ -548,7 +548,7 @@ int mapif_party_message (int party_id, int account_id, char *mes, int len) } //------------------------------------------------------------------- -// map server©çÌÊM +// map serverããã®éä¿¡ // Create Party int mapif_parse_CreateParty (int fd, int account_id, char *name, char *nick, @@ -588,7 +588,7 @@ int mapif_parse_CreateParty (int fd, int account_id, char *name, char *nick, return 0; } -// p[eBîñv +// ããŒãã£æ
å ±èŠæ± int mapif_parse_PartyInfo (int fd, int party_id) { struct party *p = party_pt; @@ -606,7 +606,7 @@ int mapif_parse_PartyInfo (int fd, int party_id) return 0; } -// p[eBÇÁv +// ããŒãã£è¿œå èŠæ± int mapif_parse_PartyAddMember (int fd, int party_id, int account_id, char *nick, char *map, int lv) { @@ -659,7 +659,7 @@ int mapif_parse_PartyAddMember (int fd, int party_id, int account_id, return 0; } -// p[eB[ÝèÏXv +// ããŒãã£ãŒèšå®å€æŽèŠæ± int mapif_parse_PartyChangeOption (int fd, int party_id, int account_id, int exp, int item) { @@ -694,7 +694,7 @@ int mapif_parse_PartyChangeOption (int fd, int party_id, int account_id, return 0; } -// p[eBEÞv +// ããŒãã£è±éèŠæ± int mapif_parse_PartyLeave (int fd, int party_id, int account_id) { char t_member[24]; @@ -776,7 +776,7 @@ int mapif_parse_PartyLeave (int fd, int party_id, int account_id) } } if (party_check_empty (p) == 0) - mapif_party_info (-1, p); // ÜŸlª¢éÌÅf[^M + mapif_party_info (-1, p); // ãŸã 人ãããã®ã§ããŒã¿éä¿¡ /* * else * inter_party_tosql(party_id,p); // Break the party if no member @@ -840,7 +840,7 @@ int mapif_parse_PartyChangeMap (int fd, int party_id, int account_id, return 0; } -// p[eBðUv +// ããŒãã£è§£æ£èŠæ± int mapif_parse_BreakParty (int fd, int party_id) { struct party *p; @@ -864,24 +864,24 @@ int mapif_parse_BreakParty (int fd, int party_id) return 0; } -// p[eBbZ[WM +// ããŒãã£ã¡ãã»ãŒãžéä¿¡ int mapif_parse_PartyMessage (int fd, int party_id, int account_id, char *mes, int len) { return mapif_party_message (party_id, account_id, mes, len); } -// p[eB`FbNv +// ããŒãã£ãã§ãã¯èŠæ± int mapif_parse_PartyCheck (int fd, int party_id, int account_id, char *nick) { return party_check_conflict (party_id, account_id, nick); } -// map server ©çÌÊM -// EPpPbgÌÝðÍ·é±Æ -// EpPbg·f[^Íinter.cÉZbgµÄš±Æ -// EpPbg·`FbNâARFIFOSKIPÍÄÑoµ³ÅsíêéÌÅsÁÄÍÈçÈ¢ -// EG[Èç0(false)A»€ÅÈ¢Èç1(true)𩊳ȯêÎÈçÈ¢ +// map server ããã®éä¿¡ +// ã»ïŒãã±ããã®ã¿è§£æããããš +// ã»ãã±ããé·ããŒã¿ã¯inter.cã«ã»ããããŠããããš +// ã»ãã±ããé·ãã§ãã¯ããRFIFOSKIPã¯åŒã³åºãå
ã§è¡ãããã®ã§è¡ã£ãŠã¯ãªããªã +// ã»ãšã©ãŒãªã0(false)ãããã§ãªããªã1(true)ãããããªããã°ãªããªã int inter_party_parse_frommap (int fd) { switch (RFIFOW (fd, 0)) @@ -928,7 +928,7 @@ int inter_party_parse_frommap (int fd) return 1; } -// T[o[©çEÞviLípj +// ãµãŒããŒããè±éèŠæ±ïŒãã£ã©åé€çšïŒ int inter_party_leave (int party_id, int account_id) { return mapif_parse_PartyLeave (-1, party_id, account_id); diff --git a/src/char_sql/int_storage.c b/src/char_sql/int_storage.c index 3dd0685..63198b1 100644 --- a/src/char_sql/int_storage.c +++ b/src/char_sql/int_storage.c @@ -234,7 +234,7 @@ int inter_storage_sql_init () return 1; } -// qÉf[^í +// å庫ããŒã¿åé€ int inter_storage_delete (int account_id) { sprintf (tmp_sql, "DELETE FROM `%s` WHERE `account_id`='%d'", storage_db, diff --git a/src/char_sql/inter.c b/src/char_sql/inter.c index 048d466..800beaf 100644 --- a/src/char_sql/inter.c +++ b/src/char_sql/inter.c @@ -15,8 +15,8 @@ #include "int_pet.h" #include "lock.h" -#define WISDATA_TTL (60*1000) // Wisf[^̶¶Ô(60b) -#define WISDELLIST_MAX 256 // Wisf[^íXgÌvf +#define WISDATA_TTL (60*1000) // WisããŒã¿ã®çåæé(60ç§) +#define WISDELLIST_MAX 256 // WisããŒã¿åé€ãªã¹ãã®èŠçŽ æ° struct accreg { @@ -601,13 +601,13 @@ int inter_parse_frommap (int fd) int cmd = RFIFOW (fd, 0); int len = 0; - // interIÇ©ð²×é + // interé¯ç®¡èœãã調ã¹ã if (cmd < 0x3000 || cmd >= 0x3000 + (sizeof (inter_recv_packet_length) / sizeof (inter_recv_packet_length [0]))) return 0; - // pPbg·ð²×é + // ãã±ããé·ã調ã¹ã if ((len = inter_check_length (fd, inter_recv_packet_length[cmd - 0x3000])) == 0) diff --git a/src/char_sql/itemdb.c b/src/char_sql/itemdb.c index 3e1c22d..ee0801f 100644 --- a/src/char_sql/itemdb.c +++ b/src/char_sql/itemdb.c @@ -16,7 +16,7 @@ #define MAX_RANDITEM 2000 // ** ITEMDB_OVERRIDE_NAME_VERBOSE ** -// è`·éÆAitemdb.txtÆgrfÅŒOªÙÈéêA\ŠµÜ·. +// å®çŸ©ãããšãitemdb.txtãšgrfã§ååãç°ãªãå Žåã衚瀺ããŸã. //#define ITEMDB_OVERRIDE_NAME_VERBOSE 1 char item_db_db[256] = "item_db"; // added to specify item_db sql table [Valaris] @@ -24,7 +24,7 @@ char item_db_db[256] = "item_db"; // added to specify item_db sql table [Valar static struct dbt *item_db; /*========================================== - * DBÌõ + * DBã®æ€çŽ¢ *------------------------------------------ */ struct item_data *itemdb_search (int nameid) @@ -93,7 +93,7 @@ int itemdb_isequip2 (struct item_data *data) } /*========================================== - * ACef[^x[XÌÇÝÝ + * ã¢ã€ãã ããŒã¿ããŒã¹ã®èªã¿èŸŒã¿ *------------------------------------------ */ static int itemdb_readdb (void) diff --git a/src/char_sql/itemdb.h b/src/char_sql/itemdb.h index 9f4274e..5d55c1b 100644 --- a/src/char_sql/itemdb.h +++ b/src/char_sql/itemdb.h @@ -18,8 +18,8 @@ struct item_data int look; int elv; int wlv; - char *use_script; // ñÆ©àS±ÌÅâ뀩ÈÆ - char *equip_script; // U,häÌ®«Ýèà±ÌÅÂ\©È? + char *use_script; // å埩ãšããå
šéšãã®äžã§ãããããªãš + char *equip_script; // æ»æ,é²åŸ¡ã®å±æ§èšå®ããã®äžã§å¯èœããª? char available; }; diff --git a/src/common/db.c b/src/common/db.c index 7a4fa70..07b08c8 100644 --- a/src/common/db.c +++ b/src/common/db.c @@ -211,7 +211,7 @@ static void db_rebalance (struct dbn *p, struct dbn **root) { p->color = RED; while (p != *root && p->parent->color == RED) - { // rootÍKžÅeÍÔ¢ÌÅeÌeÍKž¶Ý·é + { // rootã¯å¿
ãé»ã§èŠªã¯èµ€ãã®ã§èŠªã®èŠªã¯å¿
ãååšãã if (p->parent == p->parent->parent->left) { struct dbn *y = p->parent->parent->right; @@ -276,7 +276,7 @@ static void db_rebalance_erase (struct dbn *z, struct dbn **root) x = y->right; } if (y != z) - { // ¶EªŒûÜÁÄ¢œ yðzÌÊuÉÁÄ«Äzð©¹é + { // å·Šå³ãäž¡æ¹åãŸã£ãŠããæ yãzã®äœçœ®ã«æã£ãŠããŠzãæµ®ããã z->left->parent = y; y->left = z->left; if (y != z->right) @@ -305,7 +305,7 @@ static void db_rebalance_erase (struct dbn *z, struct dbn **root) y = z; } else - { // Ç¿ç©ó¢Ä¢œê xðzÌÊuÉÁÄ«Äzð©¹é + { // ã©ã¡ãã空ããŠããå Žå xãzã®äœçœ®ã«æã£ãŠããŠzãæµ®ããã x_parent = y->parent; if (x) x->parent = y->parent; @@ -316,9 +316,9 @@ static void db_rebalance_erase (struct dbn *z, struct dbn **root) else z->parent->right = x; } - // ±±ÜÅFÌڮ̢ÄÊíÌ2ªØƯ¶ + // ãããŸã§è²ã®ç§»åã®é€ããŠéåžžã®2åæšãšåã if (y->color != RED) - { // ÔªÁŠéªÉÍe¿³µ + { // èµ€ãæ¶ããåã«ã¯åœ±é¿ç¡ã while (x != *root && (x == NULL || x->color == BLACK)) if (x == x_parent->left) { @@ -498,7 +498,7 @@ void db_foreach (struct dbt *table, int (*func) (void *, void *, va_list), ...) { int i, sp; - // red-black treeÈÌÅ64Âstackª êÎ2^32Âm[hÜÅåäv + // red-black treeãªã®ã§64åstackãããã°2^32åããŒããŸã§å€§äžå€« struct dbn *p, *pn, *stack[64]; va_list ap; diff --git a/src/common/lock.c b/src/common/lock.c index 7409baf..bed657f 100644 --- a/src/common/lock.c +++ b/src/common/lock.c @@ -4,17 +4,17 @@ #include "lock.h" #include "socket.h" -// «Ýt@CÌÛì -// i«ÝªIíéÜÅAt@CðÛǵĚj +// æžã蟌ã¿ãã¡ã€ã«ã®ä¿è·åŠç +// ïŒæžã蟌ã¿ãçµãããŸã§ãæ§ãã¡ã€ã«ãä¿ç®¡ããŠããïŒ -// Vµ¢t@CÌ«ÝJn +// æ°ãããã¡ã€ã«ã®æžã蟌ã¿éå§ FILE *lock_fopen (const char *filename, int *info) { char newfile[512]; FILE *fp; int no = getpid (); - // ÀSÈt@CŒðŸéi貫j + // å®å
šãªãã¡ã€ã«åãåŸãïŒææãïŒ do { sprintf (newfile, "%s_%d.tmp", filename, no++); @@ -24,7 +24,7 @@ FILE *lock_fopen (const char *filename, int *info) return fopen_ (newfile, "w"); } -// t@CðíVt@Cðl[ +// æ§ãã¡ã€ã«ãåé€ïŒæ°ãã¡ã€ã«ããªããŒã int lock_fclose (FILE * fp, const char *filename, int *info) { int ret = 0; @@ -34,7 +34,7 @@ int lock_fclose (FILE * fp, const char *filename, int *info) ret = fclose_ (fp); sprintf (newfile, "%s_%d.tmp", filename, *info); remove (filename); - // ±Ì^C~OÅ¿éÆÅ«B + // ãã®ã¿ã€ãã³ã°ã§èœã¡ããšææªã rename (newfile, filename); return ret; } diff --git a/src/common/mmo.h b/src/common/mmo.h index 11d37b1..279bf4a 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -8,9 +8,9 @@ #include "utils.h" // LCCWIN32 #ifdef CYGWIN -#define RETCODE "\r\n" // (CR/LFFWindowsn) +#define RETCODE "\r\n" // (CR/LFïŒWindowsç³») #else -#define RETCODE "\n" // (LFFUnixnj +#define RETCODE "\n" // (LFïŒUnixç³»ïŒ #endif #define FIFOSIZE_SERVERLINK 256*1024 @@ -278,13 +278,13 @@ struct square enum { - GBI_EXP = 1, // MhÌEXP - GBI_GUILDLV = 2, // MhÌLv - GBI_SKILLPOINT = 3, // MhÌXL|Cg - GBI_SKILLLV = 4, // MhXLLv + GBI_EXP = 1, // ã®ã«ãã®EXP + GBI_GUILDLV = 2, // ã®ã«ãã®Lv + GBI_SKILLPOINT = 3, // ã®ã«ãã®ã¹ãã«ãã€ã³ã + GBI_SKILLLV = 4, // ã®ã«ãã¹ãã«Lv - GMI_POSITION = 0, // o[ÌðEÏX - GMI_EXP = 1, // o[ÌEXP + GMI_POSITION = 0, // ã¡ã³ããŒã®åœ¹è·å€æŽ + GMI_EXP = 1, // ã¡ã³ããŒã®EXP }; diff --git a/src/common/nullpo.c b/src/common/nullpo.c index daeca9f..3205293 100644 --- a/src/common/nullpo.c +++ b/src/common/nullpo.c @@ -2,13 +2,13 @@ #include <stdarg.h> #include <string.h> #include "nullpo.h" -// #include "logs.h" // zεÄÝé +// #include "logs.h" // åžç³ããŠã¿ã static void nullpo_info_core (const char *file, int line, const char *func, const char *fmt, va_list ap); /*====================================== - * Null`FbN yÑ îñoÍ + * Nullãã§ã㯠åã³ æ
å ±åºå *-------------------------------------- */ int nullpo_chk_f (const char *file, int line, const char *func, @@ -36,7 +36,7 @@ int nullpo_chk (const char *file, int line, const char *func, } /*====================================== - * nullpoîñoÍ(OÄoµü¯bp) + * nullpoæ
å ±åºå(å€éšåŒåºãåãã©ãã) *-------------------------------------- */ void nullpo_info_f (const char *file, int line, const char *func, @@ -55,7 +55,7 @@ void nullpo_info (const char *file, int line, const char *func) } /*====================================== - * nullpoîñoÍ(Main) + * nullpoæ
å ±åºå(Main) *-------------------------------------- */ static void nullpo_info_core (const char *file, int line, const char *func, @@ -74,13 +74,13 @@ static void nullpo_info_core (const char *file, int line, const char *func, { vprintf (fmt, ap); - // ÅãÉüsµœ©mF + // æåŸã«æ¹è¡ãããç¢ºèª if (fmt[strlen (fmt) - 1] != '\n') printf ("\n"); } } printf ("--- end nullpo info ----------------------------------------\n"); - // ±±çÅnullpoOðt@CÉ«o¹œç - // ÜÆßÄñoÅ«éÈÆvÁÄ¢œèB + // ãããã§nullpoãã°ããã¡ã€ã«ã«æžãåºããã + // ãŸãšããŠæåºã§ãããªãšæã£ãŠãããã } diff --git a/src/common/nullpo.h b/src/common/nullpo.h index bac92cd..baeacdc 100644 --- a/src/common/nullpo.h +++ b/src/common/nullpo.h @@ -2,8 +2,8 @@ #define _NULLPO_H_ #define NULLPO_CHECK 1 - // SÌÌXCb`ð韵Ģéwb_ª êÎ - // »±ÉÚ®µÄ¢œŸ¯éÆ + // å
šäœã®ã¹ã€ããã宣èšããŠããããããããã° + // ããã«ç§»åããŠããã ãããš #if __STDC_VERSION__ < 199901L # if __GNUC__ >= 2 @@ -24,52 +24,52 @@ *---------------------------------------------------------------------------- */ /*====================================== - * Null`FbN yÑ îñoÍã return - *EWJ·éÆifÆ©returnªoéÌÅ - * êsPÌÅgÁÄŸ³¢B - *Enullpo_ret(x = func()); - * Ìæ€Ègp@àzèµÄ¢Ü·B + * Nullãã§ã㯠åã³ æ
å ±åºååŸ return + *ã»å±éãããšifãšãreturnçãåºãã®ã§ + * äžè¡åäœã§äœ¿ã£ãŠãã ããã + *ã»nullpo_ret(x = func()); + * ã®ãããªäœ¿çšæ³ãæ³å®ããŠããŸãã *-------------------------------------- * nullpo_ret(t) - * ßèl 0Åè - * [ø] - * t `FbNÎÛ + * æ»ãå€ 0åºå® + * [åŒæ°] + * t ãã§ãã¯å¯Ÿè±¡ *-------------------------------------- * nullpo_retv(t) - * ßèl ȵ - * [ø] - * t `FbNÎÛ + * æ»ãå€ ãªã + * [åŒæ°] + * t ãã§ãã¯å¯Ÿè±¡ *-------------------------------------- * nullpo_retr(ret, t) - * ßèl wè - * [ø] + * æ»ãå€ æå® + * [åŒæ°] * ret return(ret); - * t `FbNÎÛ + * t ãã§ãã¯å¯Ÿè±¡ *-------------------------------------- * nullpo_ret_f(t, fmt, ...) - * Ú×îñoÍp - * ßèl 0 - * [ø] - * t `FbNÎÛ - * fmt ... vprintfÉn³êé - * õlâÖWÏÌ«oµÈÇÉ + * 詳现æ
å ±åºåçš + * æ»ãå€ 0 + * [åŒæ°] + * t ãã§ãã¯å¯Ÿè±¡ + * fmt ... vprintfã«æž¡ããã + * åèãé¢ä¿å€æ°ã®æžãåºããªã©ã« *-------------------------------------- * nullpo_retv_f(t, fmt, ...) - * Ú×îñoÍp - * ßèl ȵ - * [ø] - * t `FbNÎÛ - * fmt ... vprintfÉn³êé - * õlâÖWÏÌ«oµÈÇÉ + * 詳现æ
å ±åºåçš + * æ»ãå€ ãªã + * [åŒæ°] + * t ãã§ãã¯å¯Ÿè±¡ + * fmt ... vprintfã«æž¡ããã + * åèãé¢ä¿å€æ°ã®æžãåºããªã©ã« *-------------------------------------- * nullpo_retr_f(ret, t, fmt, ...) - * Ú×îñoÍp - * ßèl wè - * [ø] + * 詳现æ
å ±åºåçš + * æ»ãå€ æå® + * [åŒæ°] * ret return(ret); - * t `FbNÎÛ - * fmt ... vprintfÉn³êé - * õlâÖWÏÌ«oµÈÇÉ + * t ãã§ãã¯å¯Ÿè±¡ + * fmt ... vprintfã«æž¡ããã + * åèãé¢ä¿å€æ°ã®æžãåºããªã©ã« *-------------------------------------- */ @@ -84,9 +84,9 @@ #define nullpo_retr(ret, t) \ if (nullpo_chk(NLP_MARK, (void *)(t))) {return(ret);} -// ÂÏø}NÉÖ·éðRpC +// å¯å€åŒæ°ãã¯ãã«é¢ããæ¡ä»¶ã³ã³ãã€ã« #if __STDC_VERSION__ >= 199901L -/* C99ÉÎ */ +/* C99ã«å¯Ÿå¿ */ #define nullpo_ret_f(t, fmt, ...) \ if (nullpo_chk_f(NLP_MARK, (void *)(t), (fmt), __VA_ARGS__)) {return(0);} @@ -97,7 +97,7 @@ if (nullpo_chk_f(NLP_MARK, (void *)(t), (fmt), __VA_ARGS__)) {return(ret);} #elif __GNUC__ >= 2 -/* GCCp */ +/* GCCçš */ #define nullpo_ret_f(t, fmt, args...) \ if (nullpo_chk_f(NLP_MARK, (void *)(t), (fmt), ## args)) {return(0);} @@ -109,7 +109,7 @@ #else -/* »ÌŒÌêEEE orz */ +/* ãã®ä»ã®å Žåã»ã»ã» orz */ #endif @@ -117,28 +117,28 @@ /* No Nullpo check */ // if((t)){;} -// Ç¢û@ªv¢Â©È©ÁœÌÅEEEê÷ÌôÅ·B -// ê[jOÍoȢ͞ +// è¯ãæ¹æ³ãæãã€ããªãã£ãã®ã§ã»ã»ã»èŠèã®çã§ãã +// äžå¿ã¯ãŒãã³ã°ã¯åºãªãã¯ã #define nullpo_ret(t) if((t)){;} #define nullpo_retv(t) if((t)){;} #define nullpo_retr(ret, t) if((t)){;} -// ÂÏø}NÉÖ·éðRpC +// å¯å€åŒæ°ãã¯ãã«é¢ããæ¡ä»¶ã³ã³ãã€ã« #if __STDC_VERSION__ >= 199901L -/* C99ÉÎ */ +/* C99ã«å¯Ÿå¿ */ #define nullpo_ret_f(t, fmt, ...) if((t)){;} #define nullpo_retv_f(t, fmt, ...) if((t)){;} #define nullpo_retr_f(ret, t, fmt, ...) if((t)){;} #elif __GNUC__ >= 2 -/* GCCp */ +/* GCCçš */ #define nullpo_ret_f(t, fmt, args...) if((t)){;} #define nullpo_retv_f(t, fmt, args...) if((t)){;} #define nullpo_retr_f(ret, t, fmt, args...) if((t)){;} #else -/* »ÌŒÌêEEE orz */ +/* ãã®ä»ã®å Žåã»ã»ã» orz */ #endif #endif /* NULLPO_CHECK */ @@ -149,14 +149,14 @@ */ /*====================================== * nullpo_chk - * Null`FbN yÑ îñoÍ - * [ø] + * Nullãã§ã㯠åã³ æ
å ±åºå + * [åŒæ°] * file __FILE__ * line __LINE__ - * func __func__ (ÖŒ) - * ±êçÉÍ NLP_MARK ðg€Ææ¢ - * target `FbNÎÛ - * [Ôèl] + * func __func__ (é¢æ°å) + * ãããã«ã¯ NLP_MARK ã䜿ããšãã + * target ãã§ãã¯å¯Ÿè±¡ + * [è¿ãå€] * 0 OK * 1 NULL *-------------------------------------- @@ -166,16 +166,16 @@ int nullpo_chk (const char *file, int line, const char *func, /*====================================== * nullpo_chk_f - * Null`FbN yÑ Ú×ÈîñoÍ - * [ø] + * Nullãã§ã㯠å㳠詳现ãªæ
å ±åºå + * [åŒæ°] * file __FILE__ * line __LINE__ - * func __func__ (ÖŒ) - * ±êçÉÍ NLP_MARK ðg€Ææ¢ - * target `FbNÎÛ - * fmt ... vprintfÉn³êé - * õlâÖWÏÌ«oµÈÇÉ - * [Ôèl] + * func __func__ (é¢æ°å) + * ãããã«ã¯ NLP_MARK ã䜿ããšãã + * target ãã§ãã¯å¯Ÿè±¡ + * fmt ... vprintfã«æž¡ããã + * åèãé¢ä¿å€æ°ã®æžãåºããªã©ã« + * [è¿ãå€] * 0 OK * 1 NULL *-------------------------------------- @@ -186,26 +186,26 @@ int nullpo_chk_f (const char *file, int line, const char *func, /*====================================== * nullpo_info - * nullpoîñoÍ - * [ø] + * nullpoæ
å ±åºå + * [åŒæ°] * file __FILE__ * line __LINE__ - * func __func__ (ÖŒ) - * ±êçÉÍ NLP_MARK ðg€Ææ¢ + * func __func__ (é¢æ°å) + * ãããã«ã¯ NLP_MARK ã䜿ããšãã *-------------------------------------- */ void nullpo_info (const char *file, int line, const char *func); /*====================================== * nullpo_info_f - * nullpoÚ×îñoÍ - * [ø] + * nullpo詳现æ
å ±åºå + * [åŒæ°] * file __FILE__ * line __LINE__ - * func __func__ (ÖŒ) - * ±êçÉÍ NLP_MARK ðg€Ææ¢ - * fmt ... vprintfÉn³êé - * õlâÖWÏÌ«oµÈÇÉ + * func __func__ (é¢æ°å) + * ãããã«ã¯ NLP_MARK ã䜿ããšãã + * fmt ... vprintfã«æž¡ããã + * åèãé¢ä¿å€æ°ã®æžãåºããªã©ã« *-------------------------------------- */ void nullpo_info_f (const char *file, int line, const char *func, diff --git a/src/common/timer.c b/src/common/timer.c index d9552fe..fca6f42 100644 --- a/src/common/timer.c +++ b/src/common/timer.c @@ -253,7 +253,7 @@ int delete_timer (int id, int (*func) (int, unsigned int, int, int)) search_timer_func_list (func)); return -2; } - // »Ì€¿ÁŠéÉÜ©¹é + // ãã®ãã¡æ¶ããã«ãŸããã timer_data[id].func = NULL; timer_data[id].type = TIMER_ONCE_AUTODEL; timer_data[id].tick -= 60 * 60 * 1000; @@ -298,10 +298,10 @@ int do_timer (unsigned int tick) { if (DIFF_TICK (timer_data[i].tick, tick) < -1000) { - // 1bÈãÌåÈxª¶µÄ¢éÌÅA - // timer^C~Oð»ÝlÆ·éÅ - // ÄÑoµ^C~O(øÌtick)ÎŵÄé - // timerÖÌñ^C~Oðxç¹é + // 1ç§ä»¥äžã®å€§å¹
ãªé
延ãçºçããŠããã®ã§ã + // timeråŠçã¿ã€ãã³ã°ãçŸåšå€ãšããäºã§ + // åŒã³åºãæã¿ã€ãã³ã°(åŒæ°ã®tick)çžå¯Ÿã§åŠçããŠã + // timeré¢æ°ã®æ¬¡ååŠçã¿ã€ãã³ã°ãé
ããã timer_data[i].func (i, tick, timer_data[i].id, timer_data[i].data); } diff --git a/src/common/version.h b/src/common/version.h index 60c9fca..cd9808e 100644 --- a/src/common/version.h +++ b/src/common/version.h @@ -14,14 +14,14 @@ #define ATHENA_SERVER_INTER 4 // inter server #define ATHENA_SERVER_MAP 8 // map server -// ATHENA_MOD_VERSIONÍpb`ÔÅ·B -// ±êͳÉÏŠÈÄàCªü¢œçÏŠéöx̵¢ÅB -// iñAbv[hÌxÉÏX·éÌàÊ|ÆvíêéµA»à»à -// @±ÌÚðQÆ·élª¢é©Ç€©Å^⟩çBj -// »Ìöx̵¢ÈÌÅAT[o[Éâ¢í¹é€àA ÜÅÚÀöx̵¢Å -// ñÜèMpµÈ¢±ÆB -// IsnapshotÌâAå«ÈÏXª ÁœêÍÝèµÄÙµ¢Å·B -// CŸêÌdlãAÅÉ0ðt¯éÆ8iÉÈéÌÅÔáŠÈ¢Åº³¢B +// ATHENA_MOD_VERSIONã¯ãããçªå·ã§ãã +// ããã¯ç¡çã«å€ããªããŠãæ°ãåãããå€ããçšåºŠã®æ±ãã§ã +// ïŒæ¯åã¢ããããŒãã®åºŠã«å€æŽããã®ãé¢åãšæããããããããã +// ããã®é
ç®ãåç
§ãã人ããããã©ããã§çåã ãããïŒ +// ãã®çšåºŠã®æ±ããªã®ã§ããµãŒããŒã«åãåãããåŽãããããŸã§ç®å®çšåºŠã®æ±ã㧠+// ãããŸãä¿¡çšããªãããšã +// é¯snapshotã®æãã倧ããªå€æŽããã£ãå Žåã¯èšå®ããŠã»ããã§ãã +// Cèšèªã®ä»æ§äžãæåã«0ãä»ãããš8é²æ°ã«ãªãã®ã§ééããªãã§äžããã #define ATHENA_MOD_VERSION 1052 // mod version (patch No.) #endif diff --git a/src/login_sql/login.c b/src/login_sql/login.c index cc59f19..db58026 100644 --- a/src/login_sql/login.c +++ b/src/login_sql/login.c @@ -1707,7 +1707,7 @@ int parse_login (int fd) //------------------------------------------------- // Return numerical value of a switch configuration -// on/off, english, français, deutsch, español +// on/off, english, franè»is, deutsch, espaî«l //------------------------------------------------- int config_switch (const char *str) { diff --git a/src/map/battle.c b/src/map/battle.c index 9d868c7..f81aaf0 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -29,8 +29,8 @@ int attr_fix_table[4][10][10]; struct Battle_Config battle_config; /*========================================== - * ñ_ÔÌ£ðÔ· - * ßèÍ®Å0Èã + * äºç¹éã®è·é¢ãè¿ã + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ static int distance (int x0, int y0, int x1, int y1) @@ -43,8 +43,8 @@ static int distance (int x0, int y0, int x1, int y1) } /*========================================== - * ©ªðbNµÄ¢éÎÛÌðÔ·(Äp) - * ßèÍ®Å0Èã + * èªåãããã¯ããŠãã察象ã®æ°ãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_counttargeted (struct block_list *bl, struct block_list *src, @@ -60,8 +60,8 @@ int battle_counttargeted (struct block_list *bl, struct block_list *src, } /*========================================== - * ÎÛÌClassðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®Classãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_class (struct block_list *bl) @@ -76,8 +76,8 @@ int battle_get_class (struct block_list *bl) } /*========================================== - * ÎÛÌûüðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®æ¹åãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_dir (struct block_list *bl) @@ -92,8 +92,8 @@ int battle_get_dir (struct block_list *bl) } /*========================================== - * ÎÛÌxðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®ã¬ãã«ãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_lv (struct block_list *bl) @@ -108,8 +108,8 @@ int battle_get_lv (struct block_list *bl) } /*========================================== - * ÎÛÌËöðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®å°çšãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_range (struct block_list *bl) @@ -124,8 +124,8 @@ int battle_get_range (struct block_list *bl) } /*========================================== - * ÎÛÌHPðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®HPãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_hp (struct block_list *bl) @@ -140,8 +140,8 @@ int battle_get_hp (struct block_list *bl) } /*========================================== - * ÎÛÌMHPðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®MHPãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_max_hp (struct block_list *bl) @@ -183,8 +183,8 @@ int battle_get_max_hp (struct block_list *bl) } /*========================================== - * ÎÛÌStrðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®Strãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_str (struct block_list *bl) @@ -205,15 +205,15 @@ int battle_get_str (struct block_list *bl) && bl->type != BL_PC) str += 4; if (sc_data[SC_BLESSING].timer != -1 && bl->type != BL_PC) - { // ubVO + { // ãã¬ãã·ã³ã° int race = battle_get_race (bl); if (battle_check_undead (race, battle_get_elem_type (bl)) || race == 6) - str >>= 1; // « /s + str >>= 1; // æª é/äžæ» else - str += sc_data[SC_BLESSING].val1; // »ÌŒ + str += sc_data[SC_BLESSING].val1; // ãã®ä» } - if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // gD[TCg + if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // ãã¥ã«ãŒãµã€ã str += 5; } if (str < 0) @@ -222,8 +222,8 @@ int battle_get_str (struct block_list *bl) } /*========================================== - * ÎÛÌAgiðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®Agiãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ @@ -241,19 +241,19 @@ int battle_get_agi (struct block_list *bl) if (sc_data) { - if (sc_data[SC_INCREASEAGI].timer != -1 && sc_data[SC_QUAGMIRE].timer == -1 && sc_data[SC_DONTFORGETME].timer == -1 && bl->type != BL_PC) // ¬xÁ(PCÍpc.cÅ) + if (sc_data[SC_INCREASEAGI].timer != -1 && sc_data[SC_QUAGMIRE].timer == -1 && sc_data[SC_DONTFORGETME].timer == -1 && bl->type != BL_PC) // é床å¢å (PCã¯pc.cã§) agi += 2 + sc_data[SC_INCREASEAGI].val1; if (sc_data[SC_CONCENTRATE].timer != -1 && sc_data[SC_QUAGMIRE].timer == -1 && bl->type != BL_PC) agi += agi * (2 + sc_data[SC_CONCENTRATE].val1) / 100; - if (sc_data[SC_DECREASEAGI].timer != -1) // ¬xž + if (sc_data[SC_DECREASEAGI].timer != -1) // é床æžå° agi -= 2 + sc_data[SC_DECREASEAGI].val1; - if (sc_data[SC_QUAGMIRE].timer != -1) // N@O}CA + if (sc_data[SC_QUAGMIRE].timer != -1) // ã¯ã¡ã°ãã€ã¢ agi >>= 1; - if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // gD[TCg + if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // ãã¥ã«ãŒãµã€ã agi += 5; } if (agi < 0) @@ -262,8 +262,8 @@ int battle_get_agi (struct block_list *bl) } /*========================================== - * ÎÛÌVitðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®Vitãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_vit (struct block_list *bl) @@ -281,7 +281,7 @@ int battle_get_vit (struct block_list *bl) { if (sc_data[SC_STRIPARMOR].timer != -1 && bl->type != BL_PC) vit = vit * 60 / 100; - if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // gD[TCg + if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // ãã¥ã«ãŒãµã€ã vit += 5; } @@ -291,8 +291,8 @@ int battle_get_vit (struct block_list *bl) } /*========================================== - * ÎÛÌIntðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®Intãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_int (struct block_list *bl) @@ -310,17 +310,17 @@ int battle_get_int (struct block_list *bl) if (sc_data) { if (sc_data[SC_BLESSING].timer != -1 && bl->type != BL_PC) - { // ubVO + { // ãã¬ãã·ã³ã° int race = battle_get_race (bl); if (battle_check_undead (race, battle_get_elem_type (bl)) || race == 6) - int_ >>= 1; // « /s + int_ >>= 1; // æª é/äžæ» else - int_ += sc_data[SC_BLESSING].val1; // »ÌŒ + int_ += sc_data[SC_BLESSING].val1; // ãã®ä» } if (sc_data[SC_STRIPHELM].timer != -1 && bl->type != BL_PC) int_ = int_ * 60 / 100; - if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // gD[TCg + if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // ãã¥ã«ãŒãµã€ã int_ += 5; } if (int_ < 0) @@ -329,8 +329,8 @@ int battle_get_int (struct block_list *bl) } /*========================================== - * ÎÛÌDexðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®Dexãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_dex (struct block_list *bl) @@ -352,18 +352,18 @@ int battle_get_dex (struct block_list *bl) dex += dex * (2 + sc_data[SC_CONCENTRATE].val1) / 100; if (sc_data[SC_BLESSING].timer != -1 && bl->type != BL_PC) - { // ubVO + { // ãã¬ãã·ã³ã° int race = battle_get_race (bl); if (battle_check_undead (race, battle_get_elem_type (bl)) || race == 6) - dex >>= 1; // « /s + dex >>= 1; // æª é/äžæ» else - dex += sc_data[SC_BLESSING].val1; // »ÌŒ + dex += sc_data[SC_BLESSING].val1; // ãã®ä» } - if (sc_data[SC_QUAGMIRE].timer != -1) // N@O}CA + if (sc_data[SC_QUAGMIRE].timer != -1) // ã¯ã¡ã°ãã€ã¢ dex >>= 1; - if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // gD[TCg + if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // ãã¥ã«ãŒãµã€ã dex += 5; } if (dex < 0) @@ -372,8 +372,8 @@ int battle_get_dex (struct block_list *bl) } /*========================================== - * ÎÛÌLukðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®Lukãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_luk (struct block_list *bl) @@ -390,11 +390,11 @@ int battle_get_luk (struct block_list *bl) if (sc_data) { - if (sc_data[SC_GLORIA].timer != -1 && bl->type != BL_PC) // OA(PCÍpc.cÅ) + if (sc_data[SC_GLORIA].timer != -1 && bl->type != BL_PC) // ã°ããªã¢(PCã¯pc.cã§) luk += 30; - if (sc_data[SC_CURSE].timer != -1) // ô¢ + if (sc_data[SC_CURSE].timer != -1) // åªã luk = 0; - if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // gD[TCg + if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // ãã¥ã«ãŒãµã€ã luk += 5; } if (luk < 0) @@ -403,8 +403,8 @@ int battle_get_luk (struct block_list *bl) } /*========================================== - * ÎÛÌFleeðÔ·(Äp) - * ßèÍ®Å1Èã + * 察象ã®Fleeãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§1ä»¥äž *------------------------------------------ */ int battle_get_flee (struct block_list *bl) @@ -427,9 +427,9 @@ int battle_get_flee (struct block_list *bl) (sc_data[SC_WHISTLE].val3 >> 16)) / 100; if (sc_data[SC_BLIND].timer != -1 && bl->type != BL_PC) flee -= flee * 25 / 100; - if (sc_data[SC_WINDWALK].timer != -1 && bl->type != BL_PC) // EBhEH[N + if (sc_data[SC_WINDWALK].timer != -1 && bl->type != BL_PC) // ãŠã£ã³ããŠã©ãŒã¯ flee += flee * (sc_data[SC_WINDWALK].val2) / 100; - if (sc_data[SC_SPIDERWEB].timer != -1 && bl->type != BL_PC) //XpC_[EFu + if (sc_data[SC_SPIDERWEB].timer != -1 && bl->type != BL_PC) //ã¹ãã€ããŒãŠã§ã flee -= flee * 50 / 100; if (battle_is_unarmed (bl)) @@ -442,8 +442,8 @@ int battle_get_flee (struct block_list *bl) } /*========================================== - * ÎÛÌHitðÔ·(Äp) - * ßèÍ®Å1Èã + * 察象ã®Hitãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§1ä»¥äž *------------------------------------------ */ int battle_get_hit (struct block_list *bl) @@ -465,11 +465,11 @@ int battle_get_hit (struct block_list *bl) hit * (sc_data[SC_HUMMING].val1 * 2 + sc_data[SC_HUMMING].val2 + sc_data[SC_HUMMING].val3) / 100; - if (sc_data[SC_BLIND].timer != -1 && bl->type != BL_PC) // ô¢ + if (sc_data[SC_BLIND].timer != -1 && bl->type != BL_PC) // åªã hit -= hit * 25 / 100; - if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // gD[TCg + if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) // ãã¥ã«ãŒãµã€ã hit += 3 * (sc_data[SC_TRUESIGHT].val1); - if (sc_data[SC_CONCENTRATION].timer != -1 && bl->type != BL_PC) //RZg[V + if (sc_data[SC_CONCENTRATION].timer != -1 && bl->type != BL_PC) //ã³ã³ã»ã³ãã¬ãŒã·ã§ã³ hit += (hit * (10 * (sc_data[SC_CONCENTRATION].val1))) / 100; if (battle_is_unarmed (bl)) @@ -481,8 +481,8 @@ int battle_get_hit (struct block_list *bl) } /*========================================== - * ÎÛÌ®SñððÔ·(Äp) - * ßèÍ®Å1Èã + * 察象ã®å®å
šåé¿ãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§1ä»¥äž *------------------------------------------ */ int battle_get_flee2 (struct block_list *bl) @@ -518,8 +518,8 @@ int battle_get_flee2 (struct block_list *bl) } /*========================================== - * ÎÛÌNeBJðÔ·(Äp) - * ßèÍ®Å1Èã + * 察象ã®ã¯ãªãã£ã«ã«ãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§1ä»¥äž *------------------------------------------ */ int battle_get_critical (struct block_list *bl) @@ -547,7 +547,7 @@ int battle_get_critical (struct block_list *bl) sc_data[SC_FORTUNE].val3) * 10; if (sc_data[SC_EXPLOSIONSPIRITS].timer != -1 && bl->type != BL_PC) critical += sc_data[SC_EXPLOSIONSPIRITS].val2; - if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) //gD[TCg + if (sc_data[SC_TRUESIGHT].timer != -1 && bl->type != BL_PC) //ãã¥ã«ãŒãµã€ã critical += critical * sc_data[SC_TRUESIGHT].val1 / 100; } if (critical < 1) @@ -556,8 +556,8 @@ int battle_get_critical (struct block_list *bl) } /*========================================== - * base_atkÌæŸ - * ßèÍ®Å1Èã + * base_atkã®ååŸ + * æ»ãã¯æŽæ°ã§1ä»¥äž *------------------------------------------ */ int battle_get_baseatk (struct block_list *bl) @@ -568,31 +568,31 @@ int battle_get_baseatk (struct block_list *bl) nullpo_retr (1, bl); sc_data = battle_get_sc_data (bl); if (bl->type == BL_PC && (struct map_session_data *) bl) - batk = ((struct map_session_data *) bl)->base_atk; //Ýè³êÄ¢ébase_atk + batk = ((struct map_session_data *) bl)->base_atk; //èšå®ãããŠããbase_atk else - { //»êÈOÈç + { //ãã以å€ãªã int str, dstr; str = battle_get_str (bl); //STR dstr = str / 10; - batk = dstr * dstr + str; //base_atkðvZ·é + batk = dstr * dstr + str; //base_atkãèšç®ãã } if (sc_data) - { //óÔÙí è - if (sc_data[SC_PROVOKE].timer != -1 && bl->type != BL_PC) //PCÅv{bN(SM_PROVOKE)óÔ - batk = batk * (100 + 2 * sc_data[SC_PROVOKE].val1) / 100; //base_atkÁ - if (sc_data[SC_CURSE].timer != -1) //ôíêÄ¢œç - batk -= batk * 25 / 100; //base_atkª25%ž - if (sc_data[SC_CONCENTRATION].timer != -1 && bl->type != BL_PC) //RZg[V + { //ç¶æ
ç°åžžãã + if (sc_data[SC_PROVOKE].timer != -1 && bl->type != BL_PC) //PCã§ããããã¯(SM_PROVOKE)ç¶æ
+ batk = batk * (100 + 2 * sc_data[SC_PROVOKE].val1) / 100; //base_atkå¢å + if (sc_data[SC_CURSE].timer != -1) //åªãããŠããã + batk -= batk * 25 / 100; //base_atkã25%æžå° + if (sc_data[SC_CONCENTRATION].timer != -1 && bl->type != BL_PC) //ã³ã³ã»ã³ãã¬ãŒã·ã§ã³ batk += batk * (5 * sc_data[SC_CONCENTRATION].val1) / 100; } if (batk < 1) - batk = 1; //base_atkÍÅáÅà1 + batk = 1; //base_atkã¯æäœã§ã1 return batk; } /*========================================== - * ÎÛÌAtkðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®Atkãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_atk (struct block_list *bl) @@ -613,7 +613,7 @@ int battle_get_atk (struct block_list *bl) atk = atk * (100 + 2 * sc_data[SC_PROVOKE].val1) / 100; if (sc_data[SC_CURSE].timer != -1) atk -= atk * 25 / 100; - if (sc_data[SC_CONCENTRATION].timer != -1 && bl->type != BL_PC) //RZg[V + if (sc_data[SC_CONCENTRATION].timer != -1 && bl->type != BL_PC) //ã³ã³ã»ã³ãã¬ãŒã·ã§ã³ atk += atk * (5 * sc_data[SC_CONCENTRATION].val1) / 100; } if (atk < 0) @@ -622,8 +622,8 @@ int battle_get_atk (struct block_list *bl) } /*========================================== - * ÎÛ̶èAtkðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®å·ŠæAtkãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_atk_ (struct block_list *bl) @@ -642,8 +642,8 @@ int battle_get_atk_ (struct block_list *bl) } /*========================================== - * ÎÛÌAtk2ðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®Atk2ãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_atk2 (struct block_list *bl) @@ -672,7 +672,7 @@ int battle_get_atk2 (struct block_list *bl) atk2 += sc_data[SC_NIBELUNGEN].val2; if (sc_data[SC_STRIPWEAPON].timer != -1) atk2 = atk2 * 90 / 100; - if (sc_data[SC_CONCENTRATION].timer != -1) //RZg[V + if (sc_data[SC_CONCENTRATION].timer != -1) //ã³ã³ã»ã³ãã¬ãŒã·ã§ã³ atk2 += atk2 * (5 * sc_data[SC_CONCENTRATION].val1) / 100; } @@ -684,8 +684,8 @@ int battle_get_atk2 (struct block_list *bl) } /*========================================== - * ÎÛ̶èAtk2ðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®å·ŠæAtk2ãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_atk_2 (struct block_list *bl) @@ -698,8 +698,8 @@ int battle_get_atk_2 (struct block_list *bl) } /*========================================== - * ÎÛÌMAtk1ðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®MAtk1ãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_matk1 (struct block_list *bl) @@ -724,8 +724,8 @@ int battle_get_matk1 (struct block_list *bl) } /*========================================== - * ÎÛÌMAtk2ðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®MAtk2ãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_matk2 (struct block_list *bl) @@ -749,8 +749,8 @@ int battle_get_matk2 (struct block_list *bl) } /*========================================== - * ÎÛÌDefðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®Defãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_def (struct block_list *bl) @@ -777,38 +777,38 @@ int battle_get_def (struct block_list *bl) { if (sc_data) { - //L[sOÍDEF100 + //ããŒãã³ã°æã¯DEF100 if (sc_data[SC_KEEPING].timer != -1) def = 100; - //v{bNÍžZ + //ããããã¯æã¯æžç® if (sc_data[SC_PROVOKE].timer != -1 && bl->type != BL_PC) def = (def * (100 - 6 * sc_data[SC_PROVOKE].val1) + 50) / 100; - //íŸÛÌ¿«ÍÁZ + //æŠå€ªéŒã®é¿ãæã¯å ç® if (sc_data[SC_DRUMBATTLE].timer != -1 && bl->type != BL_PC) def += sc_data[SC_DRUMBATTLE].val3; - //ÅÉ©©ÁÄ¢éÍžZ + //æ¯ã«ããã£ãŠããæã¯æžç® if (sc_data[SC_POISON].timer != -1 && bl->type != BL_PC) def = def * 75 / 100; - //XgbvV[hÍžZ + //ã¹ããªããã·ãŒã«ãæã¯æžç® if (sc_data[SC_STRIPSHIELD].timer != -1 && bl->type != BL_PC) def = def * 85 / 100; - //VOiNVXÍžZ + //ã·ã°ãã ã¯ã«ã·ã¹æã¯æžç® if (sc_data[SC_SIGNUMCRUCIS].timer != -1 && bl->type != BL_PC) def = def * (100 - sc_data[SC_SIGNUMCRUCIS].val2) / 100; - //i̬×ÍDEF0ÉÈé + //æ°žé ã®æ··æ²æã¯DEF0ã«ãªã if (sc_data[SC_ETERNALCHAOS].timer != -1 && bl->type != BL_PC) def = 0; - //AλÍEVtg + //åçµãç³åæã¯å³ã·ãã if (sc_data[SC_FREEZE].timer != -1 || (sc_data[SC_STONE].timer != -1 && sc_data[SC_STONE].val2 == 0)) def >>= 1; - //RZg[VÍžZ + //ã³ã³ã»ã³ãã¬ãŒã·ã§ã³æã¯æžç® if (sc_data[SC_CONCENTRATION].timer != -1 && bl->type != BL_PC) def = (def * (100 - 5 * sc_data[SC_CONCENTRATION].val1)) / 100; } - //r¥Ír¥žZŠÉîâĞZ + //è© å±äžã¯è© å±ææžç®çã«åºã¥ããŠæžç® if (skilltimer != -1) { int def_rate = skill_get_castdef (skillid); @@ -822,8 +822,8 @@ int battle_get_def (struct block_list *bl) } /*========================================== - * ÎÛÌMDefðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®MDefãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_mdef (struct block_list *bl) @@ -842,7 +842,7 @@ int battle_get_mdef (struct block_list *bl) { if (sc_data) { - //oA[óÔÍMDEF100 + //ããªã¢ãŒç¶æ
æã¯MDEF100 if (mdef < 90 && sc_data[SC_MBARRIER].timer != -1) { mdef += sc_data[SC_MBARRIER].val1; @@ -851,7 +851,7 @@ int battle_get_mdef (struct block_list *bl) } if (sc_data[SC_BARRIER].timer != -1) mdef = 100; - //AλÍ1.25{ + //åçµãç³åæã¯1.25å if (sc_data[SC_FREEZE].timer != -1 || (sc_data[SC_STONE].timer != -1 && sc_data[SC_STONE].val2 == 0)) @@ -866,8 +866,8 @@ int battle_get_mdef (struct block_list *bl) } /*========================================== - * ÎÛÌDef2ðÔ·(Äp) - * ßèÍ®Å1Èã + * 察象ã®Def2ãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§1ä»¥äž *------------------------------------------ */ int battle_get_def2 (struct block_list *bl) @@ -890,7 +890,7 @@ int battle_get_def2 (struct block_list *bl) def2 = (def2 * (100 - 6 * sc_data[SC_PROVOKE].val1) + 50) / 100; if (sc_data[SC_POISON].timer != -1 && bl->type != BL_PC) def2 = def2 * 75 / 100; - //RZg[VÍžZ + //ã³ã³ã»ã³ãã¬ãŒã·ã§ã³æã¯æžç® if (sc_data[SC_CONCENTRATION].timer != -1 && bl->type != BL_PC) def2 = def2 * (100 - 5 * sc_data[SC_CONCENTRATION].val1) / 100; } @@ -900,8 +900,8 @@ int battle_get_def2 (struct block_list *bl) } /*========================================== - * ÎÛÌMDef2ðÔ·(Äp) - * ßèÍ®Å0Èã + * 察象ã®MDef2ãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§0ä»¥äž *------------------------------------------ */ int battle_get_mdef2 (struct block_list *bl) @@ -929,9 +929,9 @@ int battle_get_mdef2 (struct block_list *bl) } /*========================================== - * ÎÛÌSpeed(Ú®¬x)ðÔ·(Äp) - * ßèÍ®Å1Èã - * Speedͬ³¢Ù€ªÚ®¬xª¬¢ + * 察象ã®Speed(移åé床)ãè¿ã(æ±çš) + * æ»ãã¯æŽæ°ã§1ä»¥äž + * Speedã¯å°ããã»ãã移åé床ãéã *------------------------------------------ */ int battle_get_speed (struct block_list *bl) @@ -948,35 +948,35 @@ int battle_get_speed (struct block_list *bl) if (sc_data) { - //¬xÁÍ25%žZ + //é床å¢å æã¯25%æžç® if (sc_data[SC_INCREASEAGI].timer != -1 && sc_data[SC_DONTFORGETME].timer == -1) speed -= speed * 25 / 100; - //¬xžÍ25%ÁZ + //é床æžå°æã¯25%å ç® if (sc_data[SC_DECREASEAGI].timer != -1) speed = speed * 125 / 100; - //N@O}CAÍ50%ÁZ + //ã¯ã¡ã°ãã€ã¢æã¯50%å ç® if (sc_data[SC_QUAGMIRE].timer != -1) speed = speed * 3 / 2; - //ðYêÈ¢ÅcÍÁZ + //ç§ãå¿ããªãã§âŠæã¯å ç® if (sc_data[SC_DONTFORGETME].timer != -1) speed = speed * (100 + sc_data[SC_DONTFORGETME].val1 * 2 + sc_data[SC_DONTFORGETME].val2 + (sc_data[SC_DONTFORGETME].val3 & 0xffff)) / 100; - //àÍ25%ÁZ + //éåæã¯25%å ç® if (sc_data[SC_STEELBODY].timer != -1) speed = speed * 125 / 100; - //fBtF_[ÍÁZ + //ãã£ãã§ã³ããŒæã¯å ç® if (sc_data[SC_DEFENDER].timer != -1) speed = (speed * (155 - sc_data[SC_DEFENDER].val1 * 5)) / 100; - //xèóÔÍ4{x¢ + //èžãç¶æ
ã¯4åé
ã if (sc_data[SC_DANCING].timer != -1) speed *= 4; - //ô¢Í450ÁZ + //åªãæã¯450å ç® if (sc_data[SC_CURSE].timer != -1) speed = speed + 450; - //EBhEH[NÍLv*2%žZ + //ãŠã£ã³ããŠã©ãŒã¯æã¯Lv*2%æžç® if (sc_data[SC_WINDWALK].timer != -1) speed -= (speed * (sc_data[SC_WINDWALK].val1 * 2)) / 100; } @@ -989,8 +989,8 @@ int battle_get_speed (struct block_list *bl) } /*========================================== - * ÎÛÌaDelay(UfBC)ðÔ·(Äp) - * aDelayͬ³¢Ù€ªU¬xª¬¢ + * 察象ã®aDelay(æ»ææãã£ã¬ã€)ãè¿ã(æ±çš) + * aDelayã¯å°ããã»ããæ»æé床ãéã *------------------------------------------ */ int battle_get_adelay (struct block_list *bl) @@ -1007,28 +1007,28 @@ int battle_get_adelay (struct block_list *bl) if (sc_data) { - //c[nhNCbPgpÅN@O}CAÅàðYêÈ¢ÅcÅàÈ¢Í3žZ + //ããŒãã³ãã¯ã€ãã±ã³äœ¿çšæã§ã¯ã¡ã°ãã€ã¢ã§ãç§ãå¿ããªãã§âŠã§ããªãæã¯3å²æžç® if (sc_data[SC_TWOHANDQUICKEN].timer != -1 && sc_data[SC_QUAGMIRE].timer == -1 && sc_data[SC_DONTFORGETME].timer == -1) // 2HQ aspd_rate -= 30; - //AhibV
gpÅc[nhNCbPÅàN@O}CAÅàðYêÈ¢ÅcÅàÈ¢Í + //ã¢ãã¬ããªã³ã©ãã·ã¥äœ¿çšæã§ããŒãã³ãã¯ã€ãã±ã³ã§ãã¯ã¡ã°ãã€ã¢ã§ãç§ãå¿ããªãã§âŠã§ããªãæ㯠if (sc_data[SC_ADRENALINE].timer != -1 && sc_data[SC_TWOHANDQUICKEN].timer == -1 && sc_data[SC_QUAGMIRE].timer == -1 && sc_data[SC_DONTFORGETME].timer == -1) - { // AhibV
- //gpÒÆp[eBo[Åi·ªoéÝèÅȯêÎ3žZ + { // ã¢ãã¬ããªã³ã©ãã·ã¥ + //䜿çšè
ãšããŒãã£ã¡ã³ããŒã§æ Œå·®ãåºãèšå®ã§ãªããã°3å²æžç® if (sc_data[SC_ADRENALINE].val2 || !battle_config.party_skill_penaly) aspd_rate -= 30; - //»€ÅȯêÎ2.5žZ + //ããã§ãªããã°2.5å²æžç® else aspd_rate -= 25; } - //XsANBbPÍžZ - if (sc_data[SC_SPEARSQUICKEN].timer != -1 && sc_data[SC_ADRENALINE].timer == -1 && sc_data[SC_TWOHANDQUICKEN].timer == -1 && sc_data[SC_QUAGMIRE].timer == -1 && sc_data[SC_DONTFORGETME].timer == -1) // XsANBbP + //ã¹ãã¢ã¯ã£ãã±ã³æã¯æžç® + if (sc_data[SC_SPEARSQUICKEN].timer != -1 && sc_data[SC_ADRENALINE].timer == -1 && sc_data[SC_TWOHANDQUICKEN].timer == -1 && sc_data[SC_QUAGMIRE].timer == -1 && sc_data[SC_DONTFORGETME].timer == -1) // ã¹ãã¢ã¯ã£ãã±ã³ aspd_rate -= sc_data[SC_SPEARSQUICKEN].val2; - //[úÌATVNXÍžZ - if (sc_data[SC_ASSNCROS].timer != -1 && // [zÌATVNX + //å€æ¥ã®ã¢ãµã·ã³ã¯ãã¹æã¯æžç® + if (sc_data[SC_ASSNCROS].timer != -1 && // å€éœã®ã¢ãµã·ã³ã¯ãã¹ sc_data[SC_TWOHANDQUICKEN].timer == -1 && sc_data[SC_ADRENALINE].timer == -1 && sc_data[SC_SPEARSQUICKEN].timer == -1 @@ -1036,16 +1036,16 @@ int battle_get_adelay (struct block_list *bl) aspd_rate -= 5 + sc_data[SC_ASSNCROS].val1 + sc_data[SC_ASSNCROS].val2 + sc_data[SC_ASSNCROS].val3; - //ðYêÈ¢ÅcÍÁZ - if (sc_data[SC_DONTFORGETME].timer != -1) // ðYêȢŠ+ //ç§ãå¿ããªãã§âŠæã¯å ç® + if (sc_data[SC_DONTFORGETME].timer != -1) // ç§ãå¿ããªã㧠aspd_rate += sc_data[SC_DONTFORGETME].val1 * 3 + sc_data[SC_DONTFORGETME].val2 + (sc_data[SC_DONTFORGETME].val3 >> 16); - //à25%ÁZ - if (sc_data[SC_STEELBODY].timer != -1) // à + //éåæ25%å ç® + if (sc_data[SC_STEELBODY].timer != -1) // éå aspd_rate += 25; - //¬|[VgpÍžZ + //å¢éããŒã·ã§ã³äœ¿çšæã¯æžç® if (sc_data[i = SC_SPEEDPOTION2].timer != -1 || sc_data[i = SC_SPEEDPOTION1].timer != -1 || sc_data[i = SC_SPEEDPOTION0].timer != -1) @@ -1053,7 +1053,7 @@ int battle_get_adelay (struct block_list *bl) // Fate's `haste' spell works the same as the above if (sc_data[SC_HASTE].timer != -1) aspd_rate -= sc_data[SC_HASTE].val1; - //fBtF_[ÍÁZ + //ãã£ãã§ã³ããŒæã¯å ç® if (sc_data[SC_DEFENDER].timer != -1) adelay += (1100 - sc_data[SC_DEFENDER].val1 * 100); } @@ -1087,16 +1087,16 @@ int battle_get_amotion (struct block_list *bl) && sc_data[SC_TWOHANDQUICKEN].timer == -1 && sc_data[SC_QUAGMIRE].timer == -1 && sc_data[SC_DONTFORGETME].timer == -1) - { // AhibV
+ { // ã¢ãã¬ããªã³ã©ãã·ã¥ if (sc_data[SC_ADRENALINE].val2 || !battle_config.party_skill_penaly) aspd_rate -= 30; else aspd_rate -= 25; } - if (sc_data[SC_SPEARSQUICKEN].timer != -1 && sc_data[SC_ADRENALINE].timer == -1 && sc_data[SC_TWOHANDQUICKEN].timer == -1 && sc_data[SC_QUAGMIRE].timer == -1 && sc_data[SC_DONTFORGETME].timer == -1) // XsANBbP + if (sc_data[SC_SPEARSQUICKEN].timer != -1 && sc_data[SC_ADRENALINE].timer == -1 && sc_data[SC_TWOHANDQUICKEN].timer == -1 && sc_data[SC_QUAGMIRE].timer == -1 && sc_data[SC_DONTFORGETME].timer == -1) // ã¹ãã¢ã¯ã£ãã±ã³ aspd_rate -= sc_data[SC_SPEARSQUICKEN].val2; - if (sc_data[SC_ASSNCROS].timer != -1 && // [zÌATVNX + if (sc_data[SC_ASSNCROS].timer != -1 && // å€éœã®ã¢ãµã·ã³ã¯ãã¹ sc_data[SC_TWOHANDQUICKEN].timer == -1 && sc_data[SC_ADRENALINE].timer == -1 && sc_data[SC_SPEARSQUICKEN].timer == -1 @@ -1104,12 +1104,12 @@ int battle_get_amotion (struct block_list *bl) aspd_rate -= 5 + sc_data[SC_ASSNCROS].val1 + sc_data[SC_ASSNCROS].val2 + sc_data[SC_ASSNCROS].val3; - if (sc_data[SC_DONTFORGETME].timer != -1) // ðYêȢŠ+ if (sc_data[SC_DONTFORGETME].timer != -1) // ç§ãå¿ããªã㧠aspd_rate += sc_data[SC_DONTFORGETME].val1 * 3 + sc_data[SC_DONTFORGETME].val2 + (sc_data[SC_DONTFORGETME].val3 >> 16); - if (sc_data[SC_STEELBODY].timer != -1) // à + if (sc_data[SC_STEELBODY].timer != -1) // éå aspd_rate += 25; if (sc_data[i = SC_SPEEDPOTION2].timer != -1 || sc_data[i = SC_SPEEDPOTION1].timer != -1 @@ -1167,16 +1167,16 @@ int battle_get_element (struct block_list *bl) nullpo_retr (ret, bl); sc_data = battle_get_sc_data (bl); - if (bl->type == BL_MOB && (struct mob_data *) bl) // 10ÌÊLv*2APÌÊ®« + if (bl->type == BL_MOB && (struct mob_data *) bl) // 10ã®äœïŒLv*2ãïŒã®äœïŒå±æ§ ret = ((struct mob_data *) bl)->def_ele; else if (bl->type == BL_PC && (struct map_session_data *) bl) - ret = 20 + ((struct map_session_data *) bl)->def_ele; // h䮫Lv1 + ret = 20 + ((struct map_session_data *) bl)->def_ele; // é²åŸ¡å±æ§Lv1 if (sc_data) { - if (sc_data[SC_BENEDICTIO].timer != -1) // ¹Ì~ + if (sc_data[SC_BENEDICTIO].timer != -1) // èäœéçŠ ret = 26; - if (sc_data[SC_FREEZE].timer != -1) // + if (sc_data[SC_FREEZE].timer != -1) // åçµ ret = 21; if (sc_data[SC_STONE].timer != -1 && sc_data[SC_STONE].val2 == 0) ret = 22; @@ -1198,17 +1198,17 @@ int battle_get_attack_element (struct block_list *bl) if (sc_data) { - if (sc_data[SC_FROSTWEAPON].timer != -1) // tXgEF| + if (sc_data[SC_FROSTWEAPON].timer != -1) // ããã¹ããŠã§ãã³ ret = 1; - if (sc_data[SC_SEISMICWEAPON].timer != -1) // TCY~bNEF| + if (sc_data[SC_SEISMICWEAPON].timer != -1) // ãµã€ãºããã¯ãŠã§ãã³ ret = 2; - if (sc_data[SC_FLAMELAUNCHER].timer != -1) // t[`[ + if (sc_data[SC_FLAMELAUNCHER].timer != -1) // ãã¬ãŒã ã©ã³ãã£ãŒ ret = 3; - if (sc_data[SC_LIGHTNINGLOADER].timer != -1) // CgjO[_[ + if (sc_data[SC_LIGHTNINGLOADER].timer != -1) // ã©ã€ããã³ã°ããŒã㌠ret = 4; - if (sc_data[SC_ENCPOISON].timer != -1) // G`g|CY + if (sc_data[SC_ENCPOISON].timer != -1) // ãšã³ãã£ã³ããã€ãºã³ ret = 5; - if (sc_data[SC_ASPERSIO].timer != -1) // AXyVI + if (sc_data[SC_ASPERSIO].timer != -1) // ã¢ã¹ãã«ã·ãª ret = 6; } @@ -1226,17 +1226,17 @@ int battle_get_attack_element2 (struct block_list *bl) if (sc_data) { - if (sc_data[SC_FROSTWEAPON].timer != -1) // tXgEF| + if (sc_data[SC_FROSTWEAPON].timer != -1) // ããã¹ããŠã§ãã³ ret = 1; - if (sc_data[SC_SEISMICWEAPON].timer != -1) // TCY~bNEF| + if (sc_data[SC_SEISMICWEAPON].timer != -1) // ãµã€ãºããã¯ãŠã§ãã³ ret = 2; - if (sc_data[SC_FLAMELAUNCHER].timer != -1) // t[`[ + if (sc_data[SC_FLAMELAUNCHER].timer != -1) // ãã¬ãŒã ã©ã³ãã£ãŒ ret = 3; - if (sc_data[SC_LIGHTNINGLOADER].timer != -1) // CgjO[_[ + if (sc_data[SC_LIGHTNINGLOADER].timer != -1) // ã©ã€ããã³ã°ããŒã㌠ret = 4; - if (sc_data[SC_ENCPOISON].timer != -1) // G`g|CY + if (sc_data[SC_ENCPOISON].timer != -1) // ãšã³ãã£ã³ããã€ãºã³ ret = 5; - if (sc_data[SC_ASPERSIO].timer != -1) // AXyVI + if (sc_data[SC_ASPERSIO].timer != -1) // ã¢ã¹ãã«ã·ãª ret = 6; } return ret; @@ -1303,7 +1303,7 @@ int battle_get_mode (struct block_list *bl) if (bl->type == BL_MOB && (struct mob_data *) bl) return mob_db[((struct mob_data *) bl)->class].mode; else - return 0x01; // Æè Šž®Æ¢€±ÆÅ1 + return 0x01; // ãšããããåããšããããšã§1 } int battle_get_mexp (struct block_list *bl) @@ -1345,7 +1345,7 @@ int battle_get_stat (int stat_id /* SP_VIT or similar */ , } } -// StatusChangenÌŸ +// StatusChangeç³»ã®æåŸ struct status_change *battle_get_sc_data (struct block_list *bl) { nullpo_retr (NULL, bl); @@ -1416,7 +1416,7 @@ short *battle_get_option (struct block_list *bl) //------------------------------------------------------------------- -// _[WÌx +// ãã¡ãŒãžã®é
延 struct battle_delay_damage_ { struct block_list *src, *target; @@ -1451,7 +1451,7 @@ int battle_delay_damage (unsigned int tick, struct block_list *src, return 0; } -// ÀÛÉHPðì +// å®éã«HPãæäœ int battle_damage (struct block_list *bl, struct block_list *target, int damage, int flag) { @@ -1460,7 +1460,7 @@ int battle_damage (struct block_list *bl, struct block_list *target, short *sc_count; int i; - nullpo_retr (0, target); //blÍNULLÅÄÎêé±Æª éÌÅŒÅ`FbN + nullpo_retr (0, target); //blã¯NULLã§åŒã°ããããšãããã®ã§ä»ã§ãã§ã㯠if (damage == 0) return 0; @@ -1483,7 +1483,7 @@ int battle_damage (struct block_list *bl, struct block_list *target, if (!flag && (sc_count = battle_get_sc_count (target)) != NULL && *sc_count > 0) { - // AλA°ðÁ + // åçµãç³åãç¡ç ãæ¶å» if (sc_data[SC_FREEZE].timer != -1) skill_status_change_end (target, SC_FREEZE, -1); if (sc_data[SC_STONE].timer != -1 && sc_data[SC_STONE].val2 == 0) @@ -1495,7 +1495,7 @@ int battle_damage (struct block_list *bl, struct block_list *target, if (target->type == BL_MOB) { // MOB struct mob_data *md = (struct mob_data *) target; - if (md && md->skilltimer != -1 && md->state.skillcastcancel) // r¥WQ + if (md && md->skilltimer != -1 && md->state.skillcastcancel) // è© å±åŠšå®³ skill_castcancel (target, 0); return mob_damage (bl, md, damage, 0); } @@ -1505,7 +1505,7 @@ int battle_damage (struct block_list *bl, struct block_list *target, struct map_session_data *tsd = (struct map_session_data *) target; if (tsd && tsd->sc_data && tsd->sc_data[SC_DEVOTION].val1) - { // fB{[Vð©¯çêÄ¢é + { // ãã£ããŒã·ã§ã³ããããããŠãã struct map_session_data *md = map_id2sd (tsd->sc_data[SC_DEVOTION].val1); if (md && skill_devotion3 (&md->bl, target->id)) @@ -1525,8 +1525,8 @@ int battle_damage (struct block_list *bl, struct block_list *target, } if (tsd && tsd->skilltimer != -1) - { // r¥WQ - // tFJ[hâWQ³êÈ¢XL©Ìž + { // è© å±åŠšå®³ + // ãã§ã³ã«ãŒãã劚害ãããªãã¹ãã«ãã®æ€æ» if ((!tsd->special_state.no_castcancel || map[bl->m].flag.gvg) && tsd->state.skillcastcancel && !tsd->special_state.no_castcancel2) @@ -1545,7 +1545,7 @@ int battle_damage (struct block_list *bl, struct block_list *target, int battle_heal (struct block_list *bl, struct block_list *target, int hp, int sp, int flag) { - nullpo_retr (0, target); //blÍNULLÅÄÎêé±Æª éÌÅŒÅ`FbN + nullpo_retr (0, target); //blã¯NULLã§åŒã°ããããšãããã®ã§ä»ã§ãã§ã㯠if (target->type == BL_PC && pc_isdead ((struct map_session_data *) target)) @@ -1563,7 +1563,7 @@ int battle_heal (struct block_list *bl, struct block_list *target, int hp, return 0; } -// Uâ~ +// æ»æåæ¢ int battle_stopattack (struct block_list *bl) { nullpo_retr (0, bl); @@ -1574,7 +1574,7 @@ int battle_stopattack (struct block_list *bl) return 0; } -// Ú®â~ +// 移ååæ¢ int battle_stopwalking (struct block_list *bl, int type) { nullpo_retr (0, bl); @@ -1586,7 +1586,7 @@ int battle_stopwalking (struct block_list *bl, int type) } /*========================================== - * _[WÌ®«C³ + * ãã¡ãŒãžã®å±æ§ä¿®æ£ *------------------------------------------ */ int battle_attr_fix (int damage, int atk_elem, int def_elem) @@ -1595,7 +1595,7 @@ int battle_attr_fix (int damage, int atk_elem, int def_elem) if (atk_elem < 0 || atk_elem > 9 || def_type < 0 || def_type > 9 || def_lv < 1 || def_lv > 4) - { // ® «lªš©µ¢ÌÅÆè Šž»ÌÜÜÔ· + { // å± æ§å€ãããããã®ã§ãšãããããã®ãŸãŸè¿ã if (battle_config.error_log) printf ("battle_attr_fix: unknown attr type: atk=%d def_type=%d def_lv=%d\n", @@ -1607,7 +1607,7 @@ int battle_attr_fix (int damage, int atk_elem, int def_elem) } /*========================================== - * _[WÅIvZ + * ãã¡ãŒãžæçµèšç® *------------------------------------------ */ int battle_calc_damage (struct block_list *src, struct block_list *bl, @@ -1638,37 +1638,37 @@ int battle_calc_damage (struct block_list *src, struct block_list *bl, && flag & BF_WEAPON && flag & BF_SHORT && skill_num != NPC_GUIDEDATTACK) { - // Z[teBEH[ + // ã»ãŒããã£ãŠã©ãŒã« struct skill_unit *unit = (struct skill_unit *) sc_data[SC_SAFETYWALL].val2; if (unit && unit->alive && (--unit->group->val2) <= 0) skill_delunit (unit); - skill_unit_move (bl, gettick (), 1); // dË|¯`FbN + skill_unit_move (bl, gettick (), 1); // éãæããã§ã㯠damage = 0; } if (sc_data[SC_PNEUMA].timer != -1 && damage > 0 && flag & BF_WEAPON && flag & BF_LONG && skill_num != NPC_GUIDEDATTACK) { - // j
[} + // ãã¥ãŒã damage = 0; } if (sc_data[SC_ROKISWEIL].timer != -1 && damage > 0 && flag & BF_MAGIC) { - // j
[} + // ãã¥ãŒã damage = 0; } if (sc_data[SC_AETERNA].timer != -1 && damage > 0) - { // bNXG[ei + { // ã¬ãã¯ã¹ãšãŒãã«ã damage <<= 1; skill_status_change_end (bl, SC_AETERNA, -1); } - //®«êÌ_[WÁ + //å±æ§å Žã®ãã¡ãŒãžå¢å if (sc_data[SC_VOLCANO].timer != -1) - { // {P[m + { // ãã«ã±ãŒã if (flag & BF_SKILL && skill_get_pl (skill_num) == 3) damage += damage * sc_data[SC_VOLCANO].val4 / 100; else if (!(flag & BF_SKILL) && (battle_get_attack_element (bl) == 3)) @@ -1676,7 +1676,7 @@ int battle_calc_damage (struct block_list *src, struct block_list *bl, } if (sc_data[SC_VIOLENTGALE].timer != -1) - { // oCIgQC + { // ãã€ãªã¬ã³ãã²ã€ã« if (flag & BF_SKILL && skill_get_pl (skill_num) == 4) damage += damage * sc_data[SC_VIOLENTGALE].val4 / 100; else if (!(flag & BF_SKILL) && (battle_get_attack_element (bl) == 4)) @@ -1684,7 +1684,7 @@ int battle_calc_damage (struct block_list *src, struct block_list *bl, } if (sc_data[SC_DELUGE].timer != -1) - { // f
[W + { // ããªã¥ãŒãž if (flag & BF_SKILL && skill_get_pl (skill_num) == 1) damage += damage * sc_data[SC_DELUGE].val4 / 100; else if (!(flag & BF_SKILL) && (battle_get_attack_element (bl) == 1)) @@ -1693,7 +1693,7 @@ int battle_calc_damage (struct block_list *src, struct block_list *bl, if (sc_data[SC_ENERGYCOAT].timer != -1 && damage > 0 && flag & BF_WEAPON) - { // GiW[R[g + { // ãšããžãŒã³ãŒã if (sd) { if (sd->status.sp > 0) @@ -1713,7 +1713,7 @@ int battle_calc_damage (struct block_list *src, struct block_list *bl, } if (sc_data[SC_KYRIE].timer != -1 && damage > 0) - { // LGGC\ + { // ããªãšãšã¬ã€ãœã³ sc = &sc_data[SC_KYRIE]; sc->val2 -= damage; if (flag & BF_WEAPON) @@ -1730,13 +1730,13 @@ int battle_calc_damage (struct block_list *src, struct block_list *bl, if (sc_data[SC_BASILICA].timer != -1 && damage > 0) { - // j
[} + // ãã¥ãŒã damage = 0; } if (sc_data[SC_LANDPROTECTOR].timer != -1 && damage > 0 && flag & BF_MAGIC) { - // j
[} + // ãã¥ãŒã damage = 0; } @@ -1766,7 +1766,7 @@ int battle_calc_damage (struct block_list *src, struct block_list *bl, sc_data[SC_PARRYING].val1, 1); } } - // WFNg\[h + // ãªãžã§ã¯ããœãŒã if (sc_data[SC_REJECTSWORD].timer != -1 && damage > 0 && flag & BF_WEAPON && @@ -1776,11 +1776,11 @@ int battle_calc_damage (struct block_list *src, struct block_list *bl, || src->type == BL_MOB)) { if (MRAND (100) < (10 + 5 * sc_data[SC_REJECTSWORD].val1)) - { //œËmŠÍ10+5*Lv + { //åå°ç¢ºçã¯10+5*Lv damage = damage * 50 / 100; battle_damage (bl, src, damage, 0); - //_[Wð^ŠœÌÍÇ¢ñŸªA±±©çÇ€µÄ\Š·éñŸ©í©ñË¥ - //GtFNgà±êÅ¢¢Ì©í©ñË¥ + //ãã¡ãŒãžãäžããã®ã¯è¯ããã ããããããã©ãããŠè¡šç€ºãããã ãããããã + //ãšãã§ã¯ããããã§ããã®ãããããã clif_skill_nodamage (bl, bl, ST_REJECTSWORD, sc_data[SC_REJECTSWORD].val1, 1); if ((--sc_data[SC_REJECTSWORD].val2) <= 0) @@ -1805,11 +1805,11 @@ int battle_calc_damage (struct block_list *src, struct block_list *bl, if (gc && agit_flag == 0 && class != 1288) // guardians cannot be damaged during non-woe [Valaris] damage = 0; // end woe check [Valaris] if (g == NULL) - damage = 0; //Mh¢ÁüÈç_[W³µ + damage = 0; //ã®ã«ãæªå å
¥ãªããã¡ãŒãžç¡ã else if ((gc != NULL) && guild_isallied (g, gc)) - damage = 0; //©èÌMhÌGyÈç_[W³µ + damage = 0; //èªå é ã®ã«ãã®ãšã³ããªããã¡ãŒãžç¡ã else if (g && guild_checkskill (g, GD_APPROVAL) <= 0) - damage = 0; //³KMh³FªÈ¢Æ_[W³µ + damage = 0; //æ£èŠã®ã«ãæ¿èªããªããšãã¡ãŒãžç¡ã else if (battle_config.guild_max_castles != 0 && guild_checkcastles (g) >= battle_config.guild_max_castles) @@ -1847,14 +1847,14 @@ int battle_calc_damage (struct block_list *src, struct block_list *bl, damage = 3; } - if (md != NULL && md->hp > 0 && damage > 0) // œÈÇÌMOBXL»è + if (md != NULL && md->hp > 0 && damage > 0) // åæãªã©ã®MOBã¹ãã«å€å® mobskill_event (md, flag); return damage; } /*========================================== - * Cû_[W + * 修緎ãã¡ãŒãž *------------------------------------------ */ int battle_addmastery (struct map_session_data *sd, struct block_list *target, @@ -1867,13 +1867,13 @@ int battle_addmastery (struct map_session_data *sd, struct block_list *target, nullpo_retr (0, sd); - // f[xC(+3 ` +30) vs s or « (lÍÜßÈ¢H) + // ããŒã¢ã³ãã€ã³(+3 ã +30) vs äžæ» or æªé (æ»äººã¯å«ããªãïŒ) if ((skill = pc_checkskill (sd, AL_DEMONBANE)) > 0 && (battle_check_undead (race, battle_get_elem_type (target)) || race == 6)) damage += (skill * 3); - // r[XgxC(+4 ` +40) vs ®š or © + // ããŒã¹ããã€ã³(+4 ã +40) vs åç© or æè« if ((skill = pc_checkskill (sd, HT_BEASTBANE)) > 0 && (race == 2 || race == 4)) damage += (skill * 4); @@ -1884,10 +1884,10 @@ int battle_addmastery (struct map_session_data *sd, struct block_list *target, weapon = sd->weapontype2; switch (weapon) { - case 0x01: // Z (Updated By AppleGirl) + case 0x01: // çå£ (Updated By AppleGirl) case 0x02: // 1HS { - // Cû(+4 ` +40) Ðè ZÜÞ + // å£ä¿®ç·Ž(+4 ã +40) çæå£ çå£å«ã if ((skill = pc_checkskill (sd, SM_SWORD)) > 0) { damage += (skill * 4); @@ -1896,7 +1896,7 @@ int battle_addmastery (struct map_session_data *sd, struct block_list *target, } case 0x03: // 2HS { - // ŒèCû(+4 ` +40) Œè + // äž¡æå£ä¿®ç·Ž(+4 ã +40) äž¡æå£ if ((skill = pc_checkskill (sd, SM_TWOHAND)) > 0) { damage += (skill * 4); @@ -1905,29 +1905,29 @@ int battle_addmastery (struct map_session_data *sd, struct block_list *target, } case 0x04: // 1HL { - // Cû(+4 ` +40,+5 ` +50) + // æ§ä¿®ç·Ž(+4 ã +40,+5 ã +50) æ§ if ((skill = pc_checkskill (sd, KN_SPEARMASTERY)) > 0) { if (!pc_isriding (sd)) - damage += (skill * 4); // yRÉæÁÄÈ¢ + damage += (skill * 4); // ãã³ã«ä¹ã£ãŠãªã else - damage += (skill * 5); // yRÉæÁÄé + damage += (skill * 5); // ãã³ã«ä¹ã£ãŠã } break; } case 0x05: // 2HL { - // Cû(+4 ` +40,+5 ` +50) + // æ§ä¿®ç·Ž(+4 ã +40,+5 ã +50) æ§ if ((skill = pc_checkskill (sd, KN_SPEARMASTERY)) > 0) { if (!pc_isriding (sd)) - damage += (skill * 4); // yRÉæÁÄÈ¢ + damage += (skill * 4); // ãã³ã«ä¹ã£ãŠãªã else - damage += (skill * 5); // yRÉæÁÄé + damage += (skill * 5); // ãã³ã«ä¹ã£ãŠã } break; } - case 0x06: // Ðè + case 0x06: // çææ§ { if ((skill = pc_checkskill (sd, AM_AXEMASTERY)) > 0) { @@ -1943,25 +1943,25 @@ int battle_addmastery (struct map_session_data *sd, struct block_list *target, } break; } - case 0x08: // CX + case 0x08: // ã¡ã€ã¹ { - // CXCû(+3 ` +30) CX + // ã¡ã€ã¹ä¿®ç·Ž(+3 ã +30) ã¡ã€ã¹ if ((skill = pc_checkskill (sd, PR_MACEMASTERY)) > 0) { damage += (skill * 3); } break; } - case 0x09: // ȵ? + case 0x09: // ãªã? break; - case 0x0a: // ñ + case 0x0a: // æ break; - case 0x0b: // | + case 0x0b: // åŒ break; - case 0x00: // fè + case 0x00: // çŽ æ case 0x0c: // Knuckles { - // S(+3 ` +30) fè,ibN + // éæ³(+3 ã +30) çŽ æ,ããã¯ã« if ((skill = pc_checkskill (sd, MO_IRONHAND)) > 0) { damage += (skill * 3); @@ -1970,7 +1970,7 @@ int battle_addmastery (struct map_session_data *sd, struct block_list *target, } case 0x0d: // Musical Instrument { - // yíÌûK(+3 ` +30) yí + // 楜åšã®ç·Žç¿(+3 ã +30) æ¥œåš if ((skill = pc_checkskill (sd, BA_MUSICALLESSON)) > 0) { damage += (skill * 3); @@ -1979,7 +1979,7 @@ int battle_addmastery (struct map_session_data *sd, struct block_list *target, } case 0x0e: // Dance Mastery { - // Dance Lesson Skill Effect(+3 damage for every lvl = +30) Ú + // Dance Lesson Skill Effect(+3 damage for every lvl = +30) é if ((skill = pc_checkskill (sd, DC_DANCINGLESSON)) > 0) { damage += (skill * 3); @@ -1997,10 +1997,10 @@ int battle_addmastery (struct map_session_data *sd, struct block_list *target, } case 0x10: // Katars { - // J^[Cû(+3 ` +30) J^[ + // ã«ã¿ãŒã«ä¿®ç·Ž(+3 ã +30) ã«ã¿ãŒã« if ((skill = pc_checkskill (sd, AS_KATAR)) > 0) { - //\jbNu[ÍÊi1Ét«1/8K) + //ãœããã¯ãããŒæã¯å¥åŠçïŒ1æã«ä»ã1/8é©å¿) damage += (skill * 3); } break; @@ -2031,7 +2031,7 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, short *sc_count; short *option, *opt1, *opt2; - //returnO̪ éÌÅîñoÍÌÝÏX + //returnåã®åŠçãããã®ã§æ
å ±åºåéšã®ã¿å€æŽ if (src == NULL || target == NULL || md == NULL) { nullpo_info (NLP_MARK); @@ -2047,7 +2047,7 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, opt1 = battle_get_opt1 (src); opt2 = battle_get_opt2 (src); - // ^[Qbg + // ã¿ãŒã²ãã if (target->type == BL_PC) tsd = (struct map_session_data *) target; else if (target->type == BL_MOB) @@ -2090,9 +2090,9 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, ac_flag = 1; } } - flag = BF_SHORT | BF_WEAPON | BF_NORMAL; // UÌíÞÌÝè + flag = BF_SHORT | BF_WEAPON | BF_NORMAL; // æ»æã®çš®é¡ã®èšå® - // ñðŠvZAñð»èÍãÅ + // åé¿çèšç®ãåé¿å€å®ã¯åŸã§ flee = battle_get_flee (target); if (battle_config.agi_penaly_type > 0 || battle_config.vit_penaly_type > 0) @@ -2131,7 +2131,7 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, else damage = 0; if (skill_num == HW_MAGICCRASHER) - { /* }WbNNbV[ÍMATKÅ£é */ + { /* ããžãã¯ã¯ã©ãã·ã£ãŒã¯MATKã§æ®Žã */ atkmin = battle_get_matk1 (src); atkmax = battle_get_matk2 (src); } @@ -2147,7 +2147,7 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, atkmin = atkmax; if (sc_data != NULL && sc_data[SC_MAXIMIZEPOWER].timer != -1) - { // }LV}CYp[ + { // ããã·ãã€ãºãã¯ãŒ atkmin = atkmax; } @@ -2159,7 +2159,7 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, if (cri < 1) cri = 1; } - if (t_sc_data != NULL && t_sc_data[SC_SLEEP].timer != -1) // °ÍNeBJª{É + if (t_sc_data != NULL && t_sc_data[SC_SLEEP].timer != -1) // ç¡ç äžã¯ã¯ãªãã£ã«ã«ãåã« cri <<= 1; if (ac_flag) @@ -2176,8 +2176,8 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, if (tsd && tsd->critical_def) cri = cri * (100 - tsd->critical_def) / 100; - if ((skill_num == 0 || skill_num == KN_AUTOCOUNTER) && skill_lv >= 0 && battle_config.enemy_critical && (MRAND (1000)) < cri) // »èiXLÌêͳj - // GÌ»è + if ((skill_num == 0 || skill_num == KN_AUTOCOUNTER) && skill_lv >= 0 && battle_config.enemy_critical && (MRAND (1000)) < cri) // å€å®ïŒã¹ãã«ã®å Žåã¯ç¡èŠïŒ + // æµã®å€å® { damage += atkmax; type = 0x0a; @@ -2190,20 +2190,20 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, damage += atkmin + MRAND ((atkmax - atkmin + 1)); else damage += atkmin; - // XLC³PiUÍ{»nj - // I[o[gXg(+5% ` +25%),ŒUnXLÌê±±Åâ³ - // obV
,}OiuCN, - // {[OobV
,XsAu[,ufBbV
XsA,XsAX^bu, - // }[iCg,J[g{
[V - // _uXgCtBO,A[V[,`[WA[, - // \jbNu[ + // ã¹ãã«ä¿®æ£ïŒïŒæ»æåååç³»ïŒ + // ãªãŒããŒãã©ã¹ã(+5% ã +25%),ä»æ»æç³»ã¹ãã«ã®å Žåããã§è£æ£ + // ããã·ã¥,ãã°ãã ãã¬ã€ã¯, + // ããŒãªã³ã°ããã·ã¥,ã¹ãã¢ããŒã¡ã©ã³,ãã©ã³ãã£ãã·ã¥ã¹ãã¢,ã¹ãã¢ã¹ã¿ãã, + // ã¡ããŒãã€ã,ã«ãŒãã¬ããªã¥ãŒã·ã§ã³ + // ããã«ã¹ãã¬ã€ãã£ã³ã°,ã¢ããŒã·ã£ã¯ãŒ,ãã£ãŒãžã¢ããŒ, + // ãœããã¯ãã㌠if (sc_data) - { //óÔÙíÌ_[WÇÁ - if (sc_data[SC_OVERTHRUST].timer != -1) // I[o[gXg + { //ç¶æ
ç°åžžäžã®ãã¡ãŒãžè¿œå + if (sc_data[SC_OVERTHRUST].timer != -1) // ãªãŒããŒãã©ã¹ã damage += damage * (5 * sc_data[SC_OVERTHRUST].val1) / 100; - if (sc_data[SC_TRUESIGHT].timer != -1) // gD[TCg + if (sc_data[SC_TRUESIGHT].timer != -1) // ãã¥ã«ãŒãµã€ã damage += damage * (2 * sc_data[SC_TRUESIGHT].val1) / 100; - if (sc_data[SC_BERSERK].timer != -1) // o[T[N + if (sc_data[SC_BERSERK].timer != -1) // ããŒãµãŒã¯ damage += damage * 50 / 100; } @@ -2216,44 +2216,44 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, flag = (flag & ~BF_SKILLMASK) | BF_SKILL; switch (skill_num) { - case SM_BASH: // obV
+ case SM_BASH: // ããã·ã¥ damage = damage * (100 + 30 * skill_lv) / 100; hitrate = (hitrate * (100 + 5 * skill_lv)) / 100; break; - case SM_MAGNUM: // }OiuCN + case SM_MAGNUM: // ãã°ãã ãã¬ã€ã¯ damage = damage * (5 * skill_lv + (wflag) ? 65 : 115) / 100; break; - case MC_MAMMONITE: // }[iCg + case MC_MAMMONITE: // ã¡ããŒãã€ã damage = damage * (100 + 50 * skill_lv) / 100; break; - case AC_DOUBLE: // _uXgCtBO + case AC_DOUBLE: // ããã«ã¹ãã¬ã€ãã£ã³ã° damage = damage * (180 + 20 * skill_lv) / 100; div_ = 2; flag = (flag & ~BF_RANGEMASK) | BF_LONG; break; - case AC_SHOWER: // A[V[ + case AC_SHOWER: // ã¢ããŒã·ã£ã¯ãŒ damage = damage * (75 + 5 * skill_lv) / 100; flag = (flag & ~BF_RANGEMASK) | BF_LONG; break; - case AC_CHARGEARROW: // `[WA[ + case AC_CHARGEARROW: // ãã£ãŒãžã¢ã㌠damage = damage * 150 / 100; flag = (flag & ~BF_RANGEMASK) | BF_LONG; break; - case KN_PIERCE: // sA[X + case KN_PIERCE: // ãã¢ãŒã¹ damage = damage * (100 + 10 * skill_lv) / 100; hitrate = hitrate * (100 + 5 * skill_lv) / 100; div_ = t_size + 1; damage *= div_; break; - case KN_SPEARSTAB: // XsAX^u + case KN_SPEARSTAB: // ã¹ãã¢ã¹ã¿ã damage = damage * (100 + 15 * skill_lv) / 100; break; - case KN_SPEARBOOMERANG: // XsAu[ + case KN_SPEARBOOMERANG: // ã¹ãã¢ããŒã¡ã©ã³ damage = damage * (100 + 50 * skill_lv) / 100; flag = (flag & ~BF_RANGEMASK) | BF_LONG; break; - case KN_BRANDISHSPEAR: // ufBbV
XsA + case KN_BRANDISHSPEAR: // ãã©ã³ãã£ãã·ã¥ã¹ã㢠damage = damage * (100 + 20 * skill_lv) / 100; if (skill_lv > 3 && wflag == 1) damage2 += damage / 2; @@ -2270,7 +2270,7 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, damage += damage2; blewcount = 0; break; - case KN_BOWLINGBASH: // {EOobV
+ case KN_BOWLINGBASH: // ããŠãªã³ã°ããã·ã¥ damage = damage * (100 + 50 * skill_lv) / 100; blewcount = 0; break; @@ -2281,25 +2281,25 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, hitrate = 1000000; flag = (flag & ~BF_SKILLMASK) | BF_NORMAL; break; - case AS_SONICBLOW: // \jbNuE + case AS_SONICBLOW: // ãœããã¯ãã㊠damage = damage * (300 + 50 * skill_lv) / 100; div_ = 8; break; - case TF_SPRINKLESAND: // »Ü« + case TF_SPRINKLESAND: // ç ãŸã damage = damage * 125 / 100; break; - case MC_CARTREVOLUTION: // J[g{
[V + case MC_CARTREVOLUTION: // ã«ãŒãã¬ããªã¥ãŒã·ã§ã³ damage = (damage * 150) / 100; break; - // ȺMOB - case NPC_COMBOATTACK: // œiU + // 以äžMOB + case NPC_COMBOATTACK: // å€æ®µæ»æ div_ = skill_get_num (skill_num, skill_lv); damage *= div_; break; - case NPC_RANDOMATTACK: // _ATKU + case NPC_RANDOMATTACK: // ã©ã³ãã ATKæ»æ damage = damage * (MPRAND (50, 150)) / 100; break; - // ®«UiKj + // å±æ§æ»æïŒé©åœïŒ case NPC_WATERATTACK: case NPC_GROUNDATTACK: case NPC_FIREATTACK: @@ -2319,46 +2319,46 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, case NPC_PIERCINGATT: flag = (flag & ~BF_RANGEMASK) | BF_SHORT; break; - case RG_BACKSTAP: // obNX^u + case RG_BACKSTAP: // ããã¯ã¹ã¿ã damage = damage * (300 + 40 * skill_lv) / 100; hitrate = 1000000; break; - case RG_RAID: // TvCYA^bN + case RG_RAID: // ãµãã©ã€ãºã¢ã¿ã㯠damage = damage * (100 + 40 * skill_lv) / 100; break; - case RG_INTIMIDATE: // CeB~fCg + case RG_INTIMIDATE: // ã€ã³ãã£ããã€ã damage = damage * (100 + 30 * skill_lv) / 100; break; - case CR_SHIELDCHARGE: // V[h`[W + case CR_SHIELDCHARGE: // ã·ãŒã«ããã£ãŒãž damage = damage * (100 + 20 * skill_lv) / 100; flag = (flag & ~BF_RANGEMASK) | BF_SHORT; s_ele = 0; break; - case CR_SHIELDBOOMERANG: // V[hu[ + case CR_SHIELDBOOMERANG: // ã·ãŒã«ãããŒã¡ã©ã³ damage = damage * (100 + 30 * skill_lv) / 100; flag = (flag & ~BF_RANGEMASK) | BF_LONG; s_ele = 0; break; - case CR_HOLYCROSS: // z[[NX + case CR_HOLYCROSS: // ããŒãªãŒã¯ãã¹ damage = damage * (100 + 35 * skill_lv) / 100; div_ = 2; break; case CR_GRANDCROSS: hitrate = 1000000; break; - case AM_DEMONSTRATION: // fXg[V + case AM_DEMONSTRATION: // ãã¢ã³ã¹ãã¬ãŒã·ã§ã³ damage = damage * (100 + 20 * skill_lv) / 100; damage2 = damage2 * (100 + 20 * skill_lv) / 100; break; - case AM_ACIDTERROR: // AVbhe[ + case AM_ACIDTERROR: // ã¢ã·ãããã©ãŒ damage = damage * (100 + 40 * skill_lv) / 100; damage2 = damage2 * (100 + 40 * skill_lv) / 100; break; - case MO_FINGEROFFENSIVE: //we + case MO_FINGEROFFENSIVE: //æ匟 damage = damage * (100 + 50 * skill_lv) / 100; div_ = 1; break; - case MO_INVESTIGATE: // € + case MO_INVESTIGATE: // çº å if (def1 < 1000000) damage = damage * (100 + 75 * skill_lv) / 100 * (def1 + @@ -2367,61 +2367,61 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, hitrate = 1000000; s_ele = 0; break; - case MO_EXTREMITYFIST: // ¢C
eP + case MO_EXTREMITYFIST: // é¿ä¿®çŸ
èŠé³³æ³ damage = damage * 8 + 250 + (skill_lv * 150); hitrate = 1000000; s_ele = 0; break; - case MO_CHAINCOMBO: // AŶ + case MO_CHAINCOMBO: // é£ææ damage = damage * (150 + 50 * skill_lv) / 100; div_ = 4; break; - case BA_MUSICALSTRIKE: // ~
[WJXgCN + case BA_MUSICALSTRIKE: // ãã¥ãŒãžã«ã«ã¹ãã©ã€ã¯ damage = damage * (100 + 50 * skill_lv) / 100; flag = (flag & ~BF_RANGEMASK) | BF_LONG; break; - case DC_THROWARROW: // î¿ + case DC_THROWARROW: // ç¢æã¡ damage = damage * (100 + 50 * skill_lv) / 100; flag = (flag & ~BF_RANGEMASK) | BF_LONG; break; - case MO_COMBOFINISH: // ÒŽ + case MO_COMBOFINISH: // çéŸæ³ damage = damage * (240 + 60 * skill_lv) / 100; break; - case CH_TIGERFIST: // Õ + case CH_TIGERFIST: // äŒèæ³ damage = damage * (100 + 20 * skill_lv) / 100; break; - case CH_CHAINCRUSH: // Aö + case CH_CHAINCRUSH: // é£æ±åŽ©æ damage = damage * (100 + 20 * skill_lv) / 100; div_ = skill_get_num (skill_num, skill_lv); break; - case CH_PALMSTRIKE: // ÒÕdhR + case CH_PALMSTRIKE: // çè硬掟山 damage = damage * (50 + 100 * skill_lv) / 100; break; - case LK_SPIRALPIERCE: /* XpCsA[X */ - damage = damage * (100 + 50 * skill_lv) / 100; //Áʪª©çÈ¢ÌÅKÉ + case LK_SPIRALPIERCE: /* ã¹ãã€ã©ã«ãã¢ãŒã¹ */ + damage = damage * (100 + 50 * skill_lv) / 100; //å¢å éãåãããªãã®ã§é©åœã« div_ = 5; if (tsd) tsd->canmove_tick = gettick () + 1000; else if (tmd) tmd->canmove_tick = gettick () + 1000; break; - case LK_HEADCRUSH: /* wbhNbV
*/ + case LK_HEADCRUSH: /* ãããã¯ã©ãã·ã¥ */ damage = damage * (100 + 20 * skill_lv) / 100; break; - case LK_JOINTBEAT: /* WCgr[g */ + case LK_JOINTBEAT: /* ãžã§ã€ã³ãããŒã */ damage = damage * (50 + 10 * skill_lv) / 100; break; - case ASC_METEORASSAULT: /* eIATg */ + case ASC_METEORASSAULT: /* ã¡ããªã¢ãµã«ã */ damage = damage * (40 + 40 * skill_lv) / 100; break; - case SN_SHARPSHOOTING: /* V[vV
[eBO */ + case SN_SHARPSHOOTING: /* ã·ã£ãŒãã·ã¥ãŒãã£ã³ã° */ damage += damage * (30 * skill_lv) / 100; break; - case CG_ARROWVULCAN: /* A[oJ */ + case CG_ARROWVULCAN: /* ã¢ããŒãã«ã«ã³ */ damage = damage * (160 + 40 * skill_lv) / 100; div_ = 9; break; - case AS_SPLASHER: /* xiXvbV[ */ + case AS_SPLASHER: /* ããã ã¹ãã©ãã·ã£ãŒ */ damage = damage * (200 + 20 * skill_lv) / 100; break; } @@ -2429,11 +2429,11 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, if (skill_num != NPC_CRITICALSLASH) { - // Î ÛÌhäÍÉæé_[WÌž - // fBoCveNVi±±Å¢¢Ì©ÈHj + // 察 象ã®é²åŸ¡åã«ãããã¡ãŒãžã®æžå° + // ãã£ãã€ã³ãããã¯ã·ã§ã³ïŒããã§ããã®ããªïŒïŒ if (skill_num != MO_INVESTIGATE && skill_num != MO_EXTREMITYFIST && skill_num != KN_AUTOCOUNTER && def1 < 1000000) - { //DEF, VIT³ + { //DEF, VITç¡èŠ int t_def; target_count = 1 + battle_counttargeted (target, src, @@ -2513,17 +2513,17 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, } } - // 0¢ŸÁœê1Éâ³ + // 0æªæºã ã£ãå Žå1ã«è£æ£ if (damage < 1) damage = 1; - // ñðC³ + // åé¿ä¿®æ£ if (hitrate < 1000000) hitrate = ((hitrate > 95) ? 95 : ((hitrate < 5) ? 5 : hitrate)); - if (hitrate < 1000000 && // KU - (t_sc_data != NULL && (t_sc_data[SC_SLEEP].timer != -1 || // °ÍK - t_sc_data[SC_STAN].timer != -1 || // X^ÍK - t_sc_data[SC_FREEZE].timer != -1 || (t_sc_data[SC_STONE].timer != -1 && t_sc_data[SC_STONE].val2 == 0)))) // ÍK + if (hitrate < 1000000 && // å¿
äžæ»æ + (t_sc_data != NULL && (t_sc_data[SC_SLEEP].timer != -1 || // ç¡ç ã¯å¿
äž + t_sc_data[SC_STAN].timer != -1 || // ã¹ã¿ã³ã¯å¿
äž + t_sc_data[SC_FREEZE].timer != -1 || (t_sc_data[SC_STONE].timer != -1 && t_sc_data[SC_STONE].val2 == 0)))) // åçµã¯å¿
äž hitrate = 1000000; if (type == 0 && MRAND (100) >= hitrate) { @@ -2538,8 +2538,8 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, if (tsd) { int cardfix = 100, i; - cardfix = cardfix * (100 - tsd->subele[s_ele]) / 100; // ® «Éæé_[WÏ« - cardfix = cardfix * (100 - tsd->subrace[s_race]) / 100; // í°Éæé_[WÏ« + cardfix = cardfix * (100 - tsd->subele[s_ele]) / 100; // å± æ§ã«ãããã¡ãŒãžèæ§ + cardfix = cardfix * (100 - tsd->subrace[s_race]) / 100; // çš®æã«ãããã¡ãŒãžèæ§ if (mob_db[md->class].mode & 0x20) cardfix = cardfix * (100 - tsd->subrace[10]) / 100; else @@ -2567,7 +2567,7 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, damage = damage * cardfix / 100; } if (t_sc_data && t_sc_data[SC_ASSUMPTIO].timer != -1) - { //AVveBI + { //ã¢ã·ã£ã³ããã£ãª if (!map[target->m].flag.pvp) damage = damage / 3; else @@ -2577,19 +2577,19 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, if (damage < 0) damage = 0; - // ® «ÌKp + // å± æ§ã®é©çš if (!((battle_config.mob_ghostring_fix == 1) && (battle_get_element (target) == 8) && (target->type == BL_PC))) // [MouseJstr] if (skill_num != 0 || s_ele != 0 || !battle_config.mob_attack_attr_none) damage = battle_attr_fix (damage, s_ele, battle_get_element (target)); - if (sc_data && sc_data[SC_AURABLADE].timer != -1) /* I[u[h K */ + if (sc_data && sc_data[SC_AURABLADE].timer != -1) /* ãªãŒã©ãã¬ãŒã å¿
äž */ damage += sc_data[SC_AURABLADE].val1 * 10; - if (skill_num == PA_PRESSURE) /* vbV[ K? */ + if (skill_num == PA_PRESSURE) /* ãã¬ãã·ã£ãŒ å¿
äž? */ damage = 700 + 100 * skill_lv; - // CxiC³ + // ã€ã³ããã ä¿®æ£ if (skill_num == TF_POISON) { damage = @@ -2601,7 +2601,7 @@ static struct Damage battle_calc_mob_weapon_attack (struct block_list *src, damage = battle_attr_fix (damage, 0, battle_get_element (target)); } - // ®SñðÌ»è + // å®å
šåé¿ã®å€å® if (skill_num == 0 && skill_lv >= 0 && tsd != NULL && MRAND (1000) < battle_get_flee2 (target)) { @@ -2664,7 +2664,7 @@ int battle_is_unarmed (struct block_list *bl) /* * ========================================================================= - * PCÌíÉæéU + * PCã®æŠåšã«ããæ»æ *------------------------------------------------------------------------- */ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, @@ -2688,13 +2688,13 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, struct status_change *sc_data, *t_sc_data; short *sc_count; short *option, *opt1, *opt2; - int atkmax_ = 0, atkmin_ = 0, s_ele_; //ñ¬p + int atkmax_ = 0, atkmin_ = 0, s_ele_; //äºåæµçš int watk, watk_, cardfix, t_ele; int da = 0, i, t_class, ac_flag = 0; int idef_flag = 0, idef_flag_ = 0; int target_distance; - //returnO̪ éÌÅîñoÍÌÝÏX + //returnåã®åŠçãããã®ã§æ
å ±åºåéšã®ã¿å€æŽ if (src == NULL || target == NULL || sd == NULL) { nullpo_info (NLP_MARK); @@ -2702,31 +2702,31 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, return wd; } - // A^bJ[ - s_race = battle_get_race (src); //í° - s_ele = battle_get_attack_element (src); //®« - s_ele_ = battle_get_attack_element2 (src); //¶è®« - sc_data = battle_get_sc_data (src); //Xe[^XÙí - sc_count = battle_get_sc_count (src); //Xe[^XÙíÌ - option = battle_get_option (src); //éÆ©yRÆ©J[gÆ© - opt1 = battle_get_opt1 (src); //λAAX^A°AÃÅ - opt2 = battle_get_opt2 (src); //ÅAô¢AŸÙAÃÅH - - if (skill_num != CR_GRANDCROSS) //OhNXÅÈ¢Èç - sd->state.attack_type = BF_WEAPON; //U^CvÍíU - - // ^[Qbg - if (target->type == BL_PC) //ÎÛªPCÈç - tsd = (struct map_session_data *) target; //tsdÉãü(tmdÍNULL) - else if (target->type == BL_MOB) //ÎÛªMobÈç - tmd = (struct mob_data *) target; //tmdÉãü(tsdÍNULL) - t_race = battle_get_race (target); //ÎÛÌí° - t_ele = battle_get_elem_type (target); //ÎÛÌ®« - t_size = battle_get_size (target); //ÎÛÌTCY - t_mode = battle_get_mode (target); //ÎÛÌMode - t_sc_data = battle_get_sc_data (target); //ÎÛÌXe[^XÙí - -//I[gJE^[±±©ç + // ã¢ã¿ãã«ãŒ + s_race = battle_get_race (src); //çš®æ + s_ele = battle_get_attack_element (src); //å±æ§ + s_ele_ = battle_get_attack_element2 (src); //å·Šæå±æ§ + sc_data = battle_get_sc_data (src); //ã¹ããŒã¿ã¹ç°åžž + sc_count = battle_get_sc_count (src); //ã¹ããŒã¿ã¹ç°åžžã®æ° + option = battle_get_option (src); //é·¹ãšããã³ãšãã«ãŒããšã + opt1 = battle_get_opt1 (src); //ç³åãåçµãã¹ã¿ã³ãç¡ç ãæé + opt2 = battle_get_opt2 (src); //æ¯ãåªããæ²é»ãæéïŒ + + if (skill_num != CR_GRANDCROSS) //ã°ã©ã³ãã¯ãã¹ã§ãªããªã + sd->state.attack_type = BF_WEAPON; //æ»æã¿ã€ãã¯æŠåšæ»æ + + // ã¿ãŒã²ãã + if (target->type == BL_PC) //察象ãPCãªã + tsd = (struct map_session_data *) target; //tsdã«ä»£å
¥(tmdã¯NULL) + else if (target->type == BL_MOB) //察象ãMobãªã + tmd = (struct mob_data *) target; //tmdã«ä»£å
¥(tsdã¯NULL) + t_race = battle_get_race (target); //察象ã®çš®æ + t_ele = battle_get_elem_type (target); //察象ã®å±æ§ + t_size = battle_get_size (target); //察象ã®ãµã€ãº + t_mode = battle_get_mode (target); //察象ã®Mode + t_sc_data = battle_get_sc_data (target); //察象ã®ã¹ããŒã¿ã¹ç°åžž + +//ãªãŒãã«ãŠã³ã¿ãŒåŠçãããã if ((skill_num == 0 || (target->type == BL_PC && battle_config.pc_auto_counter_type & 2) || (target->type == BL_MOB @@ -2735,57 +2735,57 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, { if (skill_num != CR_GRANDCROSS && t_sc_data && t_sc_data[SC_AUTOCOUNTER].timer != -1) - { //OhNXÅÈAÎÛªI[gJE^[óÔÌê + { //ã°ã©ã³ãã¯ãã¹ã§ãªãã察象ããªãŒãã«ãŠã³ã¿ãŒç¶æ
ã®å Žå int dir = map_calc_dir (src, target->x, target->y), t_dir = battle_get_dir (target); int dist = distance (src->x, src->y, target->x, target->y); if (dist <= 0 || map_check_dir (dir, t_dir)) - { //ÎÛÆÌ£ª0ȺAÜœÍÎÛ̳ÊH + { //察象ãšã®è·é¢ã0以äžããŸãã¯å¯Ÿè±¡ã®æ£é¢ïŒ memset (&wd, 0, sizeof (wd)); t_sc_data[SC_AUTOCOUNTER].val3 = 0; t_sc_data[SC_AUTOCOUNTER].val4 = 1; if (sc_data && sc_data[SC_AUTOCOUNTER].timer == -1) - { //©ªªI[gJE^[óÔ + { //èªåããªãŒãã«ãŠã³ã¿ãŒç¶æ
int range = battle_get_range (target); - if ((target->type == BL_PC && ((struct map_session_data *) target)->status.weapon != 11 && dist <= range + 1) || //ÎÛªPCÅíª|îÅÈËöà - (target->type == BL_MOB && range <= 3 && dist <= range + 1)) //ÜœÍÎÛªMobÅËöª3ȺÅËöà + if ((target->type == BL_PC && ((struct map_session_data *) target)->status.weapon != 11 && dist <= range + 1) || //察象ãPCã§æŠåšãåŒç¢ã§ãªãå°çšå
+ (target->type == BL_MOB && range <= 3 && dist <= range + 1)) //ãŸãã¯å¯Ÿè±¡ãMobã§å°çšã3以äžã§å°çšå
t_sc_data[SC_AUTOCOUNTER].val3 = src->id; } - return wd; //_[W\¢ÌðÔµÄI¹ + return wd; //ãã¡ãŒãžæ§é äœãè¿ããŠçµäº } else ac_flag = 1; } } -//I[gJE^[±±ÜÅ +//ãªãŒãã«ãŠã³ã¿ãŒåŠçãããŸã§ - flag = BF_SHORT | BF_WEAPON | BF_NORMAL; // UÌíÞÌÝè + flag = BF_SHORT | BF_WEAPON | BF_NORMAL; // æ»æã®çš®é¡ã®èšå® - // ñðŠvZAñð»èÍãÅ + // åé¿çèšç®ãåé¿å€å®ã¯åŸã§ flee = battle_get_flee (target); - if (battle_config.agi_penaly_type > 0 || battle_config.vit_penaly_type > 0) //AGIAVITyieBÝèªLø - target_count += battle_counttargeted (target, src, battle_config.agi_penaly_count_lv); //ÎÛÌðZo + if (battle_config.agi_penaly_type > 0 || battle_config.vit_penaly_type > 0) //AGIãVITããã«ãã£èšå®ãæå¹ + target_count += battle_counttargeted (target, src, battle_config.agi_penaly_count_lv); //察象ã®æ°ãç®åº if (battle_config.agi_penaly_type > 0) { if (target_count >= battle_config.agi_penaly_count) - { //yieBÝèæèÎÛªœ¢ - if (battle_config.agi_penaly_type == 1) //ñðŠªagi_penaly_num%žÂž + { //ããã«ãã£èšå®ãã察象ãå€ã + if (battle_config.agi_penaly_type == 1) //åé¿çãagi_penaly_num%ãã€æžå° flee = (flee * (100 - (target_count - (battle_config.agi_penaly_count - 1)) * battle_config.agi_penaly_num)) / 100; - else if (battle_config.agi_penaly_type == 2) //ñðŠªagi_penaly_numªž + else if (battle_config.agi_penaly_type == 2) //åé¿çãagi_penaly_numåæžå° flee -= (target_count - (battle_config.agi_penaly_count - 1)) * battle_config.agi_penaly_num; if (flee < 1) - flee = 1; //ñðŠÍÅáÅà1 + flee = 1; //åé¿çã¯æäœã§ã1 } } - hitrate = battle_get_hit (src) - flee + 80; //œŠvZ + hitrate = battle_get_hit (src) - flee + 80; //åœäžçèšç® { // [fate] Reduce hit chance by distance int dx = abs (src->x - target->x); @@ -2801,18 +2801,18 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, dex = battle_get_dex (src); //DEX luk = battle_get_luk (src); //LUK watk = battle_get_atk (src); //ATK - watk_ = battle_get_atk_ (src); //ATK¶è + watk_ = battle_get_atk_ (src); //ATKå·Šæ type = 0; // normal div_ = 1; // single attack if (skill_num == HW_MAGICCRASHER) - { /* }WbNNbV[ÍMATKÅ£é */ - damage = damage2 = battle_get_matk1 (src); //damega,damega2oêAbase_atkÌæŸ + { /* ããžãã¯ã¯ã©ãã·ã£ãŒã¯MATKã§æ®Žã */ + damage = damage2 = battle_get_matk1 (src); //damega,damega2åç»å Žãbase_atkã®ååŸ } else { - damage = damage2 = battle_get_baseatk (&sd->bl); //damega,damega2oêAbase_atkÌæŸ + damage = damage2 = battle_get_baseatk (&sd->bl); //damega,damega2åç»å Žãbase_atkã®ååŸ } if (sd->attackrange > 2) { // [fate] ranged weapon? @@ -2827,8 +2827,8 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, sd->attackrange)) >> 8; } - atkmin = atkmin_ = dex; //ÅáATKÍDEXÅú»H - sd->state.arrow_atk = 0; //arrow_atkú» + atkmin = atkmin_ = dex; //æäœATKã¯DEXã§åæåïŒ + sd->state.arrow_atk = 0; //arrow_atkåæå if (sd->equip_index[9] >= 0 && sd->inventory_data[sd->equip_index[9]]) atkmin = atkmin * (80 + @@ -2839,22 +2839,22 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, sd->inventory_data[sd->equip_index[8]]->wlv * 20) / 100; if (sd->status.weapon == 11) - { //íª|îÌê - atkmin = watk * ((atkmin < watk) ? atkmin : watk) / 100; //|pÅáATKvZ - flag = (flag & ~BF_RANGEMASK) | BF_LONG; //£UtOðLø - if (sd->arrow_ele > 0) //®«îÈ箫ðîÌ®«ÉÏX + { //æŠåšãåŒç¢ã®å Žå + atkmin = watk * ((atkmin < watk) ? atkmin : watk) / 100; //åŒçšæäœATKèšç® + flag = (flag & ~BF_RANGEMASK) | BF_LONG; //é è·é¢æ»æãã©ã°ãæå¹ + if (sd->arrow_ele > 0) //å±æ§ç¢ãªãå±æ§ãç¢ã®å±æ§ã«å€æŽ s_ele = sd->arrow_ele; - sd->state.arrow_atk = 1; //arrow_atkLø» + sd->state.arrow_atk = 1; //arrow_atkæå¹å } - // TCYC³ - // yRRæµÄ¢ÄAÅUµœêÍ^ÌTCYC³ð100É·é - // EF|p[tFNV,hCNC + // ãµã€ãºä¿®æ£ + // ãã³éšä¹ããŠããŠãæ§ã§æ»æããå Žåã¯äžåã®ãµã€ãºä¿®æ£ã100ã«ãã + // ãŠã§ãã³ããŒãã§ã¯ã·ã§ã³,ãã¬ã€ã¯C if (((sd->special_state.no_sizefix) || (pc_isriding (sd) && (sd->status.weapon == 4 || sd->status.weapon == 5) && t_size == 1) || skill_num == MO_EXTREMITYFIST)) - { //yRRæµÄ¢ÄAÅ^ðU + { //ãã³éšä¹ããŠããŠãæ§ã§äžåãæ»æ atkmax = watk; atkmax_ = watk_; } @@ -2867,23 +2867,23 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } if ((sc_data != NULL && sc_data[SC_WEAPONPERFECTION].timer != -1) || (sd->special_state.no_sizefix)) - { // EF|p[tFNV || hCNJ[h + { // ãŠã§ãã³ããŒãã§ã¯ã·ã§ã³ || ãã¬ã€ã¯ã«ãŒã atkmax = watk; atkmax_ = watk_; } if (atkmin > atkmax && !(sd->state.arrow_atk)) - atkmin = atkmax; //|ÍÅáªãñéê è + atkmin = atkmax; //åŒã¯æäœãäžåãå Žåãã if (atkmin_ > atkmax_) atkmin_ = atkmax_; if (sc_data != NULL && sc_data[SC_MAXIMIZEPOWER].timer != -1) - { // }LV}CYp[ + { // ããã·ãã€ãºãã¯ãŒ atkmin = atkmax; atkmin_ = atkmax_; } - //_uA^bN»è + //ããã«ã¢ã¿ãã¯å€å® if (sd->weapontype1 == 0x01) { if (skill_num == 0 && skill_lv >= 0 @@ -2891,7 +2891,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, da = (MRAND (100) < (skill * 5)) ? 1 : 0; } - //Oi¶ + //äžæ®µæ if (skill_num == 0 && skill_lv >= 0 && (skill = pc_checkskill (sd, MO_TRIPLEATTACK)) > 0 && sd->status.weapon <= 16 && !sd->state.arrow_atk) @@ -2902,24 +2902,24 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, if (sd->double_rate > 0 && da == 0 && skill_num == 0 && skill_lv >= 0) da = (MRAND (100) < sd->double_rate) ? 1 : 0; - // ßèžB{[iX + // éå°ç²Ÿé¬ããŒãã¹ if (sd->overrefine > 0) damage += MPRAND (1, sd->overrefine); if (sd->overrefine_ > 0) damage2 += MPRAND (1, sd->overrefine_); if (da == 0) - { //_uA^bNª®µÄ¢È¢ - // NeBJvZ + { //ããã«ã¢ã¿ãã¯ãçºåããŠããªã + // ã¯ãªãã£ã«ã«èšç® cri = battle_get_critical (src); if (sd->state.arrow_atk) cri += sd->arrow_cri; if (sd->status.weapon == 16) - // J^[ÌêANeBJð{É + // ã«ã¿ãŒã«ã®å Žåãã¯ãªãã£ã«ã«ãåã« cri <<= 1; cri -= battle_get_luk (target) * 3; - if (t_sc_data != NULL && t_sc_data[SC_SLEEP].timer != -1) // °ÍNeBJª{É + if (t_sc_data != NULL && t_sc_data[SC_SLEEP].timer != -1) // ç¡ç äžã¯ã¯ãªãã£ã«ã«ãåã« cri <<= 1; if (ac_flag) cri = 1000; @@ -2939,8 +2939,8 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, if (tsd && tsd->critical_def) cri = cri * (100 - tsd->critical_def) / 100; - if (da == 0 && (skill_num == 0 || skill_num == KN_AUTOCOUNTER || skill_num == SN_SHARPSHOOTING) && skill_lv >= 0 && //_uA^bNª®µÄ¢È¢ - (MRAND (1000)) < cri) // »èiXLÌêͳj + if (da == 0 && (skill_num == 0 || skill_num == KN_AUTOCOUNTER || skill_num == SN_SHARPSHOOTING) && skill_lv >= 0 && //ããã«ã¢ã¿ãã¯ãçºåããŠããªã + (MRAND (1000)) < cri) // å€å®ïŒã¹ãã«ã®å Žåã¯ç¡èŠïŒ { damage += atkmax; damage2 += atkmax_; @@ -3051,27 +3051,27 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } } - // XLC³PiUÍ{»nj - // I[o[gXg(+5% ` +25%),ŒUnXLÌê±±Åâ³ - // obV
,}OiuCN, - // {[OobV
,XsAu[,ufBbV
XsA,XsAX^bu, - // }[iCg,J[g{
[V - // _uXgCtBO,A[V[,`[WA[, - // \jbNu[ + // ã¹ãã«ä¿®æ£ïŒïŒæ»æåååç³»ïŒ + // ãªãŒããŒãã©ã¹ã(+5% ã +25%),ä»æ»æç³»ã¹ãã«ã®å Žåããã§è£æ£ + // ããã·ã¥,ãã°ãã ãã¬ã€ã¯, + // ããŒãªã³ã°ããã·ã¥,ã¹ãã¢ããŒã¡ã©ã³,ãã©ã³ãã£ãã·ã¥ã¹ãã¢,ã¹ãã¢ã¹ã¿ãã, + // ã¡ããŒãã€ã,ã«ãŒãã¬ããªã¥ãŒã·ã§ã³ + // ããã«ã¹ãã¬ã€ãã£ã³ã°,ã¢ããŒã·ã£ã¯ãŒ,ãã£ãŒãžã¢ããŒ, + // ãœããã¯ãã㌠if (sc_data) - { //óÔÙíÌ_[WÇÁ + { //ç¶æ
ç°åžžäžã®ãã¡ãŒãžè¿œå if (sc_data[SC_OVERTHRUST].timer != -1) - { // I[o[gXg + { // ãªãŒããŒãã©ã¹ã damage += damage * (5 * sc_data[SC_OVERTHRUST].val1) / 100; damage2 += damage2 * (5 * sc_data[SC_OVERTHRUST].val1) / 100; } if (sc_data[SC_TRUESIGHT].timer != -1) - { // gD[TCg + { // ãã¥ã«ãŒãµã€ã damage += damage * (2 * sc_data[SC_TRUESIGHT].val1) / 100; damage2 += damage2 * (2 * sc_data[SC_TRUESIGHT].val1) / 100; } if (sc_data[SC_BERSERK].timer != -1) - { // o[T[N + { // ããŒãµãŒã¯ damage += damage * 50 / 100; damage2 += damage2 * 50 / 100; } @@ -3086,22 +3086,22 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, flag = (flag & ~BF_SKILLMASK) | BF_SKILL; switch (skill_num) { - case SM_BASH: // obV
+ case SM_BASH: // ããã·ã¥ damage = damage * (100 + 30 * skill_lv) / 100; damage2 = damage2 * (100 + 30 * skill_lv) / 100; hitrate = (hitrate * (100 + 5 * skill_lv)) / 100; break; - case SM_MAGNUM: // }OiuCN + case SM_MAGNUM: // ãã°ãã ãã¬ã€ã¯ damage = damage * (5 * skill_lv + (wflag) ? 65 : 115) / 100; damage2 = damage2 * (5 * skill_lv + (wflag) ? 65 : 115) / 100; break; - case MC_MAMMONITE: // }[iCg + case MC_MAMMONITE: // ã¡ããŒãã€ã damage = damage * (100 + 50 * skill_lv) / 100; damage2 = damage2 * (100 + 50 * skill_lv) / 100; break; - case AC_DOUBLE: // _uXgCtBO + case AC_DOUBLE: // ããã«ã¹ãã¬ã€ãã£ã³ã° if (!sd->state.arrow_atk && sd->arrow_atk > 0) { int arr = MRAND ((sd->arrow_atk + 1)); @@ -3119,7 +3119,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, flag = (flag & ~BF_RANGEMASK) | BF_LONG; sd->state.arrow_atk = 1; break; - case AC_SHOWER: // A[V[ + case AC_SHOWER: // ã¢ããŒã·ã£ã¯ãŒ if (!sd->state.arrow_atk && sd->arrow_atk > 0) { int arr = MRAND ((sd->arrow_atk + 1)); @@ -3136,7 +3136,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, flag = (flag & ~BF_RANGEMASK) | BF_LONG; sd->state.arrow_atk = 1; break; - case AC_CHARGEARROW: // `[WA[ + case AC_CHARGEARROW: // ãã£ãŒãžã¢ã㌠if (!sd->state.arrow_atk && sd->arrow_atk > 0) { int arr = MRAND ((sd->arrow_atk + 1)); @@ -3153,7 +3153,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, flag = (flag & ~BF_RANGEMASK) | BF_LONG; sd->state.arrow_atk = 1; break; - case KN_PIERCE: // sA[X + case KN_PIERCE: // ãã¢ãŒã¹ damage = damage * (100 + 10 * skill_lv) / 100; damage2 = damage2 * (100 + 10 * skill_lv) / 100; hitrate = hitrate * (100 + 5 * skill_lv) / 100; @@ -3161,16 +3161,16 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, damage *= div_; damage2 *= div_; break; - case KN_SPEARSTAB: // XsAX^u + case KN_SPEARSTAB: // ã¹ãã¢ã¹ã¿ã damage = damage * (100 + 15 * skill_lv) / 100; damage2 = damage2 * (100 + 15 * skill_lv) / 100; break; - case KN_SPEARBOOMERANG: // XsAu[ + case KN_SPEARBOOMERANG: // ã¹ãã¢ããŒã¡ã©ã³ damage = damage * (100 + 50 * skill_lv) / 100; damage2 = damage2 * (100 + 50 * skill_lv) / 100; flag = (flag & ~BF_RANGEMASK) | BF_LONG; break; - case KN_BRANDISHSPEAR: // ufBbV
XsA + case KN_BRANDISHSPEAR: // ãã©ã³ãã£ãã·ã¥ã¹ã㢠damage = damage * (100 + 20 * skill_lv) / 100; damage2 = damage2 * (100 + 20 * skill_lv) / 100; if (skill_lv > 3 && wflag == 1) @@ -3201,7 +3201,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, damage2 += damage4; blewcount = 0; break; - case KN_BOWLINGBASH: // {EOobV
+ case KN_BOWLINGBASH: // ããŠãªã³ã°ããã·ã¥ damage = damage * (100 + 50 * skill_lv) / 100; damage2 = damage2 * (100 + 50 * skill_lv) / 100; blewcount = 0; @@ -3213,17 +3213,17 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, hitrate = 1000000; flag = (flag & ~BF_SKILLMASK) | BF_NORMAL; break; - case AS_SONICBLOW: // \jbNuE + case AS_SONICBLOW: // ãœããã¯ãã㊠hitrate += 30; // hitrate +30, thanks to midas damage = damage * (300 + 50 * skill_lv) / 100; damage2 = damage2 * (300 + 50 * skill_lv) / 100; div_ = 8; break; - case TF_SPRINKLESAND: // »Ü« + case TF_SPRINKLESAND: // ç ãŸã damage = damage * 125 / 100; damage2 = damage2 * 125 / 100; break; - case MC_CARTREVOLUTION: // J[g{
[V + case MC_CARTREVOLUTION: // ã«ãŒãã¬ããªã¥ãŒã·ã§ã³ if (sd->cart_max_weight > 0 && sd->cart_weight > 0) { damage = @@ -3243,17 +3243,17 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, damage2 = (damage2 * 150) / 100; } break; - // ȺMOB - case NPC_COMBOATTACK: // œiU + // 以äžMOB + case NPC_COMBOATTACK: // å€æ®µæ»æ div_ = skill_get_num (skill_num, skill_lv); damage *= div_; damage2 *= div_; break; - case NPC_RANDOMATTACK: // _ATKU + case NPC_RANDOMATTACK: // ã©ã³ãã ATKæ»æ damage = damage * (MPRAND (50, 150)) / 100; damage2 = damage2 * (MPRAND (50, 150)) / 100; break; - // ®«UiKj + // å±æ§æ»æïŒé©åœïŒ case NPC_WATERATTACK: case NPC_GROUNDATTACK: case NPC_FIREATTACK: @@ -3274,7 +3274,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, case NPC_PIERCINGATT: flag = (flag & ~BF_RANGEMASK) | BF_SHORT; break; - case RG_BACKSTAP: // obNX^u + case RG_BACKSTAP: // ããã¯ã¹ã¿ã if (battle_config.backstab_bow_penalty == 1 && sd->status.weapon == 11) { @@ -3288,27 +3288,27 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } hitrate = 1000000; break; - case RG_RAID: // TvCYA^bN + case RG_RAID: // ãµãã©ã€ãºã¢ã¿ã㯠damage = damage * (100 + 40 * skill_lv) / 100; damage2 = damage2 * (100 + 40 * skill_lv) / 100; break; - case RG_INTIMIDATE: // CeB~fCg + case RG_INTIMIDATE: // ã€ã³ãã£ããã€ã damage = damage * (100 + 30 * skill_lv) / 100; damage2 = damage2 * (100 + 30 * skill_lv) / 100; break; - case CR_SHIELDCHARGE: // V[h`[W + case CR_SHIELDCHARGE: // ã·ãŒã«ããã£ãŒãž damage = damage * (100 + 20 * skill_lv) / 100; damage2 = damage2 * (100 + 20 * skill_lv) / 100; flag = (flag & ~BF_RANGEMASK) | BF_SHORT; s_ele = 0; break; - case CR_SHIELDBOOMERANG: // V[hu[ + case CR_SHIELDBOOMERANG: // ã·ãŒã«ãããŒã¡ã©ã³ damage = damage * (100 + 30 * skill_lv) / 100; damage2 = damage2 * (100 + 30 * skill_lv) / 100; flag = (flag & ~BF_RANGEMASK) | BF_LONG; s_ele = 0; break; - case CR_HOLYCROSS: // z[[NX + case CR_HOLYCROSS: // ããŒãªãŒã¯ãã¹ damage = damage * (100 + 35 * skill_lv) / 100; damage2 = damage2 * (100 + 35 * skill_lv) / 100; div_ = 2; @@ -3316,15 +3316,15 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, case CR_GRANDCROSS: hitrate = 1000000; break; - case AM_DEMONSTRATION: // fXg[V + case AM_DEMONSTRATION: // ãã¢ã³ã¹ãã¬ãŒã·ã§ã³ damage = damage * (100 + 20 * skill_lv) / 100; damage2 = damage2 * (100 + 20 * skill_lv) / 100; break; - case AM_ACIDTERROR: // AVbhe[ + case AM_ACIDTERROR: // ã¢ã·ãããã©ãŒ damage = damage * (100 + 40 * skill_lv) / 100; damage2 = damage2 * (100 + 40 * skill_lv) / 100; break; - case MO_FINGEROFFENSIVE: //we + case MO_FINGEROFFENSIVE: //æ匟 if (battle_config.finger_offensive_type == 0) { damage = @@ -3344,7 +3344,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, div_ = 1; } break; - case MO_INVESTIGATE: // € + case MO_INVESTIGATE: // çº å if (def1 < 1000000) { damage = @@ -3360,7 +3360,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, s_ele = 0; s_ele_ = 0; break; - case MO_EXTREMITYFIST: // ¢C
eP + case MO_EXTREMITYFIST: // é¿ä¿®çŸ
èŠé³³æ³ damage = damage * (8 + ((sd->status.sp) / 10)) + 250 + (skill_lv * 150); @@ -3373,16 +3373,16 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, s_ele = 0; s_ele_ = 0; break; - case MO_CHAINCOMBO: // AŶ + case MO_CHAINCOMBO: // é£ææ damage = damage * (150 + 50 * skill_lv) / 100; damage2 = damage2 * (150 + 50 * skill_lv) / 100; div_ = 4; break; - case MO_COMBOFINISH: // ÒŽ + case MO_COMBOFINISH: // çéŸæ³ damage = damage * (240 + 60 * skill_lv) / 100; damage2 = damage2 * (240 + 60 * skill_lv) / 100; break; - case BA_MUSICALSTRIKE: // ~
[WJXgCN + case BA_MUSICALSTRIKE: // ãã¥ãŒãžã«ã«ã¹ãã©ã€ã¯ if (!sd->state.arrow_atk && sd->arrow_atk > 0) { int arr = MRAND ((sd->arrow_atk + 1)); @@ -3399,7 +3399,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, flag = (flag & ~BF_RANGEMASK) | BF_LONG; sd->state.arrow_atk = 1; break; - case DC_THROWARROW: // î¿ + case DC_THROWARROW: // ç¢æã¡ if (!sd->state.arrow_atk && sd->arrow_atk > 0) { int arr = MRAND ((sd->arrow_atk + 1)); @@ -3416,50 +3416,50 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, flag = (flag & ~BF_RANGEMASK) | BF_LONG; sd->state.arrow_atk = 1; break; - case CH_TIGERFIST: // Õ + case CH_TIGERFIST: // äŒèæ³ damage = damage * (100 + 20 * skill_lv) / 100; damage2 = damage2 * (100 + 20 * skill_lv) / 100; break; - case CH_CHAINCRUSH: // Aö + case CH_CHAINCRUSH: // é£æ±åŽ©æ damage = damage * (100 + 20 * skill_lv) / 100; damage2 = damage2 * (100 + 20 * skill_lv) / 100; div_ = skill_get_num (skill_num, skill_lv); break; - case CH_PALMSTRIKE: // ÒÕdhR + case CH_PALMSTRIKE: // çè硬掟山 damage = damage * (50 + 100 * skill_lv) / 100; damage2 = damage2 * (50 + 100 * skill_lv) / 100; break; - case LK_SPIRALPIERCE: /* XpCsA[X */ - damage = damage * (100 + 50 * skill_lv) / 100; //Áʪª©çÈ¢ÌÅKÉ - damage2 = damage2 * (100 + 50 * skill_lv) / 100; //Áʪª©çÈ¢ÌÅKÉ + case LK_SPIRALPIERCE: /* ã¹ãã€ã©ã«ãã¢ãŒã¹ */ + damage = damage * (100 + 50 * skill_lv) / 100; //å¢å éãåãããªãã®ã§é©åœã« + damage2 = damage2 * (100 + 50 * skill_lv) / 100; //å¢å éãåãããªãã®ã§é©åœã« div_ = 5; if (tsd) tsd->canmove_tick = gettick () + 1000; else if (tmd) tmd->canmove_tick = gettick () + 1000; break; - case LK_HEADCRUSH: /* wbhNbV
*/ + case LK_HEADCRUSH: /* ãããã¯ã©ãã·ã¥ */ damage = damage * (100 + 20 * skill_lv) / 100; damage2 = damage2 * (100 + 20 * skill_lv) / 100; break; - case LK_JOINTBEAT: /* WCgr[g */ + case LK_JOINTBEAT: /* ãžã§ã€ã³ãããŒã */ damage = damage * (50 + 10 * skill_lv) / 100; damage2 = damage2 * (50 + 10 * skill_lv) / 100; break; - case ASC_METEORASSAULT: /* eIATg */ + case ASC_METEORASSAULT: /* ã¡ããªã¢ãµã«ã */ damage = damage * (40 + 40 * skill_lv) / 100; damage2 = damage2 * (40 + 40 * skill_lv) / 100; break; - case SN_SHARPSHOOTING: /* V[vV
[eBO */ + case SN_SHARPSHOOTING: /* ã·ã£ãŒãã·ã¥ãŒãã£ã³ã° */ damage += damage * (30 * skill_lv) / 100; damage2 += damage2 * (30 * skill_lv) / 100; break; - case CG_ARROWVULCAN: /* A[oJ */ + case CG_ARROWVULCAN: /* ã¢ããŒãã«ã«ã³ */ damage = damage * (160 + 40 * skill_lv) / 100; damage2 = damage2 * (160 + 40 * skill_lv) / 100; div_ = 9; break; - case AS_SPLASHER: /* xiXvbV[ */ + case AS_SPLASHER: /* ããã ã¹ãã©ãã·ã£ãŒ */ damage = damage * (200 + 20 * skill_lv + 20 * pc_checkskill (sd, @@ -3542,9 +3542,9 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } } if (da == 2) - { //Oi¶ª®µÄ¢é© + { //äžæ®µæãçºåããŠããã type = 0x08; - div_ = 255; //Oi¶pÉc + div_ = 255; //äžæ®µæçšã«âŠ damage = damage * (100 + 20 * pc_checkskill (sd, MO_TRIPLEATTACK)) / 100; @@ -3552,11 +3552,11 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, if (skill_num != NPC_CRITICALSLASH) { - // Î ÛÌhäÍÉæé_[WÌž - // fBoCveNVi±±Å¢¢Ì©ÈHj + // 察 象ã®é²åŸ¡åã«ãããã¡ãŒãžã®æžå° + // ãã£ãã€ã³ãããã¯ã·ã§ã³ïŒããã§ããã®ããªïŒïŒ if (skill_num != MO_INVESTIGATE && skill_num != MO_EXTREMITYFIST && skill_num != KN_AUTOCOUNTER && def1 < 1000000) - { //DEF, VIT³ + { //DEF, VITç¡èŠ int t_def; target_count = 1 + battle_counttargeted (target, src, @@ -3676,9 +3676,9 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } } } - // žB_[WÌÇÁ + // 粟é¬ãã¡ãŒãžã®è¿œå if (skill_num != MO_INVESTIGATE && skill_num != MO_EXTREMITYFIST) - { //DEF, VIT³ + { //DEF, VITç¡èŠ damage += battle_get_atk2 (src); damage2 += battle_get_atk_2 (src); } @@ -3698,9 +3698,9 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } } if (skill_num == LK_SPIRALPIERCE) - { /* XpCsA[X */ + { /* ã¹ãã€ã©ã«ãã¢ãŒã¹ */ if (sd->equip_index[9] >= 0) - { //dÊÅÇÁ_[Wçµ¢ÌÅV[hu[ðQlÉÇÁ + { //ééã§è¿œå ãã¡ãŒãžãããã®ã§ã·ãŒã«ãããŒã¡ã©ã³ãåèã«è¿œå int index = sd->equip_index[9]; if (sd->inventory_data[index] && sd->inventory_data[index]->type == 4) @@ -3715,17 +3715,17 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } } - // 0¢ŸÁœê1Éâ³ + // 0æªæºã ã£ãå Žå1ã«è£æ£ if (damage < 1) damage = 1; if (damage2 < 1) damage2 = 1; - // XLC³QiCûnj - // Cû_[W(EèÌÝ) \jbNu[ÍÊi1Ét«1/8K) + // ã¹ãã«ä¿®æ£ïŒïŒä¿®ç·Žç³»ïŒ + // 修緎ãã¡ãŒãž(å³æã®ã¿) ãœããã¯ãããŒæã¯å¥åŠçïŒ1æã«ä»ã1/8é©å¿) if (skill_num != MO_INVESTIGATE && skill_num != MO_EXTREMITYFIST && skill_num != CR_GRANDCROSS) - { //Cû_[W³ + { //修緎ãã¡ãŒãžç¡èŠ damage = battle_addmastery (sd, target, damage, 0); damage2 = battle_addmastery (sd, target, damage2, 1); } @@ -3736,12 +3736,12 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, hitrate = 1000000; } - // ñðC³ + // åé¿ä¿®æ£ hitrate = (hitrate < 5) ? 5 : hitrate; - if (hitrate < 1000000 && // KU - (t_sc_data != NULL && (t_sc_data[SC_SLEEP].timer != -1 || // °ÍK - t_sc_data[SC_STAN].timer != -1 || // X^ÍK - t_sc_data[SC_FREEZE].timer != -1 || (t_sc_data[SC_STONE].timer != -1 && t_sc_data[SC_STONE].val2 == 0)))) // ÍK + if (hitrate < 1000000 && // å¿
äžæ»æ + (t_sc_data != NULL && (t_sc_data[SC_SLEEP].timer != -1 || // ç¡ç ã¯å¿
äž + t_sc_data[SC_STAN].timer != -1 || // ã¹ã¿ã³ã¯å¿
äž + t_sc_data[SC_FREEZE].timer != -1 || (t_sc_data[SC_STONE].timer != -1 && t_sc_data[SC_STONE].val2 == 0)))) // åçµã¯å¿
äž hitrate = 1000000; if (type == 0 && MRAND (100) >= hitrate) { @@ -3752,7 +3752,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, { dmg_lv = ATK_DEF; } - // XLC³Rií€j + // ã¹ãã«ä¿®æ£ïŒïŒæŠåšç ç©¶ïŒ if ((skill = pc_checkskill (sd, BS_WEAPONRESEARCH)) > 0) { damage += skill * 2; @@ -3767,56 +3767,56 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } } -//XLÉæé_[Wâ³±±ÜÅ +//ã¹ãã«ã«ãããã¡ãŒãžè£æ£ãããŸã§ -//J[hÉæé_[WÇÁ±±©ç +//ã«ãŒãã«ãããã¡ãŒãžè¿œå åŠçãããã cardfix = 100; if (!sd->state.arrow_atk) - { //|îÈO + { //åŒç¢ä»¥å€ if (!battle_config.left_cardfix_to_right) - { //¶èJ[hâ³Ýè³µ - cardfix = cardfix * (100 + sd->addrace[t_race]) / 100; // í°Éæé_[WC³ - cardfix = cardfix * (100 + sd->addele[t_ele]) / 100; // ®«Éæé_[WC³ - cardfix = cardfix * (100 + sd->addsize[t_size]) / 100; // TCYÉæé_[WC³ + { //å·Šæã«ãŒãè£æ£èšå®ç¡ã + cardfix = cardfix * (100 + sd->addrace[t_race]) / 100; // çš®æã«ãããã¡ãŒãžä¿®æ£ + cardfix = cardfix * (100 + sd->addele[t_ele]) / 100; // å±æ§ã«ãããã¡ãŒãžä¿®æ£ + cardfix = cardfix * (100 + sd->addsize[t_size]) / 100; // ãµã€ãºã«ãããã¡ãŒãžä¿®æ£ } else { - cardfix = cardfix * (100 + sd->addrace[t_race] + sd->addrace_[t_race]) / 100; // í°Éæé_[WC³(¶èÉæéÇÁ è) - cardfix = cardfix * (100 + sd->addele[t_ele] + sd->addele_[t_ele]) / 100; // ®«Éæé_[WC³(¶èÉæéÇÁ è) - cardfix = cardfix * (100 + sd->addsize[t_size] + sd->addsize_[t_size]) / 100; // TCYÉæé_[WC³(¶èÉæéÇÁ è) + cardfix = cardfix * (100 + sd->addrace[t_race] + sd->addrace_[t_race]) / 100; // çš®æã«ãããã¡ãŒãžä¿®æ£(å·Šæã«ããè¿œå ãã) + cardfix = cardfix * (100 + sd->addele[t_ele] + sd->addele_[t_ele]) / 100; // å±æ§ã«ãããã¡ãŒãžä¿®æ£(å·Šæã«ããè¿œå ãã) + cardfix = cardfix * (100 + sd->addsize[t_size] + sd->addsize_[t_size]) / 100; // ãµã€ãºã«ãããã¡ãŒãžä¿®æ£(å·Šæã«ããè¿œå ãã) } } else - { //|î - cardfix = cardfix * (100 + sd->addrace[t_race] + sd->arrow_addrace[t_race]) / 100; // í°Éæé_[WC³(|îÉæéÇÁ è) - cardfix = cardfix * (100 + sd->addele[t_ele] + sd->arrow_addele[t_ele]) / 100; // ®«Éæé_[WC³(|îÉæéÇÁ è) - cardfix = cardfix * (100 + sd->addsize[t_size] + sd->arrow_addsize[t_size]) / 100; // TCYÉæé_[WC³(|îÉæéÇÁ è) + { //åŒç¢ + cardfix = cardfix * (100 + sd->addrace[t_race] + sd->arrow_addrace[t_race]) / 100; // çš®æã«ãããã¡ãŒãžä¿®æ£(åŒç¢ã«ããè¿œå ãã) + cardfix = cardfix * (100 + sd->addele[t_ele] + sd->arrow_addele[t_ele]) / 100; // å±æ§ã«ãããã¡ãŒãžä¿®æ£(åŒç¢ã«ããè¿œå ãã) + cardfix = cardfix * (100 + sd->addsize[t_size] + sd->arrow_addsize[t_size]) / 100; // ãµã€ãºã«ãããã¡ãŒãžä¿®æ£(åŒç¢ã«ããè¿œå ãã) } if (t_mode & 0x20) - { //{X + { //ãã¹ if (!sd->state.arrow_atk) - { //|îUÈOÈç - if (!battle_config.left_cardfix_to_right) //¶èJ[hâ³Ýè³µ - cardfix = cardfix * (100 + sd->addrace[10]) / 100; //{XX^[ÉÇÁ_[W - else //¶èJ[hâ³Ýè è - cardfix = cardfix * (100 + sd->addrace[10] + sd->addrace_[10]) / 100; //{XX^[ÉÇÁ_[W(¶èÉæéÇÁ è) + { //åŒç¢æ»æ以å€ãªã + if (!battle_config.left_cardfix_to_right) //å·Šæã«ãŒãè£æ£èšå®ç¡ã + cardfix = cardfix * (100 + sd->addrace[10]) / 100; //ãã¹ã¢ã³ã¹ã¿ãŒã«è¿œå ãã¡ãŒãž + else //å·Šæã«ãŒãè£æ£èšå®ãã + cardfix = cardfix * (100 + sd->addrace[10] + sd->addrace_[10]) / 100; //ãã¹ã¢ã³ã¹ã¿ãŒã«è¿œå ãã¡ãŒãž(å·Šæã«ããè¿œå ãã) } - else //|îU - cardfix = cardfix * (100 + sd->addrace[10] + sd->arrow_addrace[10]) / 100; //{XX^[ÉÇÁ_[W(|îÉæéÇÁ è) + else //åŒç¢æ»æ + cardfix = cardfix * (100 + sd->addrace[10] + sd->arrow_addrace[10]) / 100; //ãã¹ã¢ã³ã¹ã¿ãŒã«è¿œå ãã¡ãŒãž(åŒç¢ã«ããè¿œå ãã) } else - { //{X¶áÈ¢ + { //ãã¹ãããªã if (!sd->state.arrow_atk) - { //|îUÈO - if (!battle_config.left_cardfix_to_right) //¶èJ[hâ³Ýè³µ - cardfix = cardfix * (100 + sd->addrace[11]) / 100; //{XÈOX^[ÉÇÁ_[W - else //¶èJ[hâ³Ýè è - cardfix = cardfix * (100 + sd->addrace[11] + sd->addrace_[11]) / 100; //{XÈOX^[ÉÇÁ_[W(¶èÉæéÇÁ è) + { //åŒç¢æ»æä»¥å€ + if (!battle_config.left_cardfix_to_right) //å·Šæã«ãŒãè£æ£èšå®ç¡ã + cardfix = cardfix * (100 + sd->addrace[11]) / 100; //ãã¹ä»¥å€ã¢ã³ã¹ã¿ãŒã«è¿œå ãã¡ãŒãž + else //å·Šæã«ãŒãè£æ£èšå®ãã + cardfix = cardfix * (100 + sd->addrace[11] + sd->addrace_[11]) / 100; //ãã¹ä»¥å€ã¢ã³ã¹ã¿ãŒã«è¿œå ãã¡ãŒãž(å·Šæã«ããè¿œå ãã) } else - cardfix = cardfix * (100 + sd->addrace[11] + sd->arrow_addrace[11]) / 100; //{XÈOX^[ÉÇÁ_[W(|îÉæéÇÁ è) + cardfix = cardfix * (100 + sd->addrace[11] + sd->arrow_addrace[11]) / 100; //ãã¹ä»¥å€ã¢ã³ã¹ã¿ãŒã«è¿œå ãã¡ãŒãž(åŒç¢ã«ããè¿œå ãã) } - //ÁèClasspâ³(ÌúLš{SpH) + //ç¹å®Classçšè£æ£åŠç(å°å¥³ã®æ¥èšâãã³ãŽã³çšïŒ) t_class = battle_get_class (target); for (i = 0; i < sd->add_damage_class_count; i++) { @@ -3827,22 +3827,22 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } } if (skill_num != CR_GRANDCROSS || !battle_config.gx_cardfix) - damage = damage * cardfix / 100; //J[hâ³Éæé_[WÁ -//J[hÉæé_[WÁ±±ÜÅ + damage = damage * cardfix / 100; //ã«ãŒãè£æ£ã«ãããã¡ãŒãžå¢å +//ã«ãŒãã«ãããã¡ãŒãžå¢å åŠçãããŸã§ -//J[hÉæé_[WÇÁ(¶è)±±©ç +//ã«ãŒãã«ãããã¡ãŒãžè¿œå åŠç(å·Šæ)ãããã cardfix = 100; if (!battle_config.left_cardfix_to_right) - { //¶èJ[hâ³Ýè³µ - cardfix = cardfix * (100 + sd->addrace_[t_race]) / 100; // í°Éæé_[WC³¶è - cardfix = cardfix * (100 + sd->addele_[t_ele]) / 100; // ® «Éæé_[WC³¶è - cardfix = cardfix * (100 + sd->addsize_[t_size]) / 100; // TCYÉæé_[WC³¶è - if (t_mode & 0x20) //{X - cardfix = cardfix * (100 + sd->addrace_[10]) / 100; //{XX^[ÉÇÁ_[W¶è + { //å·Šæã«ãŒãè£æ£èšå®ç¡ã + cardfix = cardfix * (100 + sd->addrace_[t_race]) / 100; // çš®æã«ãããã¡ãŒãžä¿®æ£å·Šæ + cardfix = cardfix * (100 + sd->addele_[t_ele]) / 100; // å± æ§ã«ãããã¡ãŒãžä¿®æ£å·Šæ + cardfix = cardfix * (100 + sd->addsize_[t_size]) / 100; // ãµã€ãºã«ãããã¡ãŒãžä¿®æ£å·Šæ + if (t_mode & 0x20) //ãã¹ + cardfix = cardfix * (100 + sd->addrace_[10]) / 100; //ãã¹ã¢ã³ã¹ã¿ãŒã«è¿œå ãã¡ãŒãžå·Šæ else - cardfix = cardfix * (100 + sd->addrace_[11]) / 100; //{XÈOX^[ÉÇÁ_[W¶è + cardfix = cardfix * (100 + sd->addrace_[11]) / 100; //ãã¹ä»¥å€ã¢ã³ã¹ã¿ãŒã«è¿œå ãã¡ãŒãžå·Šæ } - //ÁèClassp⳶è(ÌúLš{SpH) + //ç¹å®Classçšè£æ£åŠçå·Šæ(å°å¥³ã®æ¥èšâãã³ãŽã³çšïŒ) for (i = 0; i < sd->add_damage_class_count_; i++) { if (sd->add_damage_classid_[i] == t_class) @@ -3852,24 +3852,24 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } } if (skill_num != CR_GRANDCROSS) - damage2 = damage2 * cardfix / 100; //J[hâ³Éæé¶è_[WÁ -//J[hÉæé_[WÁ(¶è)±±ÜÅ + damage2 = damage2 * cardfix / 100; //ã«ãŒãè£æ£ã«ããå·Šæãã¡ãŒãžå¢å +//ã«ãŒãã«ãããã¡ãŒãžå¢å åŠç(å·Šæ)ãããŸã§ // -- moonsoul (cardfix for magic damage portion of ASC_BREAKER) if (skill_num == ASC_BREAKER) damage3 = damage3 * cardfix / 100; -//J[hÉæé_[Wž±±©ç +//ã«ãŒãã«ãããã¡ãŒãžæžè¡°åŠçãããã if (tsd) - { //ÎÛªPCÌê + { //察象ãPCã®å Žå cardfix = 100; - cardfix = cardfix * (100 - tsd->subrace[s_race]) / 100; // í°Éæé_[WÏ« - cardfix = cardfix * (100 - tsd->subele[s_ele]) / 100; // ®«Éæé_[WÏ« + cardfix = cardfix * (100 - tsd->subrace[s_race]) / 100; // çš®æã«ãããã¡ãŒãžèæ§ + cardfix = cardfix * (100 - tsd->subele[s_ele]) / 100; // å±æ§ã«ãããã¡ãŒãžèæ§ if (battle_get_mode (src) & 0x20) - cardfix = cardfix * (100 - tsd->subrace[10]) / 100; //{X©çÌUÍ_[Wž + cardfix = cardfix * (100 - tsd->subrace[10]) / 100; //ãã¹ããã®æ»æã¯ãã¡ãŒãžæžå° else - cardfix = cardfix * (100 - tsd->subrace[11]) / 100; //{XÈO©çÌUÍ_[Wž - //ÁèClassp⳶è(ÌúLš{SpH) + cardfix = cardfix * (100 - tsd->subrace[11]) / 100; //ãã¹ä»¥å€ããã®æ»æã¯ãã¡ãŒãžæžå° + //ç¹å®Classçšè£æ£åŠçå·Šæ(å°å¥³ã®æ¥èšâãã³ãŽã³çšïŒ) for (i = 0; i < tsd->add_def_class_count; i++) { if (tsd->add_def_classid[i] == sd->status.class) @@ -3879,27 +3879,27 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } } if (flag & BF_LONG) - cardfix = cardfix * (100 - tsd->long_attack_def_rate) / 100; //£UÍ_[Wž(zCÆ©) + cardfix = cardfix * (100 - tsd->long_attack_def_rate) / 100; //é è·é¢æ»æã¯ãã¡ãŒãžæžå°(ãã«ã³Cãšã) if (flag & BF_SHORT) - cardfix = cardfix * (100 - tsd->near_attack_def_rate) / 100; //ߣUÍ_[Wž(Y³µH) - damage = damage * cardfix / 100; //J[hâ³Éæé_[Wž - damage2 = damage2 * cardfix / 100; //J[hâ³Éæé¶è_[Wž + cardfix = cardfix * (100 - tsd->near_attack_def_rate) / 100; //è¿è·é¢æ»æã¯ãã¡ãŒãžæžå°(該åœç¡ãïŒ) + damage = damage * cardfix / 100; //ã«ãŒãè£æ£ã«ãããã¡ãŒãžæžå° + damage2 = damage2 * cardfix / 100; //ã«ãŒãè£æ£ã«ããå·Šæãã¡ãŒãžæžå° } -//J[hÉæé_[Wž±±ÜÅ +//ã«ãŒãã«ãããã¡ãŒãžæžè¡°åŠçãããŸã§ -//ÎÛÉXe[^XÙíª éêÌ_[WžZ±±©ç +//察象ã«ã¹ããŒã¿ã¹ç°åžžãããå Žåã®ãã¡ãŒãžæžç®åŠçãããã if (t_sc_data) { cardfix = 100; - if (t_sc_data[SC_DEFENDER].timer != -1 && flag & BF_LONG) //fBtF_[óÔÅ£U - cardfix = cardfix * (100 - t_sc_data[SC_DEFENDER].val2) / 100; //fBtF_[Éæéž + if (t_sc_data[SC_DEFENDER].timer != -1 && flag & BF_LONG) //ãã£ãã§ã³ããŒç¶æ
ã§é è·é¢æ»æ + cardfix = cardfix * (100 - t_sc_data[SC_DEFENDER].val2) / 100; //ãã£ãã§ã³ããŒã«ããæžè¡° if (cardfix != 100) { - damage = damage * cardfix / 100; //fBtF_[â³Éæé_[Wž - damage2 = damage2 * cardfix / 100; //fBtF_[â³Éæé¶è_[Wž + damage = damage * cardfix / 100; //ãã£ãã§ã³ããŒè£æ£ã«ãããã¡ãŒãžæžå° + damage2 = damage2 * cardfix / 100; //ãã£ãã§ã³ããŒè£æ£ã«ããå·Šæãã¡ãŒãžæžå° } if (t_sc_data[SC_ASSUMPTIO].timer != -1) - { //AXveBI + { //ã¢ã¹ã ããã£ãª if (!map[target->m].flag.pvp) { damage = damage / 3; @@ -3912,67 +3912,67 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } } } -//ÎÛÉXe[^XÙíª éêÌ_[WžZ±±ÜÅ +//察象ã«ã¹ããŒã¿ã¹ç°åžžãããå Žåã®ãã¡ãŒãžæžç®åŠçãããŸã§ if (damage < 0) damage = 0; if (damage2 < 0) damage2 = 0; - // ® «ÌKp + // å± æ§ã®é©çš damage = battle_attr_fix (damage, s_ele, battle_get_element (target)); damage2 = battle_attr_fix (damage2, s_ele_, battle_get_element (target)); - // ¯Ì©¯çAC
ÌKp + // æã®ããããæ°çã®é©çš damage += sd->star; damage2 += sd->star_; damage += sd->spiritball * 3; damage2 += sd->spiritball * 3; if (sc_data && sc_data[SC_AURABLADE].timer != -1) - { /* I[u[h K */ + { /* ãªãŒã©ãã¬ãŒã å¿
äž */ damage += sc_data[SC_AURABLADE].val1 * 10; damage2 += sc_data[SC_AURABLADE].val1 * 10; } if (skill_num == PA_PRESSURE) - { /* vbV[ K? */ + { /* ãã¬ãã·ã£ãŒ å¿
äž? */ damage = 700 + 100 * skill_lv; damage2 = 700 + 100 * skill_lv; } - // >ñ¬Ì¶E_[WvZN©âÁÄꥥ¥¥ŠŠŠI - // >map_session_data ɶè_[W(atk,atk2)ÇÁµÄ - // >pc_calcstatus()Åâé׫©ÈH - // map_session_data ɶèí(atk,atk2,ele,star,atkmods)ÇÁµÄ - // pc_calcstatus()Åf[^ðü͵Ģܷ + // >äºåæµã®å·Šå³ãã¡ãŒãžèšç®èª°ããã£ãŠãããããããããïŒ + // >map_session_data ã«å·Šæãã¡ãŒãž(atk,atk2)è¿œå ã㊠+ // >pc_calcstatus()ã§ããã¹ãããªïŒ + // map_session_data ã«å·ŠææŠåš(atk,atk2,ele,star,atkmods)è¿œå ã㊠+ // pc_calcstatus()ã§ããŒã¿ãå
¥åããŠããŸã - //¶èÌÝíõ + //å·Šæã®ã¿æŠåšè£
å if (sd->weapontype1 == 0 && sd->weapontype2 > 0) { damage = damage2; damage2 = 0; } - // EèA¶èCûÌKp + // å³æãå·Šæ修緎ã®é©çš if (sd->status.weapon > 16) - { // ñ¬©? + { // äºåæµã? int dmg = damage, dmg2 = damage2; - // EèCû(60% ` 100%) EèSÊ + // å³æ修緎(60% ã 100%) å³æå
šè¬ skill = pc_checkskill (sd, AS_RIGHT); damage = damage * (50 + (skill * 10)) / 100; if (dmg > 0 && damage < 1) damage = 1; - // ¶èCû(40% ` 80%) ¶èSÊ + // å·Šæ修緎(40% ã 80%) å·Šæå
šè¬ skill = pc_checkskill (sd, AS_LEFT); damage2 = damage2 * (30 + (skill * 10)) / 100; if (dmg2 > 0 && damage2 < 1) damage2 = 1; } - else //ñ¬Åȯêζè_[WÍ0 + else //äºåæµã§ãªããã°å·Šæãã¡ãŒãžã¯0 damage2 = 0; - // Eè,ZÌÝ + // å³æ,çå£ã®ã¿ if (da == 1) - { //_uA^bNª®µÄ¢é© + { //ããã«ã¢ã¿ãã¯ãçºåããŠããã div_ = 2; damage += damage; type = 0x08; @@ -3980,14 +3980,14 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, if (sd->status.weapon == 16) { - // J^[Ç_[W + // ã«ã¿ãŒã«è¿œæãã¡ãŒãž skill = pc_checkskill (sd, TF_DOUBLE); damage2 = damage * (1 + (skill * 2)) / 100; if (damage > 0 && damage2 < 1) damage2 = 1; } - // CxiC³ + // ã€ã³ããã ä¿®æ£ if (skill_num == TF_POISON) { damage = @@ -3999,7 +3999,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, damage = battle_attr_fix (damage, 0, battle_get_element (target)); } - // ®SñðÌ»è + // å®å
šåé¿ã®å€å® if (skill_num == 0 && skill_lv >= 0 && tsd != NULL && div_ < 255 && MRAND (1000) < battle_get_flee2 (target)) { @@ -4008,7 +4008,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, dmg_lv = ATK_LUCKY; } - // ÎÛª®Sñðð·éÝèªONÈç + // 察象ãå®å
šåé¿ãããèšå®ãONãªã if (battle_config.enemy_perfect_flee) { if (skill_num == 0 && skill_lv >= 0 && tmd != NULL && div_ < 255 @@ -4020,7 +4020,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } } - //MobÌModeÉætOª§ÁÄ¢éÆ«Ì + //Mobã®Modeã«é 匷ãã©ã°ãç«ã£ãŠãããšãã®åŠç if (t_mode & 0x40) { if (damage > 0) @@ -4029,23 +4029,23 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, damage2 = 1; } - //bNoWeaponDamage(ÝèACe³µH)ÅOhNX¶áÈ¢êÍ_[Wª0 + //bNoWeaponDamage(èšå®ã¢ã€ãã ç¡ãïŒ)ã§ã°ã©ã³ãã¯ãã¹ãããªãå Žåã¯ãã¡ãŒãžã0 if (tsd && tsd->special_state.no_weapon_damage && skill_num != CR_GRANDCROSS) damage = damage2 = 0; if (skill_num != CR_GRANDCROSS && (damage > 0 || damage2 > 0)) { - if (damage2 < 1) // _[WÅIC³ + if (damage2 < 1) // ãã¡ãŒãžæçµä¿®æ£ damage = battle_calc_damage (src, target, damage, div_, skill_num, skill_lv, flag); - else if (damage < 1) // Eèª~XH + else if (damage < 1) // å³æããã¹ïŒ damage2 = battle_calc_damage (src, target, damage2, div_, skill_num, skill_lv, flag); else - { // Œ è/J^[ÌêÍ¿åÁÆvZââ±µ¢ + { // äž¡ æ/ã«ã¿ãŒã«ã®å Žåã¯ã¡ãã£ãšèšç®ããããã int d1 = damage + damage2, d2 = damage2; damage = battle_calc_damage (src, target, damage + damage2, div_, @@ -4094,7 +4094,7 @@ static struct Damage battle_calc_pc_weapon_attack (struct block_list *src, } /*========================================== - * í_[WvZ + * æŠåšãã¡ãŒãžèšç® *------------------------------------------ */ struct Damage battle_calc_weapon_attack (struct block_list *src, @@ -4104,7 +4104,7 @@ struct Damage battle_calc_weapon_attack (struct block_list *src, { struct Damage wd; - //returnO̪ éÌÅîñoÍÌÝÏX + //returnåã®åŠçãããã®ã§æ
å ±åºåéšã®ã¿å€æŽ if (src == NULL || target == NULL) { nullpo_info (NLP_MARK); @@ -4173,7 +4173,7 @@ struct Damage battle_calc_weapon_attack (struct block_list *src, } /*========================================== - * @_[WvZ + * éæ³ãã¡ãŒãžèšç® *------------------------------------------ */ struct Damage battle_calc_magic_attack (struct block_list *bl, @@ -4192,7 +4192,7 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, struct map_session_data *sd = NULL, *tsd = NULL; struct mob_data *tmd = NULL; - //returnO̪ éÌÅîñoÍÌÝÏX + //returnåã®åŠçãããã®ã§æ
å ±åºåéšã®ã¿å€æŽ if (bl == NULL || target == NULL) { nullpo_info (NLP_MARK); @@ -4227,24 +4227,24 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, if (skill_num > 0) { switch (skill_num) - { // î{_[WvZ(XL²ÆÉ) - // q[or¹Ì + { // åºæ¬ãã¡ãŒãžèšç®(ã¹ãã«ããšã«åŠç) + // ããŒã«orèäœ case AL_HEAL: case PR_BENEDICTIO: damage = skill_calc_heal (bl, skill_lv) / 2; normalmagic_flag = 0; break; - case PR_ASPERSIO: /* AXyVI */ - damage = 40; //Åè_[W + case PR_ASPERSIO: /* ã¢ã¹ãã«ã·ãª */ + damage = 40; //åºå®ãã¡ãŒãž normalmagic_flag = 0; break; - case PR_SANCTUARY: // TN`
A + case PR_SANCTUARY: // ãµã³ã¯ãã¥ã¢ãª damage = (skill_lv > 6) ? 388 : skill_lv * 50; normalmagic_flag = 0; blewcount |= 0x10000; break; case ALL_RESURRECTION: - case PR_TURNUNDEAD: // UUNVÆ^[Afbh + case PR_TURNUNDEAD: // æ»æãªã¶ã¬ã¯ã·ã§ã³ãšã¿ãŒã³ã¢ã³ããã if (target->type != BL_PC && battle_check_undead (t_race, t_ele)) { @@ -4257,10 +4257,10 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, if (thres > 700) thres = 700; // if(battle_config.battle_log) -// printf("^[AfbhI mŠ%d ñ(窊)\n", thres); - if (MRAND (1000) < thres && !(t_mode & 0x20)) // ¬÷ +// printf("ã¿ãŒã³ã¢ã³ãããïŒ ç¢ºç%d â°(ååç)\n", thres); + if (MRAND (1000) < thres && !(t_mode & 0x20)) // æå damage = hp; - else // žs + else // 倱æ damage = battle_get_lv (bl) + battle_get_int (bl) + skill_lv * 10; @@ -4268,7 +4268,7 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, normalmagic_flag = 0; break; - case MG_NAPALMBEAT: // ip[r[giªUvZÝj + case MG_NAPALMBEAT: // ãããŒã ããŒãïŒåæ£èšç®èŸŒã¿ïŒ MATK_FIX (70 + skill_lv * 10, 100); if (flag > 0) { @@ -4281,7 +4281,7 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, ("battle_calc_magic_attack(): napam enemy count=0 !\n"); } break; - case MG_FIREBALL: // t@C[{[ + case MG_FIREBALL: // ãã¡ã€ã€ãŒããŒã« { const int drate[] = { 100, 90, 70 }; if (flag > 2) @@ -4290,9 +4290,9 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, MATK_FIX ((95 + skill_lv * 5) * drate[flag], 10000); } break; - case MG_FIREWALL: // t@C[EH[ + case MG_FIREWALL: // ãã¡ã€ã€ãŒãŠã©ãŒã« /* - if( (t_ele!=3 && !battle_check_undead(t_race,t_ele)) || target->type==BL_PC ) //PCÍή«ÅàòÔH»à»à_[Wó¯éH + if( (t_ele!=3 && !battle_check_undead(t_race,t_ele)) || target->type==BL_PC ) //PCã¯ç«å±æ§ã§ãé£ã¶ïŒãããããã¡ãŒãžåããïŒ blewcount |= 0x10000; else blewcount = 0; @@ -4304,18 +4304,18 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, blewcount |= 0x10000; MATK_FIX (1, 2); break; - case MG_THUNDERSTORM: // T_[Xg[ + case MG_THUNDERSTORM: // ãµã³ããŒã¹ããŒã MATK_FIX (80, 100); break; - case MG_FROSTDIVER: // tXg_Co + case MG_FROSTDIVER: // ããã¹ããã€ã MATK_FIX (100 + skill_lv * 10, 100); break; - case WZ_FROSTNOVA: // tXg_Co + case WZ_FROSTNOVA: // ããã¹ããã€ã MATK_FIX (((100 + skill_lv * 10) * (2 / 3)), 100); break; - case WZ_FIREPILLAR: // t@C[s[ + case WZ_FIREPILLAR: // ãã¡ã€ã€ãŒãã©ãŒ if (mdef1 < 1000000) - mdef1 = mdef2 = 0; // MDEF³ + mdef1 = mdef2 = 0; // MDEFç¡èŠ MATK_FIX (1, 5); matk1 += 50; matk2 += 50; @@ -4324,26 +4324,26 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, MATK_FIX (100 + skill_lv * 20, 100); break; case WZ_METEOR: - case WZ_JUPITEL: // seT_[ + case WZ_JUPITEL: // ãŠããã«ãµã³ã㌠break; - case WZ_VERMILION: // [hIuo[~I + case WZ_VERMILION: // ããŒããªãããŒããªãªã³ MATK_FIX (skill_lv * 20 + 80, 100); break; - case WZ_WATERBALL: // EH[^[{[ + case WZ_WATERBALL: // ãŠã©ãŒã¿ãŒããŒã« matk1 += skill_lv * 30; matk2 += skill_lv * 30; break; - case WZ_STORMGUST: // Xg[KXg + case WZ_STORMGUST: // ã¹ããŒã ã¬ã¹ã MATK_FIX (skill_lv * 40 + 100, 100); blewcount |= 0x10000; break; - case AL_HOLYLIGHT: // z[[Cg + case AL_HOLYLIGHT: // ããŒãªãŒã©ã€ã MATK_FIX (125, 100); break; case AL_RUWACH: MATK_FIX (145, 100); break; - case HW_NAPALMVULCAN: // ip[r[giªUvZÝj + case HW_NAPALMVULCAN: // ãããŒã ããŒãïŒåæ£èšç®èŸŒã¿ïŒ MATK_FIX (70 + skill_lv * 10, 100); if (flag > 0) { @@ -4360,7 +4360,7 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, } if (normalmagic_flag) - { // êÊ@_[WvZ + { // äžè¬éæ³ãã¡ãŒãžèšç® int imdef_flag = 0; if (matk1 > matk2) damage = matk2 + MRAND ((matk1 - matk2 + 1)); @@ -4426,8 +4426,8 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, { int s_class = battle_get_class (bl); cardfix = 100; - cardfix = cardfix * (100 - tsd->subele[ele]) / 100; // ® «Éæé_[WÏ« - cardfix = cardfix * (100 - tsd->subrace[race]) / 100; // í°Éæé_[WÏ« + cardfix = cardfix * (100 - tsd->subele[ele]) / 100; // å± æ§ã«ãããã¡ãŒãžèæ§ + cardfix = cardfix * (100 - tsd->subrace[race]) / 100; // çš®æã«ãããã¡ãŒãžèæ§ cardfix = cardfix * (100 - tsd->magic_subrace[race]) / 100; if (battle_get_mode (bl) & 0x20) cardfix = cardfix * (100 - tsd->magic_subrace[10]) / 100; @@ -4447,18 +4447,18 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, if (damage < 0) damage = 0; - damage = battle_attr_fix (damage, ele, battle_get_element (target)); // ® «C³ + damage = battle_attr_fix (damage, ele, battle_get_element (target)); // å± æ§ä¿®æ£ if (skill_num == CR_GRANDCROSS) - { // OhNX + { // ã°ã©ã³ãã¯ãã¹ struct Damage wd; wd = battle_calc_weapon_attack (bl, target, skill_num, skill_lv, flag); damage = (damage + wd.damage) * (100 + 40 * skill_lv) / 100; if (battle_config.gx_dupele) - damage = battle_attr_fix (damage, ele, battle_get_element (target)); //®«2ñ©©é + damage = battle_attr_fix (damage, ele, battle_get_element (target)); //å±æ§2åããã if (bl == target) - damage = damage / 2; //œ®ÍŒª + damage = damage / 2; //ååã¯åå } div_ = skill_get_num (skill_num, skill_lv); @@ -4479,10 +4479,10 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, damage = (damage * (100 - battle_config.gtb_pvp_only)) / 100; } else - damage = 0; // © àå³J[hi@_[WOj + damage = 0; // é» éè²ã«ãŒãïŒéæ³ãã¡ãŒãžïŒïŒ } - damage = battle_calc_damage (bl, target, damage, div_, skill_num, skill_lv, aflag); // ÅIC³ + damage = battle_calc_damage (bl, target, damage, div_, skill_num, skill_lv, aflag); // æçµä¿®æ£ /* magic_damage_return by [AppleGirl] and [Valaris] */ if (target->type == BL_PC && tsd && tsd->magic_damage_return > 0) @@ -4508,7 +4508,7 @@ struct Damage battle_calc_magic_attack (struct block_list *bl, } /*========================================== - * »ÌŒ_[WvZ + * ãã®ä»ãã¡ãŒãžèšç® *------------------------------------------ */ struct Damage battle_calc_misc_attack (struct block_list *bl, @@ -4527,7 +4527,7 @@ struct Damage battle_calc_misc_attack (struct block_list *bl, int aflag = BF_MISC | BF_LONG | BF_SKILL; - //returnO̪ éÌÅîñoÍÌÝÏX + //returnåã®åŠçãããã®ã§æ
å ±åºåéšã®ã¿å€æŽ if (bl == NULL || target == NULL) { nullpo_info (NLP_MARK); @@ -4547,19 +4547,19 @@ struct Damage battle_calc_misc_attack (struct block_list *bl, switch (skill_num) { - case HT_LANDMINE: // h}C + case HT_LANDMINE: // ã©ã³ããã€ã³ damage = skill_lv * (dex + 75) * (100 + int_) / 100; break; - case HT_BLASTMINE: // uXg}C + case HT_BLASTMINE: // ãã©ã¹ããã€ã³ damage = skill_lv * (dex / 2 + 50) * (100 + int_) / 100; break; - case HT_CLAYMORETRAP: // NCA[gbv + case HT_CLAYMORETRAP: // ã¯ã¬ã€ã¢ã¢ãŒãã©ãã damage = skill_lv * (dex / 2 + 75) * (100 + int_) / 100; break; - case HT_BLITZBEAT: // ubcr[g + case HT_BLITZBEAT: // ããªããããŒã if (sd == NULL || (skill = pc_checkskill (sd, HT_STEELCROW)) <= 0) skill = 0; damage = (dex / 10 + int_ / 2 + skill * 3 + 40) * 2; @@ -4567,22 +4567,22 @@ struct Damage battle_calc_misc_attack (struct block_list *bl, damage /= flag; break; - case TF_THROWSTONE: // ΰ + case TF_THROWSTONE: // ç³æã damage = 30; damagefix = 0; break; - case BA_DISSONANCE: // sŠa¹ + case BA_DISSONANCE: // äžååé³ damage = (skill_lv) * 20 + pc_checkskill (sd, BA_MUSICALLESSON) * 3; break; - case NPC_SELFDESTRUCTION: // © + case NPC_SELFDESTRUCTION: // èªç damage = battle_get_hp (bl) - (bl == target ? 1 : 0); damagefix = 0; break; - case NPC_SMOKING: // ^oRðz€ + case NPC_SMOKING: // ã¿ãã³ãåžã damage = 3; damagefix = 0; break; @@ -4608,7 +4608,7 @@ struct Damage battle_calc_misc_attack (struct block_list *bl, } } break; - case SN_FALCONASSAULT: /* t@RATg */ + case SN_FALCONASSAULT: /* ãã¡ã«ã³ã³ã¢ãµã«ã */ skill = pc_checkskill (sd, HT_BLITZBEAT); damage = (100 + 50 * skill_lv + @@ -4627,14 +4627,14 @@ struct Damage battle_calc_misc_attack (struct block_list *bl, if (tsd) { cardfix = 100; - cardfix = cardfix * (100 - tsd->subele[ele]) / 100; // ®«Éæé_[WÏ« - cardfix = cardfix * (100 - tsd->subrace[race]) / 100; // í°Éæé_[WÏ« + cardfix = cardfix * (100 - tsd->subele[ele]) / 100; // å±æ§ã«ãããã¡ãŒãžèæ§ + cardfix = cardfix * (100 - tsd->subrace[race]) / 100; // çš®æã«ãããã¡ãŒãžèæ§ cardfix = cardfix * (100 - tsd->misc_def_rate) / 100; damage = damage * cardfix / 100; } if (damage < 0) damage = 0; - damage = battle_attr_fix (damage, ele, battle_get_element (target)); // ®«C³ + damage = battle_attr_fix (damage, ele, battle_get_element (target)); // å±æ§ä¿®æ£ } div_ = skill_get_num (skill_num, skill_lv); @@ -4649,7 +4649,7 @@ struct Damage battle_calc_misc_attack (struct block_list *bl, damage = div_; } - damage = battle_calc_damage (bl, target, damage, div_, skill_num, skill_lv, aflag); // ÅIC³ + damage = battle_calc_damage (bl, target, damage, div_, skill_num, skill_lv, aflag); // æçµä¿®æ£ md.damage = damage; md.div_ = div_; @@ -4664,7 +4664,7 @@ struct Damage battle_calc_misc_attack (struct block_list *bl, } /*========================================== - * _[WvZêp + * ãã¡ãŒãžèšç®äžæ¬åŠççš *------------------------------------------ */ struct Damage battle_calc_attack (int attack_type, @@ -4696,7 +4696,7 @@ struct Damage battle_calc_attack (int attack_type, } /*========================================== - * ÊíUÜÆß + * éåžžæ»æåŠçãŸãšã *------------------------------------------ */ int battle_weapon_attack (struct block_list *src, struct block_list *target, @@ -4741,7 +4741,7 @@ int battle_weapon_attack (struct block_list *src, struct block_list *target, if (battle_check_target (src, target, BCT_ENEMY) > 0 && battle_check_range (src, target, 0)) { - // UÎÛÆÈè€éÌÅU + // æ»æ察象ãšãªãããã®ã§æ»æ if (sd && sd->status.weapon == 11) { if (sd->equip_index[10] >= 0) @@ -4833,14 +4833,14 @@ int battle_weapon_attack (struct block_list *src, struct block_list *target, } if (wd.div_ == 255 && sd) - { //Oi¶ + { //äžæ®µæ int delay = 1000 - 4 * battle_get_agi (src) - 2 * battle_get_dex (src); int skilllv; if (wd.damage + wd.damage2 < battle_get_hp (target)) { if ((skilllv = pc_checkskill (sd, MO_CHAINCOMBO)) > 0) - delay += 300 * battle_config.combo_delay_rate / 100; //ÇÁfBCðconfÉæè²® + delay += 300 * battle_config.combo_delay_rate / 100; //è¿œå ãã£ã¬ã€ãconfã«ããèª¿æŽ skill_status_change_start (src, SC_COMBO, MO_TRIPLEATTACK, skilllv, 0, 0, delay, 0); @@ -4855,7 +4855,7 @@ int battle_weapon_attack (struct block_list *src, struct block_list *target, { clif_damage (src, target, tick, wd.amotion, wd.dmotion, wd.damage, wd.div_, wd.type, wd.damage2); - //ñ¬¶èÆJ^[ÇÌ~X\Š(³âè`) + //äºåæµå·Šæãšã«ã¿ãŒã«è¿œæã®ãã¹è¡šç€º(ç¡çããã) if (sd && sd->status.weapon >= 16 && wd.damage2 == 0) clif_damage (src, target, tick + 10, wd.amotion, wd.dmotion, 0, 1, 0, 0); @@ -4967,7 +4967,7 @@ int battle_weapon_attack (struct block_list *src, struct block_list *target, skilllv, tick, flag); break; - case 1: /* xn */ + case 1: /* æ¯æŽç³» */ if ((sc_data[SC_AUTOSPELL].val2 == AL_HEAL || (sc_data[SC_AUTOSPELL].val2 == ALL_RESURRECTION @@ -5011,7 +5011,7 @@ int battle_weapon_attack (struct block_list *src, struct block_list *target, [SC_AUTOSPELL].val2, skilllv, tick, flag); break; - case 1: /* xn */ + case 1: /* æ¯æŽç³» */ if ((sc_data[SC_AUTOSPELL].val2 == AL_HEAL || (sc_data[SC_AUTOSPELL].val2 == ALL_RESURRECTION @@ -5064,7 +5064,7 @@ int battle_weapon_attack (struct block_list *src, struct block_list *target, skilllv, tick, flag); break; - case 1: /* xn */ + case 1: /* æ¯æŽç³» */ if ((sd->autospell_id == AL_HEAL || (sd->autospell_id == ALL_RESURRECTION && target->type != BL_PC)) @@ -5154,7 +5154,7 @@ int battle_weapon_attack (struct block_list *src, struct block_list *target, (int) target, (int) src, skill_get_time2 (MO_BLADESTOP, lv), 0); } - if (t_sc_data && t_sc_data[SC_SPLASHER].timer != -1) //£ÁœÌÅÎÛÌxiXvbV[óÔðð + if (t_sc_data && t_sc_data[SC_SPLASHER].timer != -1) //殎ã£ãã®ã§å¯Ÿè±¡ã®ããã ã¹ãã©ãã·ã£ãŒç¶æ
ãè§£é€ skill_status_change_end (target, SC_SPLASHER, -1); map_freeblock_unlock (); @@ -5183,12 +5183,12 @@ int battle_check_undead (int race, int element) } /*========================================== - * G¡û»è(1=mè,0=Ûè,-1=G[) - * flag&0xf0000 = 0x00000:G¶áÈ¢©»èiret:1GÅÍÈ¢j - * = 0x10000:p[eB[»èiret:1=p[eB[o) - * = 0x20000:SÄ(ret:1=G¡ûŒû) - * = 0x40000:G©»è(ret:1=G) - * = 0x50000:p[eB[¶áÈ¢©»è(ret:1=p[eBÅÈ¢) + * æµå³æ¹å€å®(1=è¯å®,0=åŠå®,-1=ãšã©ãŒ) + * flag&0xf0000 = 0x00000:æµãããªããå€å®ïŒret:1ïŒæµã§ã¯ãªãïŒ + * = 0x10000:ããŒãã£ãŒå€å®ïŒret:1=ããŒãã£ãŒã¡ã³ã) + * = 0x20000:å
šãŠ(ret:1=æµå³æ¹äž¡æ¹) + * = 0x40000:æµãå€å®(ret:1=æµ) + * = 0x50000:ããŒãã£ãŒãããªããå€å®(ret:1=ããŒãã£ã§ãªã) *------------------------------------------ */ int battle_check_target (struct block_list *src, struct block_list *target, @@ -5201,7 +5201,7 @@ int battle_check_target (struct block_list *src, struct block_list *target, nullpo_retr (0, target); if (flag & 0x40000) - { // œ]tO + { // å転ãã©ã° int ret = battle_check_target (src, target, flag & 0x30000); if (ret != -1) return !ret; @@ -5216,7 +5216,7 @@ int battle_check_target (struct block_list *src, struct block_list *target, return -1; } - if (src->type == BL_SKILL && target->type == BL_SKILL) // ÎÛªXLjbgÈç³ðmè + if (src->type == BL_SKILL && target->type == BL_SKILL) // 察象ãã¹ãã«ãŠããããªãç¡æ¡ä»¶è¯å® return -1; if (target->type == BL_PC @@ -5235,7 +5235,7 @@ int battle_check_target (struct block_list *src, struct block_list *target, } } - // XLjbgÌêAeðßé + // ã¹ãã«ãŠãããã®å Žåã芪ãæ±ãã if (src->type == BL_SKILL) { int inf2 = @@ -5257,25 +5257,25 @@ int battle_check_target (struct block_list *src, struct block_list *target, return -1; } } - // MobÅmaster_idª ÁÄspecial_mob_aiÈçA¢«åðßé + // Mobã§master_idããã£ãŠspecial_mob_aiãªããå¬åäž»ãæ±ãã if (src->type == BL_MOB) { struct mob_data *md = (struct mob_data *) src; if (md && md->master_id > 0) { - if (md->master_id == target->id) // åÈçmè + if (md->master_id == target->id) // äž»ãªãè¯å® return 1; if (md->state.special_mob_ai) { if (target->type == BL_MOB) - { //special_mob_aiÅÎÛªMob + { //special_mob_aiã§å¯Ÿè±¡ãMob struct mob_data *tmd = (struct mob_data *) target; if (tmd) { - if (tmd->master_id != md->master_id) //¢«åªêÅȯêÎÛè + if (tmd->master_id != md->master_id) //å¬åäž»ãäžç·ã§ãªããã°åŠå® return 0; else - { //¢«åªêÈÌÅm赜¢¯Ç©ÍÛè + { //å¬åäž»ãäžç·ãªã®ã§è¯å®ããããã©èªçã¯åŠå® if (md->state.special_mob_ai > 2) return 0; else @@ -5289,20 +5289,20 @@ int battle_check_target (struct block_list *src, struct block_list *target, } } - if (src == target || ss == target) // ¯¶Èçmè + if (src == target || ss == target) // åããªãè¯å® return 1; if (target->type == BL_PC && pc_isinvisible ((struct map_session_data *) target)) return -1; - if (src->prev == NULL || // ñÅéÈçG[ + if (src->prev == NULL || // æ»ãã§ããªããšã©ãŒ (src->type == BL_PC && pc_isdead ((struct map_session_data *) src))) return -1; if ((ss->type == BL_PC && target->type == BL_MOB) || (ss->type == BL_MOB && target->type == BL_PC)) - return 0; // PCvsMOBÈçÛè + return 0; // PCvsMOBãªãåŠå® s_p = battle_get_party_id (ss); s_g = battle_get_guild_id (ss); @@ -5312,20 +5312,20 @@ int battle_check_target (struct block_list *src, struct block_list *target, if (flag & 0x10000) { - if (s_p && t_p && s_p == t_p) // ¯¶p[eBÈçmèi¡ûj + if (s_p && t_p && s_p == t_p) // åãããŒãã£ãªãè¯å®ïŒå³æ¹ïŒ return 1; - else // p[eBõÈ篶p[eB¶áÈ¢_ÅÛè + else // ããŒãã£æ€çŽ¢ãªãåãããŒãã£ãããªãæç¹ã§åŠå® return 0; } - if (ss->type == BL_MOB && s_g > 0 && t_g > 0 && s_g == t_g) // ¯¶Mh/mobNXÈçmèi¡ûj + if (ss->type == BL_MOB && s_g > 0 && t_g > 0 && s_g == t_g) // åãã®ã«ã/mobã¯ã©ã¹ãªãè¯å®ïŒå³æ¹ïŒ return 1; //printf("ss:%d src:%d target:%d flag:0x%x %d %d ",ss->id,src->id,target->id,flag,src->type,target->type); //printf("p:%d %d g:%d %d\n",s_p,t_p,s_g,t_g); if (ss->type == BL_PC && target->type == BL_PC) - { // ŒûPVP[hÈçÛèiGj + { // äž¡æ¹PVPã¢ãŒããªãåŠå®ïŒæµïŒ struct skill_unit *su = NULL; if (src->type == BL_SKILL) su = (struct skill_unit *) src; @@ -5367,9 +5367,9 @@ int battle_check_target (struct block_list *src, struct block_list *target, && g->alliance[i].guild_id == t_g) { if (g->alliance[i].opposition) - return 0; //GÎMhÈç³ðÉG + return 0; //æµå¯Ÿã®ã«ããªãç¡æ¡ä»¶ã«æµ else - return 1; //¯¿MhÈç³ðÉ¡û + return 1; //åçã®ã«ããªãç¡æ¡ä»¶ã«å³æ¹ } } } @@ -5377,11 +5377,11 @@ int battle_check_target (struct block_list *src, struct block_list *target, } } - return 1; // YµÈ¢ÌųÖWlšiÜ G¶áÈ¢ÌÅ¡ûj + return 1; // 該åœããªãã®ã§ç¡é¢ä¿äººç©ïŒãŸãæµãããªãã®ã§å³æ¹ïŒ } /*========================================== - * Ëö»è + * å°çšå€å® *------------------------------------------ */ int battle_check_range (struct block_list *src, struct block_list *bl, @@ -5399,19 +5399,19 @@ int battle_check_range (struct block_list *src, struct block_list *bl, dy = abs (bl->y - src->y); arange = ((dx > dy) ? dx : dy); - if (src->m != bl->m) // á€}bv + if (src->m != bl->m) // éãããã return 0; - if (range > 0 && range < arange) // ·¬é + if (range > 0 && range < arange) // é ããã return 0; - if (arange < 2) // ¯¶}X©×Ú + if (arange < 2) // åããã¹ãé£æ¥ return 1; // if(bl->type == BL_SKILL && ((struct skill_unit *)bl)->group->unit_id == 0x8d) // return 1; - // áQš»è + // é害ç©å€å® wpd.path_len = 0; wpd.path_pos = 0; wpd.path_half = 0; @@ -5427,7 +5427,7 @@ int battle_check_range (struct block_list *src, struct block_list *bl, /*========================================== * Return numerical value of a switch configuration (modified by [Yor]) - * on/off, english, français, deutsch, español + * on/off, english, franè»is, deutsch, espaî«l *------------------------------------------ */ int battle_config_switch (const char *str) @@ -5443,7 +5443,7 @@ int battle_config_switch (const char *str) } /*========================================== - * Ýèt@CðÇÝÞ + * èšå®ãã¡ã€ã«ãèªã¿èŸŒã *------------------------------------------ */ int battle_config_read (const char *cfgName) diff --git a/src/map/battle.h b/src/map/battle.h index 44016a5..3153925 100644 --- a/src/map/battle.h +++ b/src/map/battle.h @@ -2,7 +2,7 @@ #ifndef _BATTLE_H_ #define _BATTLE_H_ -// _[W +// ãã¡ãŒãž struct Damage { int damage, damage2; @@ -10,17 +10,17 @@ struct Damage int amotion, dmotion; int blewcount; int flag; - int dmg_lv; //ÍÜêžZvZp@0:XLU ATK_LUCKY,ATK_FLEE,ATK_DEF + int dmg_lv; //å²ãŸãæžç®èšç®çšã0:ã¹ãã«æ»æ ATK_LUCKY,ATK_FLEE,ATK_DEF }; -// ®«\iÇÝÝÍpc.cAbattle_attr_fixÅgpj +// å±æ§è¡šïŒèªã¿èŸŒã¿ã¯pc.cãbattle_attr_fixã§äœ¿çšïŒ extern int attr_fix_table[4][10][10]; struct map_session_data; struct mob_data; struct block_list; -// _[WvZ +// ãã¡ãŒãžèšç® struct Damage battle_calc_attack (int attack_type, struct block_list *bl, @@ -38,15 +38,15 @@ struct Damage battle_calc_misc_attack (struct block_list *bl, struct block_list *target, int skill_num, int skill_lv, int flag); -// ®«C³vZ +// å±æ§ä¿®æ£èšç® int battle_attr_fix (int damage, int atk_elem, int def_elem); -// _[WÅIvZ +// ãã¡ãŒãžæçµèšç® int battle_calc_damage (struct block_list *src, struct block_list *bl, int damage, int div_, int skill_num, int skill_lv, int flag); enum -{ // ÅIvZÌtO +{ // æçµèšç®ã®ãã©ã° BF_WEAPON = 0x0001, BF_MAGIC = 0x0002, BF_MISC = 0x0004, @@ -59,7 +59,7 @@ enum BF_SKILLMASK = 0x0f00, }; -// ÀÛÉHPðž +// å®éã«HPãå¢æž int battle_delay_damage (unsigned int tick, struct block_list *src, struct block_list *target, int damage, int flag); int battle_damage (struct block_list *bl, struct block_list *target, @@ -67,15 +67,15 @@ int battle_damage (struct block_list *bl, struct block_list *target, int battle_heal (struct block_list *bl, struct block_list *target, int hp, int sp, int flag); -// UâÚ®ð~ßé +// æ»æã移åãæ¢ãã int battle_stopattack (struct block_list *bl); int battle_stopwalking (struct block_list *bl, int type); -// ÊíUÜÆß +// éåžžæ»æåŠçãŸãšã int battle_weapon_attack (struct block_list *bl, struct block_list *target, unsigned int tick, int flag); -// eíp[^ðŸé +// åçš®ãã©ã¡ãŒã¿ãåŸã int battle_counttargeted (struct block_list *bl, struct block_list *src, int target_lv); int battle_is_unarmed (struct block_list *bl); @@ -107,7 +107,7 @@ int battle_get_amotion (struct block_list *bl); int battle_get_dmotion (struct block_list *bl); int battle_get_element (struct block_list *bl); int battle_get_attack_element (struct block_list *bl); -int battle_get_attack_element2 (struct block_list *bl); //¶èí®«æŸ +int battle_get_attack_element2 (struct block_list *bl); //å·ŠææŠåšå±æ§ååŸ #define battle_get_elem_type(bl) (battle_get_element(bl)%10) #define battle_get_elem_level(bl) (battle_get_element(bl)/10/2) int battle_get_party_id (struct block_list *bl); @@ -142,7 +142,7 @@ int battle_check_target (struct block_list *src, struct block_list *target, int battle_check_range (struct block_list *src, struct block_list *bl, int range); -// Ýè +// èšå® int battle_config_switch (const char *str); // [Valaris] diff --git a/src/map/chat.c b/src/map/chat.c index 1005205..772ac4c 100644 --- a/src/map/chat.c +++ b/src/map/chat.c @@ -19,7 +19,7 @@ int chat_triggerevent (struct chat_data *cd); /*========================================== - * `bg[ì¬ + * ãã£ããã«ãŒã äœæ *------------------------------------------ */ int chat_createchat (struct map_session_data *sd, int limit, int pub, @@ -63,7 +63,7 @@ int chat_createchat (struct map_session_data *sd, int limit, int pub, } /*========================================== - * ù¶`bg[ÉQÁ + * æ¢åãã£ããã«ãŒã ã«åå *------------------------------------------ */ int chat_joinchat (struct map_session_data *sd, int chatid, char *pass) @@ -92,17 +92,17 @@ int chat_joinchat (struct map_session_data *sd, int chatid, char *pass) pc_setchatid (sd, cd->bl.id); - clif_joinchatok (sd, cd); // VœÉQÁµœlÉÍSõÌXg - clif_addchat (cd, sd); // ùÉÉœlÉÍÇÁµœlÌñ - clif_dispchat (cd, 0); // üÍÌlÉÍlÏ»ñ + clif_joinchatok (sd, cd); // æ°ãã«åå ãã人ã«ã¯å
šå¡ã®ãªã¹ã + clif_addchat (cd, sd); // æ¢ã«äžã«å±
ã人ã«ã¯è¿œå ãã人ã®å ±å + clif_dispchat (cd, 0); // åšå²ã®äººã«ã¯äººæ°å€åå ±å - chat_triggerevent (cd); // Cxg + chat_triggerevent (cd); // ã€ãã³ã return 0; } /*========================================== - * `bg[©ç²¯é + * ãã£ããã«ãŒã ããæãã *------------------------------------------ */ int chat_leavechat (struct map_session_data *sd) @@ -124,17 +124,17 @@ int chat_leavechat (struct map_session_data *sd) break; } } - if (leavechar < 0) // »ÌchatÉ®µÄ¢È¢çµ¢ (oOÌÝ) + if (leavechar < 0) // ãã®chatã«æå±ããŠããªãããã (ãã°æã®ã¿) return -1; if (leavechar == 0 && cd->users > 1 && (*cd->owner)->type == BL_PC) { - // LÒŸÁœ&ŒÉlªé&PCÌ`bg + // ææè
ã ã£ã&ä»ã«äººãå±
ã&PCã®ãã£ãã clif_changechatowner (cd, cd->usersd[1]); clif_clearchat (cd, 0); } - // ²¯éPCÉàéÌÅusersðžç·OÉÀs + // æããPCã«ãéãã®ã§usersãæžããåã«å®è¡ clif_leavechat (cd, sd); cd->users--; @@ -142,9 +142,9 @@ int chat_leavechat (struct map_session_data *sd) if (cd->users == 0 && (*cd->owner)->type == BL_PC) { - // SõÈÈÁœ&PCÌ`bgÈÌÅÁ· + // å
šå¡å±
ãªããªã£ã&PCã®ãã£ãããªã®ã§æ¶ã clif_clearchat (cd, 0); - map_delobject (cd->bl.id, BL_CHAT); // freeÜŵÄêé + map_delobject (cd->bl.id, BL_CHAT); // freeãŸã§ããŠããã } else { @@ -152,7 +152,7 @@ int chat_leavechat (struct map_session_data *sd) cd->usersd[i] = cd->usersd[i + 1]; if (leavechar == 0 && (*cd->owner)->type == BL_PC) { - // PCÌ`bgÈÌÅLÒª²¯œÌÅÊuÏX + // PCã®ãã£ãããªã®ã§ææè
ãæããã®ã§äœçœ®å€æŽ cd->bl.x = cd->usersd[0]->bl.x; cd->bl.y = cd->usersd[0]->bl.y; } @@ -163,7 +163,7 @@ int chat_leavechat (struct map_session_data *sd) } /*========================================== - * `bg[Ì¿åð÷é + * ãã£ããã«ãŒã ã®æã¡äž»ãè²ã *------------------------------------------ */ int chat_changechatowner (struct map_session_data *sd, char *nextownername) @@ -186,31 +186,31 @@ int chat_changechatowner (struct map_session_data *sd, char *nextownername) break; } } - if (nextowner < 0) // »ñÈlÍÈ¢ + if (nextowner < 0) // ãããªäººã¯å±
ãªã return -1; clif_changechatowner (cd, cd->usersd[nextowner]); - // êUÁ· + // äžæŠæ¶ã clif_clearchat (cd, 0); - // userlistÌÔÏX (0ªLÒÈÌÅ) + // userlistã®é çªå€æŽ (0ãææè
ãªã®ã§) if ((tmp_sd = cd->usersd[0]) == NULL) - return 1; // èŠéÌ©ÈH + return 1; //ããããã®ããªïŒ cd->usersd[0] = cd->usersd[nextowner]; cd->usersd[nextowner] = tmp_sd; - // Vµ¢LÒÌÊuÖÏX + // æ°ããææè
ã®äœçœ®ãžå€æŽ cd->bl.x = cd->usersd[0]->bl.x; cd->bl.y = cd->usersd[0]->bl.y; - // Äx\Š + // å床衚瀺 clif_dispchat (cd, 0); return 0; } /*========================================== - * `bgÌóÔ(^Cg)ðÏX + * ãã£ããã®ç¶æ
(ã¿ã€ãã«ç)ãå€æŽ *------------------------------------------ */ int chat_changechatstatus (struct map_session_data *sd, int limit, int pub, @@ -239,7 +239,7 @@ int chat_changechatstatus (struct map_session_data *sd, int limit, int pub, } /*========================================== - * `bg[©çRèo· + * ãã£ããã«ãŒã ãã蹎ãåºã *------------------------------------------ */ int chat_kickchat (struct map_session_data *sd, char *kickusername) @@ -261,7 +261,7 @@ int chat_kickchat (struct map_session_data *sd, char *kickusername) break; } } - if (kickuser < 0) // »ñÈlÍÈ¢ + if (kickuser < 0) // ãããªäººã¯å±
ãªã return -1; chat_leavechat (cd->usersd[kickuser]); @@ -270,7 +270,7 @@ int chat_kickchat (struct map_session_data *sd, char *kickusername) } /*========================================== - * npc`bg[ì¬ + * npcãã£ããã«ãŒã äœæ *------------------------------------------ */ int chat_createnpcchat (struct npc_data *nd, int limit, int pub, int trigger, @@ -315,7 +315,7 @@ int chat_createnpcchat (struct npc_data *nd, int limit, int pub, int trigger, } /*========================================== - * npc`bg[í + * npcãã£ããã«ãŒã åé€ *------------------------------------------ */ int chat_deletenpcchat (struct npc_data *nd) @@ -327,14 +327,14 @@ int chat_deletenpcchat (struct npc_data *nd) chat_npckickall (cd); clif_clearchat (cd, 0); - map_delobject (cd->bl.id, BL_CHAT); // freeÜŵÄêé + map_delobject (cd->bl.id, BL_CHAT); // freeãŸã§ããŠããã nd->chat_id = 0; return 0; } /*========================================== - * KèlÈãÅCxgªè`³êÄéÈçÀs + * èŠå®äººæ°ä»¥äžã§ã€ãã³ããå®çŸ©ãããŠããªãå®è¡ *------------------------------------------ */ int chat_triggerevent (struct chat_data *cd) @@ -347,7 +347,7 @@ int chat_triggerevent (struct chat_data *cd) } /*========================================== - * CxgÌLø» + * ã€ãã³ãã®æå¹å *------------------------------------------ */ int chat_enableevent (struct chat_data *cd) @@ -360,7 +360,7 @@ int chat_enableevent (struct chat_data *cd) } /*========================================== - * Cxg̳ø» + * ã€ãã³ãã®ç¡å¹å *------------------------------------------ */ int chat_disableevent (struct chat_data *cd) @@ -372,7 +372,7 @@ int chat_disableevent (struct chat_data *cd) } /*========================================== - * `bg[©çSõRèo· + * ãã£ããã«ãŒã ããå
šå¡è¹Žãåºã *------------------------------------------ */ int chat_npckickall (struct chat_data *cd) @@ -387,7 +387,7 @@ int chat_npckickall (struct chat_data *cd) } /*========================================== - * I¹ + * çµäº *------------------------------------------ */ int do_final_chat (void) diff --git a/src/map/chrif.c b/src/map/chrif.c index fd2398b..4bcfa45 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -44,7 +44,7 @@ static int char_port = 6121; static char userid[24], passwd[24]; static int chrif_state; -// Ýèt@CÇÝÝÖW +// èšå®ãã¡ã€ã«èªã¿èŸŒã¿é¢ä¿ /*========================================== * *------------------------------------------ @@ -147,7 +147,7 @@ int chrif_connect (int fd) } /*========================================== - * }bvM + * ãããéä¿¡ *------------------------------------------ */ int chrif_sendmap (int fd) @@ -167,7 +167,7 @@ int chrif_sendmap (int fd) } /*========================================== - * }bvóM + * ãããåä¿¡ *------------------------------------------ */ int chrif_recvmap (int fd) @@ -175,7 +175,7 @@ int chrif_recvmap (int fd) int i, j, ip, port; unsigned char *p = (unsigned char *) &ip; - if (chrif_state < 2) // ÜŸõ + if (chrif_state < 2) // ãŸã æºåäž return -1; ip = RFIFOL (fd, 4); @@ -194,7 +194,7 @@ int chrif_recvmap (int fd) } /*========================================== - * }bvIÔڮ̜ßÌf[^õv + * ãããé¯é移åã®ããã®ããŒã¿æºåèŠæ± *------------------------------------------ */ int chrif_changemapserver (struct map_session_data *sd, char *name, int x, @@ -230,7 +230,7 @@ int chrif_changemapserver (struct map_session_data *sd, char *name, int x, } /*========================================== - * }bvIÔÚ®ack + * ãããé¯é移åack *------------------------------------------ */ int chrif_changemapserverack (int fd) @@ -361,7 +361,7 @@ int chrif_charselectreq (struct map_session_data *sd) } /*========================================== - * LŒâ¢í¹ + * ãã£ã©ååãåãã *------------------------------------------ */ int chrif_searchcharid (int char_id) @@ -377,7 +377,7 @@ int chrif_searchcharid (int char_id) } /*========================================== - * GMÉÏ»v + * GMã«å€åèŠæ± *------------------------------------------ */ int chrif_changegm (int id, const char *pass, int len) @@ -633,7 +633,7 @@ int chrif_changedgm (int fd) } /*========================================== - * «ÊÏ»I¹ (modified by Yor) + * æ§å¥å€åçµäº (modified by Yor) *------------------------------------------ */ int chrif_changedsex (int fd) @@ -705,7 +705,7 @@ int chrif_changedsex (int fd) } /*========================================== - * AJEgÏÛ¶v + * ã¢ã«ãŠã³ãå€æ°ä¿åèŠæ± *------------------------------------------ */ int chrif_saveaccountreg2 (struct map_session_data *sd) @@ -733,7 +733,7 @@ int chrif_saveaccountreg2 (struct map_session_data *sd) } /*========================================== - * AJEgÏÊm + * ã¢ã«ãŠã³ãå€æ°éç¥ *------------------------------------------ */ int chrif_accountreg2 (int fd) @@ -1151,12 +1151,12 @@ int chrif_parse (int fd) || packet_len_table[cmd - 0x2af8] == 0) { - int r = intif_parse (fd); // intifÉn· + int r = intif_parse (fd); // intifã«æž¡ã if (r == 1) - continue; // intifŵœ + continue; // intifã§åŠçãã if (r == 2) - return 0; // intifŵœªAf[^ª«èÈ¢ + return 0; // intifã§åŠçããããããŒã¿ã足ããªã session[fd]->eof = 1; return 0; @@ -1244,8 +1244,8 @@ int chrif_parse (int fd) } /*========================================== - * timerÖ - * ¡±ÌmapIÉqªÁÄ¢éNCAglðcharIÖé + * timeré¢æ° + * ä»ãã®mapé¯ã«ç¹ãã£ãŠããã¯ã©ã€ã¢ã³ã人æ°ãcharé¯ãžéã *------------------------------------------ */ int send_users_tochar (int tid, unsigned int tick, int id, int data) @@ -1276,8 +1276,8 @@ int send_users_tochar (int tid, unsigned int tick, int id, int data) } /*========================================== - * timerÖ - * charIÆÌÚ±ðmFµAàµØêÄ¢œçÄxÚ±·é + * timeré¢æ° + * charé¯ãšã®æ¥ç¶ã確èªããããåããŠãããå床æ¥ç¶ãã *------------------------------------------ */ int check_connect_char_server (int tid, unsigned int tick, int id, int data) diff --git a/src/map/guild.c b/src/map/guild.c index edee837..1d328ea 100644 --- a/src/map/guild.c +++ b/src/map/guild.c @@ -35,17 +35,17 @@ struct eventlist struct eventlist *next; }; -// MhÌEXPLbV
ÌtbV
ÉÖA·éè -#define GUILD_PAYEXP_INVERVAL 10000 // Ôu(LbV
ÌÅ嶶ÔA~b) -#define GUILD_PAYEXP_LIST 8192 // LbV
ÌÅå +// ã®ã«ãã®EXPãã£ãã·ã¥ã®ãã©ãã·ã¥ã«é¢é£ããå®æ° +#define GUILD_PAYEXP_INVERVAL 10000 // éé(ãã£ãã·ã¥ã®æ倧çåæéãããªç§) +#define GUILD_PAYEXP_LIST 8192 // ãã£ãã·ã¥ã®æå€§æ° -// MhÌEXPLbV
+// ã®ã«ãã®EXPãã£ãã·ã¥ struct guild_expcache { int guild_id, account_id, char_id, exp; }; -// MhXLdbÌANZTi¡ÍŒÅ¿Åãpj +// ã®ã«ãã¹ãã«dbã®ã¢ã¯ã»ãµïŒä»ã¯çŽæã¡ã§ä»£çšïŒ int guild_skill_get_inf (int id) { return 0; @@ -66,7 +66,7 @@ int guild_skill_get_max (int id) return (id == 10004) ? 10 : 1; } -// MhXLª é©mF +// ã®ã«ãã¹ãã«ããããç¢ºèª int guild_checkskill (struct guild *g, int id) { return g->skill[id - 10000].lv; @@ -146,7 +146,7 @@ static int guild_read_castledb (void) return 0; } -// ú» +// åæå void do_init_guild (void) { guild_db = numdb_init (); @@ -164,7 +164,7 @@ void do_init_guild (void) guild_payexp_timer, 0, 0, GUILD_PAYEXP_INVERVAL); } -// õ +// æ€çŽ¢ struct guild *guild_search (int guild_id) { return numdb_search (guild_db, guild_id); @@ -181,7 +181,7 @@ int guild_searchname_sub (void *key, void *data, va_list ap) return 0; } -// MhŒõ +// ã®ã«ãåæ€çŽ¢ struct guild *guild_searchname (char *str) { struct guild *g = NULL; @@ -194,7 +194,7 @@ struct guild_castle *guild_castle_search (int gcid) return numdb_search (castle_db, gcid); } -// mapnameÉεœAWgÌgcðÔ· +// mapnameã«å¯Ÿå¿ããã¢ãžãã®gcãè¿ã struct guild_castle *guild_mapname2gc (char *mapname) { int i; @@ -210,7 +210,7 @@ struct guild_castle *guild_mapname2gc (char *mapname) return NULL; } -// OCÌMho[ÌPlÌsdðÔ· +// ãã°ã€ã³äžã®ã®ã«ãã¡ã³ããŒã®ïŒäººã®sdãè¿ã struct map_session_data *guild_getavailablesd (struct guild *g) { int i; @@ -223,7 +223,7 @@ struct map_session_data *guild_getavailablesd (struct guild *g) return NULL; } -// Mho[ÌCfbNXðÔ· +// ã®ã«ãã¡ã³ããŒã®ã€ã³ããã¯ã¹ãè¿ã int guild_getindex (struct guild *g, int account_id, int char_id) { int i; @@ -235,7 +235,7 @@ int guild_getindex (struct guild *g, int account_id, int char_id) return -1; } -// Mho[ÌðEðÔ· +// ã®ã«ãã¡ã³ããŒã®åœ¹è·ãè¿ã int guild_getposition (struct map_session_data *sd, struct guild *g) { int i; @@ -250,7 +250,7 @@ int guild_getposition (struct map_session_data *sd, struct guild *g) return -1; } -// o[îñÌì¬ +// ã¡ã³ããŒæ
å ±ã®äœæ void guild_makemember (struct guild_member *m, struct map_session_data *sd) { nullpo_retv (sd); @@ -271,7 +271,7 @@ void guild_makemember (struct guild_member *m, struct map_session_data *sd) return; } -// Mh£mF +// ã®ã«ã競åç¢ºèª int guild_check_conflict (struct map_session_data *sd) { nullpo_retr (0, sd); @@ -281,7 +281,7 @@ int guild_check_conflict (struct map_session_data *sd) return 0; } -// MhÌEXPLbV
ðinterIÉtbV
·é +// ã®ã«ãã®EXPãã£ãã·ã¥ãinteré¯ã«ãã©ãã·ã¥ãã int guild_payexp_timer_sub (void *key, void *data, va_list ap) { int i, *dellist, *delp, dataid = (int) key; @@ -401,7 +401,7 @@ int guild_created (int account_id, int guild_id) return 0; } -// îñv +// æ
å ±èŠæ± int guild_request_info (int guild_id) { // if(battle_config.etc_log) @@ -409,7 +409,7 @@ int guild_request_info (int guild_id) return intif_guild_request_info (guild_id); } -// Cxgt«îñv +// ã€ãã³ãä»ãæ
å ±èŠæ± int guild_npc_request_info (int guild_id, const char *event) { struct eventlist *ev; @@ -432,7 +432,7 @@ int guild_npc_request_info (int guild_id, const char *event) return guild_request_info (guild_id); } -// ®LÌmF +// æå±ãã£ã©ã®ç¢ºèª int guild_check_member (const struct guild *g) { int i; @@ -448,7 +448,7 @@ int guild_check_member (const struct guild *g) { int j, f = 1; for (j = 0; j < MAX_GUILD; j++) - { // f[^ª é© + { // ããŒã¿ãããã if (g->member[j].account_id == sd->status.account_id) f = 0; } @@ -467,7 +467,7 @@ int guild_check_member (const struct guild *g) return 0; } -// îñŸžsi»ÌIDÌLðS¢®É·éj +// æ
å ±æåŸå€±æïŒãã®IDã®ãã£ã©ãå
šéšæªæå±ã«ããïŒ int guild_recv_noinfo (int guild_id) { int i; @@ -483,7 +483,7 @@ int guild_recv_noinfo (int guild_id) return 0; } -// îñŸ +// æ
å ±æåŸ int guild_recv_info (struct guild *sg) { struct guild *g, before; @@ -498,7 +498,7 @@ int guild_recv_info (struct guild *sg) numdb_insert (guild_db, sg->guild_id, g); before = *sg; - // ÅÌ[hÈÌÅ[U[Ì`FbNðs€ + // æåã®ããŒããªã®ã§ãŠãŒã¶ãŒã®ãã§ãã¯ãè¡ã guild_check_member (sg); } else @@ -506,7 +506,7 @@ int guild_recv_info (struct guild *sg) memcpy (g, sg, sizeof (struct guild)); for (i = bm = m = 0; i < g->max_member; i++) - { // sdÌÝèÆlÌmF + { // sdã®èšå®ãšäººæ°ã®ç¢ºèª if (g->member[i].account_id > 0) { struct map_session_data *sd = map_id2sd (g->member[i].account_id); @@ -522,7 +522,7 @@ int guild_recv_info (struct guild *sg) } for (i = 0; i < g->max_member; i++) - { // îñÌM + { // æ
å ±ã®éä¿¡ struct map_session_data *sd = g->member[i].sd; if (sd == NULL) continue; @@ -530,20 +530,20 @@ int guild_recv_info (struct guild *sg) if (before.guild_lv != g->guild_lv || bm != m || before.max_member != g->max_member) { - clif_guild_basicinfo (sd); // î{îñM - clif_guild_emblem (sd, g); // GuM + clif_guild_basicinfo (sd); // åºæ¬æ
å ±éä¿¡ + clif_guild_emblem (sd, g); // ãšã³ãã¬ã éä¿¡ } if (bm != m) - { // o[îñM + { // ã¡ã³ããŒæ
å ±éä¿¡ clif_guild_memberlist (g->member[i].sd); } if (before.skill_point != g->skill_point) - clif_guild_skillinfo (sd); // XLîñM + clif_guild_skillinfo (sd); // ã¹ãã«æ
å ±éä¿¡ if (sd->guild_sended == 0) - { // ¢MÈç®îñàé + { // æªéä¿¡ãªãæå±æ
å ±ãéã clif_guild_belonginfo (sd, g); clif_guild_notice (sd, g); sd->guild_emblem_id = g->emblem_id; @@ -551,7 +551,7 @@ int guild_recv_info (struct guild *sg) } } - // Cxg̶ + // ã€ãã³ãã®çºç if ((ev = numdb_search (guild_infoevent_db, sg->guild_id)) != NULL) { numdb_erase (guild_infoevent_db, sg->guild_id); @@ -564,7 +564,7 @@ int guild_recv_info (struct guild *sg) return 0; } -// MhÖÌ©U +// ã®ã«ããžã®å§èª int guild_invite (struct map_session_data *sd, int account_id) { struct map_session_data *tsd; @@ -581,18 +581,18 @@ int guild_invite (struct map_session_data *sd, int account_id) if (!battle_config.invite_request_check) { if (tsd->party_invite > 0 || tsd->trade_partner) - { // èªæø©Ç€© + { // çžæãååŒäžãã©ãã clif_guild_inviteack (sd, 0); return 0; } } if (tsd->status.guild_id > 0 || tsd->guild_invite > 0) - { // èÌ®mF + { // çžæã®æå±ç¢ºèª clif_guild_inviteack (sd, 0); return 0; } - // èõmF + // å®å¡ç¢ºèª for (i = 0; i < g->max_member; i++) if (g->member[i].account_id == 0) break; @@ -609,7 +609,7 @@ int guild_invite (struct map_session_data *sd, int account_id) return 0; } -// Mh©UÖÌÔ +// ã®ã«ãå§èªãžã®è¿ç int guild_reply_invite (struct map_session_data *sd, int guild_id, int flag) { struct map_session_data *tsd; @@ -617,16 +617,16 @@ int guild_reply_invite (struct map_session_data *sd, int guild_id, int flag) nullpo_retr (0, sd); nullpo_retr (0, tsd = map_id2sd (sd->guild_invite_account)); - if (sd->guild_invite != guild_id) // ©UÆMhIDªá€ + if (sd->guild_invite != guild_id) // å§èªãšã®ã«ãIDãéã return 0; if (flag == 1) - { // ³ø + { // æ¿è«Ÿ struct guild_member m; struct guild *g; int i; - // èõmF + // å®å¡ç¢ºèª if ((g = guild_search (tsd->status.guild_id)) == NULL) { sd->guild_invite = 0; @@ -644,13 +644,13 @@ int guild_reply_invite (struct map_session_data *sd, int guild_id, int flag) return 0; } - //interIÖÇÁv + //interé¯ãžè¿œå èŠæ± guild_makemember (&m, sd); intif_guild_addmember (sd->guild_invite, &m); return 0; } else - { // Û + { // æåŠ sd->guild_invite = 0; sd->guild_invite_account = 0; if (tsd == NULL) @@ -660,7 +660,7 @@ int guild_reply_invite (struct map_session_data *sd, int guild_id, int flag) return 0; } -// MhoªÇÁ³êœ +// ã®ã«ãã¡ã³ããè¿œå ããã int guild_member_added (int guild_id, int account_id, int char_id, int flag) { struct map_session_data *sd = map_id2sd (account_id), *sd2; @@ -671,11 +671,11 @@ int guild_member_added (int guild_id, int account_id, int char_id, int flag) if ((sd == NULL || sd->guild_invite == 0) && flag == 0) { - // L€Éo^Å«È©ÁœœßEÞvðo· + // ãã£ã©åŽã«ç»é²ã§ããªãã£ãããè±éèŠæ±ãåºã if (battle_config.error_log) printf ("guild: member added error %d is not online\n", account_id); - intif_guild_leave (guild_id, account_id, 0 /*char_id*/, 0, "**o^žs**"); + intif_guild_leave (guild_id, account_id, 0 /*char_id*/, 0, "**ç»é²å€±æ**"); return 0; } sd->guild_invite = 0; @@ -684,26 +684,26 @@ int guild_member_added (int guild_id, int account_id, int char_id, int flag) sd2 = map_id2sd (sd->guild_invite_account); if (flag == 1) - { // žs + { // 倱æ if (sd2 != NULL) clif_guild_inviteack (sd2, 3); return 0; } - // ¬÷ + // æå sd->guild_sended = 0; sd->status.guild_id = guild_id; if (sd2 != NULL) clif_guild_inviteack (sd2, 2); - // ¢¿š€£mF + // ãã¡ãã競åç¢ºèª guild_check_conflict (sd); return 0; } -// MhEÞv +// ã®ã«ãè±éèŠæ± int guild_leave (struct map_session_data *sd, int guild_id, int account_id, int char_id, const char *mes) { @@ -722,7 +722,7 @@ int guild_leave (struct map_session_data *sd, int guild_id, return 0; for (i = 0; i < g->max_member; i++) - { // ®µÄ¢é© + { // æå±ããŠããã if (g->member[i].account_id == sd->status.account_id) { intif_guild_leave (g->guild_id, sd->status.account_id, @@ -733,7 +733,7 @@ int guild_leave (struct map_session_data *sd, int guild_id, return 0; } -// MhÇúv +// ã®ã«ãè¿œæŸèŠæ± int guild_explusion (struct map_session_data *sd, int guild_id, int account_id, int char_id, const char *mes) { @@ -752,10 +752,10 @@ int guild_explusion (struct map_session_data *sd, int guild_id, if ((ps = guild_getposition (sd, g)) < 0 || !(g->position[ps].mode & 0x0010)) - return 0; // ± À³µ + return 0; // åŠçœ°æš©éç¡ã for (i = 0; i < g->max_member; i++) - { // ®µÄ¢é© + { // æå±ããŠããã if (g->member[i].account_id == account_id) { intif_guild_leave (g->guild_id, account_id, 0 /*char_id*/, 1, mes); @@ -765,7 +765,7 @@ int guild_explusion (struct map_session_data *sd, int guild_id, return 0; } -// MhoªEÞµœ +// ã®ã«ãã¡ã³ããè±éãã int guild_member_leaved (int guild_id, int account_id, int char_id, int flag, const char *name, const char *mes) { @@ -802,7 +802,7 @@ int guild_member_leaved (int guild_id, int account_id, int char_id, int flag, sd->guild_sended = 0; } - // o[XgðSõÉÄÊm + // ã¡ã³ããŒãªã¹ããå
šå¡ã«åéç¥ for (i = 0; i < g->max_member; i++) { if (g->member[i].sd != NULL) @@ -812,7 +812,7 @@ int guild_member_leaved (int guild_id, int account_id, int char_id, int flag, return 0; } -// MhoÌICóÔ/LvXVM +// ã®ã«ãã¡ã³ãã®ãªã³ã©ã€ã³ç¶æ
/LvæŽæ°éä¿¡ int guild_send_memberinfoshort (struct map_session_data *sd, int online) { struct guild *g; @@ -831,7 +831,7 @@ int guild_send_memberinfoshort (struct map_session_data *sd, int online) sd->status.class); if (!online) - { // OAEg·éÈçsdðNAµÄI¹ + { // ãã°ã¢ãŠããããªãsdãã¯ãªã¢ããŠçµäº int i = guild_getindex (g, sd->status.account_id, 0 /*char_id*/); if (i >= 0) @@ -839,16 +839,16 @@ int guild_send_memberinfoshort (struct map_session_data *sd, int online) return 0; } - if (sd->guild_sended != 0) // MhúMf[^ÍMÏÝ + if (sd->guild_sended != 0) // ã®ã«ãåæéä¿¡ããŒã¿ã¯éä¿¡æžã¿ return 0; - // £mF + // 競åç¢ºèª guild_check_conflict (sd); - // éÈçMhúMf[^M + // ãããªãã®ã«ãåæéä¿¡ããŒã¿éä¿¡ if ((g = guild_search (sd->status.guild_id)) != NULL) { - guild_check_member (g); // ®ðmF·é + guild_check_member (g); // æå±ã確èªãã if (sd->status.guild_id == g->guild_id) { clif_guild_belonginfo (sd, g); @@ -860,7 +860,7 @@ int guild_send_memberinfoshort (struct map_session_data *sd, int online) return 0; } -// MhoÌICóÔ/LvXVÊm +// ã®ã«ãã¡ã³ãã®ãªã³ã©ã€ã³ç¶æ
/LvæŽæ°éç¥ int guild_recv_memberinfoshort (int guild_id, int account_id, int char_id, int online, int lv, int class) { @@ -897,22 +897,22 @@ int guild_recv_memberinfoshort (int guild_id, int account_id, int char_id, g->average_lv = alv / c; g->connect_member = om; - if (oldonline != online) // ICóÔªÏíÁœÌÅÊm + if (oldonline != online) // ãªã³ã©ã€ã³ç¶æ
ãå€ãã£ãã®ã§éç¥ clif_guild_memberlogin_notice (g, idx, online); for (i = 0; i < g->max_member; i++) - { // sdÄÝè + { // sdåèšå® struct map_session_data *sd = map_id2sd (g->member[i].account_id); g->member[i].sd = (sd != NULL && sd->status.guild_id == guild_id) ? sd : NULL; } - // ±±ÉNCAgÉMªKv + // ããã«ã¯ã©ã€ã¢ã³ãã«éä¿¡åŠçãå¿
èŠ return 0; } -// MhïbM +// ã®ã«ãäŒè©±éä¿¡ int guild_send_message (struct map_session_data *sd, char *mes, int len) { nullpo_retr (0, sd); @@ -924,7 +924,7 @@ int guild_send_message (struct map_session_data *sd, char *mes, int len) return 0; } -// MhïbóM +// ã®ã«ãäŒè©±åä¿¡ int guild_recv_message (int guild_id, int account_id, char *mes, int len) { struct guild *g; @@ -934,7 +934,7 @@ int guild_recv_message (int guild_id, int account_id, char *mes, int len) return 0; } -// MhoÌðEÏX +// ã®ã«ãã¡ã³ãã®åœ¹è·å€æŽ int guild_change_memberposition (int guild_id, int account_id, int char_id, int idx) { @@ -942,7 +942,7 @@ int guild_change_memberposition (int guild_id, int account_id, int char_id, GMI_POSITION, &idx, sizeof (idx)); } -// MhoÌðEÏXÊm +// ã®ã«ãã¡ã³ãã®åœ¹è·å€æŽéç¥ int guild_memberposition_changed (struct guild *g, int idx, int pos) { nullpo_retr (0, g); @@ -952,7 +952,7 @@ int guild_memberposition_changed (struct guild *g, int idx, int pos) return 0; } -// MhðEÏX +// ã®ã«ã圹è·å€æŽ int guild_change_position (struct map_session_data *sd, int idx, int mode, int exp_mode, const char *name) { @@ -970,7 +970,7 @@ int guild_change_position (struct map_session_data *sd, int idx, return intif_guild_position (sd->status.guild_id, idx, &p); } -// MhðEÏXÊm +// ã®ã«ã圹è·å€æŽéç¥ int guild_position_changed (int guild_id, int idx, struct guild_position *p) { struct guild *g = guild_search (guild_id); @@ -981,7 +981,7 @@ int guild_position_changed (int guild_id, int idx, struct guild_position *p) return 0; } -// MhmÏX +// ã®ã«ãåç¥å€æŽ int guild_change_notice (struct map_session_data *sd, int guild_id, const char *mes1, const char *mes2) { @@ -1005,7 +1005,7 @@ int guild_change_notice (struct map_session_data *sd, int guild_id, return intif_guild_notice (guild_id, mes1, mes2); } -// MhmÏXÊm +// ã®ã«ãåç¥å€æŽéç¥ int guild_notice_changed (int guild_id, const char *mes1, const char *mes2) { int i; @@ -1025,7 +1025,7 @@ int guild_notice_changed (int guild_id, const char *mes1, const char *mes2) return 0; } -// MhGuÏX +// ã®ã«ããšã³ãã¬ã å€æŽ int guild_change_emblem (struct map_session_data *sd, int len, const char *data) { @@ -1046,7 +1046,7 @@ int guild_change_emblem (struct map_session_data *sd, int len, return intif_guild_emblem (sd->status.guild_id, len, data); } -// MhGuÏXÊm +// ã®ã«ããšã³ãã¬ã å€æŽéç¥ int guild_emblem_changed (int len, int guild_id, int emblem_id, const char *data) { @@ -1072,7 +1072,7 @@ int guild_emblem_changed (int len, int guild_id, int emblem_id, return 0; } -// MhÌEXPã[ +// ã®ã«ãã®EXPäžçŽ int guild_payexp (struct map_session_data *sd, int exp) { struct guild *g; @@ -1110,7 +1110,7 @@ int guild_payexp (struct map_session_data *sd, int exp) return exp2; } -// XL|CgèUè +// ã¹ãã«ãã€ã³ãå²ãæ¯ã int guild_skillup (struct map_session_data *sd, int skill_num) { struct guild *g; @@ -1133,7 +1133,7 @@ int guild_skillup (struct map_session_data *sd, int skill_num) return 0; } -// XL|CgèUèÊm +// ã¹ãã«ãã€ã³ãå²ãæ¯ãéç¥ int guild_skillupack (int guild_id, int skill_num, int account_id) { struct map_session_data *sd = map_id2sd (account_id); @@ -1143,14 +1143,14 @@ int guild_skillupack (int guild_id, int skill_num, int account_id) return 0; if (sd != NULL) clif_guild_skillup (sd, skill_num, g->skill[skill_num - 10000].lv); - // SõÉÊm + // å
šå¡ã«éç¥ for (i = 0; i < g->max_member; i++) if ((sd = g->member[i].sd) != NULL) clif_guild_skillinfo (sd); return 0; } -// Mh¯¿Ÿ +// ã®ã«ãåçæ°æåŸ int guild_get_alliance_count (struct guild *g, int flag) { int i, c; @@ -1165,7 +1165,7 @@ int guild_get_alliance_count (struct guild *g, int flag) return c; } -// Mh¯¿v +// ã®ã«ãåçèŠæ± int guild_reqalliance (struct map_session_data *sd, int account_id) { struct map_session_data *tsd = map_id2sd (account_id); @@ -1194,19 +1194,19 @@ int guild_reqalliance (struct map_session_data *sd, int account_id) || !(g[0]->position[ps].mode & 0x0010)) return 0; - if (guild_get_alliance_count (g[0], 0) > 3) // ¯¿mF + if (guild_get_alliance_count (g[0], 0) > 3) // åçæ°ç¢ºèª clif_guild_allianceack (sd, 4); if (guild_get_alliance_count (g[1], 0) > 3) clif_guild_allianceack (sd, 3); if (tsd->guild_alliance > 0) - { // 誯¿v¿óÔ©Ç€©mF + { // çžæãåçèŠè«ç¶æ
ãã©ããç¢ºèª clif_guild_allianceack (sd, 1); return 0; } for (i = 0; i < MAX_GUILDALLIANCE; i++) - { // ·Åɯ¿óÔ©mF + { // ãã§ã«åçç¶æ
ãç¢ºèª if (g[0]->alliance[i].guild_id == tsd->status.guild_id && g[0]->alliance[i].opposition == 0) { @@ -1222,7 +1222,7 @@ int guild_reqalliance (struct map_session_data *sd, int account_id) return 0; } -// Mh©UÖÌÔ +// ã®ã«ãå§èªãžã®è¿ç int guild_reply_reqalliance (struct map_session_data *sd, int account_id, int flag) { @@ -1231,14 +1231,14 @@ int guild_reply_reqalliance (struct map_session_data *sd, int account_id, nullpo_retr (0, sd); nullpo_retr (0, tsd = map_id2sd (account_id)); - if (sd->guild_alliance != tsd->status.guild_id) // ©UÆMhIDªá€ + if (sd->guild_alliance != tsd->status.guild_id) // å§èªãšã®ã«ãIDãéã return 0; if (flag == 1) - { // ³ø + { // æ¿è«Ÿ int i; - struct guild *g; // ¯¿ÄmF + struct guild *g; // åçæ°åç¢ºèª if ((g = guild_search (sd->status.guild_id)) == NULL || guild_get_alliance_count (g, 0) > 3) { @@ -1254,7 +1254,7 @@ int guild_reply_reqalliance (struct map_session_data *sd, int account_id, return 0; } - // GÎÖWÈçGÎð~ßé + // æµå¯Ÿé¢ä¿ãªãæµå¯Ÿãæ¢ãã if ((g = guild_search (sd->status.guild_id)) == NULL) return 0; for (i = 0; i < MAX_GUILDALLIANCE; i++) @@ -1278,14 +1278,14 @@ int guild_reply_reqalliance (struct map_session_data *sd, int account_id, sd->status.account_id, 9); } - // interIÖ¯¿v¿ + // interé¯ãžåçèŠè« intif_guild_alliance (sd->status.guild_id, tsd->status.guild_id, sd->status.account_id, tsd->status.account_id, 0); return 0; } else - { // Û + { // æåŠ sd->guild_alliance = 0; sd->guild_alliance_account = 0; if (tsd != NULL) @@ -1294,7 +1294,7 @@ int guild_reply_reqalliance (struct map_session_data *sd, int account_id, return 0; } -// MhÖWðÁ +// ã®ã«ãé¢ä¿è§£æ¶ int guild_delalliance (struct map_session_data *sd, int guild_id, int flag) { if (agit_flag) @@ -1323,7 +1323,7 @@ int guild_delalliance (struct map_session_data *sd, int guild_id, int flag) return 0; } -// MhGÎ +// ã®ã«ãæµå¯Ÿ int guild_opposition (struct map_session_data *sd, int account_id /*char_id*/) { struct map_session_data *tsd = map_id2sd (account_id /*char_id*/); @@ -1340,19 +1340,19 @@ int guild_opposition (struct map_session_data *sd, int account_id /*char_id*/) || !(g->position[ps].mode & 0x0010)) return 0; - if (guild_get_alliance_count (g, 1) > 3) // GÎmF + if (guild_get_alliance_count (g, 1) > 3) // æµå¯Ÿæ°ç¢ºèª clif_guild_oppositionack (sd, 1); for (i = 0; i < MAX_GUILDALLIANCE; i++) - { // ·ÅÉÖWðÁÄ¢é©mF + { // ãã§ã«é¢ä¿ãæã£ãŠãããç¢ºèª if (g->alliance[i].guild_id == tsd->status.guild_id) { if (g->alliance[i].opposition == 1) - { // ·ÅÉGÎ + { // ãã§ã«æµå¯Ÿ clif_guild_oppositionack (sd, 2); return 0; } - else // ¯¿jü + else // åçç Žæ£ intif_guild_alliance (sd->status.guild_id, tsd->status.guild_id, sd->status.account_id, @@ -1360,13 +1360,13 @@ int guild_opposition (struct map_session_data *sd, int account_id /*char_id*/) } } - // interIÉGÎv¿ + // interé¯ã«æµå¯ŸèŠè« intif_guild_alliance (sd->status.guild_id, tsd->status.guild_id, sd->status.account_id, tsd->status.account_id, 1); return 0; } -// Mh¯¿/GÎÊm +// ã®ã«ãåç/æµå¯Ÿéç¥ int guild_allianceack (int guild_id1, int guild_id2, int account_id1, int account_id2, int flag, const char *name1, const char *name2) @@ -1388,7 +1388,7 @@ int guild_allianceack (int guild_id1, int guild_id2, int account_id1, } if (flag & 0x70) - { // žs + { // 倱æ for (i = 0; i < 2 - (flag & 1); i++) if (sd[i] != NULL) clif_guild_allianceack (sd[i], @@ -1399,7 +1399,7 @@ int guild_allianceack (int guild_id1, int guild_id2, int account_id1, // printf("guild alliance_ack %d %d %d %d %d %s %s\n",guild_id1,guild_id2,account_id1,account_id2,flag,name1,name2); if (!(flag & 0x08)) - { // ÖWÇÁ + { // é¢ä¿è¿œå for (i = 0; i < 2 - (flag & 1); i++) if (g[i] != NULL) for (j = 0; j < MAX_GUILDALLIANCE; j++) @@ -1413,7 +1413,7 @@ int guild_allianceack (int guild_id1, int guild_id2, int account_id1, } } else - { // ÖWðÁ + { // é¢ä¿è§£æ¶ for (i = 0; i < 2 - (flag & 1); i++) { if (g[i] != NULL) @@ -1424,24 +1424,24 @@ int guild_allianceack (int guild_id1, int guild_id2, int account_id1, g[i]->alliance[j].guild_id = 0; break; } - if (sd[i] != NULL) // ðÁÊm + if (sd[i] != NULL) // 解æ¶éç¥ clif_guild_delalliance (sd[i], guild_id[1 - i], (flag & 1)); } } if ((flag & 0x0f) == 0) - { // ¯¿Êm + { // åçéç¥ if (sd[1] != NULL) clif_guild_allianceack (sd[1], 2); } else if ((flag & 0x0f) == 1) - { // GÎÊm + { // æµå¯Ÿéç¥ if (sd[0] != NULL) clif_guild_oppositionack (sd[0], 0); } for (i = 0; i < 2 - (flag & 1); i++) - { // ¯¿/GÎXgÌÄM + { // åç/æµå¯Ÿãªã¹ãã®åéä¿¡ struct map_session_data *sd; if (g[i] != NULL) for (j = 0; j < g[i]->max_member; j++) @@ -1451,7 +1451,7 @@ int guild_allianceack (int guild_id1, int guild_id2, int account_id1, return 0; } -// MhðUÊmp +// ã®ã«ã解æ£éç¥çš int guild_broken_sub (void *key, void *data, va_list ap) { struct guild *g = (struct guild *) data; @@ -1462,7 +1462,7 @@ int guild_broken_sub (void *key, void *data, va_list ap) nullpo_retr (0, g); for (i = 0; i < MAX_GUILDALLIANCE; i++) - { // ÖWðjü + { // é¢ä¿ãç Žæ£ if (g->alliance[i].guild_id == guild_id) { for (j = 0; j < g->max_member; j++) @@ -1475,7 +1475,7 @@ int guild_broken_sub (void *key, void *data, va_list ap) return 0; } -// MhðUÊm +// ã®ã«ã解æ£éç¥ int guild_broken (int guild_id, int flag) { struct guild *g = guild_search (guild_id); @@ -1485,7 +1485,7 @@ int guild_broken (int guild_id, int flag) return 0; for (i = 0; i < g->max_member; i++) - { // MhðUðÊm + { // ã®ã«ã解æ£ãéç¥ if ((sd = g->member[i].sd) != NULL) { if (sd->state.storage_flag == 2) @@ -1503,7 +1503,7 @@ int guild_broken (int guild_id, int flag) return 0; } -// MhðU +// ã®ã«ãè§£æ£ int guild_break (struct map_session_data *sd, char *name) { struct guild *g; @@ -1533,13 +1533,13 @@ int guild_break (struct map_session_data *sd, char *name) return 0; } -// Mhéf[^v +// ã®ã«ãåããŒã¿èŠæ± int guild_castledataload (int castle_id, int index) { return intif_guild_castle_dataload (castle_id, index); } -// MhéîñŸCxgÇÁ +// ã®ã«ãåæ
å ±æåŸæã€ãã³ãè¿œå int guild_addcastleinfoevent (int castle_id, int index, const char *name) { struct eventlist *ev; @@ -1555,7 +1555,7 @@ int guild_addcastleinfoevent (int castle_id, int index, const char *name) return 0; } -// Mhéf[^vÔM +// ã®ã«ãåããŒã¿èŠæ±è¿ä¿¡ int guild_castledataloadack (int castle_id, int index, int value) { struct guild_castle *gc = guild_castle_search (castle_id); @@ -1659,13 +1659,13 @@ int guild_castledataloadack (int castle_id, int index, int value) return 1; } -// Mhéf[^ÏXv +// ã®ã«ãåããŒã¿å€æŽèŠæ± int guild_castledatasave (int castle_id, int index, int value) { return intif_guild_castle_datasave (castle_id, index, value); } -// Mhéf[^ÏXÊm +// ã®ã«ãåããŒã¿å€æŽéç¥ int guild_castledatasaveack (int castle_id, int index, int value) { struct guild_castle *gc = guild_castle_search (castle_id); @@ -1758,7 +1758,7 @@ int guild_castledatasaveack (int castle_id, int index, int value) return 1; } -// Mhf[^êóMiú»j +// ã®ã«ãããŒã¿äžæ¬åä¿¡ïŒåæåæïŒ int guild_castlealldataload (int len, struct guild_castle *gc) { int i; @@ -1766,14 +1766,14 @@ int guild_castlealldataload (int len, struct guild_castle *gc) nullpo_retr (0, gc); - // Cxgt«Åv·éf[^ÊuðT·(ÅãÌèf[^) + // ã€ãã³ãä»ãã§èŠæ±ããããŒã¿äœçœ®ãæ¢ã(æåŸã®å æ ããŒã¿) for (i = 0; i < n; i++) { if ((gc + i)->guild_id) ev = i; } - // éf[^i[ÆMhîñv + // åããŒã¿æ ŒçŽãšã®ã«ãæ
å ±èŠæ± for (i = 0; i < n; i++, gc++) { struct guild_castle *c = guild_castle_search (gc->castle_id); diff --git a/src/map/intif.c b/src/map/intif.c index 6945486..efde695 100644 --- a/src/map/intif.c +++ b/src/map/intif.c @@ -48,11 +48,11 @@ static const int packet_len_table[] = { 11, -1, 7, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; -extern int char_fd; // inter serverÌfdÍchar_fdðg€ -#define inter_fd (char_fd) // GCAX +extern int char_fd; // inter serverã®fdã¯char_fdã䜿ã +#define inter_fd (char_fd) // ãšã€ãªã¢ã¹ //----------------------------------------------------------------- -// inter serverÖÌM +// inter serverãžã®éä¿¡ // Message for all GMs on all map servers int intif_GMmessage (char *mes, int len, int flag) @@ -120,7 +120,7 @@ int intif_wis_message_to_gm (char *Wisp_name, int min_gm_level, char *mes, return 0; } -// AJEgÏM +// ã¢ã«ãŠã³ãå€æ°éä¿¡ int intif_saveaccountreg (struct map_session_data *sd) { int j, p; @@ -139,7 +139,7 @@ int intif_saveaccountreg (struct map_session_data *sd) return 0; } -// AJEgÏv +// ã¢ã«ãŠã³ãå€æ°èŠæ± int intif_request_accountreg (struct map_session_data *sd) { nullpo_retr (0, sd); @@ -150,7 +150,7 @@ int intif_request_accountreg (struct map_session_data *sd) return 0; } -// qÉf[^v +// å庫ããŒã¿èŠæ± int intif_request_storage (int account_id) { WFIFOW (inter_fd, 0) = 0x3010; @@ -159,7 +159,7 @@ int intif_request_storage (int account_id) return 0; } -// qÉf[^M +// å庫ããŒã¿éä¿¡ int intif_send_storage (struct storage *stor) { nullpo_retr (0, stor); @@ -191,7 +191,7 @@ int intif_send_guild_storage (int account_id, struct guild_storage *gstor) return 0; } -// p[eBì¬v +// ããŒãã£äœæèŠæ± int intif_create_party (struct map_session_data *sd, char *name) { nullpo_retr (0, sd); @@ -208,7 +208,7 @@ int intif_create_party (struct map_session_data *sd, char *name) return 0; } -// p[eBîñv +// ããŒãã£æ
å ±èŠæ± int intif_request_partyinfo (int party_id) { WFIFOW (inter_fd, 0) = 0x3021; @@ -219,7 +219,7 @@ int intif_request_partyinfo (int party_id) return 0; } -// p[eBÇÁv +// ããŒãã£è¿œå èŠæ± int intif_party_addmember (int party_id, int account_id) { struct map_session_data *sd; @@ -239,7 +239,7 @@ int intif_party_addmember (int party_id, int account_id) return 0; } -// p[eBÝèÏX +// ããŒãã£èšå®å€æŽ int intif_party_changeoption (int party_id, int account_id, int exp, int item) { WFIFOW (inter_fd, 0) = 0x3023; @@ -251,7 +251,7 @@ int intif_party_changeoption (int party_id, int account_id, int exp, int item) return 0; } -// p[eBEÞv +// ããŒãã£è±éèŠæ± int intif_party_leave (int party_id, int account_id) { // if(battle_config.etc_log) @@ -263,7 +263,7 @@ int intif_party_leave (int party_id, int account_id) return 0; } -// p[eBÚ®v +// ããŒãã£ç§»åèŠæ± int intif_party_changemap (struct map_session_data *sd, int online) { if (sd != NULL) @@ -281,7 +281,7 @@ int intif_party_changemap (struct map_session_data *sd, int online) return 0; } -// p[eB[ðUv +// ããŒãã£ãŒè§£æ£èŠæ± int intif_break_party (int party_id) { WFIFOW (inter_fd, 0) = 0x3026; @@ -290,7 +290,7 @@ int intif_break_party (int party_id) return 0; } -// p[eBïbM +// ããŒãã£äŒè©±éä¿¡ int intif_party_message (int party_id, int account_id, char *mes, int len) { // if(battle_config.etc_log) @@ -304,7 +304,7 @@ int intif_party_message (int party_id, int account_id, char *mes, int len) return 0; } -// p[eB£`FbNv +// ããŒãã£ç«¶åãã§ãã¯èŠæ± int intif_party_checkconflict (int party_id, int account_id, char *nick) { WFIFOW (inter_fd, 0) = 0x3028; @@ -315,7 +315,7 @@ int intif_party_checkconflict (int party_id, int account_id, char *nick) return 0; } -// Mhì¬v +// ã®ã«ãäœæèŠæ± int intif_guild_create (const char *name, const struct guild_member *master) { nullpo_retr (0, master); @@ -329,7 +329,7 @@ int intif_guild_create (const char *name, const struct guild_member *master) return 0; } -// Mhîñv +// ã®ã«ãæ
å ±èŠæ± int intif_guild_request_info (int guild_id) { WFIFOW (inter_fd, 0) = 0x3031; @@ -338,7 +338,7 @@ int intif_guild_request_info (int guild_id) return 0; } -// MhoÇÁv +// ã®ã«ãã¡ã³ãè¿œå èŠæ± int intif_guild_addmember (int guild_id, struct guild_member *m) { WFIFOW (inter_fd, 0) = 0x3032; @@ -349,7 +349,7 @@ int intif_guild_addmember (int guild_id, struct guild_member *m) return 0; } -// MhoEÞ/Çúv +// ã®ã«ãã¡ã³ãè±é/è¿œæŸèŠæ± int intif_guild_leave (int guild_id, int account_id, int char_id, int flag, const char *mes) { @@ -363,7 +363,7 @@ int intif_guild_leave (int guild_id, int account_id, int char_id, int flag, return 0; } -// MhoÌICóµ/LvXVv +// ã®ã«ãã¡ã³ãã®ãªã³ã©ã€ã³ç¶æ³/LvæŽæ°èŠæ± int intif_guild_memberinfoshort (int guild_id, int account_id, int char_id, int online, int lv, int class) @@ -379,7 +379,7 @@ int intif_guild_memberinfoshort (int guild_id, return 0; } -// MhðUÊm +// ã®ã«ã解æ£éç¥ int intif_guild_break (int guild_id) { WFIFOW (inter_fd, 0) = 0x3036; @@ -388,7 +388,7 @@ int intif_guild_break (int guild_id) return 0; } -// MhïbM +// ã®ã«ãäŒè©±éä¿¡ int intif_guild_message (int guild_id, int account_id, char *mes, int len) { WFIFOW (inter_fd, 0) = 0x3037; @@ -400,7 +400,7 @@ int intif_guild_message (int guild_id, int account_id, char *mes, int len) return 0; } -// Mh£`FbNv +// ã®ã«ã競åãã§ãã¯èŠæ± int intif_guild_checkconflict (int guild_id, int account_id, int char_id) { WFIFOW (inter_fd, 0) = 0x3038; @@ -411,7 +411,7 @@ int intif_guild_checkconflict (int guild_id, int account_id, int char_id) return 0; } -// Mhî{îñÏXv +// ã®ã«ãåºæ¬æ
å ±å€æŽèŠæ± int intif_guild_change_basicinfo (int guild_id, int type, const void *data, int len) { @@ -424,7 +424,7 @@ int intif_guild_change_basicinfo (int guild_id, int type, const void *data, return 0; } -// MhoîñÏXv +// ã®ã«ãã¡ã³ãæ
å ±å€æŽèŠæ± int intif_guild_change_memberinfo (int guild_id, int account_id, int char_id, int type, const void *data, int len) { @@ -439,7 +439,7 @@ int intif_guild_change_memberinfo (int guild_id, int account_id, int char_id, return 0; } -// MhðEÏXv +// ã®ã«ã圹è·å€æŽèŠæ± int intif_guild_position (int guild_id, int idx, struct guild_position *p) { WFIFOW (inter_fd, 0) = 0x303b; @@ -451,7 +451,7 @@ int intif_guild_position (int guild_id, int idx, struct guild_position *p) return 0; } -// MhXLAbvv +// ã®ã«ãã¹ãã«ã¢ããèŠæ± int intif_guild_skillup (int guild_id, int skill_num, int account_id) { WFIFOW (inter_fd, 0) = 0x303c; @@ -462,7 +462,7 @@ int intif_guild_skillup (int guild_id, int skill_num, int account_id) return 0; } -// Mh¯¿/GÎv +// ã®ã«ãåç/æµå¯ŸèŠæ± int intif_guild_alliance (int guild_id1, int guild_id2, int account_id1, int account_id2, int flag) { @@ -476,7 +476,7 @@ int intif_guild_alliance (int guild_id1, int guild_id2, int account_id1, return 0; } -// MhmÏXv +// ã®ã«ãåç¥å€æŽèŠæ± int intif_guild_notice (int guild_id, const char *mes1, const char *mes2) { WFIFOW (inter_fd, 0) = 0x303e; @@ -487,7 +487,7 @@ int intif_guild_notice (int guild_id, const char *mes1, const char *mes2) return 0; } -// MhGuÏXv +// ã®ã«ããšã³ãã¬ã å€æŽèŠæ± int intif_guild_emblem (int guild_id, int len, const char *data) { if (guild_id <= 0 || len < 0 || len > 2000) @@ -501,7 +501,7 @@ int intif_guild_emblem (int guild_id, int len, const char *data) return 0; } -//»ÝÌMhéèÌMhð²×é +//çŸåšã®ã®ã«ãåå é ã®ã«ãã調ã¹ã int intif_guild_castle_dataload (int castle_id, int index) { WFIFOW (inter_fd, 0) = 0x3040; @@ -511,7 +511,7 @@ int intif_guild_castle_dataload (int castle_id, int index) return 0; } -//MhéèÌMhÏXv +//ã®ã«ãåå é ã®ã«ãå€æŽèŠæ± int intif_guild_castle_datasave (int castle_id, int index, int value) { WFIFOW (inter_fd, 0) = 0x3041; @@ -615,7 +615,7 @@ int mapif_parse_WisToGM (int fd) return 0; } -// AJEgÏÊm +// ã¢ã«ãŠã³ãå€æ°éç¥ int intif_parse_AccountReg (int fd) { int j, p; @@ -635,7 +635,7 @@ int intif_parse_AccountReg (int fd) return 0; } -// qÉf[^óM +// å庫ããŒã¿åä¿¡ int intif_parse_LoadStorage (int fd) { struct storage *stor; @@ -687,7 +687,7 @@ int intif_parse_LoadStorage (int fd) return 0; } -// qÉf[^M¬÷ +// å庫ããŒã¿éä¿¡æå int intif_parse_SaveStorage (int fd) { if (battle_config.save_log) @@ -771,7 +771,7 @@ int intif_parse_SaveGuildStorage (int fd) return 0; } -// p[eBì¬ÂÛ +// ããŒãã£äœæå¯åŠ int intif_parse_PartyCreated (int fd) { if (battle_config.etc_log) @@ -781,7 +781,7 @@ int intif_parse_PartyCreated (int fd) return 0; } -// p[eBîñ +// ããŒãã£æ
å ± int intif_parse_PartyInfo (int fd) { if (RFIFOW (fd, 2) == 8) @@ -804,7 +804,7 @@ int intif_parse_PartyInfo (int fd) return 0; } -// p[eBÇÁÊm +// ããŒãã£è¿œå éç¥ int intif_parse_PartyMemberAdded (int fd) { if (battle_config.etc_log) @@ -814,7 +814,7 @@ int intif_parse_PartyMemberAdded (int fd) return 0; } -// p[eBÝèÏXÊm +// ããŒãã£èšå®å€æŽéç¥ int intif_parse_PartyOptionChanged (int fd) { party_optionchanged (RFIFOL (fd, 2), RFIFOL (fd, 6), RFIFOW (fd, 10), @@ -822,7 +822,7 @@ int intif_parse_PartyOptionChanged (int fd) return 0; } -// p[eBEÞÊm +// ããŒãã£è±ééç¥ int intif_parse_PartyMemberLeaved (int fd) { if (battle_config.etc_log) @@ -832,14 +832,14 @@ int intif_parse_PartyMemberLeaved (int fd) return 0; } -// p[eBðUÊm +// ããŒãã£è§£æ£éç¥ int intif_parse_PartyBroken (int fd) { party_broken (RFIFOL (fd, 2)); return 0; } -// p[eBÚ®Êm +// ããŒãã£ç§»åéç¥ int intif_parse_PartyMove (int fd) { // if(battle_config.etc_log) @@ -849,7 +849,7 @@ int intif_parse_PartyMove (int fd) return 0; } -// p[eBbZ[W +// ããŒãã£ã¡ãã»ãŒãž int intif_parse_PartyMessage (int fd) { // if(battle_config.etc_log) @@ -859,14 +859,14 @@ int intif_parse_PartyMessage (int fd) return 0; } -// Mhì¬ÂÛ +// ã®ã«ãäœæå¯åŠ int intif_parse_GuildCreated (int fd) { guild_created (RFIFOL (fd, 2), RFIFOL (fd, 6)); return 0; } -// Mhîñ +// ã®ã«ãæ
å ± int intif_parse_GuildInfo (int fd) { if (RFIFOW (fd, 2) == 8) @@ -890,7 +890,7 @@ int intif_parse_GuildInfo (int fd) return 0; } -// MhoÇÁÊm +// ã®ã«ãã¡ã³ãè¿œå éç¥ int intif_parse_GuildMemberAdded (int fd) { if (battle_config.etc_log) @@ -901,7 +901,7 @@ int intif_parse_GuildMemberAdded (int fd) return 0; } -// MhoEÞ/ÇúÊm +// ã®ã«ãã¡ã³ãè±é/è¿œæŸéç¥ int intif_parse_GuildMemberLeaved (int fd) { guild_member_leaved (RFIFOL (fd, 2), RFIFOL (fd, 6), RFIFOL (fd, 10), @@ -909,7 +909,7 @@ int intif_parse_GuildMemberLeaved (int fd) return 0; } -// MhoICóÔ/LvÏXÊm +// ã®ã«ãã¡ã³ããªã³ã©ã€ã³ç¶æ
/Lvå€æŽéç¥ int intif_parse_GuildMemberInfoShort (int fd) { guild_recv_memberinfoshort (RFIFOL (fd, 2), RFIFOL (fd, 6), @@ -919,14 +919,14 @@ int intif_parse_GuildMemberInfoShort (int fd) return 0; } -// MhðUÊm +// ã®ã«ã解æ£éç¥ int intif_parse_GuildBroken (int fd) { guild_broken (RFIFOL (fd, 2), RFIFOB (fd, 6)); return 0; } -// Mhî{îñÏXÊm +// ã®ã«ãåºæ¬æ
å ±å€æŽéç¥ int intif_parse_GuildBasicInfoChanged (int fd) { int type = RFIFOW (fd, 8), guild_id = RFIFOL (fd, 4); @@ -951,7 +951,7 @@ int intif_parse_GuildBasicInfoChanged (int fd) return 0; } -// MhoîñÏXÊm +// ã®ã«ãã¡ã³ãæ
å ±å€æŽéç¥ int intif_parse_GuildMemberInfoChanged (int fd) { int type = RFIFOW (fd, 16), guild_id = RFIFOL (fd, 4); @@ -975,7 +975,7 @@ int intif_parse_GuildMemberInfoChanged (int fd) return 0; } -// MhðEÏXÊm +// ã®ã«ã圹è·å€æŽéç¥ int intif_parse_GuildPosition (int fd) { if (RFIFOW (fd, 2) != sizeof (struct guild_position) + 12) @@ -990,14 +990,14 @@ int intif_parse_GuildPosition (int fd) return 0; } -// MhXLèUèÊm +// ã®ã«ãã¹ãã«å²ãæ¯ãéç¥ int intif_parse_GuildSkillUp (int fd) { guild_skillupack (RFIFOL (fd, 2), RFIFOL (fd, 6), RFIFOL (fd, 10)); return 0; } -// Mh¯¿/GÎÊm +// ã®ã«ãåç/æµå¯Ÿéç¥ int intif_parse_GuildAlliance (int fd) { guild_allianceack (RFIFOL (fd, 2), RFIFOL (fd, 6), RFIFOL (fd, 10), @@ -1006,14 +1006,14 @@ int intif_parse_GuildAlliance (int fd) return 0; } -// MhmÏXÊm +// ã®ã«ãåç¥å€æŽéç¥ int intif_parse_GuildNotice (int fd) { guild_notice_changed (RFIFOL (fd, 2), RFIFOP (fd, 6), RFIFOP (fd, 66)); return 0; } -// MhGuÏXÊm +// ã®ã«ããšã³ãã¬ã å€æŽéç¥ int intif_parse_GuildEmblem (int fd) { guild_emblem_changed (RFIFOW (fd, 2) - 12, RFIFOL (fd, 4), RFIFOL (fd, 8), @@ -1021,7 +1021,7 @@ int intif_parse_GuildEmblem (int fd) return 0; } -// MhïbóM +// ã®ã«ãäŒè©±åä¿¡ int intif_parse_GuildMessage (int fd) { guild_recv_message (RFIFOL (fd, 4), RFIFOL (fd, 8), RFIFOP (fd, 12), @@ -1029,21 +1029,21 @@ int intif_parse_GuildMessage (int fd) return 0; } -// Mhéf[^vÔM +// ã®ã«ãåããŒã¿èŠæ±è¿ä¿¡ int intif_parse_GuildCastleDataLoad (int fd) { return guild_castledataloadack (RFIFOW (fd, 2), RFIFOB (fd, 4), RFIFOL (fd, 5)); } -// Mhéf[^ÏXÊm +// ã®ã«ãåããŒã¿å€æŽéç¥ int intif_parse_GuildCastleDataSave (int fd) { return guild_castledatasaveack (RFIFOW (fd, 2), RFIFOB (fd, 4), RFIFOL (fd, 5)); } -// Mhéf[^êóM(ú») +// ã®ã«ãåããŒã¿äžæ¬åä¿¡(åæåæ) int intif_parse_GuildCastleAllDataLoad (int fd) { return guild_castlealldataload (RFIFOW (fd, 2), @@ -1051,14 +1051,14 @@ int intif_parse_GuildCastleAllDataLoad (int fd) } //----------------------------------------------------------------- -// inter server©çÌÊM -// G[ª êÎ0(false)ðÔ·±Æ -// pPbgªÅ«êÎ1,pPbg·ª«èȯêÎ2ðÔ·±Æ +// inter serverããã®éä¿¡ +// ãšã©ãŒãããã°0(false)ãè¿ãããš +// ãã±ãããåŠçã§ããã°1,ãã±ããé·ã足ããªããã°2ãè¿ãããš int intif_parse (int fd) { int packet_len; int cmd = RFIFOW (fd, 0); - // pPbgÌIDmF + // ãã±ããã®IDç¢ºèª if (cmd < 0x3800 || cmd >= 0x3800 + (sizeof (packet_len_table) / sizeof (packet_len_table[0])) @@ -1066,7 +1066,7 @@ int intif_parse (int fd) { return 0; } - // pPbgÌ·³mF + // ãã±ããã®é·ãç¢ºèª packet_len = packet_len_table[cmd - 0x3800]; if (packet_len == -1) { @@ -1080,7 +1080,7 @@ int intif_parse (int fd) { return 2; } - // ªò + // åŠçåå² switch (cmd) { case 0x3800: @@ -1195,7 +1195,7 @@ int intif_parse (int fd) RFIFOW (fd, 0)); return 0; } - // pPbgÇÝòε + // ãã±ããèªã¿é£ã°ã RFIFOSKIP (fd, packet_len); return 1; } diff --git a/src/map/itemdb.c b/src/map/itemdb.c index cf2910a..d589e35 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -21,7 +21,7 @@ #define MAX_RANDITEM 2000 // ** ITEMDB_OVERRIDE_NAME_VERBOSE ** -// è`·éÆAitemdb.txtÆgrfÅŒOªÙÈéêA\ŠµÜ·. +// å®çŸ©ãããšãitemdb.txtãšgrfã§ååãç°ãªãå Žåã衚瀺ããŸã. //#define ITEMDB_OVERRIDE_NAME_VERBOSE 1 static struct dbt *item_db; @@ -45,7 +45,7 @@ static int itemdb_read_noequip (void); void itemdb_reload (void); /*========================================== - * ŒOÅõp + * ååã§æ€çŽ¢çš *------------------------------------------ */ // name = item alias, so we should find items aliases first. if not found then look for "jname" (full name) @@ -63,7 +63,7 @@ int itemdb_searchname_sub (void *key, void *data, va_list ap) } /*========================================== - * ŒOÅõp + * ååã§æ€çŽ¢çš *------------------------------------------ */ int itemdb_searchjname_sub (void *key, void *data, va_list ap) @@ -78,7 +78,7 @@ int itemdb_searchjname_sub (void *key, void *data, va_list ap) } /*========================================== - * ŒOÅõ + * ååã§æ€çŽ¢ *------------------------------------------ */ struct item_data *itemdb_searchname (const char *str) @@ -89,7 +89,7 @@ struct item_data *itemdb_searchname (const char *str) } /*========================================== - * nACeõ + * 箱系ã¢ã€ãã æ€çŽ¢ *------------------------------------------ */ int itemdb_searchrandomid (int flags) @@ -139,7 +139,7 @@ int itemdb_searchrandomid (int flags) } /*========================================== - * DB̶ÝmF + * DBã®ååšç¢ºèª *------------------------------------------ */ struct item_data *itemdb_exists (int nameid) @@ -148,7 +148,7 @@ struct item_data *itemdb_exists (int nameid) } /*========================================== - * DBÌõ + * DBã®æ€çŽ¢ *------------------------------------------ */ struct item_data *itemdb_search (int nameid) @@ -169,7 +169,7 @@ struct item_data *itemdb_search (int nameid) id->sex = 2; id->elv = 0; id->flag.available = 0; - id->flag.value_notdc = 0; //êEEE + id->flag.value_notdc = 0; //äžå¿ã»ã»ã» id->flag.value_notoc = 0; id->flag.no_equip = 0; id->view_id = 0; @@ -236,16 +236,16 @@ int itemdb_isequip3 (int nameid) } /*========================================== - * ÌÄçêéACeÍ1A»€ÅÈ¢ACeÍ0 + * æšãŠãããã¢ã€ãã ã¯1ãããã§ãªãã¢ã€ãã ã¯0 *------------------------------------------ */ int itemdb_isdropable (int nameid) { - //¥wÖÍÌÄçêÈ¢ + //çµå©æ茪ã¯æšãŠãããªã switch (nameid) { - case 2634: //¥wÖ - case 2635: //¥wÖ + case 2634: //çµå©æ茪 + case 2635: //çµå©æ茪 return 0; } @@ -253,7 +253,7 @@ int itemdb_isdropable (int nameid) } // -// ú» +// åæå // /*========================================== * @@ -289,7 +289,7 @@ static int itemdb_read_itemslottable (void) } /*========================================== - * ACef[^x[XÌÇÝÝ + * ã¢ã€ãã ããŒã¿ããŒã¹ã®èªã¿èŸŒã¿ *------------------------------------------ */ static int itemdb_readdb (void) @@ -396,7 +396,7 @@ static int itemdb_readdb (void) // Removed item_value_db, don't re-add! /*========================================== - * _ACeo»f[^ÌÇÝÝ + * ã©ã³ãã ã¢ã€ãã åºçŸããŒã¿ã®èªã¿èŸŒã¿ *------------------------------------------ */ static int itemdb_read_randomitem () @@ -487,7 +487,7 @@ static int itemdb_read_randomitem () } /*========================================== - * ACegpÂ\tOÌI[o[Ch + * ã¢ã€ãã 䜿çšå¯èœãã©ã°ã®ãªãŒããŒã©ã€ã *------------------------------------------ */ static int itemdb_read_itemavail (void) @@ -540,7 +540,7 @@ static int itemdb_read_itemavail (void) } /*========================================== - * ACeÌŒOe[uðÇÝÞ + * ã¢ã€ãã ã®ååããŒãã«ãèªã¿èŸŒã *------------------------------------------ */ static int itemdb_read_itemnametable (void) @@ -586,7 +586,7 @@ static int itemdb_read_itemnametable (void) } /*========================================== - * J[hCXgÌ\[XŒOe[uðÇÝÞ + * ã«ãŒãã€ã©ã¹ãã®ãªãœãŒã¹ååããŒãã«ãèªã¿èŸŒã *------------------------------------------ */ static int itemdb_read_cardillustnametable (void) @@ -624,7 +624,7 @@ static int itemdb_read_cardillustnametable (void) } /*========================================== - * õ§Àt@CÇÝoµ + * è£
åå¶éãã¡ã€ã«èªã¿åºã *------------------------------------------ */ static int itemdb_read_noequip (void) diff --git a/src/map/map.c b/src/map/map.c index 19a7528..57183d1 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -40,7 +40,7 @@ #include "memwatch.h" #endif -// ÉÍ staticÅ[JÉûßé +// 極å staticã§ããŒã«ã«ã«åãã static struct dbt *id_db = NULL; static struct dbt *map_db = NULL; static struct dbt *nick_db = NULL; @@ -80,8 +80,8 @@ char help_txt[256] = "conf/help.txt"; char wisp_server_name[24] = "Server"; // can be modified in char-server configuration file /*========================================== - * SmapIvÅÌÚ±Ýè - * (charI©ççêÄé) + * å
šmapé¯ç·èšã§ã®æ¥ç¶æ°èšå® + * (charé¯ããéãããŠãã) *------------------------------------------ */ void map_setusers (int n) @@ -90,7 +90,7 @@ void map_setusers (int n) } /*========================================== - * SmapIvÅÌÚ±æŸ (/wÖÌp) + * å
šmapé¯ç·èšã§ã®æ¥ç¶æ°ååŸ (/wãžã®å¿ççš) *------------------------------------------ */ int map_getusers (void) @@ -99,12 +99,12 @@ int map_getusers (void) } // -// blockíÌÀS«mÛ +// blockåé€ã®å®å
šæ§ç¢ºä¿åŠç // /*========================================== - * blockðfree·éÆ«freeÌÏíèÉÄÔ - * bN³êÄ¢éÆ«Íobt@Éœßé + * blockãfreeãããšãfreeã®å€ããã«åŒã¶ + * ããã¯ãããŠãããšãã¯ãããã¡ã«ããã *------------------------------------------ */ int map_freeblock (void *bl) @@ -130,7 +130,7 @@ int map_freeblock (void *bl) } /*========================================== - * blockÌfreeðêIÉÖ~·é + * blockã®freeãäžæçã«çŠæ¢ãã *------------------------------------------ */ int map_freeblock_lock (void) @@ -139,9 +139,9 @@ int map_freeblock_lock (void) } /*========================================== - * blockÌfreeÌbNðð·é - * ±ÌÆ«AbNª®SÉÈÈéÆ - * obt@ÉœÜÁÄ¢œblockðSí + * blockã®freeã®ããã¯ã解é€ãã + * ãã®ãšããããã¯ãå®å
šã«ãªããªããš + * ãããã¡ã«ããŸã£ãŠããblockãå
šéšåé€ *------------------------------------------ */ int map_freeblock_unlock (void) @@ -169,20 +169,20 @@ int map_freeblock_unlock (void) } // -// block» +// blockååŠç // /*========================================== - * map[]Ìblock_list©çqªÁÄ¢éêÉ - * bl->prevÉbl_headÌAhXðüêÄš + * map[]ã®block_listããç¹ãã£ãŠããå Žåã« + * bl->prevã«bl_headã®ã¢ãã¬ã¹ãå
¥ããŠãã *------------------------------------------ */ static struct block_list bl_head; /*========================================== - * map[]Ìblock_listÉÇÁ - * mobͪœ¢ÌÅÊXg + * map[]ã®block_listã«è¿œå + * mobã¯æ°ãå€ãã®ã§å¥ãªã¹ã * - * ùÉlinkÏÝ©ÌmFª³¢B믩à + * æ¢ã«linkæžã¿ãã®ç¢ºèªãç¡ããå±éºãã *------------------------------------------ */ int map_addblock (struct block_list *bl) @@ -233,8 +233,8 @@ int map_addblock (struct block_list *bl) } /*========================================== - * map[]Ìblock_list©çO· - * prevªNULLÌêlistÉqªÁÄÈ¢ + * map[]ã®block_listããå€ã + * prevãNULLã®å Žålistã«ç¹ãã£ãŠãªã *------------------------------------------ */ int map_delblock (struct block_list *bl) @@ -242,12 +242,12 @@ int map_delblock (struct block_list *bl) int b; nullpo_retr (0, bl); - // ùÉblocklist©ç²¯Ä¢é + // æ¢ã«blocklistããæããŠãã if (bl->prev == NULL) { if (bl->next != NULL) { - // prevªNULLÅnextªNULLÅÈ¢ÌÍLÁÄÍÈçÈ¢ + // prevãNULLã§nextãNULLã§ãªãã®ã¯æã£ãŠã¯ãªããªã if (battle_config.error_log) printf ("map_delblock error : bl->next!=NULL\n"); } @@ -263,7 +263,7 @@ int map_delblock (struct block_list *bl) bl->next->prev = bl->prev; if (bl->prev == &bl_head) { - // Xg̪ÈÌÅAmap[]Ìblock_listðXV·é + // ãªã¹ãã®é ãªã®ã§ãmap[]ã®block_listãæŽæ°ãã if (bl->type == BL_MOB) { map[bl->m].block_mob[b] = bl->next; @@ -288,7 +288,7 @@ int map_delblock (struct block_list *bl) } /*========================================== - * üÍÌPClðŠé (»Ý¢gp) + * åšå²ã®PC人æ°ãæ°ãã (çŸåšæªäœ¿çš) *------------------------------------------ */ int map_countnearpc (int m, int x, int y) @@ -320,7 +320,7 @@ int map_countnearpc (int m, int x, int y) } /*========================================== - * ZãÌPCÆMOBÌðŠé (OhNXp) + * ã»ã«äžã®PCãšMOBã®æ°ãæ°ãã (ã°ã©ã³ãã¯ãã¹çš) *------------------------------------------ */ int map_count_oncell (int m, int x, int y) @@ -355,9 +355,9 @@ int map_count_oncell (int m, int x, int y) } /*========================================== - * map m (x0,y0)-(x1,y1)àÌSobjÉ뵀 - * funcðÄÔ - * type!=0 Èç»ÌíÞÌÝ + * map m (x0,y0)-(x1,y1)å
ã®å
šobjã«å¯Ÿã㊠+ * funcãåŒã¶ + * type!=0 ãªããã®çš®é¡ã®ã¿ *------------------------------------------ */ void map_foreachinarea (int (*func) (struct block_list *, va_list), int m, @@ -418,24 +418,24 @@ void map_foreachinarea (int (*func) (struct block_list *, va_list), int m, printf ("map_foreachinarea: *WARNING* block count too many!\n"); } - map_freeblock_lock (); // ©çÌðúðÖ~·é + map_freeblock_lock (); // ã¡ã¢ãªããã®è§£æŸãçŠæ¢ãã for (i = blockcount; i < bl_list_count; i++) - if (bl_list[i]->prev) // Lø©Ç€©`FbN + if (bl_list[i]->prev) // æå¹ãã©ãããã§ã㯠func (bl_list[i], ap); - map_freeblock_unlock (); // ðúð·é + map_freeblock_unlock (); // 解æŸãèš±å¯ãã va_end (ap); bl_list_count = blockcount; } /*========================================== - * é`(x0,y0)-(x1,y1)ª(dx,dy)Ú®µœÌ - * ÌæOÉÈéÌæ(é`©L`)àÌobjÉ - * εÄfuncðÄÔ + * ç©åœ¢(x0,y0)-(x1,y1)ã(dx,dy)移åããæã® + * é åå€ã«ãªãé å(ç©åœ¢ãLå圢)å
ã®objã« + * 察ããŠfuncãåŒã¶ * - * dx,dyÍ-1,0,1ÌÝÆ·éiÇñÈlÅࢢÁÛ¢Hj + * dx,dyã¯-1,0,1ã®ã¿ãšããïŒã©ããªå€ã§ãããã£ãœãïŒïŒ *------------------------------------------ */ void map_foreachinmovearea (int (*func) (struct block_list *, va_list), int m, @@ -450,7 +450,7 @@ void map_foreachinmovearea (int (*func) (struct block_list *, va_list), int m, va_start (ap, type); if (dx == 0 || dy == 0) { - // é`ÌæÌê + // ç©åœ¢é åã®å Žå if (dx == 0) { if (dy < 0) @@ -510,7 +510,7 @@ void map_foreachinmovearea (int (*func) (struct block_list *, va_list), int m, } else { - // LÌæÌê + // Låé åã®å Žå if (x0 < 0) x0 = 0; @@ -573,13 +573,13 @@ void map_foreachinmovearea (int (*func) (struct block_list *, va_list), int m, printf ("map_foreachinarea: *WARNING* block count too many!\n"); } - map_freeblock_lock (); // ©çÌðúðÖ~·é + map_freeblock_lock (); // ã¡ã¢ãªããã®è§£æŸãçŠæ¢ãã for (i = blockcount; i < bl_list_count; i++) - if (bl_list[i]->prev) // Lø©Ç€©`FbN + if (bl_list[i]->prev) // æå¹ãã©ãããã§ã㯠func (bl_list[i], ap); - map_freeblock_unlock (); // ðúð·é + map_freeblock_unlock (); // 解æŸãèš±å¯ãã va_end (ap); bl_list_count = blockcount; @@ -632,23 +632,23 @@ void map_foreachincell (int (*func) (struct block_list *, va_list), int m, printf ("map_foreachincell: *WARNING* block count too many!\n"); } - map_freeblock_lock (); // ©çÌðúðÖ~·é + map_freeblock_lock (); // ã¡ã¢ãªããã®è§£æŸãçŠæ¢ãã for (i = blockcount; i < bl_list_count; i++) - if (bl_list[i]->prev) // Lø©Ç€©`FbN + if (bl_list[i]->prev) // æå¹ãã©ãããã§ã㯠func (bl_list[i], ap); - map_freeblock_unlock (); // ðúð·é + map_freeblock_unlock (); // 解æŸãèš±å¯ãã va_end (ap); bl_list_count = blockcount; } /*========================================== - * °ACeâGtFNgpÌêobjèÄ - * object[]ÖÌÛ¶Æid_dbo^ÜÅ + * åºã¢ã€ãã ããšãã§ã¯ãçšã®äžæobjå²ãåœãŠ + * object[]ãžã®ä¿åãšid_dbç»é²ãŸã§ * - * bl->idà±ÌÅÝèµÄâè³¢? + * bl->idããã®äžã§èšå®ããŠåé¡ç¡ã? *------------------------------------------ */ int map_addobject (struct block_list *bl) @@ -679,8 +679,8 @@ int map_addobject (struct block_list *bl) } /*========================================== - * êobjectÌðú - * map_delobjectÌfreeµÈ¢o[W + * äžæobjectã®è§£æŸ + * map_delobjectã®freeããªãããŒãžã§ã³ *------------------------------------------ */ int map_delobjectnofree (int id, int type) @@ -710,11 +710,11 @@ int map_delobjectnofree (int id, int type) } /*========================================== - * êobjectÌðú - * block_list©çÌíAid_db©çÌí - * object dataÌfreeAobject[]ÖÌNULLãü + * äžæobjectã®è§£æŸ + * block_listããã®åé€ãid_dbããã®åé€ + * object dataã®freeãobject[]ãžã®NULL代å
¥ * - * addÆÌÎÌ«ª³¢ÌªCÉÈé + * addãšã®å¯Ÿç§°æ§ãç¡ãã®ãæ°ã«ãªã *------------------------------------------ */ int map_delobject (int id, int type) @@ -734,7 +734,7 @@ int map_delobject (int id, int type) } /*========================================== - * SêobjèÉfuncðÄÔ + * å
šäžæobjçžæã«funcãåŒã¶ * *------------------------------------------ */ @@ -776,13 +776,13 @@ void map_foreachobject (int (*func) (struct block_list *, va_list), int type, } /*========================================== - * °ACeðÁ· + * åºã¢ã€ãã ãæ¶ã * - * data==0ÌÍtimerÅÁŠœ - * data!=0ÌÍE€ÅÁŠœÆµÄ®ì + * data==0ã®æã¯timerã§æ¶ããæ + * data!=0ã®æã¯æŸãçã§æ¶ããæãšããŠåäœ * - * ãÒÍAmap_clearflooritem(id)Ö - * map.hàÅ#defineµÄ é + * åŸè
ã¯ãmap_clearflooritem(id)ãž + * map.hå
ã§#defineããŠãã *------------------------------------------ */ int map_clearflooritem_timer (int tid, unsigned int tick, int id, int data) @@ -806,10 +806,10 @@ int map_clearflooritem_timer (int tid, unsigned int tick, int id, int data) } /*========================================== - * (m,x,y)ÌüÍrange}XàÌó«(=NüÂ\)cellÌ - * à©çKÈ}XÚÌÀWðx+(y<<16)ÅÔ· + * (m,x,y)ã®åšå²rangeãã¹å
ã®ç©ºã(=䟵å
¥å¯èœ)cellã® + * å
ããé©åœãªãã¹ç®ã®åº§æšãx+(y<<16)ã§è¿ã * - * »órange=1ÅACehbvprÌÝ + * çŸç¶range=1ã§ã¢ã€ãã ããããçšéã®ã¿ *------------------------------------------ */ int map_searchrandfreecell (int m, int x, int y, int range) @@ -857,9 +857,9 @@ int map_searchrandfreecell (int m, int x, int y, int range) } /*========================================== - * (m,x,y)ðSÉ3x3ÈàÉ°ACeÝu + * (m,x,y)ãäžå¿ã«3x3以å
ã«åºã¢ã€ãã èšçœ® * - * item_dataÍamountÈOðcopy·é + * item_dataã¯amount以å€ãcopyãã *------------------------------------------ */ int map_addflooritem_any (struct item *item_data, int amount, int m, int x, @@ -1019,7 +1019,7 @@ int map_addflooritem (struct item *item_data, int amount, int m, int x, int y, /* } */ /*========================================== - * charid_dbÖÇÁ(ÔMÒ¿ª êÎÔM) + * charid_dbãžè¿œå (è¿ä¿¡åŸ
ã¡ãããã°è¿ä¿¡) *------------------------------------------ */ void map_addchariddb (int charid, char *name) @@ -1029,7 +1029,7 @@ void map_addchariddb (int charid, char *name) p = numdb_search (charid_db, charid); if (p == NULL) - { // f[^x[XÉÈ¢ + { // ããŒã¿ããŒã¹ã«ãªã p = (struct charid2nick *) aCalloc (1, sizeof (struct charid2nick)); p->req_id = 0; } @@ -1041,7 +1041,7 @@ void map_addchariddb (int charid, char *name) p->req_id = 0; numdb_insert (charid_db, charid, p); if (req) - { // ÔMÒ¿ª êÎÔM + { // è¿ä¿¡åŸ
ã¡ãããã°è¿ä¿¡ struct map_session_data *sd = map_id2sd (req); if (sd != NULL) clif_solved_charname (sd, charid); @@ -1049,7 +1049,7 @@ void map_addchariddb (int charid, char *name) } /*========================================== - * charid_dbÖÇÁiÔMvÌÝj + * charid_dbãžè¿œå ïŒè¿ä¿¡èŠæ±ã®ã¿ïŒ *------------------------------------------ */ int map_reqchariddb (struct map_session_data *sd, int charid) @@ -1059,7 +1059,7 @@ int map_reqchariddb (struct map_session_data *sd, int charid) nullpo_retr (0, sd); p = numdb_search (charid_db, charid); - if (p != NULL) // f[^x[XÉ·ÅÉ é + if (p != NULL) // ããŒã¿ããŒã¹ã«ãã§ã«ãã return 0; p = (struct charid2nick *) aCalloc (1, sizeof (struct charid2nick)); p->req_id = sd->bl.id; @@ -1068,7 +1068,7 @@ int map_reqchariddb (struct map_session_data *sd, int charid) } /*========================================== - * id_dbÖblðÇÁ + * id_dbãžblãè¿œå *------------------------------------------ */ void map_addiddb (struct block_list *bl) @@ -1079,7 +1079,7 @@ void map_addiddb (struct block_list *bl) } /*========================================== - * id_db©çblðí + * id_dbããblãåé€ *------------------------------------------ */ void map_deliddb (struct block_list *bl) @@ -1090,7 +1090,7 @@ void map_deliddb (struct block_list *bl) } /*========================================== - * nick_dbÖsdðÇÁ + * nick_dbãžsdãè¿œå *------------------------------------------ */ void map_addnickdb (struct map_session_data *sd) @@ -1101,43 +1101,43 @@ void map_addnickdb (struct map_session_data *sd) } /*========================================== - * PCÌquit map.cઠ+ * PCã®quitåŠç map.cå
å * - * quitÌå̪á€æ€ÈCàµÄ«œ + * quitåŠçã®äž»äœãéããããªæ°ãããŠãã *------------------------------------------ */ int map_quit (struct map_session_data *sd) { nullpo_retr (0, sd); - if (sd->chatID) // `bg©çoé + if (sd->chatID) // ãã£ããããåºã chat_leavechat (sd); - if (sd->trade_partner) // æøðf·é + if (sd->trade_partner) // ååŒãäžæãã trade_tradecancel (sd); - if (sd->party_invite > 0) // p[eB©UðÛ·é + if (sd->party_invite > 0) // ããŒãã£å§èªãæåŠãã party_reply_invite (sd, sd->party_invite_account, 0); - if (sd->guild_invite > 0) // Mh©UðÛ·é + if (sd->guild_invite > 0) // ã®ã«ãå§èªãæåŠãã guild_reply_invite (sd, sd->guild_invite, 0); - if (sd->guild_alliance > 0) // Mh¯¿©UðÛ·é + if (sd->guild_alliance > 0) // ã®ã«ãåçå§èªãæåŠãã guild_reply_reqalliance (sd, sd->guild_alliance_account, 0); - party_send_logout (sd); // p[eBÌOAEgbZ[WM + party_send_logout (sd); // ããŒãã£ã®ãã°ã¢ãŠãã¡ãã»ãŒãžéä¿¡ - guild_send_memberinfoshort (sd, 0); // MhÌOAEgbZ[WM + guild_send_memberinfoshort (sd, 0); // ã®ã«ãã®ãã°ã¢ãŠãã¡ãã»ãŒãžéä¿¡ - pc_cleareventtimer (sd); // Cxg^C}ðjü·é + pc_cleareventtimer (sd); // ã€ãã³ãã¿ã€ããç Žæ£ãã - skill_castcancel (&sd->bl, 0); // r¥ðf·é - skill_stop_dancing (&sd->bl, 1); // _X/tf + skill_castcancel (&sd->bl, 0); // è© å±ãäžæãã + skill_stop_dancing (&sd->bl, 1); // ãã³ã¹/æŒå¥äžæ - if (sd->sc_data && sd->sc_data[SC_BERSERK].timer != -1) //o[T[NÌI¹ÍHPð100É + if (sd->sc_data && sd->sc_data[SC_BERSERK].timer != -1) //ããŒãµãŒã¯äžã®çµäºã¯HPã100ã« sd->status.hp = 100; - skill_status_change_clear (&sd->bl, 1); // Xe[^XÙíðð·é - skill_clear_unitgroup (&sd->bl); // XLjbgO[vÌí + skill_status_change_clear (&sd->bl, 1); // ã¹ããŒã¿ã¹ç°åžžã解é€ãã + skill_clear_unitgroup (&sd->bl); // ã¹ãã«ãŠãããã°ã«ãŒãã®åé€ skill_cleartimerskill (&sd->bl); pc_stop_walking (sd, 0); pc_stopattack (sd); @@ -1152,7 +1152,7 @@ int map_quit (struct map_session_data *sd) if (pc_isdead (sd)) pc_setrestartvalue (sd, 2); pc_makesavestatus (sd); - //N[XLÅoŠœXLÍÁ· + //ã¯ããŒã³ã¹ãã«ã§èŠããã¹ãã«ã¯æ¶ã //The storage closing routines will save the char if needed. [Skotlex] if (!sd->state.storage_flag) @@ -1175,7 +1175,7 @@ int map_quit (struct map_session_data *sd) } /*========================================== - * idÔÌPCðT·BȯêÎNULL + * idçªå·ã®PCãæ¢ããå±
ãªããã°NULL *------------------------------------------ */ struct map_session_data *map_id2sd (int id) @@ -1205,7 +1205,7 @@ struct map_session_data *map_id2sd (int id) } /*========================================== - * char_idÔÌŒOðT· + * char_idçªå·ã®ååãæ¢ã *------------------------------------------ */ char *map_charid2nick (int id) @@ -1322,8 +1322,8 @@ struct map_session_data *map_nick2sd (char *nick) } /*========================================== - * idÔÌšðT· - * êobjectÌêÍzñðøÌÝ + * idçªå·ã®ç©ãæ¢ã + * äžæobjectã®å Žåã¯é
åãåŒãã®ã¿ *------------------------------------------ */ struct block_list *map_id2bl (int id) @@ -1338,7 +1338,7 @@ struct block_list *map_id2bl (int id) } /*========================================== - * id_dbàÌSÄÉfuncðÀs + * id_dbå
ã®å
šãŠã«funcãå®è¡ *------------------------------------------ */ int map_foreachiddb (int (*func) (void *, void *, va_list), ...) @@ -1352,7 +1352,7 @@ int map_foreachiddb (int (*func) (void *, void *, va_list), ...) } /*========================================== - * map.npcÖÇÁ (warpÌÌæ¿ÌÝ) + * map.npcãžè¿œå (warpçã®é åæã¡ã®ã¿) *------------------------------------------ */ int map_addnpc (int m, struct npc_data *nd) @@ -1411,7 +1411,7 @@ void map_removenpc (void) } /*========================================== - * mapŒ©çmapÔÖÏ· + * mapåããmapçªå·ãžå€æ *------------------------------------------ */ int map_mapname2mapid (char *name) @@ -1425,7 +1425,7 @@ int map_mapname2mapid (char *name) } /*========================================== - * ŒImapŒ©çip,portÏ· + * ä»é¯mapåããip,portå€æ *------------------------------------------ */ int map_mapname2ipport (char *name, int *ip, int *port) @@ -1487,7 +1487,7 @@ int map_check_dir (int s_dir, int t_dir) } /*========================================== - * ÞäÌûüðvZ + * 圌æã®æ¹åãèšç® *------------------------------------------ */ int map_calc_dir (struct block_list *src, int x, int y) @@ -1500,47 +1500,47 @@ int map_calc_dir (struct block_list *src, int x, int y) dx = x - src->x; dy = y - src->y; if (dx == 0 && dy == 0) - { // ÞäÌêêv - dir = 0; // ã + { // 圌æã®å ŽæäžèŽ + dir = 0; // äž } else if (dx >= 0 && dy >= 0) - { // ûüIÉEã - dir = 7; // Eã + { // æ¹åçã«å³äž + dir = 7; // å³äž if (dx * 3 - 1 < dy) - dir = 0; // ã + dir = 0; // äž if (dx > dy * 3) - dir = 6; // E + dir = 6; // å³ } else if (dx >= 0 && dy <= 0) - { // ûüIÉEº - dir = 5; // Eº + { // æ¹åçã«å³äž + dir = 5; // å³äž if (dx * 3 - 1 < -dy) - dir = 4; // º + dir = 4; // äž if (dx > -dy * 3) - dir = 6; // E + dir = 6; // å³ } else if (dx <= 0 && dy <= 0) - { // ûüIɶº - dir = 3; // ¶º + { // æ¹åçã«å·Šäž + dir = 3; // å·Šäž if (dx * 3 + 1 > dy) - dir = 4; // º + dir = 4; // äž if (dx < dy * 3) - dir = 2; // ¶ + dir = 2; // å·Š } else - { // ûüIɶã - dir = 1; // ¶ã + { // æ¹åçã«å·Šäž + dir = 1; // å·Šäž if (-dx * 3 - 1 < dy) - dir = 0; // ã + dir = 0; // äž if (-dx > dy * 3) - dir = 2; // ¶ + dir = 2; // å·Š } return dir; } -// gatn +// gatç³» /*========================================== - * (m,x,y)ÌóÔð²×é + * (m,x,y)ã®ç¶æ
ã調ã¹ã *------------------------------------------ */ int map_getcell (int m, int x, int y) @@ -1551,7 +1551,7 @@ int map_getcell (int m, int x, int y) } /*========================================== - * (m,x,y)ÌóÔðtÉ·é + * (m,x,y)ã®ç¶æ
ãtã«ãã *------------------------------------------ */ int map_setcell (int m, int x, int y, int t) @@ -1562,7 +1562,7 @@ int map_setcell (int m, int x, int y, int t) } /*========================================== - * ŒIÇÌ}bvðdbÉÇÁ + * ä»é¯ç®¡çã®ããããdbã«è¿œå *------------------------------------------ */ int map_setipport (char *name, unsigned long ip, int port) @@ -1604,9 +1604,9 @@ int map_setipport (char *name, unsigned long ip, int port) return 0; } -// ú»üè +// åæååšã /*========================================== - *
ê³Ýè + * æ°Žå Žé«ãèšå® *------------------------------------------ */ static struct @@ -1663,7 +1663,7 @@ static void map_readwater (char *watertxt) } /*========================================== - * }bv1ÇÝÝ + * ããã1æèªã¿èŸŒã¿ *------------------------------------------ */ static int map_readmap (int m, char *fn, char *alias) @@ -1709,7 +1709,7 @@ static int map_readmap (int m, char *fn, char *alias) for (x = 0; x < xs; x++) { /*if(wh!=NO_WATER && p->type==0){ - * //
ê»è + * // æ°Žå Žå€å® * map[m].gat[x+y*xs]=(p->high[0]>wh || p->high[1]>wh || p->high[2]>wh || p->high[3]>wh) ? 3 : 0; * } else { */ map[m].gat[x + y * xs] = p->type; @@ -1763,7 +1763,7 @@ static int map_readmap (int m, char *fn, char *alias) } /*========================================== - * SÄÌmapf[^ðÇÝÞ + * å
šãŠã®mapããŒã¿ãèªã¿èŸŒã *------------------------------------------ */ int map_readallmap (void) @@ -1771,7 +1771,7 @@ int map_readallmap (void) int i, maps_removed = 0; char fn[256] = ""; - // æÉSÌbv̶ÝðmF + // å
ã«å
šéšã®ã£bãã®ååšãç¢ºèª for (i = 0; i < map_num; i++) { if (strstr (map[i].name, ".gat") == NULL) @@ -1820,7 +1820,7 @@ int map_readallmap (void) } /*========================================== - * ÇÝÞmapðÇÁ·é + * èªã¿èŸŒãmapãè¿œå ãã *------------------------------------------ */ int map_addmap (char *mapname) @@ -1842,7 +1842,7 @@ int map_addmap (char *mapname) } /*========================================== - * ÇÝÞmapðí·é + * èªã¿èŸŒãmapãåé€ãã *------------------------------------------ */ int map_delmap (char *mapname) @@ -1938,7 +1938,7 @@ void map_write_log (char *format, ...) } /*========================================== - * Ýèt@CðÇÝÞ + * èšå®ãã¡ã€ã«ãèªã¿èŸŒã *------------------------------------------ */ int map_config_read (char *cfgName) @@ -2130,7 +2130,7 @@ static int cleanup_sub (struct block_list *bl, va_list ap) } /*========================================== - * mapII¹ + * mapé¯çµäºæåŠç *------------------------------------------ */ void do_final (void) @@ -2248,7 +2248,7 @@ int do_init (int argc, char *argv[]) do_init_chrif (); do_init_clif (); do_init_itemdb (); - do_init_mob (); // npcÌú»àÅmob_spawnµÄAmob_dbðQÆ·éÌÅinit_npcæèæ + do_init_mob (); // npcã®åæåæå
ã§mob_spawnããŠãmob_dbãåç
§ããã®ã§init_npcããå
do_init_script (); do_init_npc (); do_init_pc (); @@ -2258,7 +2258,7 @@ int do_init (int argc, char *argv[]) do_init_skill (); do_init_magic (); - npc_event_do_oninit (); // npcÌOnInitCxgÀs + npc_event_do_oninit (); // npcã®OnInitã€ãã³ãå®è¡ if (battle_config.pk_mode == 1) printf ("The server is running in \033[1;31mPK Mode\033[0m.\n"); diff --git a/src/map/map.h b/src/map/map.h index dde7d7f..53f6dfc 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -294,8 +294,8 @@ struct map_session_data int castrate, hprate, sprate, dsprate; int addele[10], addrace[12], addsize[3], subele[10], subrace[12]; int addeff[10], addeff2[10], reseff[10]; - int watk_, watk_2, atkmods_[3], addele_[10], addrace_[12], addsize_[3]; //ñ¬ÌœßÉÇÁ - int atk_ele_, star_, overrefine_; //ñ¬ÌœßÉÇÁ + int watk_, watk_2, atkmods_[3], addele_[10], addrace_[12], addsize_[3]; //äºåæµã®ããã«è¿œå + int atk_ele_, star_, overrefine_; //äºåæµã®ããã«è¿œå int base_atk, atk_rate; int arrow_atk, arrow_ele, arrow_cri, arrow_hit, arrow_range; int arrow_addele[10], arrow_addrace[12], arrow_addsize[3], @@ -452,7 +452,7 @@ struct npc_data } warp; char *message; // for MESSAGE: only send this message } u; - // ±±ÉoðÇÁµÄÍÈçÈ¢(shop_itemªÂÏ·Ì×) + // ããã«ã¡ã³ããè¿œå ããŠã¯ãªããªã(shop_itemãå¯å€é·ã®çº) char eventqueue[MAX_EVENTQUEUE][50]; int eventtimer[MAX_EVENTTIMER]; @@ -552,13 +552,13 @@ enum { NONE_ATTACKABLE, ATTACKABLE }; enum -{ ATK_LUCKY = 1, ATK_FLEE, ATK_DEF }; // ÍÜêyieBvZp +{ ATK_LUCKY = 1, ATK_FLEE, ATK_DEF }; // å²ãŸãããã«ãã£èšç®çš struct map_data { char name[24]; char alias[24]; // [MouseJstr] - unsigned char *gat; // NULLÈçºÌmap_data_other_serverƵĵ€ + unsigned char *gat; // NULLãªãäžã®map_data_other_serverãšããŠæ±ã struct block_list **block; struct block_list **block_mob; int *block_count, *block_mob_count; @@ -611,7 +611,7 @@ struct map_data struct map_data_other_server { char name[24]; - unsigned char *gat; // NULLÅèɵĻf + unsigned char *gat; // NULLåºå®ã«ããŠå€æ unsigned long ip; unsigned int port; }; @@ -725,14 +725,14 @@ extern char talkie_mes[]; extern char wisp_server_name[]; -// ISÌîñ +// é¯å
šäœæ
å ± void map_setusers (int); int map_getusers (void); -// blockíÖA +// blockåé€é¢é£ int map_freeblock (void *bl); int map_freeblock_lock (void); int map_freeblock_unlock (void); -// blockÖA +// blocké¢é£ int map_addblock (struct block_list *); int map_delblock (struct block_list *); void map_foreachinarea (int (*)(struct block_list *, va_list), int, int, int, @@ -743,9 +743,9 @@ void map_foreachincell (int (*)(struct block_list *, va_list), int, int, int, void map_foreachinmovearea (int (*)(struct block_list *, va_list), int, int, int, int, int, int, int, int, ...); int map_countnearpc (int, int, int); -//blockÖAÉÇÁ +//blocké¢é£ã«è¿œå int map_count_oncell (int m, int x, int y); -// êIobjectÖA +// äžæçobjecté¢é£ int map_addobject (struct block_list *); int map_delobject (int, int type); int map_delobjectnofree (int id, int type); @@ -761,7 +761,7 @@ void map_write_log (char *format, ...); #define MAP_LOG_PC(sd, fmt, args...) MAP_LOG("PC%d %d:%d,%d " fmt, sd->status.char_id, sd->bl.m, sd->bl.x, sd->bl.y, ## args) -// °ACeÖA +// åºã¢ã€ãã é¢é£ int map_clearflooritem_timer (int, unsigned int, int, int); #define map_clearflooritem(id) map_clearflooritem_timer(0,0,id,1) int map_addflooritem_any (struct item *, int amount, int m, int x, int y, @@ -773,7 +773,7 @@ int map_addflooritem (struct item *, int, int, int, int, struct map_session_data *, int); int map_searchrandfreecell (int, int, int, int); -// LidLŒ Ï·ÖA +// ãã£ã©idïŒïŒãã£ã©å å€æé¢é£ void map_addchariddb (int charid, char *name); void map_delchariddb (int charid); int map_reqchariddb (struct map_session_data *sd, int charid); @@ -800,15 +800,15 @@ struct map_session_data *map_get_next_session (struct map_session_data struct map_session_data *map_get_prev_session (struct map_session_data *current); -// gatÖA +// gaté¢é£ int map_getcell (int, int, int); int map_setcell (int, int, int, int); -// »ÌŒ +// ãã®ä» int map_check_dir (int s_dir, int t_dir); int map_calc_dir (struct block_list *src, int x, int y); -// path.cæè +// path.cãã int path_search (struct walkpath_data *, int, int, int, int, int, int); int path_blownpos (int m, int x0, int y0, int dx, int dy, int count); diff --git a/src/map/mob.c b/src/map/mob.c index de691c1..7962114 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -353,11 +353,11 @@ int mob_once_spawn (struct map_session_data *sd, char *mapname, else m = map_mapname2mapid (mapname); - if (m < 0 || amount <= 0 || (class >= 0 && class <= 1000) || class > 2000) // lªÙíÈ碫ð~ßé + if (m < 0 || amount <= 0 || (class >= 0 && class <= 1000) || class > 2000) // å€ãç°åžžãªãå¬åãæ¢ãã return 0; if (class < 0) - { // _É¢« + { // ã©ã³ãã ã«å¬å int i = 0; int j = -class - 1; int k; @@ -412,7 +412,7 @@ int mob_once_spawn (struct map_session_data *sd, char *mapname, md->bl.x = x; md->bl.y = y; if (r < 0 && battle_config.dead_branch_active == 1) - md->mode = 0x1 + 0x4 + 0x80; //Ú®µÄANeBuÅœ·é + md->mode = 0x1 + 0x4 + 0x80; //移åããŠã¢ã¯ãã£ãã§åæãã md->m = m; md->x0 = x; md->y0 = y; @@ -510,7 +510,7 @@ int mob_spawn_guardian (struct map_session_data *sd, char *mapname, else m = map_mapname2mapid (mapname); - if (m < 0 || amount <= 0 || (class >= 0 && class <= 1000) || class > 2000) // lªÙíÈ碫ð~ßé + if (m < 0 || amount <= 0 || (class >= 0 && class <= 1000) || class > 2000) // å€ãç°åžžãªãå¬åãæ¢ãã return 0; if (class < 0) @@ -677,11 +677,11 @@ int mob_can_move (struct mob_data *md) if (md->canmove_tick > gettick () || (md->opt1 > 0 && md->opt1 != 6) || md->option & 2) return 0; - // ANÅ®¯È¢Æ© - if (md->sc_data[SC_ANKLE].timer != -1 || //ANXlA - md->sc_data[SC_AUTOCOUNTER].timer != -1 || //I[gJE^[ - md->sc_data[SC_BLADESTOP].timer != -1 || //næè - md->sc_data[SC_SPIDERWEB].timer != -1 //XpC_[EFbu + // ã¢ã³ã¯ã«äžã§åããªããšã + if (md->sc_data[SC_ANKLE].timer != -1 || //ã¢ã³ã¯ã«ã¹ã㢠+ md->sc_data[SC_AUTOCOUNTER].timer != -1 || //ãªãŒãã«ãŠã³ã¿ãŒ + md->sc_data[SC_BLADESTOP].timer != -1 || //çœååã + md->sc_data[SC_SPIDERWEB].timer != -1 //ã¹ãã€ããŒãŠã§ãã ) return 0; @@ -917,12 +917,12 @@ static int mob_attack (struct mob_data *md, unsigned int tick, int data) return 0; if (battle_config.monster_attack_direction_change) - md->dir = map_calc_dir (&md->bl, tbl->x, tbl->y); // ü«Ýè + md->dir = map_calc_dir (&md->bl, tbl->x, tbl->y); // åãèšå® //clif_fixmobpos(md); md->state.skillstate = MSS_ATTACK; - if (mobskill_use (md, tick, -2)) // XLgp + if (mobskill_use (md, tick, -2)) // ã¹ãã«äœ¿çš return 0; md->target_lv = battle_weapon_attack (&md->bl, tbl, tick, 0); @@ -1041,7 +1041,7 @@ static int mob_timer (int tid, unsigned int tick, int id, int data) struct block_list *bl; if ((bl = map_id2bl (id)) == NULL) - { //UµÄ«œGªà€¢È¢ÌͳíÌ怟 + { //æ»æããŠããæµãããããªãã®ã¯æ£åžžã®ããã return 1; } @@ -1453,13 +1453,13 @@ int mob_can_reach (struct mob_data *md, struct block_list *bl, int range) return 0; } - if (md->bl.m != bl->m) // á€bv + if (md->bl.m != bl->m) // éãã£bã return 0; - if (range > 0 && range < ((dx > dy) ? dx : dy)) // ·¬é + if (range > 0 && range < ((dx > dy) ? dx : dy)) // é ããã return 0; - if (md->bl.x == bl->x && md->bl.y == bl->y) // ¯¶X + if (md->bl.x == bl->x && md->bl.y == bl->y) // åãã£X return 1; // Obstacle judging @@ -1573,7 +1573,7 @@ static int mob_ai_sub_hard_activesearch (struct block_list *bl, va_list ap) else return 0; - //G¡û»è + //æµå³æ¹å€å® if (battle_check_target (&smd->bl, bl, BCT_ENEMY) == 0) return 0; @@ -1582,11 +1582,11 @@ static int mob_ai_sub_hard_activesearch (struct block_list *bl, va_list ap) else mode = smd->mode; - // ANeBuÅ^[QbgËöàÉ¢éÈçAbN·é + // ã¢ã¯ãã£ãã§ã¿ãŒã²ããå°çšå
ã«ãããªããããã¯ãã if (mode & 0x04) { race = mob_db[smd->class].race; - //ÎÛªPCÌê + //察象ãPCã®å Žå if (tsd && !pc_isdead (tsd) && tsd->bl.m == smd->bl.m && @@ -1599,25 +1599,25 @@ static int mob_ai_sub_hard_activesearch (struct block_list *bl, va_list ap) (tsd->sc_data[SC_TRICKDEAD].timer == -1 && ((!pc_ishiding (tsd) && !tsd->state.gangsterparadise) || race == 4 || race == 6))) - { // WQªÈ¢©»è - if (mob_can_reach (smd, bl, 12) && // BÂ\«»è + { // 劚害ããªããå€å® + if (mob_can_reach (smd, bl, 12) && // å°éå¯èœæ§å€å® MRAND (1000) < 1000 / (++(*pcc))) - { // ÍÍàPCÅmŠÉ·é + { // ç¯å²å
PCã§ç確çã«ãã smd->target_id = tsd->bl.id; smd->state.targettype = ATTACKABLE; smd->min_chase = 13; } } } - //ÎÛªMobÌê + //察象ãMobã®å Žå else if (tmd && tmd->bl.m == smd->bl.m && (dist = distance (smd->bl.x, smd->bl.y, tmd->bl.x, tmd->bl.y)) < 9) { - if (mob_can_reach (smd, bl, 12) && // BÂ\«»è + if (mob_can_reach (smd, bl, 12) && // å°éå¯èœæ§å€å® MRAND (1000) < 1000 / (++(*pcc))) - { // ÍÍàÅmŠÉ·é + { // ç¯å²å
ã§ç確çã«ãã smd->target_id = bl->id; smd->state.targettype = ATTACKABLE; smd->min_chase = 13; @@ -1828,7 +1828,7 @@ static int mob_ai_sub_hard_slavemob (struct mob_data *md, unsigned int tick) (sd->sc_data[SC_TRICKDEAD].timer == -1 && ((!pc_ishiding (sd) && !sd->state.gangsterparadise) || race == 4 || race == 6))) - { // WQªÈ¢©»è + { // 劚害ããªããå€å® md->target_id = sd->bl.id; md->state.targettype = ATTACKABLE; @@ -2028,7 +2028,7 @@ static int mob_ai_sub_hard (struct block_list *bl, va_list ap) if (md->master_id > 0 && md->state.special_mob_ai == 0) mob_ai_sub_hard_slavemob (md, tick); - // ANeBX^[ÌôG (?? of a bitter taste TIVU monster) + // ã¢ã¯ãã£ãŽã¢ã³ã¹ã¿ãŒã®çæµ (?? of a bitter taste TIVU monster) if ((!md->target_id || md->state.targettype == NONE_ATTACKABLE) && mode & 0x04 && !md->state.master_check && battle_config.monster_active_enable == 1) @@ -2077,45 +2077,45 @@ static int mob_ai_sub_hard (struct block_list *bl, va_list ap) || (dist = distance (md->bl.x, md->bl.y, tbl->x, tbl->y)) >= md->min_chase) - mob_unlocktarget (md, tick); // Ê}bv©AEO + mob_unlocktarget (md, tick); // å¥ãããããèŠçå€ else if (tsd && !(mode & 0x20) && (tsd->sc_data[SC_TRICKDEAD].timer != -1 || ((pc_ishiding (tsd) || tsd->state.gangsterparadise) && race != 4 && race != 6))) - mob_unlocktarget (md, tick); // XLÈÇÉæéôGWQ + mob_unlocktarget (md, tick); // ã¹ãã«ãªã©ã«ããçæµåŠšå®³ else if (!battle_check_range (&md->bl, tbl, mob_db[md->class].range)) { - // UÍÍOÈÌÅÚ® + // æ»æç¯å²å€ãªã®ã§ç§»å if (!(mode & 1)) - { // Ú®µÈ¢[h + { // 移åããªãã¢ãŒã mob_unlocktarget (md, tick); return 0; } - if (!mob_can_move (md)) // ®¯È¢óÔÉ é + if (!mob_can_move (md)) // åããªãç¶æ
ã«ãã return 0; - md->state.skillstate = MSS_CHASE; // ËXL + md->state.skillstate = MSS_CHASE; // çªææã¹ãã« mobskill_use (md, tick, -1); // if(md->timer != -1 && (DIFF_TICK(md->next_walktime,tick)<0 || distance(md->to_x,md->to_y,tsd->bl.x,tsd->bl.y)<2) ) if (md->timer != -1 && md->state.state != MS_ATTACK && (DIFF_TICK (md->next_walktime, tick) < 0 || distance (md->to_x, md->to_y, tbl->x, tbl->y) < 2)) - return 0; // ùÉÚ® + return 0; // æ¢ã«ç§»åäž if (!mob_can_reach (md, tbl, (md->min_chase > 13) ? md->min_chase : 13)) - mob_unlocktarget (md, tick); // ڮūȢÌÅ^QðiIWÆ©Hj + mob_unlocktarget (md, tick); // 移åã§ããªãã®ã§ã¿ã²è§£é€ïŒIWãšãïŒïŒ else { - // ÇÕ + // 远跡 md->next_walktime = tick + 500; i = 0; do { if (i == 0) - { // ÅÍAEGISƯ¶û@Åõ + { // æåã¯AEGISãšåãæ¹æ³ã§æ€çŽ¢ dx = tbl->x - md->bl.x; dy = tbl->y - md->bl.y; if (dx < 0) @@ -2128,7 +2128,7 @@ static int mob_ai_sub_hard (struct block_list *bl, va_list ap) dy--; } else - { // ŸßÈçAthena®(_) + { // ã ããªãAthenaåŒ(ã©ã³ãã ) dx = tbl->x - md->bl.x + MRAND (3) - 1; dy = tbl->y - md->bl.y + MRAND (3) - 1; } @@ -2148,7 +2148,7 @@ static int mob_ai_sub_hard (struct block_list *bl, va_list ap) while (ret && i < 5); if (ret) - { // Ú®sÂ\È©çÌUÈç2àºé + { // 移åäžå¯èœãªæããã®æ»æãªã2æ©äžã if (dx < 0) dx = 2; else if (dx > 0) @@ -2163,15 +2163,15 @@ static int mob_ai_sub_hard (struct block_list *bl, va_list ap) } } else - { // UËöÍÍà + { // æ»æå°çšç¯å²å
md->state.skillstate = MSS_ATTACK; if (md->state.state == MS_WALK) - mob_stop_walking (md, 1); // àsÈçâ~ + mob_stop_walking (md, 1); // æ©è¡äžãªãåæ¢ if (md->state.state == MS_ATTACK) - return 0; // ùÉU + return 0; // æ¢ã«æ»æäž mob_changestate (md, MS_ATTACK, attack_type); -/* if(mode&0x08){ // NX^[ +/* if(mode&0x08){ // ãªã³ã¯ã¢ã³ã¹ã¿ãŒ map_foreachinarea(mob_ai_sub_hard_linksearch,md->bl.m, md->bl.x-13,md->bl.y-13, md->bl.x+13,md->bl.y+13, @@ -2181,34 +2181,34 @@ static int mob_ai_sub_hard (struct block_list *bl, va_list ap) return 0; } else - { // [gX^[ + { // ã«ãŒãã¢ã³ã¹ã¿ãŒåŠç if (tbl == NULL || tbl->type != BL_ITEM || tbl->m != md->bl.m || (dist = distance (md->bl.x, md->bl.y, tbl->x, tbl->y)) >= md->min_chase || !md->lootitem) { - // ·¬é©ACeªÈÈÁœ + // é ããããã¢ã€ãã ããªããªã£ã mob_unlocktarget (md, tick); if (md->state.state == MS_WALK) - mob_stop_walking (md, 1); // àsÈçâ~ + mob_stop_walking (md, 1); // æ©è¡äžãªãåæ¢ } else if (dist) { if (!(mode & 1)) - { // Ú®µÈ¢[h + { // 移åããªãã¢ãŒã mob_unlocktarget (md, tick); return 0; } - if (!mob_can_move (md)) // ®¯È¢óÔÉ é + if (!mob_can_move (md)) // åããªãç¶æ
ã«ãã return 0; - md->state.skillstate = MSS_LOOT; // [gXLgp + md->state.skillstate = MSS_LOOT; // ã«ãŒãæã¹ãã«äœ¿çš mobskill_use (md, tick, -1); // if(md->timer != -1 && (DIFF_TICK(md->next_walktime,tick)<0 || distance(md->to_x,md->to_y,tbl->x,tbl->y)<2) ) if (md->timer != -1 && md->state.state != MS_ATTACK && (DIFF_TICK (md->next_walktime, tick) < 0 || distance (md->to_x, md->to_y, tbl->x, tbl->y) <= 0)) - return 0; // ùÉÚ® + return 0; // æ¢ã«ç§»åäž md->next_walktime = tick + 500; dx = tbl->x - md->bl.x; dy = tbl->y - md->bl.y; @@ -2218,14 +2218,14 @@ static int mob_ai_sub_hard (struct block_list *bl, va_list ap) }*/ ret = mob_walktoxy (md, md->bl.x + dx, md->bl.y + dy, 0); if (ret) - mob_unlocktarget (md, tick); // ڮūȢÌÅ^QðiIWÆ©Hj + mob_unlocktarget (md, tick); // 移åã§ããªãã®ã§ã¿ã²è§£é€ïŒIWãšãïŒïŒ } else - { // ACeÜÅœÇè
¢œ + { // ã¢ã€ãã ãŸã§ãã©ãçãã if (md->state.state == MS_ATTACK) - return 0; // U + return 0; // æ»æäž if (md->state.state == MS_WALK) - mob_stop_walking (md, 1); // àsÈçâ~ + mob_stop_walking (md, 1); // æ©è¡äžãªãåæ¢ fitem = (struct flooritem_data *) tbl; if (md->lootitem_count < LOOTITEM_SIZE) memcpy (&md->lootitem[md->lootitem_count++], @@ -2254,7 +2254,7 @@ static int mob_ai_sub_hard (struct block_list *bl, va_list ap) { mob_unlocktarget (md, tick); if (md->state.state == MS_WALK) - mob_stop_walking (md, 4); // àsÈçâ~ + mob_stop_walking (md, 4); // æ©è¡äžãªãåæ¢ return 0; } } @@ -2263,11 +2263,11 @@ static int mob_ai_sub_hard (struct block_list *bl, va_list ap) if (mobskill_use (md, tick, -1)) return 0; - // às - if (mode & 1 && mob_can_move (md) && // Ú®Â\MOB&®¯éóÔÉ é + // æ©è¡åŠç + if (mode & 1 && mob_can_move (md) && // 移åå¯èœMOB&åããç¶æ
ã«ãã (md->master_id == 0 || md->state.special_mob_ai || md->master_dist > 10)) - { //æ誫MOB¶áÈ¢ + { //åãå·»ãMOBãããªã if (DIFF_TICK (md->next_walktime, tick) > +7000 && (md->walkpath.path_len == 0 @@ -2599,7 +2599,7 @@ int mob_damage (struct block_list *src, struct mob_data *md, int damage, int drop_rate; int skill, sp; - nullpo_retr (0, md); //srcÍNULLÅÄÎêéêà éÌÅAŒÅ`FbN + nullpo_retr (0, md); //srcã¯NULLã§åŒã°ããå Žåãããã®ã§ãä»ã§ãã§ã㯠if (src && src->id == md->master_id && md->mode & MOB_MODE_TURNS_AGAINST_BAD_MASTER) @@ -2818,7 +2818,7 @@ int mob_damage (struct block_list *src, struct mob_data *md, int damage, skill_status_change_end (&md->bl, SC_CLOAKING, -1); if (md->state.special_mob_ai == 2) - { //XtBA[}C + { //ã¹ãã£ã¢ãŒãã€ã³ int skillidx = 0; if ((skillidx = @@ -2826,7 +2826,7 @@ int mob_damage (struct block_list *src, struct mob_data *md, int damage, { md->mode |= 0x1; md->next_walktime = tick; - mobskill_use_id (md, &md->bl, skillidx); //©r¥Jn + mobskill_use_id (md, &md->bl, skillidx); //èªçè© å±éå§ md->state.special_mob_ai++; } } @@ -2838,11 +2838,11 @@ int mob_damage (struct block_list *src, struct mob_data *md, int damage, MAP_LOG ("MOB%d DEAD", md->bl.id); - // ----- ±±©çS ----- + // ----- ããããæ»äº¡åŠç ----- map_freeblock_lock (); mob_changestate (md, MS_DEAD, 0); - mobskill_use (md, tick, -1); // SXL + mobskill_use (md, tick, -1); // æ»äº¡æã¹ãã« memset (tmpsd, 0, sizeof (tmpsd)); memset (pt, 0, sizeof (pt)); @@ -2852,7 +2852,7 @@ int mob_damage (struct block_list *src, struct mob_data *md, int damage, if (src && src->type == BL_MOB) mob_unlocktarget ((struct mob_data *) src, tick); - /* \EhC */ + /* ãœãŠã«ãã¬ã€ã³ */ if (sd && (skill = pc_checkskill (sd, HW_SOULDRAIN)) > 0) { clif_skill_nodamage (src, &md->bl, HW_SOULDRAIN, skill, 1); @@ -2863,8 +2863,8 @@ int mob_damage (struct block_list *src, struct mob_data *md, int damage, clif_heal (sd->fd, SP_SP, sp); } - // mapOÉÁŠœlÍvZ©çÌÅ - // overkillªÍ³¢¯ÇsumÍmax_hpÆÍဠ+ // mapå€ã«æ¶ãã人ã¯èšç®ããé€ãã®ã§ + // overkillåã¯ç¡ããã©sumã¯max_hpãšã¯éã tdmg = 0; for (i = 0, count = 0, mvp_damage = 0; i < DAMAGELOG_SIZE; i++) @@ -2897,7 +2897,7 @@ int mob_damage (struct block_list *src, struct mob_data *md, int damage, else dmg_rate = 1; - // o±l̪z + // çµéšå€ã®åé
for (i = 0; i < DAMAGELOG_SIZE; i++) { @@ -2953,13 +2953,13 @@ int mob_damage (struct block_list *src, struct mob_data *md, int damage, job_exp = 0; // Added [Valaris] if ((pid = tmpsd[i]->status.party_id) > 0) - { // p[eBÉüÁÄ¢é + { // ããŒãã£ã«å
¥ã£ãŠãã int j = 0; - for (j = 0; j < pnum; j++) // öœp[eBXgÉ¢é©Ç€© + for (j = 0; j < pnum; j++) // å
¬å¹³ããŒãã£ãªã¹ãã«ãããã©ãã if (pt[j].id == pid) break; if (j == pnum) - { // ¢È¢Æ«Íöœ©Ç€©mF + { // ããªããšãã¯å
¬å¹³ãã©ããç¢ºèª if ((p = party_search (pid)) != NULL && p->exp != 0) { pt[pnum].id = pid; @@ -2971,16 +2971,16 @@ int mob_damage (struct block_list *src, struct mob_data *md, int damage, } } else - { // ¢éÆ«Íöœ + { // ãããšãã¯å
¬å¹³ pt[j].base_exp += base_exp; pt[j].job_exp += job_exp; flag = 0; } } - if (flag) // e©Ÿ + if (flag) // åèªæåŸ pc_gainexp (tmpsd[i], base_exp, job_exp); } - // öœªz + // å
¬å¹³åé
for (i = 0; i < pnum; i++) party_exp_share (pt[i].p, md->bl.m, pt[i].base_exp, pt[i].job_exp); @@ -3086,7 +3086,7 @@ int mob_damage (struct block_list *src, struct mob_data *md, int damage, } } - // mvp + // mvpåŠç if (mvp_sd && mob_db[md->class].mexp > 0) { int j; @@ -3097,7 +3097,7 @@ int mob_damage (struct block_list *src, struct mob_data *md, int damage, mexp = (temp > 2147483647.) ? 0x7fffffff : (int) temp; if (mexp < 1) mexp = 1; - clif_mvp_effect (mvp_sd); // GtFNg + clif_mvp_effect (mvp_sd); // ãšãã§ã¯ã clif_mvp_exp (mvp_sd, mexp); pc_gainexp (mvp_sd, mexp, 0); for (j = 0; j < 3; j++) @@ -3145,7 +3145,7 @@ int mob_damage (struct block_list *src, struct mob_data *md, int damage, guild_agit_break (md); } - // SCRIPTÀs + // SCRIPTå®è¡ if (md->npc_event[0]) { if (sd == NULL) @@ -3265,7 +3265,7 @@ int mob_class_change (struct mob_data *md, int *value) } /*========================================== - * mobñ + * mobå埩 *------------------------------------------ */ int mob_heal (struct mob_data *md, int heal) @@ -3338,7 +3338,7 @@ int mob_warpslave (struct mob_data *md, int x, int y) } /*========================================== - * mob[v + * mobã¯ãŒã *------------------------------------------ */ int mob_warp (struct mob_data *md, int m, int x, int y, int type) @@ -3363,7 +3363,7 @@ int mob_warp (struct mob_data *md, int m, int x, int y, int type) map_delblock (&md->bl); if (bx > 0 && by > 0) - { // ÊuwèÌêüÍXZðTõ + { // äœçœ®æå®ã®å Žååšå²ïŒã»ã«ãæ¢çŽ¢ xs = ys = 9; } @@ -3371,12 +3371,12 @@ int mob_warp (struct mob_data *md, int m, int x, int y, int type) && (i++) < 1000) { if (xs > 0 && ys > 0 && i < 250) - { // wèÊutßÌTõ + { // æå®äœçœ®ä»è¿ã®æ¢çŽ¢ x = MPRAND (bx, xs) - xs / 2; y = MPRAND (by, ys) - ys / 2; } else - { // ®S_Tõ + { // å®å
šã©ã³ãã æ¢çŽ¢ x = MPRAND (1, (map[m].xs - 2)); y = MPRAND (1, (map[m].ys - 2)); } @@ -3395,7 +3395,7 @@ int mob_warp (struct mob_data *md, int m, int x, int y, int type) printf ("MOB %d warp failed, class = %d\n", md->bl.id, md->class); } - md->target_id = 0; // ^Qðð·é + md->target_id = 0; // ã¿ã²ã解é€ãã md->state.targettype = NONE_ATTACKABLE; md->attacked_id = 0; md->state.skillstate = MSS_IDLE; @@ -3419,7 +3419,7 @@ int mob_warp (struct mob_data *md, int m, int x, int y, int type) } /*========================================== - * æÊàÌæ誫ÌvZp(foreachinarea) + * ç»é¢å
ã®åãå·»ãã®æ°èšç®çš(foreachinarea) *------------------------------------------ */ int mob_countslave_sub (struct block_list *bl, va_list ap) @@ -3440,7 +3440,7 @@ int mob_countslave_sub (struct block_list *bl, va_list ap) } /*========================================== - * æÊàÌæ誫ÌvZ + * ç»é¢å
ã®åãå·»ãã®æ°èšç® *------------------------------------------ */ int mob_countslave (struct mob_data *md) @@ -3456,7 +3456,7 @@ int mob_countslave (struct mob_data *md) } /*========================================== - * èºMOB¢« + * æäžMOBå¬å *------------------------------------------ */ int mob_summonslave (struct mob_data *md2, int *value, int amount, int flag) @@ -3471,7 +3471,7 @@ int mob_summonslave (struct mob_data *md2, int *value, int amount, int flag) by = md2->bl.y; m = md2->bl.m; - if (value[0] <= 1000 || value[0] > 2000) // lªÙíÈ碫ð~ßé + if (value[0] <= 1000 || value[0] > 2000) // å€ãç°åžžãªãå¬åãæ¢ãã return 0; while (count < 5 && value[count] > 1000 && value[count] <= 2000) count++; @@ -3520,8 +3520,8 @@ int mob_summonslave (struct mob_data *md2, int *value, int amount, int flag) md->xs = 0; md->ys = 0; md->stats[MOB_SPEED] = md2->stats[MOB_SPEED]; - md->spawndelay1 = -1; // êxÌÝtO - md->spawndelay2 = -1; // êxÌÝtO + md->spawndelay1 = -1; // äžåºŠã®ã¿ãã©ã° + md->spawndelay2 = -1; // äžåºŠã®ã¿ãã©ã° memset (md->npc_event, 0, sizeof (md->npc_event)); md->bl.type = BL_MOB; @@ -3539,7 +3539,7 @@ int mob_summonslave (struct mob_data *md2, int *value, int amount, int flag) } /*========================================== - * ©ªðbNµÄ¢éPCÌðŠé(foreachclient) + * èªåãããã¯ããŠããPCã®æ°ãæ°ãã(foreachclient) *------------------------------------------ */ static int mob_counttargeted_sub (struct block_list *bl, va_list ap) @@ -3574,7 +3574,7 @@ static int mob_counttargeted_sub (struct block_list *bl, va_list ap) } /*========================================== - * ©ªðbNµÄ¢éPCÌðŠé + * èªåãããã¯ããŠããPCã®æ°ãæ°ãã *------------------------------------------ */ int mob_counttargeted (struct mob_data *md, struct block_list *src, @@ -3592,7 +3592,7 @@ int mob_counttargeted (struct mob_data *md, struct block_list *src, } /*========================================== - *MOBskill©çYskillidÌskillidxðÔ· + *MOBskillãã該åœskillidã®skillidxãè¿ã *------------------------------------------ */ int mob_skillid2skillidx (int class, int skillid) @@ -3613,11 +3613,11 @@ int mob_skillid2skillidx (int class, int skillid) } // -// MOBXL +// MOBã¹ãã« // /*========================================== - * XLgpir¥®¹AIDwèj + * ã¹ãã«äœ¿çšïŒè© å±å®äºãIDæå®ïŒ *------------------------------------------ */ int mobskill_castend_id (int tid, unsigned int tick, int id, int data) @@ -3627,7 +3627,7 @@ int mobskill_castend_id (int tid, unsigned int tick, int id, int data) struct block_list *mbl; int range; - if ((mbl = map_id2bl (id)) == NULL) //r¥µœMobªà€¢È¢Æ¢€ÌÍÇ é³í + if ((mbl = map_id2bl (id)) == NULL) //è© å±ããMobãããããªããšããã®ã¯è¯ãããæ£åžžåŠç return 0; if ((md = (struct mob_data *) mbl) == NULL) { @@ -3636,30 +3636,30 @@ int mobskill_castend_id (int tid, unsigned int tick, int id, int data) } if (md->bl.type != BL_MOB || md->bl.prev == NULL) return 0; - if (md->skilltimer != tid) // ^C}IDÌmF + if (md->skilltimer != tid) // ã¿ã€ãIDã®ç¢ºèª return 0; md->skilltimer = -1; - //ŸÙâóÔÙíÈÇ + //æ²é»ãç¶æ
ç°åžžãªã© if (md->sc_data) { if (md->opt1 > 0 || md->sc_data[SC_DIVINA].timer != -1 || md->sc_data[SC_ROKISWEIL].timer != -1 || md->sc_data[SC_STEELBODY].timer != -1) return 0; - if (md->sc_data[SC_AUTOCOUNTER].timer != -1 && md->skillid != KN_AUTOCOUNTER) //I[gJE^[ + if (md->sc_data[SC_AUTOCOUNTER].timer != -1 && md->skillid != KN_AUTOCOUNTER) //ãªãŒãã«ãŠã³ã¿ãŒ return 0; - if (md->sc_data[SC_BLADESTOP].timer != -1) //næè + if (md->sc_data[SC_BLADESTOP].timer != -1) //çœååã return 0; - if (md->sc_data[SC_BERSERK].timer != -1) //o[T[N + if (md->sc_data[SC_BERSERK].timer != -1) //ããŒãµãŒã¯ return 0; } if (md->skillid != NPC_EMOTION) md->last_thinktime = tick + battle_get_adelay (&md->bl); if ((bl = map_id2bl (md->skilltarget)) == NULL || bl->prev == NULL) - { //XL^[Qbgª¶ÝµÈ¢ - //printf("mobskill_castend_id nullpo\n");//^[Qbgª¢È¢Æ«Ínullpo¶áÈÄÊÉI¹ + { //ã¹ãã«ã¿ãŒã²ãããååšããªã + //printf("mobskill_castend_id nullpo\n");//ã¿ãŒã²ãããããªããšãã¯nullpoãããªããŠæ®éã«çµäº return 0; } if (md->bl.m != bl->m) @@ -3682,7 +3682,7 @@ int mobskill_castend_id (int tid, unsigned int tick, int id, int data) if (bl->type != BL_SKILL && (dist == 0 || map_check_dir (dir, t_dir))) return 0; } - if (((skill_get_inf (md->skillid) & 1) || (skill_get_inf2 (md->skillid) & 4)) && // ÞäGÎÖW`FbN + if (((skill_get_inf (md->skillid) & 1) || (skill_get_inf2 (md->skillid) & 4)) && // 圌ææµå¯Ÿé¢ä¿ãã§ã㯠battle_check_target (&md->bl, bl, BCT_ENEMY) <= 0) return 0; range = skill_get_range (md->skillid, md->skilllv); @@ -3701,13 +3701,13 @@ int mobskill_castend_id (int tid, unsigned int tick, int id, int data) switch (skill_get_nk (md->skillid)) { - // Un/«òεn + // æ»æç³»/å¹ãé£ã°ãç³» case 0: case 2: skill_castend_damage_id (&md->bl, bl, md->skillid, md->skilllv, tick, 0); break; - case 1: // xn + case 1: // æ¯æŽç³» if (!mob_db[md->class].skill[md->skillidx].val[0] && (md->skillid == AL_HEAL || (md->skillid == ALL_RESURRECTION && bl->type != BL_PC)) @@ -3725,7 +3725,7 @@ int mobskill_castend_id (int tid, unsigned int tick, int id, int data) } /*========================================== - * XLgpir¥®¹Aêwèj + * ã¹ãã«äœ¿çšïŒè© å±å®äºãå Žææå®ïŒ *------------------------------------------ */ int mobskill_castend_pos (int tid, unsigned int tick, int id, int data) @@ -3734,7 +3734,7 @@ int mobskill_castend_pos (int tid, unsigned int tick, int id, int data) struct block_list *bl; int range, maxcount; - //mobskill_castend_id¯lr¥µœMobªr¥®¹Éà€¢È¢Æ¢€ÌÍ è»€ÈÌÅnullpo©çO + //mobskill_castend_idåæ§è© å±ããMobãè© å±å®äºæã«ããããªããšããã®ã¯ãããããªã®ã§nullpoããé€å€ if ((bl = map_id2bl (id)) == NULL) return 0; @@ -3743,7 +3743,7 @@ int mobskill_castend_pos (int tid, unsigned int tick, int id, int data) if (md->bl.type != BL_MOB || md->bl.prev == NULL) return 0; - if (md->skilltimer != tid) // ^C}IDÌmF + if (md->skilltimer != tid) // ã¿ã€ãIDã®ç¢ºèª return 0; md->skilltimer = -1; @@ -3753,11 +3753,11 @@ int mobskill_castend_pos (int tid, unsigned int tick, int id, int data) || md->sc_data[SC_ROKISWEIL].timer != -1 || md->sc_data[SC_STEELBODY].timer != -1) return 0; - if (md->sc_data[SC_AUTOCOUNTER].timer != -1 && md->skillid != KN_AUTOCOUNTER) //I[gJE^[ + if (md->sc_data[SC_AUTOCOUNTER].timer != -1 && md->skillid != KN_AUTOCOUNTER) //ãªãŒãã«ãŠã³ã¿ãŒ return 0; - if (md->sc_data[SC_BLADESTOP].timer != -1) //næè + if (md->sc_data[SC_BLADESTOP].timer != -1) //çœååã return 0; - if (md->sc_data[SC_BERSERK].timer != -1) //o[T[N + if (md->sc_data[SC_BERSERK].timer != -1) //ããŒãµãŒã¯ return 0; } @@ -3777,7 +3777,7 @@ int mobskill_castend_pos (int tid, unsigned int tick, int id, int data) case HT_FREEZINGTRAP: case HT_BLASTMINE: case HT_CLAYMORETRAP: - case PF_SPIDERWEB: /* XpC_[EFbu */ + case PF_SPIDERWEB: /* ã¹ãã€ããŒãŠã§ãã */ range = 0; break; case AL_PNEUMA: @@ -3808,7 +3808,7 @@ int mobskill_castend_pos (int tid, unsigned int tick, int id, int data) case HT_BLASTMINE: case HT_CLAYMORETRAP: case AM_DEMONSTRATION: - case PF_SPIDERWEB: /* XpC_[EFbu */ + case PF_SPIDERWEB: /* ã¹ãã€ããŒãŠã§ãã */ range = 1; break; case AL_WARP: @@ -3882,18 +3882,18 @@ int mobskill_use_id (struct mob_data *md, struct block_list *target, skill_id = ms->skill_id; skill_lv = ms->skill_lv; - // ŸÙâÙí + // æ²é»ãç°åžž if (md->sc_data) { if (md->opt1 > 0 || md->sc_data[SC_DIVINA].timer != -1 || md->sc_data[SC_ROKISWEIL].timer != -1 || md->sc_data[SC_STEELBODY].timer != -1) return 0; - if (md->sc_data[SC_AUTOCOUNTER].timer != -1 && md->skillid != KN_AUTOCOUNTER) //I[gJE^[ + if (md->sc_data[SC_AUTOCOUNTER].timer != -1 && md->skillid != KN_AUTOCOUNTER) //ãªãŒãã«ãŠã³ã¿ãŒ return 0; - if (md->sc_data[SC_BLADESTOP].timer != -1) //næè + if (md->sc_data[SC_BLADESTOP].timer != -1) //çœååã return 0; - if (md->sc_data[SC_BERSERK].timer != -1) //o[T[N + if (md->sc_data[SC_BERSERK].timer != -1) //ããŒãµãŒã¯ return 0; } @@ -3912,7 +3912,7 @@ int mobskill_use_id (struct mob_data *md, struct block_list *target, if (skill_get_inf2 (skill_id) & 0x200 && md->bl.id == target->id) return 0; - // ËöÆáQš`FbN + // å°çšãšé害ç©ãã§ã㯠range = skill_get_range (skill_id, skill_lv); if (range < 0) range = battle_get_range (&md->bl) - (range + 1); @@ -3927,19 +3927,19 @@ int mobskill_use_id (struct mob_data *md, struct block_list *target, md->skilldelay[skill_idx] = gettick (); switch (skill_id) - { /* œ©ÁêȪKv */ - case ALL_RESURRECTION: /* UNV */ + { /* äœãç¹æ®ãªåŠçãå¿
èŠ */ + case ALL_RESURRECTION: /* ãªã¶ã¬ã¯ã·ã§ã³ */ if (target->type != BL_PC && battle_check_undead (battle_get_race (target), battle_get_elem_type (target))) - { /* GªAfbhÈç */ - forcecast = 1; /* ^[AfbgƯ¶r¥Ô */ + { /* æµãã¢ã³ããããªã */ + forcecast = 1; /* ã¿ãŒã³ã¢ã³ããããšåãè© å±æé */ casttime = skill_castfix (&md->bl, skill_get_cast (PR_TURNUNDEAD, skill_lv)); } break; - case MO_EXTREMITYFIST: /*¢C
eP */ + case MO_EXTREMITYFIST: /*é¿ä¿®çŸ
èŠé³³æ³ */ case SA_MAGICROD: case SA_SPELLBREAKER: forcecast = 1; @@ -3952,12 +3952,12 @@ int mobskill_use_id (struct mob_data *md, struct block_list *target, target->id, skill_id, skill_lv, casttime, md->class); if (casttime > 0 || forcecast) - { // r¥ªKv + { // è© å±ãå¿
èŠ // struct mob_data *md2; clif_skillcasting (&md->bl, md->bl.id, target->id, 0, 0, skill_id, casttime); - // r¥œX^[ + // è© å±åå¿ã¢ã³ã¹ã¿ãŒ /* if( target->type==BL_MOB && mob_db[(md2=(struct mob_data *)target)->class].mode&0x10 && md2->state.state!=MS_ATTACK){ md2->target_id=md->bl.id; @@ -3966,7 +3966,7 @@ int mobskill_use_id (struct mob_data *md, struct block_list *target, }*/ } - if (casttime <= 0) // r¥Ì³¢àÌÍLZ³êÈ¢ + if (casttime <= 0) // è© å±ã®ç¡ããã®ã¯ãã£ã³ã»ã«ãããªã md->state.skillcastcancel = 0; md->skilltarget = target->id; @@ -3996,7 +3996,7 @@ int mobskill_use_id (struct mob_data *md, struct block_list *target, } /*========================================== - * XLgpiêwèj + * ã¹ãã«äœ¿çšïŒå Žææå®ïŒ *------------------------------------------ */ int mobskill_use_pos (struct mob_data *md, @@ -4016,18 +4016,18 @@ int mobskill_use_pos (struct mob_data *md, skill_id = ms->skill_id; skill_lv = ms->skill_lv; - //ŸÙâóÔÙíÈÇ + //æ²é»ãç¶æ
ç°åžžãªã© if (md->sc_data) { if (md->opt1 > 0 || md->sc_data[SC_DIVINA].timer != -1 || md->sc_data[SC_ROKISWEIL].timer != -1 || md->sc_data[SC_STEELBODY].timer != -1) return 0; - if (md->sc_data[SC_AUTOCOUNTER].timer != -1 && md->skillid != KN_AUTOCOUNTER) //I[gJE^[ + if (md->sc_data[SC_AUTOCOUNTER].timer != -1 && md->skillid != KN_AUTOCOUNTER) //ãªãŒãã«ãŠã³ã¿ãŒ return 0; - if (md->sc_data[SC_BLADESTOP].timer != -1) //næè + if (md->sc_data[SC_BLADESTOP].timer != -1) //çœååã return 0; - if (md->sc_data[SC_BERSERK].timer != -1) //o[T[N + if (md->sc_data[SC_BERSERK].timer != -1) //ããŒãµãŒã¯ return 0; } @@ -4040,7 +4040,7 @@ int mobskill_use_pos (struct mob_data *md, || skill_id == TF_BACKSLIDING)) return 0; - // ËöÆáQš`FbN + // å°çšãšé害ç©ãã§ã㯠bl.type = BL_NUL; bl.m = md->bl.m; bl.x = skill_x; @@ -4201,7 +4201,7 @@ int mobskill_use (struct mob_data *md, unsigned int tick, int event) if (md->state.special_mob_ai) return 0; - if (md->sc_data[SC_SELFDESTRUCTION].timer != -1) //©ÍXLðgíÈ¢ + if (md->sc_data[SC_SELFDESTRUCTION].timer != -1) //èªçäžã¯ã¹ãã«ã䜿ããªã return 0; for (i = 0; i < mob_db[md->class].maxskill; i++) @@ -4209,15 +4209,15 @@ int mobskill_use (struct mob_data *md, unsigned int tick, int event) int c2 = ms[i].cond2, flag = 0; struct mob_data *fmd = NULL; - // fBC + // ãã£ã¬ã€äž if (DIFF_TICK (tick, md->skilldelay[i]) < ms[i].delay) continue; - // óÔ»è + // ç¶æ
å€å® if (ms[i].state >= 0 && ms[i].state != md->state.skillstate) continue; - // ð»è + // æ¡ä»¶å€å® flag = (event == ms[i].cond1); if (!flag) { @@ -4278,13 +4278,13 @@ int mobskill_use (struct mob_data *md, unsigned int tick, int event) } } - // mŠ»è + // 確çå€å® if (flag && MRAND (10000) < ms[i].permillage) { if (skill_get_inf (ms[i].skill_id) & 2) { - // êwè + // å Žææå® struct block_list *bl = NULL; int x = 0, y = 0; if (ms[i].target <= MST_AROUND) @@ -4313,7 +4313,7 @@ int mobskill_use (struct mob_data *md, unsigned int tick, int event) } if (x <= 0 || y <= 0) continue; - // ©ªÌüÍ + // èªåã®åšå² if (ms[i].target >= MST_AROUND1) { int bx = x, by = y, i = 0, c, m = bl->m, r = @@ -4333,7 +4333,7 @@ int mobskill_use (struct mob_data *md, unsigned int tick, int event) y = by; } } - // èÌüÍ + // çžæã®åšå² if (ms[i].target >= MST_AROUND5) { int bx = x, by = y, i = 0, c, m = bl->m, r = @@ -4368,7 +4368,7 @@ int mobskill_use (struct mob_data *md, unsigned int tick, int event) if (bl && !mobskill_use_id (md, bl, i)) return 0; } - // IDwè + // IDæå® if (ms[i].target <= MST_FRIEND) { struct block_list *bl = NULL; @@ -4411,7 +4411,7 @@ int mobskill_event (struct mob_data *md, int flag) } /*========================================== - * MobªGyEÈÇÌêÌ»è + * Mobããšã³ããªãŠã ãªã©ã®å Žåã®å€å® *------------------------------------------ */ int mob_gvmobcheck (struct map_session_data *sd, struct block_list *bl) @@ -4429,14 +4429,14 @@ int mob_gvmobcheck (struct map_session_data *sd, struct block_list *bl) struct guild *g = guild_search (sd->status.guild_id); if (g == NULL && md->class == 1288) - return 0; //Mh¢ÁüÈç_[W³µ + return 0; //ã®ã«ãæªå å
¥ãªããã¡ãŒãžç¡ã else if (gc != NULL && !map[sd->bl.m].flag.gvg) - return 0; //ÔàÅGv¶áȢƫÍ_[Wȵ + return 0; //ç Šå
ã§Gvãããªããšãã¯ãã¡ãŒãžãªã else if (g && gc != NULL && g->guild_id == gc->guild_id) - return 0; //©èÌMhÌGyÈç_[W³µ + return 0; //èªå é ã®ã«ãã®ãšã³ããªããã¡ãŒãžç¡ã else if (g && guild_checkskill (g, GD_APPROVAL) <= 0 && md->class == 1288) - return 0; //³KMh³FªÈ¢Æ_[W³µ + return 0; //æ£èŠã®ã«ãæ¿èªããªããšãã¡ãŒãžç¡ã } @@ -4444,7 +4444,7 @@ int mob_gvmobcheck (struct map_session_data *sd, struct block_list *bl) } /*========================================== - * XLp^C}[í + * ã¹ãã«çšã¿ã€ããŒåé€ *------------------------------------------ */ int mobskill_deltimer (struct mob_data *md) @@ -4463,7 +4463,7 @@ int mobskill_deltimer (struct mob_data *md) } // -// ú» +// åæå // /*========================================== * Since un-setting [ mob ] up was used, it is an initial provisional value setup. @@ -4742,7 +4742,7 @@ static int mob_readdb_mobavail (void) class = atoi (str[0]); - if (class <= 1000 || class > 2000) // lªÙíÈçµÈ¢B + if (class <= 1000 || class > 2000) // å€ãç°åžžãªãåŠçããªãã continue; k = atoi (str[1]); if (k >= 0) @@ -4792,7 +4792,7 @@ static int mob_read_randommonster (void) for (i = 0; i < MAX_RANDOMMONSTER; i++) { - mob_db[0].summonper[i] = 1002; // ÝèµYêœêÍ|ªoéæ€ÉµÄš + mob_db[0].summonper[i] = 1002; // èšå®ãå¿ããå Žåã¯ããªã³ãåºãããã«ããŠãã fp = fopen_ (mobfile[i], "r"); if (fp == NULL) { diff --git a/src/map/mob.h b/src/map/mob.h index ec0352e..2463283 100644 --- a/src/map/mob.h +++ b/src/map/mob.h @@ -85,12 +85,12 @@ enum enum { - MSS_IDLE, // Ò@ - MSS_WALK, // Ú® - MSS_ATTACK, // U - MSS_DEAD, // S - MSS_LOOT, // [g - MSS_CHASE, // Ë + MSS_IDLE, // åŸ
æ© + MSS_WALK, // 移å + MSS_ATTACK, // æ»æ + MSS_DEAD, // æ»äº¡ + MSS_LOOT, // ã«ãŒã + MSS_CHASE, // çªæ }; int mobdb_searchname (const char *str); diff --git a/src/map/party.c b/src/map/party.c index 3277edf..f87d390 100644 --- a/src/map/party.c +++ b/src/map/party.c @@ -21,13 +21,13 @@ #include "memwatch.h" #endif -#define PARTY_SEND_XYHP_INVERVAL 1000 // ÀWâgoMÌÔu +#define PARTY_SEND_XYHP_INVERVAL 1000 // 座æšãéä¿¡ã®éé static struct dbt *party_db; int party_send_xyhp_timer (int tid, unsigned int tick, int id, int data); /*========================================== - * I¹ + * çµäº *------------------------------------------ */ static int party_db_final (void *key, void *data, va_list ap) @@ -42,7 +42,7 @@ void do_final_party (void) numdb_final (party_db, party_db_final); } -// ú» +// åæå void do_init_party (void) { party_db = numdb_init (); @@ -52,7 +52,7 @@ void do_init_party (void) PARTY_SEND_XYHP_INVERVAL); } -// õ +// æ€çŽ¢ struct party *party_search (int party_id) { return numdb_search (party_db, party_id); @@ -69,7 +69,7 @@ int party_searchname_sub (void *key, void *data, va_list ap) return 0; } -// p[eBŒõ +// ããŒãã£åæ€çŽ¢ struct party *party_searchname (char *str) { struct party *p = NULL; @@ -135,13 +135,13 @@ int party_created (int account_id, int fail, int party_id, char *name) return 0; } -// îñv +// æ
å ±èŠæ± int party_request_info (int party_id) { return intif_request_partyinfo (party_id); } -// ®LÌmF +// æå±ãã£ã©ã®ç¢ºèª int party_check_member (struct party *p) { int i; @@ -157,13 +157,13 @@ int party_check_member (struct party *p) { int j, f = 1; for (j = 0; j < MAX_PARTY; j++) - { // p[eBÉf[^ª é©mF + { // ããŒãã£ã«ããŒã¿ããããç¢ºèª if (p->member[j].account_id == sd->status.account_id) { if (strcmp (p->member[j].name, sd->status.name) == 0) - f = 0; // f[^ª é + f = 0; // ããŒã¿ããã else - p->member[j].sd = NULL; // ¯CÊLŸÁœ + p->member[j].sd = NULL; // åå¢å¥ãã£ã©ã ã£ã } } if (f) @@ -179,7 +179,7 @@ int party_check_member (struct party *p) return 0; } -// îñŸžsi»ÌIDÌLðS¢®É·éj +// æ
å ±æåŸå€±æïŒãã®IDã®ãã£ã©ãå
šéšæªæå±ã«ããïŒ int party_recv_noinfo (int party_id) { int i; @@ -195,7 +195,7 @@ int party_recv_noinfo (int party_id) return 0; } -// îñŸ +// æ
å ±æåŸ int party_recv_info (struct party *sp) { struct party *p; @@ -208,13 +208,13 @@ int party_recv_info (struct party *sp) p = (struct party *) aCalloc (1, sizeof (struct party)); numdb_insert (party_db, sp->party_id, p); - // ÅÌ[hÈÌÅ[U[Ì`FbNðs€ + // æåã®ããŒããªã®ã§ãŠãŒã¶ãŒã®ãã§ãã¯ãè¡ã party_check_member (sp); } memcpy (p, sp, sizeof (struct party)); for (i = 0; i < MAX_PARTY; i++) - { // sdÌÝè + { // sdã®èšå® struct map_session_data *sd = map_id2sd (p->member[i].account_id); p->member[i].sd = (sd != NULL && sd->status.party_id == p->party_id) ? sd : NULL; @@ -223,7 +223,7 @@ int party_recv_info (struct party *sp) clif_party_info (p, -1); for (i = 0; i < MAX_PARTY; i++) - { // ÝèîñÌM + { // èšå®æ
å ±ã®éä¿¡ // struct map_session_data *sd = map_id2sd(p->member[i].account_id); struct map_session_data *sd = p->member[i].sd; if (sd != NULL && sd->party_sended == 0) @@ -334,7 +334,7 @@ int party_reply_invite (struct map_session_data *sd, int account_id, int flag) return 0; } -// p[eBªÇÁ³êœ +// ããŒãã£ãè¿œå ããã int party_member_added (int party_id, int account_id, int flag) { struct map_session_data *sd = map_id2sd (account_id), *sd2; @@ -347,7 +347,7 @@ int party_member_added (int party_id, int account_id, int flag) if (battle_config.error_log) printf ("party: member added error %d is not online\n", account_id); - intif_party_leave (party_id, account_id); // L€Éo^Å«È©ÁœœßEÞvðo· + intif_party_leave (party_id, account_id); // ãã£ã©åŽã«ç»é²ã§ããªãã£ãããè±éèŠæ±ãåºã } return 0; } @@ -363,20 +363,20 @@ int party_member_added (int party_id, int account_id, int flag) } if (flag == 1) - { // žs + { // 倱æ if (sd2 != NULL) clif_party_inviteack (sd2, sd->status.name, 0); return 0; } - // ¬÷ + // æå sd->party_sended = 0; sd->status.party_id = party_id; if (sd2 != NULL) clif_party_inviteack (sd2, sd->status.name, 2); - // ¢¿š€£mF + // ãã¡ãã競åç¢ºèª party_check_conflict (sd); party_send_xy_clear (p); @@ -384,7 +384,7 @@ int party_member_added (int party_id, int account_id, int flag) return 0; } -// p[eBŒv +// ããŒãã£é€åèŠæ± int party_removemember (struct map_session_data *sd, int account_id, char *name) { @@ -397,14 +397,14 @@ int party_removemember (struct map_session_data *sd, int account_id, return 0; for (i = 0; i < MAX_PARTY; i++) - { // [_[©Ç€©`FbN + { // ãªãŒããŒãã©ãããã§ã㯠if (p->member[i].account_id == sd->status.account_id) if (p->member[i].leader == 0) return 0; } for (i = 0; i < MAX_PARTY; i++) - { // ®µÄ¢é©²×é + { // æå±ããŠããã調ã¹ã if (p->member[i].account_id == account_id) { intif_party_leave (p->party_id, account_id); @@ -414,7 +414,7 @@ int party_removemember (struct map_session_data *sd, int account_id, return 0; } -// p[eBEÞv +// ããŒãã£è±éèŠæ± int party_leave (struct map_session_data *sd) { struct party *p; @@ -426,7 +426,7 @@ int party_leave (struct map_session_data *sd) return 0; for (i = 0; i < MAX_PARTY; i++) - { // ®µÄ¢é© + { // æå±ããŠããã if (p->member[i].account_id == sd->status.account_id) { intif_party_leave (p->party_id, sd->status.account_id); @@ -436,7 +436,7 @@ int party_leave (struct map_session_data *sd) return 0; } -// p[eBoªEÞµœ +// ããŒãã£ã¡ã³ããè±éãã int party_member_leaved (int party_id, int account_id, char *name) { struct map_session_data *sd = map_id2sd (account_id); @@ -460,7 +460,7 @@ int party_member_leaved (int party_id, int account_id, char *name) return 0; } -// p[eBðUÊm +// ããŒãã£è§£æ£éç¥ int party_broken (int party_id) { struct party *p; @@ -483,7 +483,7 @@ int party_broken (int party_id) return 0; } -// p[eBÌÝèÏXv +// ããŒãã£ã®èšå®å€æŽèŠæ± int party_changeoption (struct map_session_data *sd, int exp, int item) { struct party *p; @@ -498,7 +498,7 @@ int party_changeoption (struct map_session_data *sd, int exp, int item) return 0; } -// p[eBÌÝèÏXÊm +// ããŒãã£ã®èšå®å€æŽéç¥ int party_optionchanged (int party_id, int account_id, int exp, int item, int flag) { @@ -515,7 +515,7 @@ int party_optionchanged (int party_id, int account_id, int exp, int item, return 0; } -// p[eBoÌÚ®Êm +// ããŒãã£ã¡ã³ãã®ç§»åéç¥ int party_recv_movemap (int party_id, int account_id, char *map, int online, int lv) { @@ -548,19 +548,19 @@ int party_recv_movemap (int party_id, int account_id, char *map, int online, } for (i = 0; i < MAX_PARTY; i++) - { // sdÄÝè + { // sdåèšå® struct map_session_data *sd = map_id2sd (p->member[i].account_id); p->member[i].sd = (sd != NULL && sd->status.party_id == p->party_id) ? sd : NULL; } - party_send_xy_clear (p); // ÀWÄÊmv¿ + party_send_xy_clear (p); // 座æšåéç¥èŠè« clif_party_info (p, -1); return 0; } -// p[eBoÌÚ® +// ããŒãã£ã¡ã³ãã®ç§»å int party_send_movemap (struct map_session_data *sd) { struct party *p; @@ -571,16 +571,16 @@ int party_send_movemap (struct map_session_data *sd) return 0; intif_party_changemap (sd, 1); - if (sd->party_sended != 0) // à€p[eBf[^ÍMÏÝ + if (sd->party_sended != 0) // ããããŒãã£ããŒã¿ã¯éä¿¡æžã¿ return 0; - // £mF + // 競åç¢ºèª party_check_conflict (sd); - // éÈçp[eBîñM + // ãããªãããŒãã£æ
å ±éä¿¡ if ((p = party_search (sd->status.party_id)) != NULL) { - party_check_member (p); // ®ðmF·é + party_check_member (p); // æå±ã確èªãã if (sd->status.party_id == p->party_id) { clif_party_info (p, sd->fd); @@ -592,7 +592,7 @@ int party_send_movemap (struct map_session_data *sd) return 0; } -// p[eBoÌOAEg +// ããŒãã£ã¡ã³ãã®ãã°ã¢ãŠã int party_send_logout (struct map_session_data *sd) { struct party *p; @@ -602,7 +602,7 @@ int party_send_logout (struct map_session_data *sd) if (sd->status.party_id > 0) intif_party_changemap (sd, 0); - // sdª³øÉÈéÌÅp[eBîñ©çí + // sdãç¡å¹ã«ãªãã®ã§ããŒãã£æ
å ±ããåé€ if ((p = party_search (sd->status.party_id)) != NULL) { int i; @@ -614,7 +614,7 @@ int party_send_logout (struct map_session_data *sd) return 0; } -// p[eBbZ[WM +// ããŒãã£ã¡ãã»ãŒãžéä¿¡ int party_send_message (struct map_session_data *sd, char *mes, int len) { if (sd->status.party_id == 0) @@ -624,7 +624,7 @@ int party_send_message (struct map_session_data *sd, char *mes, int len) return 0; } -// p[eBbZ[WóM +// ããŒãã£ã¡ãã»ãŒãžåä¿¡ int party_recv_message (int party_id, int account_id, char *mes, int len) { struct party *p; @@ -634,7 +634,7 @@ int party_recv_message (int party_id, int account_id, char *mes, int len) return 0; } -// p[eB£mF +// ããŒãã£ç«¶åç¢ºèª int party_check_conflict (struct map_session_data *sd) { nullpo_retr (0, sd); @@ -644,7 +644,7 @@ int party_check_conflict (struct map_session_data *sd) return 0; } -// ÊuâgoÊmp +// äœçœ®ãéç¥çš int party_send_xyhp_timer_sub (void *key, void *data, va_list ap) { struct party *p = (struct party *) data; @@ -657,14 +657,14 @@ int party_send_xyhp_timer_sub (void *key, void *data, va_list ap) struct map_session_data *sd; if ((sd = p->member[i].sd) != NULL) { - // ÀWÊm + // 座æšéç¥ if (sd->party_x != sd->bl.x || sd->party_y != sd->bl.y) { clif_party_xy (p, sd); sd->party_x = sd->bl.x; sd->party_y = sd->bl.y; } - // goÊm + // éç¥ if (sd->party_hp != sd->status.hp) { clif_party_hp (p, sd); @@ -676,14 +676,14 @@ int party_send_xyhp_timer_sub (void *key, void *data, va_list ap) return 0; } -// ÊuâgoÊm +// äœçœ®ãéç¥ int party_send_xyhp_timer (int tid, unsigned int tick, int id, int data) { numdb_foreach (party_db, party_send_xyhp_timer_sub, tick); return 0; } -// ÊuÊmNA +// äœçœ®éç¥ã¯ãªã¢ int party_send_xy_clear (struct party *p) { int i; @@ -703,7 +703,7 @@ int party_send_xy_clear (struct party *p) return 0; } -// HPÊmÌKv«žpimap_foreachinmovearea©çÄÎêéj +// HPéç¥ã®å¿
èŠæ§æ€æ»çšïŒmap_foreachinmoveareaããåŒã°ããïŒ int party_send_hp_check (struct block_list *bl, va_list ap) { int party_id; @@ -725,7 +725,7 @@ int party_send_hp_check (struct block_list *bl, va_list ap) return 0; } -// o±löœªz +// çµéšå€å
¬å¹³åé
int party_exp_share (struct party *p, int map, int base_exp, int job_exp) { struct map_session_data *sd; @@ -744,9 +744,9 @@ int party_exp_share (struct party *p, int map, int base_exp, int job_exp) return 0; } -// ¯¶}bvÌp[eBo[SÌÉð©¯é -// type==0 ¯¶}bv -// !=0 æÊà +// åããããã®ããŒãã£ã¡ã³ããŒå
šäœã«åŠçãããã +// type==0 åãããã +// !=0 ç»é¢å
void party_foreachsamemap (int (*func) (struct block_list *, va_list), struct map_session_data *sd, int type, ...) { @@ -784,13 +784,13 @@ void party_foreachsamemap (int (*func) (struct block_list *, va_list), } } - map_freeblock_lock (); // ©çÌðúðÖ~·é + map_freeblock_lock (); // ã¡ã¢ãªããã®è§£æŸãçŠæ¢ãã for (i = 0; i < blockcount; i++) - if (list[i]->prev) // Lø©Ç€©`FbN + if (list[i]->prev) // æå¹ãã©ãããã§ã㯠func (list[i], ap); - map_freeblock_unlock (); // ðúð·é + map_freeblock_unlock (); // 解æŸãèš±å¯ãã va_end (ap); } diff --git a/src/map/path.c b/src/map/path.c index a6e7535..93ce960 100644 --- a/src/map/path.c +++ b/src/map/path.c @@ -22,7 +22,7 @@ struct tmp_path #define calc_index(x,y) (((x)+(y)*MAX_WALKPATH) & (MAX_WALKPATH*MAX_WALKPATH-1)) /*========================================== - * oHTõâheap push + * çµè·¯æ¢çŽ¢è£å©heap push *------------------------------------------ */ static void push_heap_path (int *heap, struct tmp_path *tp, int index) @@ -44,8 +44,8 @@ static void push_heap_path (int *heap, struct tmp_path *tp, int index) } /*========================================== - * oHTõâheap update - * costªžÁœÌŪÌûÖÚ® + * çµè·¯æ¢çŽ¢è£å©heap update + * costãæžã£ãã®ã§æ ¹ã®æ¹ãžç§»å *------------------------------------------ */ static void update_heap_path (int *heap, struct tmp_path *tp, int index) @@ -70,7 +70,7 @@ static void update_heap_path (int *heap, struct tmp_path *tp, int index) } /*========================================== - * oHTõâheap pop + * çµè·¯æ¢çŽ¢è£å©heap pop *------------------------------------------ */ static int pop_heap_path (int *heap, struct tmp_path *tp) @@ -105,7 +105,7 @@ static int pop_heap_path (int *heap, struct tmp_path *tp) } /*========================================== - * »ÝÌ_ÌcostvZ + * çŸåšã®ç¹ã®costèšç® *------------------------------------------ */ static int calc_cost (struct tmp_path *p, int x1, int y1) @@ -124,7 +124,7 @@ static int calc_cost (struct tmp_path *p, int x1, int y1) } /*========================================== - * KvÈçpathðÇÁ/C³·é + * å¿
èŠãªãpathãè¿œå /ä¿®æ£ãã *------------------------------------------ */ static int add_path (int *heap, struct tmp_path *tp, int x, int y, int dist, @@ -170,8 +170,8 @@ static int add_path (int *heap, struct tmp_path *tp, int x, int y, int dist, } /*========================================== - * (x,y)ªÚ®sÂ\nÑ©Ç€© - * flag 0x10000 £U»è + * (x,y)ã移åäžå¯èœå°åž¯ãã©ãã + * flag 0x10000 é è·é¢æ»æå€å® *------------------------------------------ */ static int can_place (struct map_data *m, int x, int y, int flag) @@ -190,7 +190,7 @@ static int can_place (struct map_data *m, int x, int y, int flag) } /*========================================== - * (x0,y0)©ç(x1,y1)Ö1àÅÚ®Â\©vZ + * (x0,y0)ãã(x1,y1)ãž1æ©ã§ç§»åå¯èœãèšç® *------------------------------------------ */ static int can_move (struct map_data *m, int x0, int y0, int x1, int y1, @@ -214,8 +214,8 @@ static int can_move (struct map_data *m, int x0, int y0, int x1, int y1, } /*========================================== - * (x0,y0)©ç(dx,dy)ûüÖcountZª - * «òεœ ÆÌÀWðŸ + * (x0,y0)ãã(dx,dy)æ¹åãžcountã»ã«å + * å¹ãé£ã°ããããšã®åº§æšãæåŸ *------------------------------------------ */ int path_blownpos (int m, int x0, int y0, int dx, int dy, int count) @@ -227,7 +227,7 @@ int path_blownpos (int m, int x0, int y0, int dx, int dy, int count) md = &map[m]; if (count > 15) - { // Åå10}XɧÀ + { // æ倧10ãã¹ã«å¶é if (battle_config.error_log) printf ("path_blownpos: count too many %d !\n", count); count = 15; @@ -265,7 +265,7 @@ int path_blownpos (int m, int x0, int y0, int dx, int dy, int count) } /*========================================== - * pathTõ (x0,y0)->(x1,y1) + * pathæ¢çŽ¢ (x0,y0)->(x1,y1) *------------------------------------------ */ int path_search (struct walkpath_data *wpd, int m, int x0, int y0, int x1, @@ -408,7 +408,7 @@ char gat[64][64] = { struct map_data map[1]; /*========================================== - * oHTõ[`PÌeXgpmainÖ + * çµè·¯æ¢çŽ¢ã«ãŒãã³åäœãã¹ãçšmainé¢æ° *------------------------------------------ */ void main (int argc, char *argv[]) diff --git a/src/map/pc.h b/src/map/pc.h index ec5afb9..20ae26e 100644 --- a/src/map/pc.h +++ b/src/map/pc.h @@ -182,12 +182,12 @@ void pc_cleanup (struct map_session_data *sd); // [Fate] Clean up after a logge struct pc_base_job { - int job; //EÆAœŸµ]¶Eâ{qEÌêͳÌEÆðÔ·(pvšv) - int type; //mr 0, êE 1, ñE 2, Xpmr 3 - int upper; //Êí 0, ]¶ 1, {q 2 + int job; //è·æ¥ããã ã転çè·ãé€åè·ã®å Žåã¯å
ã®è·æ¥ãè¿ã(å»ããªâããª) + int type; //ãã 0, äžæ¬¡è· 1, äºæ¬¡è· 2, ã¹ããã 3 + int upper; //éåžž 0, 転ç 1, é€å 2 }; -struct pc_base_job pc_calc_base_job (int b_class); //]¶â{qE̳ÌEÆðÔ· +struct pc_base_job pc_calc_base_job (int b_class); //転çãé€åè·ã®å
ã®è·æ¥ãè¿ã int pc_read_gm_account (int fd); int pc_setinvincibletimer (struct map_session_data *sd, int); diff --git a/src/map/skill.h b/src/map/skill.h index 2361f87..08f2e18 100644 --- a/src/map/skill.h +++ b/src/map/skill.h @@ -14,7 +14,7 @@ #define SKILL_POOL_ACTIVE 0x2 // is an active pool skill #define SKILL_POOL_ACTIVATED 0x4 // pool skill has been activated (used for clif) -// XLf[^x[X +// ã¹ãã«ããŒã¿ããŒã¹ struct skill_db { int range[MAX_SKILL_LEVEL], hit, inf, pl, nk, max, stat, poolflags, max_raise; // `max' is the global max, `max_raise' is the maximum attainable via skill-ups @@ -48,7 +48,7 @@ struct skill_unit_group; int do_init_skill (void); -// XLf[^x[XÖÌANZT +// ã¹ãã«ããŒã¿ããŒã¹ãžã®ã¢ã¯ã»ãµ int skill_get_hit (int id); int skill_get_inf (int id); int skill_get_pl (int id); @@ -72,7 +72,7 @@ int skill_get_inf2 (int id); int skill_get_maxcount (int id); int skill_get_blewcount (int id, int lv); -// XLÌgp +// ã¹ãã«ã®äœ¿çš int skill_use_id (struct map_session_data *sd, int target_id, int skill_num, int skill_lv); int skill_use_pos (struct map_session_data *sd, @@ -86,12 +86,12 @@ int skill_addtimerskill (struct block_list *src, unsigned int tick, int target, int x, int y, int skill_id, int skill_lv, int type, int flag); -// ÇÁøÊ +// è¿œå å¹æ int skill_additional_effect (struct block_list *src, struct block_list *bl, int skillid, int skilllv, int attack_type, unsigned int tick); -// jbgXL +// ãŠãããã¹ãã« struct skill_unit *skill_initunit (struct skill_unit_group *group, int idx, int x, int y); int skill_delunit (struct skill_unit *unit); @@ -123,7 +123,7 @@ int skill_unit_move_unit_group (struct skill_unit_group *group, int m, struct skill_unit_group *skill_check_dancing (struct block_list *src); void skill_stop_dancing (struct block_list *src, int flag); -// r¥LZ +// è© å±ãã£ã³ã»ã« int skill_castcancel (struct block_list *bl, int type); int skill_gangsterparadise (struct map_session_data *sd, int type); @@ -138,11 +138,11 @@ void skill_devotion_end (struct map_session_data *md, #define skill_calc_heal(bl,skill_lv) (( battle_get_lv(bl)+battle_get_int(bl) )/8 *(4+ skill_lv*8)) -// »ÌŒ +// ãã®ä» int skill_check_cloaking (struct block_list *bl); int skill_is_danceskill (int id); -// Xe[^XÙí +// ã¹ããŒã¿ã¹ç°åžž int skill_status_effect (struct block_list *bl, int type, int val1, int val2, int val3, int val4, int tick, int flag, int spell_invocation); @@ -155,7 +155,7 @@ int skill_encchant_eremental_end (struct block_list *bl, int type); int skill_status_change_end (struct block_list *bl, int type, int tid); int skill_status_change_clear (struct block_list *bl, int type); -// mobXLÌœß +// mobã¹ãã«ã®ãã int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, int skillid, int skilllv, unsigned int tick, int flag); @@ -165,7 +165,7 @@ int skill_castend_damage_id (struct block_list *src, struct block_list *bl, int skill_castend_pos2 (struct block_list *src, int x, int y, int skillid, int skilllv, unsigned int tick, int flag); -// XLUê +// ã¹ãã«æ»æäžæ¬åŠç int skill_attack (int attack_type, struct block_list *src, struct block_list *dsrc, struct block_list *bl, int skillid, int skilllv, unsigned int tick, int flag); @@ -182,7 +182,7 @@ enum }; enum -{ // struct map_session_data Ì status_changeÌÔe[u +{ // struct map_session_data ã® status_changeã®çªå·ããŒãã« SC_SENDMAX = 256, SC_PROVOKE = 0, SC_ENDURE = 1, diff --git a/src/map/storage.c b/src/map/storage.c index 9a3f366..84dedb3 100644 --- a/src/map/storage.c +++ b/src/map/storage.c @@ -23,7 +23,7 @@ static struct dbt *storage_db; static struct dbt *guild_storage_db; /*========================================== - * qÉàACe\[g + * å庫å
ã¢ã€ãã ãœãŒã *------------------------------------------ */ int storage_comp_item (const void *_i1, const void *_i2) @@ -69,10 +69,10 @@ void sortage_gsortitem (struct guild_storage *gstor) } /*========================================== - * ú»Æ© + * åæåãšã *------------------------------------------ */ -int do_init_storage (void) // map.c::do_init()©çÄÎêé +int do_init_storage (void) // map.c::do_init()ããåŒã°ãã { storage_db = numdb_init (); guild_storage_db = numdb_init (); @@ -144,7 +144,7 @@ int storage_delete (int account_id) } /*========================================== - * JvqÉðJ + * ã«ãã©å庫ãéã *------------------------------------------ */ int storage_storageopen (struct map_session_data *sd) diff --git a/src/map/trade.c b/src/map/trade.c index 40a762b..664d2fa 100644 --- a/src/map/trade.c +++ b/src/map/trade.c @@ -12,7 +12,7 @@ #include "nullpo.h" /*========================================== - * æøv¿ðèÉé + * ååŒèŠè«ãçžæã«éã *------------------------------------------ */ void trade_traderequest (struct map_session_data *sd, int target_id) @@ -27,7 +27,7 @@ void trade_traderequest (struct map_session_data *sd, int target_id) { if (target_sd->guild_invite > 0 || target_sd->party_invite > 0) { - clif_tradestart (sd, 2); // èÍPTv¿©Guildv¿ + clif_tradestart (sd, 2); // çžæã¯PTèŠè«äžãGuildèŠè«äž return; } } @@ -66,7 +66,7 @@ void trade_traderequest (struct map_session_data *sd, int target_id) } /*========================================== - * æøv¿ + * ååŒèŠè« *------------------------------------------ */ void trade_tradeack (struct map_session_data *sd, int type) @@ -99,7 +99,7 @@ void trade_tradeack (struct map_session_data *sd, int type) } /*========================================== - * ACeÇÁ + * ã¢ã€ãã è¿œå *------------------------------------------ */ void trade_tradeadditem (struct map_session_data *sd, int index, int amount) @@ -222,7 +222,7 @@ void trade_tradeadditem (struct map_session_data *sd, int index, int amount) } /*========================================== - * ACeÇÁ®¹(okµ) + * ã¢ã€ãã è¿œå å®äº(okæŒã) *------------------------------------------ */ void trade_tradeok (struct map_session_data *sd) @@ -254,7 +254,7 @@ void trade_tradeok (struct map_session_data *sd) } /*========================================== - * æøLZ + * ååŒãã£ã³ã»ã« *------------------------------------------ */ void trade_tradecancel (struct map_session_data *sd) @@ -306,7 +306,7 @@ void trade_tradecancel (struct map_session_data *sd) #define MAP_LOG_PC(sd, fmt, args...) MAP_LOG("PC%d %d:%d,%d " fmt, sd->status.char_id, sd->bl.m, sd->bl.x, sd->bl.y, ## args) /*========================================== - * æøø(tradeµ) + * ååŒèš±è«Ÿ(tradeæŒã) *------------------------------------------ */ void trade_tradecommit (struct map_session_data *sd) diff --git a/src/tool/backup b/src/tool/backup index 939c7ee..bde63b5 100644 --- a/src/tool/backup +++ b/src/tool/backup @@ -1,47 +1,47 @@ #!/usr/bin/perl ########################################################################## -# Athenapf[^obNAbvc[ +# AthenaçšããŒã¿ããã¯ã¢ããããŒã« # -# @AthenaÌeíf[^t@C*.txtðobNAbv·éc[ +# ãAthenaã®åçš®ããŒã¿ãã¡ã€ã«*.txtãããã¯ã¢ããããããŒã« # #------------------------------------------------------------------------- -# Ýèû@ -# @Às·éÌJgtH_©çÌf[^ÖÌpXAt@CÌXgð -# @³µÝèµÜ·BobNAbvæÌtH_Í©®ì¬³êÈ¢ÌÅA -# @©ªÅ쬵ĚKvª èÜ·B -# @tH_ÌÅãÌu/vÍȪūܹñB +# èšå®æ¹æ³ +# ãå®è¡ããæã®ã«ã¬ã³ããã©ã«ãããã®ããŒã¿ãžã®ãã¹ããã¡ã€ã«ã®ãªã¹ãã +# ãæ£ããèšå®ããŸããããã¯ã¢ããå
ã®ãã©ã«ãã¯èªåäœæãããªãã®ã§ã +# ãèªåã§äœæããŠããå¿
èŠããããŸãã +# ããã©ã«ãã®æåŸã®ã/ãã¯çç¥ã§ããŸããã # -# @tH_ÍøÅàwèÅ«Ü·Bá./backup ../save/ ./backup_data/ -# @tH_ÌÅãÌu/vÍȪūܹñB +# ããã©ã«ãã¯åŒæ°ã§ãæå®ã§ããŸããäŸïŒ./backup ../save/ ./backup_data/ +# ããã©ã«ãã®æåŸã®ã/ãã¯çç¥ã§ããŸããã # -# @Às·éÆobNAbvæÌtH_ÖAt@CŒÉ»ÝÌútÆð -# @¯Ät@CðRs[µÜ·B +# ãå®è¡ãããšããã¯ã¢ããå
ã®ãã©ã«ããžããã¡ã€ã«åã«çŸåšã®æ¥ä»ãšæå»ã +# ãã€ããŠãã¡ã€ã«ãã³ããŒããŸãã # -# * tooltH_àÉbackup_datatH_ð쬵A -# @ athena.shÌÉu./tool/backup ./save/ ./tool/backup_data/v -# Æ¢€sðÇÁ·éÆAathenaðN®·éœÑÉobNAbvªæêÜ· +# * toolãã©ã«ãå
ã«backup_dataãã©ã«ããäœæãã +# ã athena.shã®äžã«ã./tool/backup ./save/ ./tool/backup_data/ã +# ãšããè¡ãè¿œå ãããšãathenaãèµ·åãããã³ã«ããã¯ã¢ãããåããŸã # -# ³·éÆ«ÍøÉu-r útÆvðwèµÜ·B -# @Üœ»ÌãëÉtH_ðwè·é±ÆàoÜ· -# @áP ./backup -r 200309191607 -# @áQ ./backup -r 200309191607 ../save ./backup_data/ -# @±ÌáÅÍ2003/09/19Ì16:07ªÉobNAbvµœf[^ð³µÄ¢Ü· +# 埩å
ãããšãã¯åŒæ°ã«ã-r æ¥ä»ãšæå»ããæå®ããŸãã +# ããŸããã®åŸãã«ãã©ã«ããæå®ããããšãåºæ¥ãŸã +# ãäŸïŒïŒ ./backup -r 200309191607 +# ãäŸïŒïŒ ./backup -r 200309191607 ../save ./backup_data/ +# ããã®äŸã§ã¯2003/09/19ã®16:07åã«ããã¯ã¢ããããããŒã¿ã埩å
ããŠããŸã # -# @³·éÆ«AAthenafBNgÉ éf[^Í *.bak ÉŒOðÏXµÄ -# @cµÄ¢éÌÅA¢çÈ¢êÍ rm *.bak ÈÇÅÁµÄŸ³¢B +# ã埩å
ãããšããAthenaãã£ã¬ã¯ããªã«ããããŒã¿ã¯ *.bak ã«ååãå€æŽã㊠+# ãæ®ããŠããã®ã§ããããªãå Žå㯠rm *.bak ãªã©ã§æ¶ããŠãã ããã # ########################################################################## -$sdir="../save/"; #obNAbv³(AthenaÌfBNg/save/) -$tdir="./backup_data/"; #obNAbvæ +$sdir="../save/"; #ããã¯ã¢ããå
(Athenaã®ãã£ã¬ã¯ããª/save/) +$tdir="./backup_data/"; #ããã¯ã¢ããå
-@files=( #t@CÌXg +@files=( #ãã¡ã€ã«ã®ãªã¹ã "account","athena","storage","party","guild","castle","pet" ); -#-------------------------------Ýè±±ÜÅ----------------------------- +#-------------------------------èšå®ãããŸã§----------------------------- @@ -54,7 +54,7 @@ $tdir="./backup_data/"; #obNAbvæ if($ARGV[0]=~/^\-r$/i || $ARGV[0]=~/\-\-(recover|restore)/i){ - #³ + #埩å
åŠç $file=$ARGV[1]; $sdir=$ARGV[2]||$sdir; @@ -63,7 +63,7 @@ if($ARGV[0]=~/^\-r$/i || $ARGV[0]=~/\-\-(recover|restore)/i){ exit(0); } -#obNAbv +#ããã¯ã¢ããåŠç $sdir=$ARGV[0]||$sdir; $tdir=$ARGV[1]||$tdir; diff --git a/src/tool/cgi/addaccount.cgi b/src/tool/cgi/addaccount.cgi index 7d1788c..009f30f 100644 --- a/src/tool/cgi/addaccount.cgi +++ b/src/tool/cgi/addaccount.cgi @@ -2,35 +2,35 @@ #========================================================================= # addaccount.cgi ver.1.00 -# ladminðbvµœAAJEgð쬷éCGIB -# ladmin ver.1.04ÅÌ®ìðmFB +# ladminãã©ãããããã¢ã«ãŠã³ããäœæããCGIã +# ladmin ver.1.04ã§ã®åäœã確èªã # -# ** Ýèû@ ** +# ** èšå®æ¹æ³ ** # -# - ºÌ$ladminÏÉladminÖÌpXðÝè·é±ÆB -# - UNIXnOSÅgp·éêÍladminÆ€ÉüsR[hðÏ··é±ÆAÜœ -# t@Cæªsðperl̳µ¢pXÉ·é±ÆBá> $ which perl -# - T[o[vOâuEUÉæÁÄÍ $cgiuri ɱÌt@CÖÌ -# ®SÈURIðZbgµÈ¯êÎÈçÈ¢êà éB -# - perlÉpXªÊÁĢȢêÍ $perl ðperlÖ̳µ¢pXÉ·é±ÆB -# - ŒÍÊÌCGIƯ¶Å·BiÀs âcgi-bintH_ÈÇj +# - äžã®$ladminå€æ°ã«ladminãžã®ãã¹ãèšå®ããããšã +# - UNIXç³»OSã§äœ¿çšããå Žåã¯ladminãšå
±ã«æ¹è¡ã³ãŒããå€æããããšããŸã +# ãã¡ã€ã«å
é è¡ãperlã®æ£ãããã¹ã«ããããšãäŸ> $ which perl +# - ãµãŒããŒããã°ã©ã ããã©ãŠã¶ã«ãã£ãŠã¯ $cgiuri ã«ãã®ãã¡ã€ã«ãžã® +# å®å
šãªURIãã»ããããªããã°ãªããªãå Žåãããã +# - perlã«ãã¹ãéã£ãŠããªãå Žå㯠$perl ãperlãžã®æ£ãããã¹ã«ããããšã +# - ä»ã¯æ®éã®CGIãšåãã§ããïŒå®è¡æš©ãcgi-binãã©ã«ããªã©ïŒ # -# ** »ÌŒ ** -# addaccount.cgi ðuEUÅJÆTvHTMLi»ÌÜÜgŠÜ·jª -# J«Ü·BÜœA±ÌcgiÍuEU©ççêéAccept-Languageª -# jaÅnÜÁÄ¢êÎbZ[WÌêðú{êÉÏ·µÜ·B -# (IEÈçC^[lbgIvVÌŸêÝèÅêÔãÉú{êðu) -# »êÈOÌêÍpêÌÜÜo͵ܷB +# ** ãã®ä» ** +# addaccount.cgi ããã©ãŠã¶ã§éããšãµã³ãã«HTMLïŒãã®ãŸãŸäœ¿ããŸãïŒã +# éããŸãããŸãããã®cgiã¯ãã©ãŠã¶ããéãããAccept-Languageã +# jaã§å§ãŸã£ãŠããã°ã¡ãã»ãŒãžã®äžéšãæ¥æ¬èªã«å€æããŸãã +# (IEãªãã€ã³ã¿ãŒããããªãã·ã§ã³ã®èšèªèšå®ã§äžçªäžã«æ¥æ¬èªã眮ã) +# ãã以å€ã®å Žåã¯è±èªã®ãŸãŸåºåããŸãã #------------------------------------------------------------------------- -my($ladmin) = "../ladmin"; # ladminÌpX(š»çÏXªKv) +my($ladmin) = "../ladmin"; # ladminã®ãã¹(ããããå€æŽãå¿
èŠ) -my($cgiuri) = "./addaccount.cgi"; # ±Ìt@CÌURI -my($perl) = "perl"; # perlÌR}hŒ +my($cgiuri) = "./addaccount.cgi"; # ãã®ãã¡ã€ã«ã®URI +my($perl) = "perl"; # perlã®ã³ãã³ãå -#--------------------------- Ýè±±ÜÅ -------------------------------- +#--------------------------- èšå®ãããŸã§ -------------------------------- @@ -46,47 +46,47 @@ my(%langconv)=( 'logged on.*' => '', ); -# ----- ú{ê«ÈçÏ·e[uðZbg ----- +# ----- æ¥æ¬èªç°å¢ãªãå€æããŒãã«ãã»ãã ----- if($ENV{'HTTP_ACCEPT_LANGUAGE'}=~/^ja/){ my(%tmp)=( 'Account \[(.+)\] is successfully created.*' - => 'AJEg "$1" ð쬵ܵœ.', + => 'ã¢ã«ãŠã³ã "$1" ãäœæããŸãã.', 'Account \[(.+)\] creation failed\. same account exists.*' - => 'AJEg "$1" Íùɶݵܷ.', + => 'ã¢ã«ãŠã³ã "$1" ã¯æ¢ã«ååšããŸã.', 'Illeagal charactor found in UserID.*' - => 'IDÌÉs³È¶ª èÜ·.', + => 'IDã®äžã«äžæ£ãªæåããããŸã.', 'Illeagal charactor found in Password.*' - => 'PasswordÌÉs³È¶ª èÜ·.', + => 'Passwordã®äžã«äžæ£ãªæåããããŸã.', 'input UserID 4-24 bytes.' - => 'IDÍŒp4`24¶Åü͵ğ³¢.', + => 'IDã¯åè§4ã24æåã§å
¥åããŠãã ãã.', 'input Password 4-24 bytes.' - => 'PasswordÍŒp4`24¶Åü͵ğ³¢.', + => 'Passwordã¯åè§4ã24æåã§å
¥åããŠãã ãã.', 'Illeagal gender.*' - => '«Êªš©µ¢Å·.', + => 'æ§å¥ãããããã§ã.', 'Cant connect to login server.*' - => 'OCT[o[Éڱūܹñ.', + => 'ãã°ã€ã³ãµãŒããŒã«æ¥ç¶ã§ããŸãã.', 'login error.*' - => 'OCT[o[ÖÌÇÒ ÀOCÉžsµÜµœ', + => 'ãã°ã€ã³ãµãŒããŒãžã®ç®¡çè
æš©éãã°ã€ã³ã«å€±æããŸãã', "Can't execute ladmin.*" - => 'ladminÌÀsÉžsµÜµœ', + => 'ladminã®å®è¡ã«å€±æããŸãã', 'UserID "(.+)" is already used.*' - => 'ID "$1" ÍùÉgp³êĢܷ.', + => 'ID "$1" ã¯æ¢ã«äœ¿çšãããŠããŸã.', 'You can use UserID \"(.+)\".*' - => 'ID "$1" ÍgpÂ\Å·.', + => 'ID "$1" ã¯äœ¿çšå¯èœã§ã.', - 'account making' =>'AJEgì¬', - '\>UserID' =>'>hc', - '\>Password' =>'>pX[h', - '\>Gender' =>'>«Ê', - '\>Male' =>'>j«', - '\>Female' =>'>«', - '\"Make Account\"' =>'"AJEgì¬"', - '\"Check UserID\"' =>'"IDÌ`FbN"', + 'account making' =>'ã¢ã«ãŠã³ãäœæ', + '\>UserID' =>'>', + '\>Password' =>'>ãã¹ã¯ãŒã', + '\>Gender' =>'>æ§å¥', + '\>Male' =>'>ç·æ§', + '\>Female' =>'>女æ§', + '\"Make Account\"' =>'"ã¢ã«ãŠã³ãäœæ"', + '\"Check UserID\"' =>'"IDã®ãã§ãã¯"', ); map { $langconv{$_}=$tmp{$_}; } keys (%tmp); } -# ----- ÇÁ ----- +# ----- è¿œå ----- if( $cgi->param("addaccount") ){ my($userid)= $cgi->param("userid"); my($passwd)= $cgi->param("passwd"); @@ -112,7 +112,7 @@ if( $cgi->param("addaccount") ){ close PIPE; HttpMsg(@msg); } -# ----- ¶Ý`FbN ----- +# ----- ååšãã§ã㯠----- elsif( $cgi->param("check") ){ my($userid)= $cgi->param("userid"); if(length($userid)<4 || length($userid)>24){ @@ -133,7 +133,7 @@ elsif( $cgi->param("check") ){ HttpError("ladmin error ?\n---output---\n",@msg); } -# ----- tH[ ----- +# ----- ãã©ãŒã ----- else{ print LangConv( <<"EOM" ); Content-type: text/html\n diff --git a/src/tool/convert.c b/src/tool/convert.c index 154b154..8436ebb 100644 --- a/src/tool/convert.c +++ b/src/tool/convert.c @@ -164,7 +164,7 @@ int mmo_char_fromstr (char *str, struct mmo_charstatus *p) if (set != 41) return 0; if (str[next] == '\n' || str[next] == '\r') - return 1; // VKf[^ + return 1; // æ°èŠããŒã¿ next++; for (i = 0; str[next] && str[next] != '\t'; i++) { @@ -245,7 +245,7 @@ int mmo_char_fromstr (char *str, struct mmo_charstatus *p) for (i = 0; str[next] && str[next] != '\t' && str[next] != '\n' && str[next] != '\r'; i++) - { //global_regÀÈOÌathena.txtÝ·Ìœßê'\n'`FbN + { //global_regå®è£
以åã®athena.txtäºæã®ããäžå¿'\n'ãã§ã㯠set = sscanf (str + next, "%[^,],%d%n", p->global_reg[i].str, &p->global_reg[i].value, &len); if (set != 2) diff --git a/src/txt-converter/common/mmo.h b/src/txt-converter/common/mmo.h index b9939fd..0295f6b 100644 --- a/src/txt-converter/common/mmo.h +++ b/src/txt-converter/common/mmo.h @@ -6,10 +6,10 @@ #include <time.h> #ifdef CYGWIN -// txtâlogÈÇÌ«o·t@CÌüsR[h -#define RETCODE "\r\n" // (CR/LFFWindowsn) +// txtãlogãªã©ã®æžãåºããã¡ã€ã«ã®æ¹è¡ã³ãŒã +#define RETCODE "\r\n" // (CR/LFïŒWindowsç³») #else -#define RETCODE "\n" // (LFFUnixnj +#define RETCODE "\n" // (LFïŒUnixç³»ïŒ #endif #define FIFOSIZE_SERVERLINK 128*1024 @@ -274,13 +274,13 @@ struct square enum { - GBI_EXP = 1, // MhÌEXP - GBI_GUILDLV = 2, // MhÌLv - GBI_SKILLPOINT = 3, // MhÌXL|Cg - GBI_SKILLLV = 4, // MhXLLv + GBI_EXP = 1, // ã®ã«ãã®EXP + GBI_GUILDLV = 2, // ã®ã«ãã®Lv + GBI_SKILLPOINT = 3, // ã®ã«ãã®ã¹ãã«ãã€ã³ã + GBI_SKILLLV = 4, // ã®ã«ãã¹ãã«Lv - GMI_POSITION = 0, // o[ÌðEÏX - GMI_EXP = 1, // o[ÌEXP + GMI_POSITION = 0, // ã¡ã³ããŒã®åœ¹è·å€æŽ + GMI_EXP = 1, // ã¡ã³ããŒã®EXP }; diff --git a/src/txt-converter/login/login-converter.c b/src/txt-converter/login/login-converter.c index 2836866..477a0cc 100644 --- a/src/txt-converter/login/login-converter.c +++ b/src/txt-converter/login/login-converter.c @@ -204,7 +204,7 @@ int mmo_auth_init (void) return 0; } -// AJEgf??x?XÌ«Ý +// ã¢ã«ãŠã³ãã??ã?ã¹ã®æžã蟌㿠void nowork (void) { //null |