diff --git a/L2J_Mobius_2.5_Underground/dist/game/config/AttendanceRewards.ini b/L2J_Mobius_2.5_Underground/dist/game/config/AttendanceRewards.ini index 5c2bac8058..e4a80348fd 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/config/AttendanceRewards.ini +++ b/L2J_Mobius_2.5_Underground/dist/game/config/AttendanceRewards.ini @@ -21,6 +21,10 @@ AttendanceRewardsShareAccount = False # Retail: 30 AttendanceRewardDelay = 30 +# Popup the reward window when player enters the game. +# Default: True +AttendancePopupStart = True + # Popup the reward window if reward is available 30 minutes after login. # Default: False AttendancePopupWindow = False diff --git a/L2J_Mobius_2.5_Underground/java/org/l2jmobius/Config.java b/L2J_Mobius_2.5_Underground/java/org/l2jmobius/Config.java index c7d8583889..83e40bc7dd 100644 --- a/L2J_Mobius_2.5_Underground/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_2.5_Underground/java/org/l2jmobius/Config.java @@ -153,6 +153,7 @@ public class Config public static boolean PREMIUM_ONLY_ATTENDANCE_REWARDS; public static boolean ATTENDANCE_REWARDS_SHARE_ACCOUNT; public static int ATTENDANCE_REWARD_DELAY; + public static boolean ATTENDANCE_POPUP_START; public static boolean ATTENDANCE_POPUP_WINDOW; public static boolean PLAYER_DELEVEL; public static int DELEVEL_MINIMUM; @@ -1557,6 +1558,7 @@ public class Config PREMIUM_ONLY_ATTENDANCE_REWARDS = Attandance.getBoolean("PremiumOnlyAttendanceRewards", false); ATTENDANCE_REWARDS_SHARE_ACCOUNT = Attandance.getBoolean("AttendanceRewardsShareAccount", false); ATTENDANCE_REWARD_DELAY = Attandance.getInt("AttendanceRewardDelay", 30); + ATTENDANCE_POPUP_START = Attandance.getBoolean("AttendancePopupStart", true); ATTENDANCE_POPUP_WINDOW = Attandance.getBoolean("AttendancePopupWindow", false); // Load AttributeSystem config file (if exists) diff --git a/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index 09bf4d44b6..902c7bf7d5 100644 --- a/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -665,6 +665,11 @@ public class EnterWorld implements IClientIncomingPacket } } }, Config.ATTENDANCE_REWARD_DELAY * 60 * 1000); + + if (Config.ATTENDANCE_POPUP_START) + { + player.sendPacket(new ExVipAttendanceItemList(player)); + } } if (Config.HARDWARE_INFO_ENABLED) diff --git a/L2J_Mobius_3.0_Helios/dist/game/config/AttendanceRewards.ini b/L2J_Mobius_3.0_Helios/dist/game/config/AttendanceRewards.ini index 5c2bac8058..e4a80348fd 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/config/AttendanceRewards.ini +++ b/L2J_Mobius_3.0_Helios/dist/game/config/AttendanceRewards.ini @@ -21,6 +21,10 @@ AttendanceRewardsShareAccount = False # Retail: 30 AttendanceRewardDelay = 30 +# Popup the reward window when player enters the game. +# Default: True +AttendancePopupStart = True + # Popup the reward window if reward is available 30 minutes after login. # Default: False AttendancePopupWindow = False diff --git a/L2J_Mobius_3.0_Helios/java/org/l2jmobius/Config.java b/L2J_Mobius_3.0_Helios/java/org/l2jmobius/Config.java index 44291b2dfb..80933e74f7 100644 --- a/L2J_Mobius_3.0_Helios/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_3.0_Helios/java/org/l2jmobius/Config.java @@ -153,6 +153,7 @@ public class Config public static boolean PREMIUM_ONLY_ATTENDANCE_REWARDS; public static boolean ATTENDANCE_REWARDS_SHARE_ACCOUNT; public static int ATTENDANCE_REWARD_DELAY; + public static boolean ATTENDANCE_POPUP_START; public static boolean ATTENDANCE_POPUP_WINDOW; public static boolean PLAYER_DELEVEL; public static int DELEVEL_MINIMUM; @@ -1570,6 +1571,7 @@ public class Config PREMIUM_ONLY_ATTENDANCE_REWARDS = Attandance.getBoolean("PremiumOnlyAttendanceRewards", false); ATTENDANCE_REWARDS_SHARE_ACCOUNT = Attandance.getBoolean("AttendanceRewardsShareAccount", false); ATTENDANCE_REWARD_DELAY = Attandance.getInt("AttendanceRewardDelay", 30); + ATTENDANCE_POPUP_START = Attandance.getBoolean("AttendancePopupStart", true); ATTENDANCE_POPUP_WINDOW = Attandance.getBoolean("AttendancePopupWindow", false); // Load AttributeSystem config file (if exists) diff --git a/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index 09bf4d44b6..902c7bf7d5 100644 --- a/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -665,6 +665,11 @@ public class EnterWorld implements IClientIncomingPacket } } }, Config.ATTENDANCE_REWARD_DELAY * 60 * 1000); + + if (Config.ATTENDANCE_POPUP_START) + { + player.sendPacket(new ExVipAttendanceItemList(player)); + } } if (Config.HARDWARE_INFO_ENABLED) diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/config/AttendanceRewards.ini b/L2J_Mobius_4.0_GrandCrusade/dist/game/config/AttendanceRewards.ini index 5c2bac8058..e4a80348fd 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/config/AttendanceRewards.ini +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/config/AttendanceRewards.ini @@ -21,6 +21,10 @@ AttendanceRewardsShareAccount = False # Retail: 30 AttendanceRewardDelay = 30 +# Popup the reward window when player enters the game. +# Default: True +AttendancePopupStart = True + # Popup the reward window if reward is available 30 minutes after login. # Default: False AttendancePopupWindow = False diff --git a/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/Config.java b/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/Config.java index 3fa3381056..f7164d8f71 100644 --- a/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/Config.java @@ -153,6 +153,7 @@ public class Config public static boolean PREMIUM_ONLY_ATTENDANCE_REWARDS; public static boolean ATTENDANCE_REWARDS_SHARE_ACCOUNT; public static int ATTENDANCE_REWARD_DELAY; + public static boolean ATTENDANCE_POPUP_START; public static boolean ATTENDANCE_POPUP_WINDOW; public static boolean PLAYER_DELEVEL; public static int DELEVEL_MINIMUM; @@ -1557,6 +1558,7 @@ public class Config PREMIUM_ONLY_ATTENDANCE_REWARDS = Attandance.getBoolean("PremiumOnlyAttendanceRewards", false); ATTENDANCE_REWARDS_SHARE_ACCOUNT = Attandance.getBoolean("AttendanceRewardsShareAccount", false); ATTENDANCE_REWARD_DELAY = Attandance.getInt("AttendanceRewardDelay", 30); + ATTENDANCE_POPUP_START = Attandance.getBoolean("AttendancePopupStart", true); ATTENDANCE_POPUP_WINDOW = Attandance.getBoolean("AttendancePopupWindow", false); // Load AttributeSystem config file (if exists) diff --git a/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index bffb800bda..e5f9aa60a5 100644 --- a/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -665,6 +665,11 @@ public class EnterWorld implements IClientIncomingPacket } } }, Config.ATTENDANCE_REWARD_DELAY * 60 * 1000); + + if (Config.ATTENDANCE_POPUP_START) + { + player.sendPacket(new ExVipAttendanceItemList(player)); + } } if (Config.HARDWARE_INFO_ENABLED) diff --git a/L2J_Mobius_5.0_Salvation/dist/game/config/AttendanceRewards.ini b/L2J_Mobius_5.0_Salvation/dist/game/config/AttendanceRewards.ini index 5c2bac8058..e4a80348fd 100644 --- a/L2J_Mobius_5.0_Salvation/dist/game/config/AttendanceRewards.ini +++ b/L2J_Mobius_5.0_Salvation/dist/game/config/AttendanceRewards.ini @@ -21,6 +21,10 @@ AttendanceRewardsShareAccount = False # Retail: 30 AttendanceRewardDelay = 30 +# Popup the reward window when player enters the game. +# Default: True +AttendancePopupStart = True + # Popup the reward window if reward is available 30 minutes after login. # Default: False AttendancePopupWindow = False diff --git a/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/Config.java b/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/Config.java index 1068f4d402..9d34c64dda 100644 --- a/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/Config.java @@ -154,6 +154,7 @@ public class Config public static boolean PREMIUM_ONLY_ATTENDANCE_REWARDS; public static boolean ATTENDANCE_REWARDS_SHARE_ACCOUNT; public static int ATTENDANCE_REWARD_DELAY; + public static boolean ATTENDANCE_POPUP_START; public static boolean ATTENDANCE_POPUP_WINDOW; public static boolean BALTHUS_KNIGHTS_ENABLED; public static int BALTHUS_KNIGHTS_LEVEL; @@ -1540,6 +1541,7 @@ public class Config PREMIUM_ONLY_ATTENDANCE_REWARDS = Attandance.getBoolean("PremiumOnlyAttendanceRewards", false); ATTENDANCE_REWARDS_SHARE_ACCOUNT = Attandance.getBoolean("AttendanceRewardsShareAccount", false); ATTENDANCE_REWARD_DELAY = Attandance.getInt("AttendanceRewardDelay", 30); + ATTENDANCE_POPUP_START = Attandance.getBoolean("AttendancePopupStart", true); ATTENDANCE_POPUP_WINDOW = Attandance.getBoolean("AttendancePopupWindow", false); // Load AttributeSystem config file (if exists) diff --git a/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index 954cda3cc8..17eeb98686 100644 --- a/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -663,6 +663,11 @@ public class EnterWorld implements IClientIncomingPacket } } }, Config.ATTENDANCE_REWARD_DELAY * 60 * 1000); + + if (Config.ATTENDANCE_POPUP_START) + { + player.sendPacket(new ExVipAttendanceItemList(player)); + } } if (Config.HARDWARE_INFO_ENABLED) diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/config/AttendanceRewards.ini b/L2J_Mobius_5.5_EtinasFate/dist/game/config/AttendanceRewards.ini index 5c2bac8058..e4a80348fd 100644 --- a/L2J_Mobius_5.5_EtinasFate/dist/game/config/AttendanceRewards.ini +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/config/AttendanceRewards.ini @@ -21,6 +21,10 @@ AttendanceRewardsShareAccount = False # Retail: 30 AttendanceRewardDelay = 30 +# Popup the reward window when player enters the game. +# Default: True +AttendancePopupStart = True + # Popup the reward window if reward is available 30 minutes after login. # Default: False AttendancePopupWindow = False diff --git a/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/Config.java b/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/Config.java index 1e1dbbac1d..6e09372fc4 100644 --- a/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/Config.java @@ -154,6 +154,7 @@ public class Config public static boolean PREMIUM_ONLY_ATTENDANCE_REWARDS; public static boolean ATTENDANCE_REWARDS_SHARE_ACCOUNT; public static int ATTENDANCE_REWARD_DELAY; + public static boolean ATTENDANCE_POPUP_START; public static boolean ATTENDANCE_POPUP_WINDOW; public static boolean BALTHUS_KNIGHTS_ENABLED; public static int BALTHUS_KNIGHTS_LEVEL; @@ -1547,6 +1548,7 @@ public class Config PREMIUM_ONLY_ATTENDANCE_REWARDS = Attandance.getBoolean("PremiumOnlyAttendanceRewards", false); ATTENDANCE_REWARDS_SHARE_ACCOUNT = Attandance.getBoolean("AttendanceRewardsShareAccount", false); ATTENDANCE_REWARD_DELAY = Attandance.getInt("AttendanceRewardDelay", 30); + ATTENDANCE_POPUP_START = Attandance.getBoolean("AttendancePopupStart", true); ATTENDANCE_POPUP_WINDOW = Attandance.getBoolean("AttendancePopupWindow", false); // Load AttributeSystem config file (if exists) diff --git a/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index 1f683ae989..77b82c329f 100644 --- a/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -663,6 +663,11 @@ public class EnterWorld implements IClientIncomingPacket } } }, Config.ATTENDANCE_REWARD_DELAY * 60 * 1000); + + if (Config.ATTENDANCE_POPUP_START) + { + player.sendPacket(new ExVipAttendanceItemList(player)); + } } if (Config.HARDWARE_INFO_ENABLED) diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/config/AttendanceRewards.ini b/L2J_Mobius_6.0_Fafurion/dist/game/config/AttendanceRewards.ini index 5c2bac8058..e4a80348fd 100644 --- a/L2J_Mobius_6.0_Fafurion/dist/game/config/AttendanceRewards.ini +++ b/L2J_Mobius_6.0_Fafurion/dist/game/config/AttendanceRewards.ini @@ -21,6 +21,10 @@ AttendanceRewardsShareAccount = False # Retail: 30 AttendanceRewardDelay = 30 +# Popup the reward window when player enters the game. +# Default: True +AttendancePopupStart = True + # Popup the reward window if reward is available 30 minutes after login. # Default: False AttendancePopupWindow = False diff --git a/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/Config.java b/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/Config.java index 5bca857928..3f1fe16c79 100644 --- a/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/Config.java @@ -154,6 +154,7 @@ public class Config public static boolean PREMIUM_ONLY_ATTENDANCE_REWARDS; public static boolean ATTENDANCE_REWARDS_SHARE_ACCOUNT; public static int ATTENDANCE_REWARD_DELAY; + public static boolean ATTENDANCE_POPUP_START; public static boolean ATTENDANCE_POPUP_WINDOW; public static boolean BALTHUS_KNIGHTS_ENABLED; public static int BALTHUS_KNIGHTS_LEVEL; @@ -1569,6 +1570,7 @@ public class Config PREMIUM_ONLY_ATTENDANCE_REWARDS = Attandance.getBoolean("PremiumOnlyAttendanceRewards", false); ATTENDANCE_REWARDS_SHARE_ACCOUNT = Attandance.getBoolean("AttendanceRewardsShareAccount", false); ATTENDANCE_REWARD_DELAY = Attandance.getInt("AttendanceRewardDelay", 30); + ATTENDANCE_POPUP_START = Attandance.getBoolean("AttendancePopupStart", true); ATTENDANCE_POPUP_WINDOW = Attandance.getBoolean("AttendancePopupWindow", false); // Load AttributeSystem config file (if exists) diff --git a/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index 1f683ae989..77b82c329f 100644 --- a/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -663,6 +663,11 @@ public class EnterWorld implements IClientIncomingPacket } } }, Config.ATTENDANCE_REWARD_DELAY * 60 * 1000); + + if (Config.ATTENDANCE_POPUP_START) + { + player.sendPacket(new ExVipAttendanceItemList(player)); + } } if (Config.HARDWARE_INFO_ENABLED) diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/config/AttendanceRewards.ini b/L2J_Mobius_7.0_PreludeOfWar/dist/game/config/AttendanceRewards.ini index 5c2bac8058..e4a80348fd 100644 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/config/AttendanceRewards.ini +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/config/AttendanceRewards.ini @@ -21,6 +21,10 @@ AttendanceRewardsShareAccount = False # Retail: 30 AttendanceRewardDelay = 30 +# Popup the reward window when player enters the game. +# Default: True +AttendancePopupStart = True + # Popup the reward window if reward is available 30 minutes after login. # Default: False AttendancePopupWindow = False diff --git a/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/Config.java b/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/Config.java index 5516e08225..187bc0bd7c 100644 --- a/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/Config.java @@ -155,6 +155,7 @@ public class Config public static boolean PREMIUM_ONLY_ATTENDANCE_REWARDS; public static boolean ATTENDANCE_REWARDS_SHARE_ACCOUNT; public static int ATTENDANCE_REWARD_DELAY; + public static boolean ATTENDANCE_POPUP_START; public static boolean ATTENDANCE_POPUP_WINDOW; public static boolean BALTHUS_KNIGHTS_ENABLED; public static int BALTHUS_KNIGHTS_LEVEL; @@ -1580,6 +1581,7 @@ public class Config PREMIUM_ONLY_ATTENDANCE_REWARDS = Attandance.getBoolean("PremiumOnlyAttendanceRewards", false); ATTENDANCE_REWARDS_SHARE_ACCOUNT = Attandance.getBoolean("AttendanceRewardsShareAccount", false); ATTENDANCE_REWARD_DELAY = Attandance.getInt("AttendanceRewardDelay", 30); + ATTENDANCE_POPUP_START = Attandance.getBoolean("AttendancePopupStart", true); ATTENDANCE_POPUP_WINDOW = Attandance.getBoolean("AttendancePopupWindow", false); // Load AttributeSystem config file (if exists) diff --git a/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index f977c87a8f..782f03c902 100644 --- a/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_7.0_PreludeOfWar/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -669,6 +669,11 @@ public class EnterWorld implements IClientIncomingPacket } } }, Config.ATTENDANCE_REWARD_DELAY * 60 * 1000); + + if (Config.ATTENDANCE_POPUP_START) + { + player.sendPacket(new ExVipAttendanceItemList(player)); + } } if (Config.HARDWARE_INFO_ENABLED) diff --git a/L2J_Mobius_8.0_Homunculus/dist/game/config/AttendanceRewards.ini b/L2J_Mobius_8.0_Homunculus/dist/game/config/AttendanceRewards.ini index 5c2bac8058..e4a80348fd 100644 --- a/L2J_Mobius_8.0_Homunculus/dist/game/config/AttendanceRewards.ini +++ b/L2J_Mobius_8.0_Homunculus/dist/game/config/AttendanceRewards.ini @@ -21,6 +21,10 @@ AttendanceRewardsShareAccount = False # Retail: 30 AttendanceRewardDelay = 30 +# Popup the reward window when player enters the game. +# Default: True +AttendancePopupStart = True + # Popup the reward window if reward is available 30 minutes after login. # Default: False AttendancePopupWindow = False diff --git a/L2J_Mobius_8.0_Homunculus/java/org/l2jmobius/Config.java b/L2J_Mobius_8.0_Homunculus/java/org/l2jmobius/Config.java index 082004237f..c01de0062d 100644 --- a/L2J_Mobius_8.0_Homunculus/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_8.0_Homunculus/java/org/l2jmobius/Config.java @@ -155,6 +155,7 @@ public class Config public static boolean PREMIUM_ONLY_ATTENDANCE_REWARDS; public static boolean ATTENDANCE_REWARDS_SHARE_ACCOUNT; public static int ATTENDANCE_REWARD_DELAY; + public static boolean ATTENDANCE_POPUP_START; public static boolean ATTENDANCE_POPUP_WINDOW; public static boolean BALTHUS_KNIGHTS_ENABLED; public static int BALTHUS_KNIGHTS_LEVEL; @@ -1577,6 +1578,7 @@ public class Config PREMIUM_ONLY_ATTENDANCE_REWARDS = Attandance.getBoolean("PremiumOnlyAttendanceRewards", false); ATTENDANCE_REWARDS_SHARE_ACCOUNT = Attandance.getBoolean("AttendanceRewardsShareAccount", false); ATTENDANCE_REWARD_DELAY = Attandance.getInt("AttendanceRewardDelay", 30); + ATTENDANCE_POPUP_START = Attandance.getBoolean("AttendancePopupStart", true); ATTENDANCE_POPUP_WINDOW = Attandance.getBoolean("AttendancePopupWindow", false); // Load AttributeSystem config file (if exists) diff --git a/L2J_Mobius_8.0_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_8.0_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index 4fc582ab28..0daef5157d 100644 --- a/L2J_Mobius_8.0_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_8.0_Homunculus/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -677,6 +677,11 @@ public class EnterWorld implements IClientIncomingPacket } } }, Config.ATTENDANCE_REWARD_DELAY * 60 * 1000); + + if (Config.ATTENDANCE_POPUP_START) + { + player.sendPacket(new ExVipAttendanceItemList(player)); + } } if (Config.HARDWARE_INFO_ENABLED) diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/config/AttendanceRewards.ini b/L2J_Mobius_Classic_2.0_Saviors/dist/game/config/AttendanceRewards.ini index 5c2bac8058..e4a80348fd 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/config/AttendanceRewards.ini +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/config/AttendanceRewards.ini @@ -21,6 +21,10 @@ AttendanceRewardsShareAccount = False # Retail: 30 AttendanceRewardDelay = 30 +# Popup the reward window when player enters the game. +# Default: True +AttendancePopupStart = True + # Popup the reward window if reward is available 30 minutes after login. # Default: False AttendancePopupWindow = False diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/Config.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/Config.java index dcfef59b0f..c202c0fdbd 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/Config.java @@ -154,6 +154,7 @@ public class Config public static boolean PREMIUM_ONLY_ATTENDANCE_REWARDS; public static boolean ATTENDANCE_REWARDS_SHARE_ACCOUNT; public static int ATTENDANCE_REWARD_DELAY; + public static boolean ATTENDANCE_POPUP_START; public static boolean ATTENDANCE_POPUP_WINDOW; public static boolean PLAYER_DELEVEL; public static int DELEVEL_MINIMUM; @@ -1488,6 +1489,7 @@ public class Config PREMIUM_ONLY_ATTENDANCE_REWARDS = Attandance.getBoolean("PremiumOnlyAttendanceRewards", false); ATTENDANCE_REWARDS_SHARE_ACCOUNT = Attandance.getBoolean("AttendanceRewardsShareAccount", false); ATTENDANCE_REWARD_DELAY = Attandance.getInt("AttendanceRewardDelay", 30); + ATTENDANCE_POPUP_START = Attandance.getBoolean("AttendancePopupStart", true); ATTENDANCE_POPUP_WINDOW = Attandance.getBoolean("AttendancePopupWindow", false); // Load AttributeSystem config file (if exists) diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index 6c0abe2984..a2b9eed2f2 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -648,6 +648,11 @@ public class EnterWorld implements IClientIncomingPacket } } }, Config.ATTENDANCE_REWARD_DELAY * 60 * 1000); + + if (Config.ATTENDANCE_POPUP_START) + { + player.sendPacket(new ExVipAttendanceItemList(player)); + } } if (Config.HARDWARE_INFO_ENABLED) diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/config/AttendanceRewards.ini b/L2J_Mobius_Classic_2.1_Zaken/dist/game/config/AttendanceRewards.ini index 5c2bac8058..e4a80348fd 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/config/AttendanceRewards.ini +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/config/AttendanceRewards.ini @@ -21,6 +21,10 @@ AttendanceRewardsShareAccount = False # Retail: 30 AttendanceRewardDelay = 30 +# Popup the reward window when player enters the game. +# Default: True +AttendancePopupStart = True + # Popup the reward window if reward is available 30 minutes after login. # Default: False AttendancePopupWindow = False diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/Config.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/Config.java index a2df68733e..ffac9ebadb 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/Config.java @@ -154,6 +154,7 @@ public class Config public static boolean PREMIUM_ONLY_ATTENDANCE_REWARDS; public static boolean ATTENDANCE_REWARDS_SHARE_ACCOUNT; public static int ATTENDANCE_REWARD_DELAY; + public static boolean ATTENDANCE_POPUP_START; public static boolean ATTENDANCE_POPUP_WINDOW; public static boolean PLAYER_DELEVEL; public static int DELEVEL_MINIMUM; @@ -1492,6 +1493,7 @@ public class Config PREMIUM_ONLY_ATTENDANCE_REWARDS = Attandance.getBoolean("PremiumOnlyAttendanceRewards", false); ATTENDANCE_REWARDS_SHARE_ACCOUNT = Attandance.getBoolean("AttendanceRewardsShareAccount", false); ATTENDANCE_REWARD_DELAY = Attandance.getInt("AttendanceRewardDelay", 30); + ATTENDANCE_POPUP_START = Attandance.getBoolean("AttendancePopupStart", true); ATTENDANCE_POPUP_WINDOW = Attandance.getBoolean("AttendancePopupWindow", false); // Load AttributeSystem config file (if exists) diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index 60aacdedcd..edefc4f22f 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -648,6 +648,11 @@ public class EnterWorld implements IClientIncomingPacket } } }, Config.ATTENDANCE_REWARD_DELAY * 60 * 1000); + + if (Config.ATTENDANCE_POPUP_START) + { + player.sendPacket(new ExVipAttendanceItemList(player)); + } } if (Config.HARDWARE_INFO_ENABLED) diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/config/AttendanceRewards.ini b/L2J_Mobius_Classic_2.2_Antharas/dist/game/config/AttendanceRewards.ini index 5c2bac8058..e4a80348fd 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/config/AttendanceRewards.ini +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/config/AttendanceRewards.ini @@ -21,6 +21,10 @@ AttendanceRewardsShareAccount = False # Retail: 30 AttendanceRewardDelay = 30 +# Popup the reward window when player enters the game. +# Default: True +AttendancePopupStart = True + # Popup the reward window if reward is available 30 minutes after login. # Default: False AttendancePopupWindow = False diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/Config.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/Config.java index a2df68733e..ffac9ebadb 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/Config.java @@ -154,6 +154,7 @@ public class Config public static boolean PREMIUM_ONLY_ATTENDANCE_REWARDS; public static boolean ATTENDANCE_REWARDS_SHARE_ACCOUNT; public static int ATTENDANCE_REWARD_DELAY; + public static boolean ATTENDANCE_POPUP_START; public static boolean ATTENDANCE_POPUP_WINDOW; public static boolean PLAYER_DELEVEL; public static int DELEVEL_MINIMUM; @@ -1492,6 +1493,7 @@ public class Config PREMIUM_ONLY_ATTENDANCE_REWARDS = Attandance.getBoolean("PremiumOnlyAttendanceRewards", false); ATTENDANCE_REWARDS_SHARE_ACCOUNT = Attandance.getBoolean("AttendanceRewardsShareAccount", false); ATTENDANCE_REWARD_DELAY = Attandance.getInt("AttendanceRewardDelay", 30); + ATTENDANCE_POPUP_START = Attandance.getBoolean("AttendancePopupStart", true); ATTENDANCE_POPUP_WINDOW = Attandance.getBoolean("AttendancePopupWindow", false); // Load AttributeSystem config file (if exists) diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index f7b6a8e239..e3af565747 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -650,6 +650,11 @@ public class EnterWorld implements IClientIncomingPacket } } }, Config.ATTENDANCE_REWARD_DELAY * 60 * 1000); + + if (Config.ATTENDANCE_POPUP_START) + { + player.sendPacket(new ExVipAttendanceItemList(player)); + } } if (Config.HARDWARE_INFO_ENABLED) diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/config/AttendanceRewards.ini b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/config/AttendanceRewards.ini index 5c2bac8058..e4a80348fd 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/config/AttendanceRewards.ini +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/config/AttendanceRewards.ini @@ -21,6 +21,10 @@ AttendanceRewardsShareAccount = False # Retail: 30 AttendanceRewardDelay = 30 +# Popup the reward window when player enters the game. +# Default: True +AttendancePopupStart = True + # Popup the reward window if reward is available 30 minutes after login. # Default: False AttendancePopupWindow = False diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/Config.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/Config.java index 058800200b..a9b81c697e 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/Config.java @@ -154,6 +154,7 @@ public class Config public static boolean PREMIUM_ONLY_ATTENDANCE_REWARDS; public static boolean ATTENDANCE_REWARDS_SHARE_ACCOUNT; public static int ATTENDANCE_REWARD_DELAY; + public static boolean ATTENDANCE_POPUP_START; public static boolean ATTENDANCE_POPUP_WINDOW; public static boolean PLAYER_DELEVEL; public static int DELEVEL_MINIMUM; @@ -1492,6 +1493,7 @@ public class Config PREMIUM_ONLY_ATTENDANCE_REWARDS = Attandance.getBoolean("PremiumOnlyAttendanceRewards", false); ATTENDANCE_REWARDS_SHARE_ACCOUNT = Attandance.getBoolean("AttendanceRewardsShareAccount", false); ATTENDANCE_REWARD_DELAY = Attandance.getInt("AttendanceRewardDelay", 30); + ATTENDANCE_POPUP_START = Attandance.getBoolean("AttendancePopupStart", true); ATTENDANCE_POPUP_WINDOW = Attandance.getBoolean("AttendancePopupWindow", false); // Load AttributeSystem config file (if exists) diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index f7b6a8e239..e3af565747 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -650,6 +650,11 @@ public class EnterWorld implements IClientIncomingPacket } } }, Config.ATTENDANCE_REWARD_DELAY * 60 * 1000); + + if (Config.ATTENDANCE_POPUP_START) + { + player.sendPacket(new ExVipAttendanceItemList(player)); + } } if (Config.HARDWARE_INFO_ENABLED) diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/config/AttendanceRewards.ini b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/config/AttendanceRewards.ini index 5c2bac8058..e4a80348fd 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/config/AttendanceRewards.ini +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/config/AttendanceRewards.ini @@ -21,6 +21,10 @@ AttendanceRewardsShareAccount = False # Retail: 30 AttendanceRewardDelay = 30 +# Popup the reward window when player enters the game. +# Default: True +AttendancePopupStart = True + # Popup the reward window if reward is available 30 minutes after login. # Default: False AttendancePopupWindow = False diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/Config.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/Config.java index d8f8870633..594796ad0c 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/Config.java @@ -154,6 +154,7 @@ public class Config public static boolean PREMIUM_ONLY_ATTENDANCE_REWARDS; public static boolean ATTENDANCE_REWARDS_SHARE_ACCOUNT; public static int ATTENDANCE_REWARD_DELAY; + public static boolean ATTENDANCE_POPUP_START; public static boolean ATTENDANCE_POPUP_WINDOW; public static boolean PLAYER_DELEVEL; public static int DELEVEL_MINIMUM; @@ -1497,6 +1498,7 @@ public class Config PREMIUM_ONLY_ATTENDANCE_REWARDS = Attandance.getBoolean("PremiumOnlyAttendanceRewards", false); ATTENDANCE_REWARDS_SHARE_ACCOUNT = Attandance.getBoolean("AttendanceRewardsShareAccount", false); ATTENDANCE_REWARD_DELAY = Attandance.getInt("AttendanceRewardDelay", 30); + ATTENDANCE_POPUP_START = Attandance.getBoolean("AttendancePopupStart", true); ATTENDANCE_POPUP_WINDOW = Attandance.getBoolean("AttendancePopupWindow", false); // Load AttributeSystem config file (if exists) diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index f7b6a8e239..e3af565747 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -650,6 +650,11 @@ public class EnterWorld implements IClientIncomingPacket } } }, Config.ATTENDANCE_REWARD_DELAY * 60 * 1000); + + if (Config.ATTENDANCE_POPUP_START) + { + player.sendPacket(new ExVipAttendanceItemList(player)); + } } if (Config.HARDWARE_INFO_ENABLED) diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/config/AttendanceRewards.ini b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/config/AttendanceRewards.ini index 5c2bac8058..e4a80348fd 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/config/AttendanceRewards.ini +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/config/AttendanceRewards.ini @@ -21,6 +21,10 @@ AttendanceRewardsShareAccount = False # Retail: 30 AttendanceRewardDelay = 30 +# Popup the reward window when player enters the game. +# Default: True +AttendancePopupStart = True + # Popup the reward window if reward is available 30 minutes after login. # Default: False AttendancePopupWindow = False diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/Config.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/Config.java index 0daf54ec42..a601ccd45a 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/Config.java @@ -155,6 +155,7 @@ public class Config public static boolean PREMIUM_ONLY_ATTENDANCE_REWARDS; public static boolean ATTENDANCE_REWARDS_SHARE_ACCOUNT; public static int ATTENDANCE_REWARD_DELAY; + public static boolean ATTENDANCE_POPUP_START; public static boolean ATTENDANCE_POPUP_WINDOW; public static boolean PLAYER_DELEVEL; public static int DELEVEL_MINIMUM; @@ -1505,6 +1506,7 @@ public class Config PREMIUM_ONLY_ATTENDANCE_REWARDS = Attandance.getBoolean("PremiumOnlyAttendanceRewards", false); ATTENDANCE_REWARDS_SHARE_ACCOUNT = Attandance.getBoolean("AttendanceRewardsShareAccount", false); ATTENDANCE_REWARD_DELAY = Attandance.getInt("AttendanceRewardDelay", 30); + ATTENDANCE_POPUP_START = Attandance.getBoolean("AttendancePopupStart", true); ATTENDANCE_POPUP_WINDOW = Attandance.getBoolean("AttendancePopupWindow", false); // Load AttributeSystem config file (if exists) diff --git a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index b4224aa2c1..1ca5e57b2b 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -654,6 +654,11 @@ public class EnterWorld implements IClientIncomingPacket } } }, Config.ATTENDANCE_REWARD_DELAY * 60 * 1000); + + if (Config.ATTENDANCE_POPUP_START) + { + player.sendPacket(new ExVipAttendanceItemList(player)); + } } if (Config.HARDWARE_INFO_ENABLED) diff --git a/L2J_Mobius_Classic_Interlude/dist/game/config/AttendanceRewards.ini b/L2J_Mobius_Classic_Interlude/dist/game/config/AttendanceRewards.ini index 8eec87f565..218aaaf67e 100644 --- a/L2J_Mobius_Classic_Interlude/dist/game/config/AttendanceRewards.ini +++ b/L2J_Mobius_Classic_Interlude/dist/game/config/AttendanceRewards.ini @@ -21,6 +21,10 @@ AttendanceRewardsShareAccount = False # Retail: 30 AttendanceRewardDelay = 30 +# Popup the reward window when player enters the game. +# Default: True +AttendancePopupStart = True + # Popup the reward window if reward is available 30 minutes after login. # Default: False AttendancePopupWindow = False diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/Config.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/Config.java index 5367a82d4d..f2a5549e7a 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/Config.java @@ -155,6 +155,7 @@ public class Config public static boolean PREMIUM_ONLY_ATTENDANCE_REWARDS; public static boolean ATTENDANCE_REWARDS_SHARE_ACCOUNT; public static int ATTENDANCE_REWARD_DELAY; + public static boolean ATTENDANCE_POPUP_START; public static boolean ATTENDANCE_POPUP_WINDOW; public static boolean PLAYER_DELEVEL; public static int DELEVEL_MINIMUM; @@ -1506,6 +1507,7 @@ public class Config PREMIUM_ONLY_ATTENDANCE_REWARDS = Attandance.getBoolean("PremiumOnlyAttendanceRewards", false); ATTENDANCE_REWARDS_SHARE_ACCOUNT = Attandance.getBoolean("AttendanceRewardsShareAccount", false); ATTENDANCE_REWARD_DELAY = Attandance.getInt("AttendanceRewardDelay", 30); + ATTENDANCE_POPUP_START = Attandance.getBoolean("AttendancePopupStart", true); ATTENDANCE_POPUP_WINDOW = Attandance.getBoolean("AttendancePopupWindow", false); // Load AttributeSystem config file (if exists) diff --git a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index 190af588ac..b7c93ca6e1 100644 --- a/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_Classic_Interlude/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -648,6 +648,11 @@ public class EnterWorld implements IClientIncomingPacket } } }, Config.ATTENDANCE_REWARD_DELAY * 60 * 1000); + + if (Config.ATTENDANCE_POPUP_START) + { + player.sendPacket(new ExVipAttendanceItemList(player)); + } } if (Config.HARDWARE_INFO_ENABLED) diff --git a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/dist/game/config/AttendanceRewards.ini b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/dist/game/config/AttendanceRewards.ini index 5c2bac8058..e4a80348fd 100644 --- a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/dist/game/config/AttendanceRewards.ini +++ b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/dist/game/config/AttendanceRewards.ini @@ -21,6 +21,10 @@ AttendanceRewardsShareAccount = False # Retail: 30 AttendanceRewardDelay = 30 +# Popup the reward window when player enters the game. +# Default: True +AttendancePopupStart = True + # Popup the reward window if reward is available 30 minutes after login. # Default: False AttendancePopupWindow = False diff --git a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/Config.java b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/Config.java index 96c5b84bba..85d2663df9 100644 --- a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/Config.java +++ b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/Config.java @@ -155,6 +155,7 @@ public class Config public static boolean PREMIUM_ONLY_ATTENDANCE_REWARDS; public static boolean ATTENDANCE_REWARDS_SHARE_ACCOUNT; public static int ATTENDANCE_REWARD_DELAY; + public static boolean ATTENDANCE_POPUP_START; public static boolean ATTENDANCE_POPUP_WINDOW; public static boolean PLAYER_DELEVEL; public static int DELEVEL_MINIMUM; @@ -1505,6 +1506,7 @@ public class Config PREMIUM_ONLY_ATTENDANCE_REWARDS = Attandance.getBoolean("PremiumOnlyAttendanceRewards", false); ATTENDANCE_REWARDS_SHARE_ACCOUNT = Attandance.getBoolean("AttendanceRewardsShareAccount", false); ATTENDANCE_REWARD_DELAY = Attandance.getInt("AttendanceRewardDelay", 30); + ATTENDANCE_POPUP_START = Attandance.getBoolean("AttendancePopupStart", true); ATTENDANCE_POPUP_WINDOW = Attandance.getBoolean("AttendancePopupWindow", false); // Load AttributeSystem config file (if exists) diff --git a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java index 9a49b091e7..34e681ee2f 100644 --- a/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java +++ b/L2J_Mobius_Essence_4.0_DwellingOfSpirits/java/org/l2jmobius/gameserver/network/clientpackets/EnterWorld.java @@ -674,6 +674,11 @@ public class EnterWorld implements IClientIncomingPacket } } }, Config.ATTENDANCE_REWARD_DELAY * 60 * 1000); + + if (Config.ATTENDANCE_POPUP_START) + { + player.sendPacket(new ExVipAttendanceItemList(player)); + } } if (Config.HARDWARE_INFO_ENABLED)