Fixed some packets for 2022 clients (#7276)

Migrates a few packets from FIFO to structs.
Migrates friendlist to struct and fixed invalid version check.
Added a new guild related packet that does nothing for the time being.
Synced to latest Hercules' packet definitions.
Fixed name of ZC_SOULENERGY.

Thanks to @Dia and @Pokye.
This commit is contained in:
Lemongrass3110
2022-09-22 01:50:24 +02:00
committed by GitHub
parent 5ea44e7c0e
commit fa4666d7af
15 changed files with 826 additions and 740 deletions

View File

@@ -1863,7 +1863,7 @@ bool pc_authok(struct map_session_data *sd, uint32 login_id2, time_t expiration_
sd->status.name, sd->status.account_id, sd->status.char_id,
CONVIP(ip), sd->group_id);
// Send friends list
clif_friendslist_send(sd);
clif_friendslist_send( *sd );
if( !changing_mapservers ) {
@@ -9292,7 +9292,7 @@ int pc_dead(struct map_session_data *sd,struct block_list *src)
pc_setdead(sd);
clif_party_dead( sd );
clif_party_dead( *sd );
pc_setparam(sd, SP_PCDIECOUNTER, sd->die_counter+1);
pc_setparam(sd, SP_KILLERRID, src?src->id:0);
@@ -10483,7 +10483,7 @@ bool pc_jobchange(struct map_session_data *sd,int job, char upper)
if( i < MAX_PARTY ){
p->party.member[i].class_ = sd->status.class_;
clif_party_job_and_level(sd);
clif_party_job_and_level( *sd );
}
}
}
@@ -12517,7 +12517,7 @@ bool pc_setstand(struct map_session_data *sd, bool force){
sd->ssregen.tick.hp = sd->ssregen.tick.sp = 0;
if( pc_isdead( sd ) ){
sd->state.dead_sit = sd->vd.dead_sit = 0;
clif_party_dead( sd );
clif_party_dead( *sd );
}else{
sd->state.dead_sit = sd->vd.dead_sit = 0;
}