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:
@@ -2113,18 +2113,18 @@ void run_tomb(struct map_session_data* sd, struct npc_data* nd)
|
||||
strftime(time, sizeof(time), "%H:%M", localtime(&nd->u.tomb.kill_time));
|
||||
|
||||
// TODO: Find exact color?
|
||||
snprintf(buffer, sizeof(buffer), msg_txt(sd,657), nd->u.tomb.md->db->name.c_str());
|
||||
clif_scriptmes(sd, nd->bl.id, buffer);
|
||||
snprintf( buffer, sizeof( buffer ), msg_txt( sd, 657 ), nd->u.tomb.md->db->name.c_str() ); // [ ^EE0000%s^000000 ]
|
||||
clif_scriptmes( *sd, nd->bl.id, buffer );
|
||||
|
||||
clif_scriptmes(sd, nd->bl.id, msg_txt(sd,658));
|
||||
clif_scriptmes( *sd, nd->bl.id, msg_txt( sd, 658 ) ); // Has met its demise
|
||||
|
||||
snprintf(buffer, sizeof(buffer), msg_txt(sd,659), time);
|
||||
clif_scriptmes(sd, nd->bl.id, buffer);
|
||||
snprintf( buffer, sizeof( buffer ), msg_txt( sd, 659 ), time ); // Time of death : ^EE0000%s^000000
|
||||
clif_scriptmes( *sd, nd->bl.id, buffer );
|
||||
|
||||
clif_scriptmes(sd, nd->bl.id, msg_txt(sd,660));
|
||||
clif_scriptmes( *sd, nd->bl.id, msg_txt( sd, 660 ) ); // Defeated by
|
||||
|
||||
snprintf(buffer, sizeof(buffer), msg_txt(sd,661), nd->u.tomb.killer_name[0] ? nd->u.tomb.killer_name : "Unknown");
|
||||
clif_scriptmes(sd, nd->bl.id, buffer);
|
||||
snprintf( buffer, sizeof( buffer ), msg_txt( sd, 661 ), nd->u.tomb.killer_name[0] ? nd->u.tomb.killer_name : "Unknown" ); // [^EE0000%s^000000]
|
||||
clif_scriptmes( *sd, nd->bl.id, buffer );
|
||||
|
||||
clif_scriptclose(sd, nd->bl.id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user