|
@@ -8184,6 +8184,28 @@ void clif_pet_food( struct map_session_data *sd, int foodid,int fail ){
|
|
clif_send( &p, sizeof( p ), &sd->bl, SELF );
|
|
clif_send( &p, sizeof( p ), &sd->bl, SELF );
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+/// Send pet auto feed info.
|
|
|
|
+void clif_pet_autofeed_status(struct map_session_data* sd, bool force) {
|
|
|
|
+#if PACKETVER >= 20141008
|
|
|
|
+ nullpo_retv(sd);
|
|
|
|
+
|
|
|
|
+ if (force || battle_config.pet_autofeed_always) {
|
|
|
|
+ // Always send ON or OFF
|
|
|
|
+ if (sd->pd && battle_config.feature_pet_autofeed) {
|
|
|
|
+ clif_configuration(sd, CONFIG_PET_AUTOFEED, sd->pd->pet.autofeed);
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ clif_configuration(sd, CONFIG_PET_AUTOFEED, false);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ // Only send when enabled
|
|
|
|
+ if (sd->pd && battle_config.feature_pet_autofeed && sd->pd->pet.autofeed) {
|
|
|
|
+ clif_configuration(sd, CONFIG_PET_AUTOFEED, true);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+#endif
|
|
|
|
+}
|
|
|
|
|
|
/// Presents a list of skills that can be auto-spelled (ZC_AUTOSPELLLIST).
|
|
/// Presents a list of skills that can be auto-spelled (ZC_AUTOSPELLLIST).
|
|
/// 01cd { <skill id>.L }*7
|
|
/// 01cd { <skill id>.L }*7
|
|
@@ -10752,21 +10774,7 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd)
|
|
clif_partyinvitationstate(sd);
|
|
clif_partyinvitationstate(sd);
|
|
clif_equipcheckbox(sd);
|
|
clif_equipcheckbox(sd);
|
|
#endif
|
|
#endif
|
|
-#if PACKETVER >= 20141008
|
|
|
|
- if( battle_config.pet_autofeed_always ){
|
|
|
|
- // Always send ON or OFF
|
|
|
|
- if( sd->pd && battle_config.feature_pet_autofeed ){
|
|
|
|
- clif_configuration( sd, CONFIG_PET_AUTOFEED, sd->pd->pet.autofeed );
|
|
|
|
- }else{
|
|
|
|
- clif_configuration( sd, CONFIG_PET_AUTOFEED, false );
|
|
|
|
- }
|
|
|
|
- }else{
|
|
|
|
- // Only send when enabled
|
|
|
|
- if( sd->pd && battle_config.feature_pet_autofeed && sd->pd->pet.autofeed ){
|
|
|
|
- clif_configuration( sd, CONFIG_PET_AUTOFEED, true );
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-#endif
|
|
|
|
|
|
+ clif_pet_autofeed_status(sd,false);
|
|
#if PACKETVER >= 20170920
|
|
#if PACKETVER >= 20170920
|
|
if( battle_config.homunculus_autofeed_always ){
|
|
if( battle_config.homunculus_autofeed_always ){
|
|
// Always send ON or OFF
|
|
// Always send ON or OFF
|