summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-06-22 04:24:20 +0200
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-06-28 01:07:12 +0200
commitddf679b3808e56309a7352eead2cd1f93c9f99c9 (patch)
tree139c455b5b483100078c356e5b03cfca1177b1e3 /src
parentb721e019717fe7254bdfd8e640847ad053d16eb1 (diff)
downloadhercules-ddf679b3808e56309a7352eead2cd1f93c9f99c9.tar.gz
hercules-ddf679b3808e56309a7352eead2cd1f93c9f99c9.tar.bz2
hercules-ddf679b3808e56309a7352eead2cd1f93c9f99c9.tar.xz
hercules-ddf679b3808e56309a7352eead2cd1f93c9f99c9.zip
Add battle flag for tip of the day window display
Diffstat (limited to 'src')
-rw-r--r--src/map/battle.c1
-rw-r--r--src/map/battle.h1
-rw-r--r--src/map/clif.c3
3 files changed, 4 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 0ef9c66e8..4d07a2eb9 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -7435,6 +7435,7 @@ static const struct battle_data {
{ "display_rate_messages", &battle_config.display_rate_messages, 1, 0, 7, },
{ "display_config_messages", &battle_config.display_config_messages, 0x1F1, 0, 0x1F7, },
{ "display_overweight_messages", &battle_config.display_overweight_messages, 3, 0, 3, },
+ { "show_tip_window", &battle_config.show_tip_window, 1, 0, 1, },
{ "features/enable_refinery_ui", &battle_config.enable_refinery_ui, 1, 0, 1, },
{ "features/replace_refine_npcs", &battle_config.replace_refine_npcs, 1, 0, 1, },
{ "batk_min_limit", &battle_config.batk_min, 0, 0, INT_MAX, },
diff --git a/src/map/battle.h b/src/map/battle.h
index 19cfd2748..2e4209925 100644
--- a/src/map/battle.h
+++ b/src/map/battle.h
@@ -594,6 +594,7 @@ struct Battle_Config {
int display_rate_messages;
int display_config_messages;
int display_overweight_messages;
+ int show_tip_window;
int enable_refinery_ui;
int replace_refine_npcs;
diff --git a/src/map/clif.c b/src/map/clif.c
index 60dd18807..3f1690aa0 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -11066,7 +11066,8 @@ static void clif_parse_LoadEndAck(int fd, struct map_session_data *sd)
map->foreachpc(clif->friendslist_toggle_sub, sd->status.account_id, sd->status.char_id, 1);
#if PACKETVER >= 20171122
- clif->open_ui_send(sd, ZC_TIPBOX_UI);
+ if (battle_config.show_tip_window != 0)
+ clif->open_ui_send(sd, ZC_TIPBOX_UI);
#endif
// Run OnPCLoginEvent labels.