summaryrefslogtreecommitdiff
path: root/src/map/guild.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/guild.c')
-rw-r--r--src/map/guild.c236
1 files changed, 118 insertions, 118 deletions
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;
};
-// ƒMƒ‹ƒh‚ÌEXPƒLƒƒƒbƒVƒ…‚̃tƒ‰ƒbƒVƒ…‚ÉŠÖ˜A‚·‚é’è”
-#define GUILD_PAYEXP_INVERVAL 10000 // ŠÔŠu(ƒLƒƒƒbƒVƒ…‚Ìő嶑¶ŽžŠÔAƒ~ƒŠ•b)
-#define GUILD_PAYEXP_LIST 8192 // ƒLƒƒƒbƒVƒ…‚ÌÅ‘å”
+// ギルドã®EXPキャッシュã®ãƒ•ãƒ©ãƒƒã‚·ãƒ¥ã«é–¢é€£ã™ã‚‹å®šæ•°
+#define GUILD_PAYEXP_INVERVAL 10000 // é–“éš”(キャッシュã®æœ€å¤§ç”Ÿå­˜æ™‚é–“ã€ãƒŸãƒªç§’)
+#define GUILD_PAYEXP_LIST 8192 // キャッシュã®æœ€å¤§æ•°
-// ƒMƒ‹ƒh‚ÌEXPƒLƒƒƒbƒVƒ…
+// ギルドã®EXPキャッシュ
struct guild_expcache
{
int guild_id, account_id, char_id, exp;
};
-// ƒMƒ‹ƒhƒXƒLƒ‹db‚̃AƒNƒZƒTi¡‚Í’¼‘Å‚¿‚Å‘ã—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;
}
-// ƒMƒ‹ƒhƒXƒLƒ‹‚ª‚ ‚é‚©Šm”F
+// ギルドスキルãŒã‚ã‚‹ã‹ç¢ºèª
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;
}
-// ƒMƒ‹ƒh–¼ŒŸõ
+// ギルドå検索
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‚ɑΉž‚µ‚½ƒAƒWƒg‚Ì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;
}
-// ƒƒOƒCƒ“’†‚̃Mƒ‹ƒhƒƒ“ƒo[‚Ì‚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;
}
-// ƒMƒ‹ƒhƒƒ“ƒo[‚̃Cƒ“ƒfƒbƒNƒX‚ð•Ô‚·
+// ギルドメンãƒãƒ¼ã®ã‚¤ãƒ³ãƒ‡ãƒƒã‚¯ã‚¹ã‚’è¿”ã™
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;
}
-// ƒMƒ‹ƒhƒƒ“ƒo[‚Ì–ð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;
}
-// ƒMƒ‹ƒh‹£‡Šm”F
+// ギルド競åˆç¢ºèª
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;
}
-// ƒMƒ‹ƒh‚ÌEXPƒLƒƒƒbƒVƒ…‚ðinterŽI‚Ƀtƒ‰ƒbƒVƒ…‚·‚é
+// ギルドã®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);
}
-// ƒCƒxƒ“ƒg•t‚«î•ñ—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ƒƒƒ‰‚ÌŠm”F
+// 所属キャラã®ç¢ºèª
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;
- // ʼn‚̃[ƒh‚Ȃ̂ц[ƒU[‚̃`ƒFƒbƒN‚ð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”‚ÌŠm”F
+ { // 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); // ƒGƒ“ƒuƒŒƒ€‘—M
+ 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); // ƒXƒLƒ‹î•ñ‘—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)
}
}
- // ƒCƒxƒ“ƒg‚Ì”­¶
+ // イベントã®ç™ºç”Ÿ
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;
}
-// ƒMƒ‹ƒh‚Ö‚ÌŠ©—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)
- { // ‘ŠŽè‚ÌŠ‘®Šm”F
+ { // 相手ã®æ‰€å±žç¢ºèª
clif_guild_inviteack (sd, 0);
return 0;
}
- // ’èˆõŠm”F
+ // 定員確èª
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;
}
-// ƒMƒ‹ƒhŠ©—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‚ƃMƒ‹ƒhID‚ªˆá‚¤
+ if (sd->guild_invite != guild_id) // 勧誘ã¨ã‚®ãƒ«ãƒ‰IDãŒé•ã†
return 0;
if (flag == 1)
- { // ³‘ø
+ { // 承諾
struct guild_member m;
struct guild *g;
int i;
- // ’èˆõŠm”F
+ // 定員確èª
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;
}
- //interŽI‚֒ljÁ—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;
}
-// ƒMƒ‹ƒhƒƒ“ƒo‚ª’ljÁ‚³‚ꂽ
+// ギルドメンãƒãŒè¿½åŠ ã•ã‚ŒãŸ
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);
- // ‚¢‚¿‚¨‚¤‹£‡Šm”F
+ // ã„ã¡ãŠã†ç«¶åˆç¢ºèª
guild_check_conflict (sd);
return 0;
}
-// ƒMƒ‹ƒh’E‘Þ—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;
}
-// ƒMƒ‹ƒh’Ç•ú—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;
}
-// ƒMƒ‹ƒhƒƒ“ƒo‚ª’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[ƒŠƒXƒg‚ð‘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;
}
-// ƒMƒ‹ƒhƒƒ“ƒo‚̃Iƒ“ƒ‰ƒCƒ“ó‘Ô/LvXV‘—M
+// ギルドメンãƒã®ã‚ªãƒ³ãƒ©ã‚¤ãƒ³çŠ¶æ…‹/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)
- { // ƒƒOƒAƒEƒg‚·‚é‚È‚çsd‚ðƒNƒŠƒA‚µ‚Ä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) // ƒMƒ‹ƒh‰Šú‘—Mƒf[ƒ^‚Í‘—MÏ‚Ý
+ if (sd->guild_sended != 0) // ギルドåˆæœŸé€ä¿¡ãƒ‡ãƒ¼ã‚¿ã¯é€ä¿¡æ¸ˆã¿
return 0;
- // ‹£‡Šm”F
+ // 競åˆç¢ºèª
guild_check_conflict (sd);
- // ‚ ‚é‚È‚çƒMƒ‹ƒh‰Šú‘—Mƒf[ƒ^‘—M
+ // ã‚ã‚‹ãªã‚‰ã‚®ãƒ«ãƒ‰åˆæœŸé€ä¿¡ãƒ‡ãƒ¼ã‚¿é€ä¿¡
if ((g = guild_search (sd->status.guild_id)) != NULL)
{
- guild_check_member (g); // Š‘®‚ðŠm”F‚·‚é
+ 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;
}
-// ƒMƒ‹ƒhƒƒ“ƒo‚̃Iƒ“ƒ‰ƒCƒ“ó‘Ô/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) // ƒIƒ“ƒ‰ƒCƒ“ó‘Ô‚ª•Ï‚í‚Á‚½‚Ì‚Å’Ê’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;
}
- // ‚±‚±‚ɃNƒ‰ƒCƒAƒ“ƒg‚É‘—Mˆ—‚ª•K—v
+ // ã“ã“ã«ã‚¯ãƒ©ã‚¤ã‚¢ãƒ³ãƒˆã«é€ä¿¡å‡¦ç†ãŒå¿…è¦
return 0;
}
-// ƒMƒ‹ƒh‰ï˜b‘—M
+// ギルド会話é€ä¿¡
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;
}
-// ƒMƒ‹ƒh‰ï˜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;
}
-// ƒMƒ‹ƒhƒƒ“ƒo‚Ì–ð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));
}
-// ƒMƒ‹ƒhƒƒ“ƒo‚Ì–ð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;
}
-// ƒMƒ‹ƒh–ð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);
}
-// ƒMƒ‹ƒh–ð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;
}
-// ƒMƒ‹ƒh’m•Ï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);
}
-// ƒMƒ‹ƒh’m•Ï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;
}
-// ƒMƒ‹ƒhƒGƒ“ƒuƒŒƒ€•Ï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);
}
-// ƒMƒ‹ƒhƒGƒ“ƒuƒŒƒ€•Ï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;
}
-// ƒMƒ‹ƒh‚Ì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;
}
-// ƒXƒLƒ‹ƒ|ƒCƒ“ƒgŠ„‚è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;
}
-// ƒXƒLƒ‹ƒ|ƒCƒ“ƒgŠ„‚è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;
}
-// ƒMƒ‹ƒh“¯–¿”Š“¾
+// ギルドåŒç›Ÿæ•°æ‰€å¾—
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;
}
-// ƒMƒ‹ƒh“¯–¿—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) // “¯–¿”Šm”F
+ 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¿ó‘Ô‚©‚Ç‚¤‚©Šm”F
+ { // 相手ãŒåŒç›Ÿè¦è«‹çŠ¶æ…‹ã‹ã©ã†ã‹ç¢ºèª
clif_guild_allianceack (sd, 1);
return 0;
}
for (i = 0; i < MAX_GUILDALLIANCE; i++)
- { // ‚·‚Å‚É“¯–¿ó‘Ô‚©Šm”F
+ { // ã™ã§ã«åŒç›ŸçŠ¶æ…‹ã‹ç¢ºèª
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;
}
-// ƒMƒ‹ƒhŠ©—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‚ƃMƒ‹ƒhID‚ªˆá‚¤
+ if (sd->guild_alliance != tsd->status.guild_id) // 勧誘ã¨ã‚®ãƒ«ãƒ‰IDãŒé•ã†
return 0;
if (flag == 1)
- { // ³‘ø
+ { // 承諾
int i;
- struct guild *g; // “¯–¿”ÄŠm”F
+ 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);
}
- // interŽI‚Ö“¯–¿—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;
}
-// ƒMƒ‹ƒhŠÖŒ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;
}
-// ƒMƒ‹ƒh“G‘Î
+// ギルド敵対
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‘ΔŠm”F
+ if (guild_get_alliance_count (g, 1) > 3) // 敵対数確èª
clif_guild_oppositionack (sd, 1);
for (i = 0; i < MAX_GUILDALLIANCE; i++)
- { // ‚·‚Å‚ÉŠÖŒW‚ðŽ‚Á‚Ä‚¢‚é‚©Šm”F
+ { // ã™ã§ã«é–¢ä¿‚ã‚’æŒã£ã¦ã„ã‚‹ã‹ç¢ºèª
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*/)
}
}
- // interŽI‚É“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;
}
-// ƒMƒ‹ƒh“¯–¿/“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’ljÁ
+ { // 関係追加
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‘΃ŠƒXƒg‚ÌÄ‘—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;
}
-// ƒMƒ‹ƒh‰ðŽU’Ê’m—p
+// ギルド解散通知用
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;
}
-// ƒMƒ‹ƒh‰ðŽ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++)
- { // ƒMƒ‹ƒh‰ðŽ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;
}
-// ƒMƒ‹ƒh‰ðŽ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;
}
-// ƒMƒ‹ƒhéƒf[ƒ^—v‹
+// ギルド城データè¦æ±‚
int guild_castledataload (int castle_id, int index)
{
return intif_guild_castle_dataload (castle_id, index);
}
-// ƒMƒ‹ƒhéî•ñŠ“¾ŽžƒCƒxƒ“ƒg’ljÁ
+// ギルド城情報所得時イベント追加
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;
}
-// ƒMƒ‹ƒhéƒ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;
}
-// ƒMƒ‹ƒhéƒf[ƒ^•ÏX—v‹
+// ギルド城データ変更è¦æ±‚
int guild_castledatasave (int castle_id, int index, int value)
{
return intif_guild_castle_datasave (castle_id, index, value);
}
-// ƒMƒ‹ƒhéƒ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;
}
-// ƒMƒ‹ƒhƒf[ƒ^ˆêŠ‡Žó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);
- // ƒCƒxƒ“ƒg•t‚«‚Å—v‹‚·‚éƒf[ƒ^ˆÊ’u‚ð’T‚·(ÅŒã‚Ìè‹’ƒf[ƒ^)
+ // イベント付ãã§è¦æ±‚ã™ã‚‹ãƒ‡ãƒ¼ã‚¿ä½ç½®ã‚’探ã™(最後ã®å æ‹ ãƒ‡ãƒ¼ã‚¿)
for (i = 0; i < n; i++)
{
if ((gc + i)->guild_id)
ev = i;
}
- // éƒf[ƒ^Ši”[‚ƃMƒ‹ƒhî•ñ—v‹
+ // 城データ格ç´ã¨ã‚®ãƒ«ãƒ‰æƒ…å ±è¦æ±‚
for (i = 0; i < n; i++, gc++)
{
struct guild_castle *c = guild_castle_search (gc->castle_id);