diff options
Diffstat (limited to 'src/map/intif.c')
-rw-r--r-- | src/map/intif.c | 77 |
1 files changed, 0 insertions, 77 deletions
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 |