* Added clif_changed_dir, clif_adopt_process
* updated Backstab git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@756 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
94a17e7e56
commit
2ef8d166ab
@ -1,5 +1,7 @@
|
||||
Date Added
|
||||
12/23
|
||||
* Added clif_changed_dir, clif_adopt_process [celest]
|
||||
* updated Backstab to show the target's new direction [celest]
|
||||
* Corrected the file types of several files in the SVN tree to
|
||||
fix the newline issues [MouseJstr]
|
||||
* Updated mapflags (added missing payon_in03,ayo_in01,ayo_in02, que_god01, que_god02) [Lupus]
|
||||
|
@ -7006,6 +7006,30 @@ void clif_callpartner(struct map_session_data *sd)
|
||||
return;
|
||||
}
|
||||
*/
|
||||
/*==========================================
|
||||
* Adopt baby [Celest]
|
||||
*------------------------------------------
|
||||
*/
|
||||
void clif_adopt_process(struct map_session_data *sd)
|
||||
{
|
||||
int fd;
|
||||
nullpo_retv(sd);
|
||||
|
||||
fd=sd->fd;
|
||||
WFIFOW(fd,0)=0x1f8;
|
||||
WFIFOSET(fd,packet_len_table[0x1f8]);
|
||||
}
|
||||
|
||||
/*==========================================
|
||||
*
|
||||
*------------------------------------------
|
||||
*/
|
||||
void clif_parse_ReqAdopt(int fd, struct map_session_data *sd) {
|
||||
nullpo_retv(sd);
|
||||
|
||||
printf ("%d\n", RFIFOL(fd,2));
|
||||
}
|
||||
|
||||
/*==========================================
|
||||
* <EFBFBD>À‚é
|
||||
*------------------------------------------
|
||||
@ -7854,8 +7878,31 @@ void clif_parse_MapMove(int fd, struct map_session_data *sd) {
|
||||
*
|
||||
*------------------------------------------
|
||||
*/
|
||||
void clif_parse_ChangeDir(int fd, struct map_session_data *sd) {
|
||||
void clif_changed_dir(struct block_list *bl) {
|
||||
unsigned char buf[64];
|
||||
struct map_session_data *sd = NULL;
|
||||
|
||||
if (bl->type == BL_PC)
|
||||
nullpo_retv (sd=(struct map_session_data *)bl);
|
||||
|
||||
WBUFW(buf,0) = 0x9c;
|
||||
WBUFL(buf,2) = bl->id;
|
||||
if (sd)
|
||||
WBUFW(buf,6) = sd->head_dir;
|
||||
WBUFB(buf,8) = battle_get_dir(bl);
|
||||
if (sd && sd->disguise > 23 && sd->disguise < 4001) // mob disguises [Valaris]
|
||||
clif_send(buf, packet_len_table[0x9c], &sd->bl, AREA);
|
||||
else
|
||||
clif_send(buf, packet_len_table[0x9c], bl, AREA_WOS);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/*==========================================
|
||||
*
|
||||
*------------------------------------------
|
||||
*/
|
||||
void clif_parse_ChangeDir(int fd, struct map_session_data *sd) {
|
||||
short headdir, dir;
|
||||
|
||||
nullpo_retv(sd);
|
||||
@ -7897,15 +7944,8 @@ void clif_parse_ChangeDir(int fd, struct map_session_data *sd) {
|
||||
|
||||
pc_setdir(sd, dir, headdir);
|
||||
|
||||
WBUFW(buf,0) = 0x9c;
|
||||
WBUFL(buf,2) = sd->bl.id;
|
||||
WBUFW(buf,6) = headdir;
|
||||
WBUFB(buf,8) = dir;
|
||||
if (sd->disguise > 23 && sd->disguise < 4001) // mob disguises [Valaris]
|
||||
clif_send(buf, packet_len_table[0x9c], &sd->bl, AREA);
|
||||
else
|
||||
clif_send(buf, packet_len_table[0x9c], &sd->bl, AREA_WOS);
|
||||
|
||||
clif_changed_dir(&sd->bl);
|
||||
return;
|
||||
}
|
||||
|
||||
/*==========================================
|
||||
@ -10136,7 +10176,8 @@ static void (*clif_parse_func_table[7][0x220])() = {
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, clif_parse_sn_doridori,
|
||||
clif_parse_CreateParty2, NULL, NULL, NULL, NULL, clif_parse_sn_explosionspirits, NULL, NULL,
|
||||
// 1f0
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, clif_parse_ReqAdopt,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL,
|
||||
|
||||
// 200
|
||||
NULL, NULL, clif_parse_friends_list_add, clif_parse_friends_list_remove, NULL, NULL, NULL, NULL,
|
||||
|
@ -90,6 +90,7 @@ void clif_talkiebox(struct block_list *bl,char* talkie);
|
||||
void clif_wedding_effect(struct block_list *bl);
|
||||
//void clif_sitting(int fd, struct map_session_data *sd);
|
||||
//void clif_callpartner(struct map_session_data *sd);
|
||||
void clif_adopt_process(struct map_session_data *sd);
|
||||
void clif_sitting(struct map_session_data *sd);
|
||||
void clif_soundeffect(struct map_session_data *sd,struct block_list *bl,char *name,int type);
|
||||
|
||||
@ -195,6 +196,7 @@ int clif_item_skill(struct map_session_data *sd,int skillid,int skilllv,const ch
|
||||
int clif_mvp_effect(struct map_session_data *sd);
|
||||
int clif_mvp_item(struct map_session_data *sd,int nameid);
|
||||
int clif_mvp_exp(struct map_session_data *sd,int exp);
|
||||
void clif_changed_dir(struct block_list *bl);
|
||||
|
||||
// vending
|
||||
int clif_openvendingreq(struct map_session_data *sd,int num);
|
||||
|
@ -2399,6 +2399,7 @@ int skill_castend_damage_id( struct block_list* src, struct block_list *bl,int s
|
||||
((struct map_session_data *)bl)->dir=dir;
|
||||
else if (bl->type == BL_MOB)
|
||||
((struct mob_data *)bl)->dir=dir;
|
||||
clif_changed_dir(bl);
|
||||
//skill_blown(src,bl,skill_get_blewcount(skillid,skilllv));
|
||||
}
|
||||
else if(src->type == BL_PC)
|
||||
|
Loading…
x
Reference in New Issue
Block a user