summaryrefslogtreecommitdiff
path: root/src/map/intif.c
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2011-03-02 13:52:33 -0800
committerBen Longbons <b.r.longbons@gmail.com>2011-03-02 14:06:46 -0800
commita1a2711abfc594f2be1da51df95ddcd7071ddebd (patch)
tree9128237fc4794b917394a1c39221d08cc78c1b54 /src/map/intif.c
parent877018d1296c984afe72b79f076265d6d27c3a7c (diff)
downloadtmwa-a1a2711abfc594f2be1da51df95ddcd7071ddebd.tar.gz
tmwa-a1a2711abfc594f2be1da51df95ddcd7071ddebd.tar.bz2
tmwa-a1a2711abfc594f2be1da51df95ddcd7071ddebd.tar.xz
tmwa-a1a2711abfc594f2be1da51df95ddcd7071ddebd.zip
Recode from SHIFT-JIS to unicode, then undo the conversion of backslashs and tildes.
Diffstat (limited to 'src/map/intif.c')
-rw-r--r--src/map/intif.c136
1 files changed, 68 insertions, 68 deletions
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) // ƒGƒCƒŠƒAƒX
+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;
}
-// ƒAƒJƒEƒ“ƒg•Ï”‘—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;
}
-// ƒAƒJƒEƒ“ƒg•Ï”—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[ƒeƒB쬗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[ƒeƒBî•ñ—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[ƒeƒB’ljÁ—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[ƒeƒBÝ’è•Ï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[ƒeƒB’E‘Þ—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[ƒeƒBˆÚ“®—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[ƒeƒB[‰ðŽU—v‹
+// パーティー解散è¦æ±‚
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[ƒeƒB‰ï˜b‘—M
+// パーティ会話é€ä¿¡
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[ƒeƒB‹£‡ƒ`ƒFƒbƒN—v‹
+// パーティ競åˆãƒã‚§ãƒƒã‚¯è¦æ±‚
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;
}
-// ƒMƒ‹ƒh쬗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;
}
-// ƒMƒ‹ƒhî•ñ—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;
}
-// ƒMƒ‹ƒhƒƒ“ƒo’ljÁ—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;
}
-// ƒMƒ‹ƒhƒƒ“ƒo’E‘Þ/’Ç•ú—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;
}
-// ƒMƒ‹ƒhƒƒ“ƒo‚̃Iƒ“ƒ‰ƒCƒ“ó‹µ/LvXV—v‹
+// ギルドメンãƒã®ã‚ªãƒ³ãƒ©ã‚¤ãƒ³çŠ¶æ³/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;
}
-// ƒMƒ‹ƒh‰ðŽ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;
}
-// ƒMƒ‹ƒh‰ï˜b‘—M
+// ギルド会話é€ä¿¡
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;
}
-// ƒMƒ‹ƒh‹£‡ƒ`ƒFƒbƒN—v‹
+// ギルド競åˆãƒã‚§ãƒƒã‚¯è¦æ±‚
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;
}
-// ƒMƒ‹ƒhŠî–{î•ñ•ÏX—v‹
+// ギルド基本情報変更è¦æ±‚
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;
}
-// ƒMƒ‹ƒhƒƒ“ƒoî•ñ•ÏX—v‹
+// ギルドメンãƒæƒ…報変更è¦æ±‚
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;
}
-// ƒMƒ‹ƒh–ðE•ÏX—v‹
+// ギルド役è·å¤‰æ›´è¦æ±‚
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;
}
-// ƒMƒ‹ƒhƒXƒLƒ‹ƒAƒbƒv—v‹
+// ギルドスキルアップè¦æ±‚
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;
}
-// ƒMƒ‹ƒh“¯–¿/“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;
}
-// ƒMƒ‹ƒh’m•ÏX—v‹
+// ギルド告知変更è¦æ±‚
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;
}
-// ƒMƒ‹ƒhƒGƒ“ƒuƒŒƒ€•ÏX—v‹
+// ギルドエンブレム変更è¦æ±‚
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;
}
-//Œ»Ý‚̃Mƒ‹ƒhéè—̃Mƒ‹ƒh‚𒲂ׂé
+//ç¾åœ¨ã®ã‚®ãƒ«ãƒ‰åŸŽå é ˜ã‚®ãƒ«ãƒ‰ã‚’調ã¹ã‚‹
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;
}
-//ƒMƒ‹ƒhéè—̃Mƒ‹ƒh•ÏX—v‹
+//ギルド城å é ˜ã‚®ãƒ«ãƒ‰å¤‰æ›´è¦æ±‚
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;
}
-// ƒAƒJƒEƒ“ƒg•Ï”’Ê’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[ƒeƒB쬉”Û
+// パーティ作æˆå¯å¦
int intif_parse_PartyCreated (int fd)
{
if (battle_config.etc_log)
@@ -781,7 +781,7 @@ int intif_parse_PartyCreated (int fd)
return 0;
}
-// ƒp[ƒeƒBî•ñ
+// パーティ情報
int intif_parse_PartyInfo (int fd)
{
if (RFIFOW (fd, 2) == 8)
@@ -804,7 +804,7 @@ int intif_parse_PartyInfo (int fd)
return 0;
}
-// ƒp[ƒeƒB’ljÁ’Ê’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[ƒeƒBÝ’è•Ï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[ƒeƒB’E‘Þ’Ê’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[ƒeƒB‰ðŽU’Ê’m
+// パーティ解散通知
int intif_parse_PartyBroken (int fd)
{
party_broken (RFIFOL (fd, 2));
return 0;
}
-// ƒp[ƒeƒBˆÚ“®’Ê’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[ƒeƒBƒƒbƒZ[ƒW
+// パーティメッセージ
int intif_parse_PartyMessage (int fd)
{
// if(battle_config.etc_log)
@@ -859,14 +859,14 @@ int intif_parse_PartyMessage (int fd)
return 0;
}
-// ƒMƒ‹ƒh쬉”Û
+// ギルド作æˆå¯å¦
int intif_parse_GuildCreated (int fd)
{
guild_created (RFIFOL (fd, 2), RFIFOL (fd, 6));
return 0;
}
-// ƒMƒ‹ƒhî•ñ
+// ギルド情報
int intif_parse_GuildInfo (int fd)
{
if (RFIFOW (fd, 2) == 8)
@@ -890,7 +890,7 @@ int intif_parse_GuildInfo (int fd)
return 0;
}
-// ƒMƒ‹ƒhƒƒ“ƒo’ljÁ’Ê’m
+// ギルドメンãƒè¿½åŠ é€šçŸ¥
int intif_parse_GuildMemberAdded (int fd)
{
if (battle_config.etc_log)
@@ -901,7 +901,7 @@ int intif_parse_GuildMemberAdded (int fd)
return 0;
}
-// ƒMƒ‹ƒhƒƒ“ƒo’E‘Þ/’Ç•ú’Ê’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;
}
-// ƒMƒ‹ƒhƒƒ“ƒoƒIƒ“ƒ‰ƒCƒ“ó‘Ô/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;
}
-// ƒMƒ‹ƒh‰ðŽU’Ê’m
+// ギルド解散通知
int intif_parse_GuildBroken (int fd)
{
guild_broken (RFIFOL (fd, 2), RFIFOB (fd, 6));
return 0;
}
-// ƒMƒ‹ƒhŠî–{î•ñ•Ï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;
}
-// ƒMƒ‹ƒhƒƒ“ƒoî•ñ•Ï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;
}
-// ƒMƒ‹ƒh–ð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;
}
-// ƒMƒ‹ƒhƒXƒLƒ‹Š„‚èU‚è’Ê’m
+// ギルドスキル割り振り通知
int intif_parse_GuildSkillUp (int fd)
{
guild_skillupack (RFIFOL (fd, 2), RFIFOL (fd, 6), RFIFOL (fd, 10));
return 0;
}
-// ƒMƒ‹ƒh“¯–¿/“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;
}
-// ƒMƒ‹ƒh’m•ÏX’Ê’m
+// ギルド告知変更通知
int intif_parse_GuildNotice (int fd)
{
guild_notice_changed (RFIFOL (fd, 2), RFIFOP (fd, 6), RFIFOP (fd, 66));
return 0;
}
-// ƒMƒ‹ƒhƒGƒ“ƒuƒŒƒ€•Ï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;
}
-// ƒMƒ‹ƒh‰ï˜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;
}
-// ƒMƒ‹ƒhéƒf[ƒ^—v‹•ÔM
+// ギルド城データè¦æ±‚返信
int intif_parse_GuildCastleDataLoad (int fd)
{
return guild_castledataloadack (RFIFOW (fd, 2), RFIFOB (fd, 4),
RFIFOL (fd, 5));
}
-// ƒMƒ‹ƒhéƒf[ƒ^•ÏX’Ê’m
+// ギルド城データ変更通知
int intif_parse_GuildCastleDataSave (int fd)
{
return guild_castledatasaveack (RFIFOW (fd, 2), RFIFOB (fd, 4),
RFIFOL (fd, 5));
}
-// ƒMƒ‹ƒhéƒ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)‚ð•Ô‚·‚±‚Æ
-// ƒpƒPƒbƒg‚ªˆ—‚Å‚«‚ê‚Î1,ƒpƒPƒbƒg’·‚ª‘«‚è‚È‚¯‚ê‚Î2‚ð•Ô‚·‚±‚Æ
+// inter serverã‹ã‚‰ã®é€šä¿¡
+// エラーãŒã‚ã‚Œã°0(false)ã‚’è¿”ã™ã“ã¨
+// パケットãŒå‡¦ç†ã§ãã‚Œã°1,パケット長ãŒè¶³ã‚Šãªã‘ã‚Œã°2ã‚’è¿”ã™ã“ã¨
int intif_parse (int fd)
{
int packet_len;
int cmd = RFIFOW (fd, 0);
- // ƒpƒPƒbƒg‚ÌIDŠm”F
+ // パケットã®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;
}
- // ƒpƒPƒbƒg‚Ì’·‚³Šm”F
+ // パケットã®é•·ã•ç¢ºèª
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;
}
- // ƒpƒPƒbƒg“Ç‚Ý”ò‚΂µ
+ // パケット読ã¿é£›ã°ã—
RFIFOSKIP (fd, packet_len);
return 1;
}