summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog.txt1
-rw-r--r--src/char_sql/char.c11
-rw-r--r--src/map/atcommand.c5
-rw-r--r--src/map/intif.c77
-rw-r--r--src/map/intif.h4
5 files changed, 1 insertions, 97 deletions
diff --git a/Changelog.txt b/Changelog.txt
index 650f8e63e..a76bfc23f 100644
--- a/Changelog.txt
+++ b/Changelog.txt
@@ -1,5 +1,6 @@
Date Added
11/21
+ * Removed japanese interserver packets, should fix various problems (jumpto, where, charposreq). [Valaris]
* Added Yor's trade exploit bug fix. Added 2 skills bugs in the bugs.txt [Lupus]
* Added charcommand.c/.h for the following reasons: [MC Cameri]
- Less congestion in atcommand.c
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index d436eb631..ef6c0d562 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -1901,17 +1901,6 @@ int parse_frommap(int fd) {
printf("DB server Error (update online `%s`)- %s\n", char_db, mysql_error(&mysql_handle));
RFIFOSKIP(fd,6);
break;
-
- case 0x3090:
- {
- int r = inter_parse_frommap(fd);
- if (r == 1) break; // processed
- if (r == 2) return 0; // need more packet
- }
-
- printf("parse_frommap: unsupported packet %x! \n", RFIFOW(fd,0));
- break;
-
default:
// inter server - packet
{
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index eab110beb..a4d89c293 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -1081,8 +1081,6 @@ int atcommand_where(
if(strncmp(sd->status.name,character,24)==0)
return -1;
- intif_where(sd->status.account_id,character);
-
if ((pl_sd = map_nick2sd(character)) == NULL) {
snprintf(output, sizeof output, "%s %d %d",
sd->mapname, sd->bl.x, sd->bl.y);
@@ -1121,7 +1119,6 @@ int atcommand_jumpto(
if(strncmp(sd->status.name,character,24)==0) //Yourself mate? Tsk tsk tsk.
return -1;
- intif_jumpto(sd->status.account_id,character);
if ((pl_sd = map_nick2sd(character)) != NULL) {
if (pl_sd->bl.m >= 0 && map[pl_sd->bl.m].flag.nowarpto && battle_config.any_warp_GM_min_level > pc_isGM(sd)) {
clif_displaymessage(fd, "You are not authorised to warp you to the map of this player.");
@@ -4029,8 +4026,6 @@ atcommand_recall(
if(strncmp(sd->status.name,character,24)==0)
return -1;
- intif_charmovereq(sd,character,1);
-
if ((pl_sd = map_nick2sd(character)) != NULL) {
if (pc_isGM(sd) >= pc_isGM(pl_sd)) { // you can recall only lower or same level
if (sd->bl.m >= 0 && map[sd->bl.m].flag.nowarpto && battle_config.any_warp_GM_min_level > pc_isGM(sd)) {
diff --git a/src/map/intif.c b/src/map/intif.c
index 62a2bd761..fc79e5148 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -533,83 +533,6 @@ int intif_guild_castle_datasave(int castle_id,int index, int value)
return 0;
}
-/*==========================================
- * 指定した名前のキャラの場所要求
- *------------------------------------------
- */
-int intif_charposreq(int account_id,char *name,int flag)
-{
- WFIFOW(inter_fd,0)=0x3090;
- WFIFOL(inter_fd,2)=account_id;
- memcpy(WFIFOP(inter_fd,6),name,24);
- WFIFOB(inter_fd,30)=flag;
- WFIFOSET(inter_fd,31);
- return 0;
-}
-
-/*==========================================
- * 指定した名前のキャラの場所に移動する
- * @jumpto
- *------------------------------------------
- */
-int intif_jumpto(int account_id,char *name)
-{
- intif_charposreq(account_id,name,1);
- //printf("intif_jumpto: %d %s\n",account_id,name);
- return 0;
-}
-
-/*==========================================
- * 指定した名前のキャラの場所表示する
- * @where
- *------------------------------------------
- */
-int intif_where(int account_id,char *name)
-{
- intif_charposreq(account_id,name,0);
- //printf("intif_where: %d %s\n",account_id,name);
- return 0;
-}
-
-/*==========================================
- * 指定した名前のキャラを呼び寄せる
- * flag=0 あなたに逢いたい
- * flag=1 @recall
- *------------------------------------------
- */
-int intif_charmovereq(struct map_session_data *sd,char *name,int flag)
-{
- nullpo_retr(0,sd);
-
- //printf("intif_charmovereq: %d %s\n",sd->status.account_id,name);
- if(name==NULL)
- return -1;
-
- WFIFOW(inter_fd,0)=0x3092;
- WFIFOL(inter_fd,2)=sd->status.account_id;
- memcpy(WFIFOP(inter_fd,6),name,24);
- WFIFOB(inter_fd,30)=flag;
- memcpy(WFIFOP(inter_fd,31),sd->mapname,16);
- WFIFOW(inter_fd,47)=sd->bl.x;
- WFIFOW(inter_fd,49)=sd->bl.y;
- WFIFOSET(inter_fd,51);
- return 0;
-}
-/*==========================================
- * 対象IDにメッセージを送信
- *------------------------------------------
- */
-int intif_displaymessage(int account_id, char* mes)
-{
- int len = 6+strlen(mes)+1;
- WFIFOW(inter_fd,0) = 0x3093;
- WFIFOW(inter_fd,2) = len;
- WFIFOL(inter_fd,4) = account_id;
- strncpy(WFIFOP(inter_fd,8), mes, len-6);
- WFIFOSET(inter_fd, len );
-
- return 0;
-}
//-----------------------------------------------------------------
// Packets receive from inter server
diff --git a/src/map/intif.h b/src/map/intif.h
index 3fe14f2e4..5077dbe18 100644
--- a/src/map/intif.h
+++ b/src/map/intif.h
@@ -53,8 +53,4 @@ int intif_request_petdata(int account_id, int char_id, int pet_id);
int intif_save_petdata(int account_id, struct s_pet *p);
int intif_delete_petdata(int pet_id);
-int intif_jumpto(int account_id,char *name);
-int intif_where(int account_id,char *name);
-int intif_charmovereq(struct map_session_data *sd,char *name,int flag);
-
#endif