summaryrefslogtreecommitdiff
path: root/src/char_sql/int_guild.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/char_sql/int_guild.c')
-rw-r--r--src/char_sql/int_guild.c102
1 files changed, 51 insertions, 51 deletions
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)
}
}
- // 誰もいないので解散
+ // 隱ー繧ゅ>縺ェ縺縺ョ縺ァ隗」謨」
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;
}
-// ギルドスキルがあるか確認
+// 繧ョ繝ォ繝峨せ繧ュ繝ォ縺後≠繧九°遒コ隱
int guild_checkskill (struct guild *g, int id)
{
return g->skill[id - 10000].lv;
}
-// ギルドの情報の再計算
+// 繧ョ繝ォ繝峨ョ諠蝣ア縺ョ蜀崎ィ育ョ
int guild_calcinfo (struct guild *g)
{
int i, c, nextexp;
struct guild before = *g;
- // スキルIDの設定
+ // 繧ケ繧ュ繝ォID縺ョ險ュ螳
for (i = 0; i < 5; i++)
g->skill[i].id = i + 10000;
- // ギルドレベル
+ // 繧ョ繝ォ繝峨Ξ繝吶Ν
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)
}
}
- // ギルドの次の経験値
+ // 繧ョ繝ォ繝峨ョ谺。縺ョ邨碁ィ灘、
g->next_exp = guild_nextexp (g->guild_lv);
- // メンバ上限(ギルド拡張適用)
+ // 繝。繝ウ繝蝉ク企剞シ医ぐ繝ォ繝画僑蠑オ驕ゥ逕ィシ
g->max_member = 100 + guild_checkskill (g, 10004) * 2; // Updated max_members [PoW]
- // 平均レベルとオンライン人数
+ // 蟷ウ蝮繝ャ繝吶Ν縺ィ繧ェ繝ウ繝ゥ繧、繝ウ莠コ謨ー
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;
- // 全データを送る必要がありそう
+ // 蜈ィ繝繝シ繧ソ繧帝√k蠢隕√′縺ゅj縺昴≧
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への通信
+// map server縺ク縺ョ騾壻ソ。
-// ギルド作成可否
+// 繧ョ繝ォ繝我ス懈仙庄蜷ヲ
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;
}
-// ギルド情報見つからず
+// 繧ョ繝ォ繝画ュ蝣ア隕九▽縺九i縺
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;
}
-// ギルド情報まとめ送り
+// 繧ョ繝ォ繝画ュ蝣ア縺セ縺ィ繧騾√j
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;
}
-// メンバ追加可否
+// 繝。繝ウ繝占ソス蜉蜿ッ蜷ヲ
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;
}
-// 脱退/追放通知
+// 閼ア騾/霑ス謾セ騾夂衍
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;
}
-// オンライン状態とLv更新通知
+// 繧ェ繝ウ繝ゥ繧、繝ウ迥カ諷九→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;
}
-// 解散通知
+// 隗」謨」騾夂衍
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;
}
-// ギルド内発言
+// 繧ョ繝ォ繝牙逋コ險
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;
}
-// ギルド基本情報変更通知
+// 繧ョ繝ォ繝牙渕譛ャ諠蝣ア螟画峩騾夂衍
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;
}
-// ギルドメンバ情報変更通知
+// 繧ョ繝ォ繝峨Γ繝ウ繝先ュ蝣ア螟画峩騾夂衍
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;
}
-// ギルドスキルアップ通知
+// 繧ョ繝ォ繝峨せ繧ュ繝ォ繧「繝繝鈴夂衍
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;
}
-// ギルド同盟/敵対通知
+// 繧ョ繝ォ繝牙酔逶/謨オ蟇セ騾夂衍
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;
}
-// ギルド役職変更通知
+// 繧ョ繝ォ繝牙スケ閨キ螟画峩騾夂衍
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;
}
-// ギルド告知変更通知
+// 繧ョ繝ォ繝牙相遏・螟画峩騾夂衍
int mapif_guild_notice (struct guild *g)
{
unsigned char buf[256];
@@ -1142,7 +1142,7 @@ int mapif_guild_notice (struct guild *g)
return 0;
}
-// ギルドエンブレム変更通知
+// 繧ョ繝ォ繝峨お繝ウ繝悶Ξ繝螟画峩騾夂衍
int mapif_guild_emblem (struct guild *g)
{
unsigned char buf[2048];
@@ -1235,9 +1235,9 @@ int mapif_guild_castle_alldataload (int fd)
}
//-------------------------------------------------------------------
-// map serverからの通信
+// map server縺九i縺ョ騾壻ソ。
-// ギルド作成要求
+// 繧ョ繝ォ繝我ス懈占ヲ∵ア
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)
- { // 追放の場合追放リストに入れる
+ { // 霑ス謾セ縺ョ蝣エ蜷郁ソス謾セ繝ェ繧ケ繝医↓蜈・繧後k
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)
- { // 一杯なので古いのを消す
+ { // 荳譚ッ縺ェ縺ョ縺ァ蜿、縺縺ョ繧呈カ医☆
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); // まだ人がいるのでデータ送信
+ mapif_guild_info (-1, g); // 縺セ縺莠コ縺後>繧九ョ縺ァ繝繝シ繧ソ騾∽ソ。
/*
* else
- * inter_guild_save(); // 解散したので一応セーブ
+ * 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++;
}
- // 平均レベル
+ // 蟷ウ蝮繝ャ繝吶Ν
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;
}
-// ギルドメッセージ送信
+// 繧ョ繝ォ繝峨Γ繝繧サ繝シ繧ク騾∽ソ。
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);
}
-// ギルド基本データ変更要求
+// 繧ョ繝ォ繝牙渕譛ャ繝繝シ繧ソ螟画峩隕∵ア
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;
}
-// ギルドメンバデータ変更要求
+// 繧ョ繝ォ繝峨Γ繝ウ繝舌ョ繝シ繧ソ螟画峩隕∵ア
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: // 役職
+ 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); // Lvアップ判断
+ 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;
}
-// ギルド役職名変更要求
+// 繧ョ繝ォ繝牙スケ閨キ蜷榊、画峩隕∵ア
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;
}
-// ギルドスキルアップ要求
+// 繧ョ繝ォ繝峨せ繧ュ繝ォ繧「繝繝苓ヲ∵ア
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;
}
-// ギルド同盟要求
+// 繧ョ繝ォ繝牙酔逶溯ヲ∵ア
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
- { // 関係解消
+ { // 髢「菫りァ」豸
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;
}
-// ギルド告知変更要求
+// 繧ョ繝ォ繝牙相遏・螟画峩隕∵ア
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);
}
-// ギルドエンブレム変更要求
+// 繧ョ繝ォ繝峨お繝ウ繝悶Ξ繝螟画峩隕∵ア
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);
}
-// ギルドチェック要求
+// 繧ョ繝ォ繝峨メ繧ァ繝繧ッ隕∵ア
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 からの通信
-// ・1パケットのみ解析すること
-// ・パケット長データはinter.cにセットしておくこと
-// ・パケット長チェックや、RFIFOSKIPは呼び出し元で行われるので行ってはならない
-// ・エラーなら0(false)、そうでないなら1(true)をかえさなければならない
+// map server 縺九i縺ョ騾壻ソ。
+// 繝サシ代ヱ繧ア繝繝医ョ縺ソ隗」譫舌☆繧九%縺ィ
+// 繝サ繝代こ繝繝磯聞繝繝シ繧ソ縺ッinter.c縺ォ繧サ繝繝医@縺ヲ縺翫¥縺薙→
+// 繝サ繝代こ繝繝磯聞繝√ぉ繝繧ッ繧縲ヽFIFOSKIP縺ッ蜻シ縺ウ蜃コ縺怜縺ァ陦後o繧後k縺ョ縺ァ陦後▲縺ヲ縺ッ縺ェ繧峨↑縺
+// 繝サ繧ィ繝ゥ繝シ縺ェ繧0(false)縲√◎縺縺ァ縺ェ縺縺ェ繧1(true)繧偵°縺医&縺ェ縺代l縺ー縺ェ繧峨↑縺
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);
}
-// サーバーから脱退要求(キャラ削除用)
+// 繧オ繝シ繝舌シ縺九i閼ア騾隕∵アゑシ医く繝」繝ゥ蜑企勁逕ィシ
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,
- "**サーバー命令**");
+ "**繧オ繝シ繝舌シ蜻ス莉、**");
}