Addition of attendance system.
This commit is contained in:
26
L2J_Mobius_3.0_Helios/dist/game/config/AttendanceRewards.ini
vendored
Normal file
26
L2J_Mobius_3.0_Helios/dist/game/config/AttendanceRewards.ini
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# Attendance Reward Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# Enable daily login rewards for players.
|
||||
# To enable this feature you need to set L2.ini UseVIPAttendance value to true.
|
||||
# Rewards are set at data\AttendanceRewards.xml file.
|
||||
|
||||
# Enable the Attendance Reward system.
|
||||
# Default: False
|
||||
EnableAttendanceRewards = False
|
||||
|
||||
# Enable the Attendance Reward system only for Premium accounts.
|
||||
# Default: False
|
||||
PremiumOnlyAttendanceRewards = False
|
||||
|
||||
# Make rewards sharable in the same account.
|
||||
# Default: False (Each character will receive its own rewards.)
|
||||
AttendanceRewardsShareAccount = False
|
||||
|
||||
# Time in minutes you can redeem your reward after logging in.
|
||||
# Retail: 30
|
||||
AttendanceRewardDelay = 30
|
||||
|
||||
# Popup the reward window if reward is available 30 minutes after login.
|
||||
# Default: False
|
||||
AttendancePopupWindow = False
|
34
L2J_Mobius_3.0_Helios/dist/game/data/AttendanceRewards.xml
vendored
Normal file
34
L2J_Mobius_3.0_Helios/dist/game/data/AttendanceRewards.xml
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="xsd/AttendanceRewards.xsd">
|
||||
<item id="23805" count="50" /> <!-- Hero Coin -->
|
||||
<item id="22610" count="3" /> <!-- Luxury Cocktail -->
|
||||
<item id="1540" count="10" /> <!-- Quick Healing Potion -->
|
||||
<item id="22979" count="3" /> <!-- SP Rune 50% (1-hour) -->
|
||||
<item id="22906" count="3" /> <!-- XP Rune III 50% (1-hour) -->
|
||||
<item id="20353" count="10" /> <!-- Greater CP Potion -->
|
||||
<item id="21343" count="1" /> <!-- Agathion - Cow (7-Day) -->
|
||||
|
||||
<item id="23805" count="100" /> <!-- Hero Coin -->
|
||||
<item id="22610" count="3" /> <!-- Luxury Cocktail -->
|
||||
<item id="1540" count="10" /> <!-- Quick Healing Potion -->
|
||||
<item id="22979" count="3" /> <!-- SP Rune 50% (1-hour) -->
|
||||
<item id="22906" count="3" /> <!-- XP Rune III 50% (1-hour) -->
|
||||
<item id="20353" count="10" /> <!-- Greater CP Potion -->
|
||||
<item id="21331" count="1" /> <!-- Agathion - Griffin (7-Day) -->
|
||||
|
||||
<item id="23805" count="150" /> <!-- Hero Coin -->
|
||||
<item id="22610" count="6" /> <!-- Luxury Cocktail -->
|
||||
<item id="1540" count="20" /> <!-- Quick Healing Potion -->
|
||||
<item id="22979" count="5" /> <!-- SP Rune 50% (1-hour) -->
|
||||
<item id="22906" count="5" /> <!-- XP Rune III 50% (1-hour) -->
|
||||
<item id="20353" count="20" /> <!-- Greater CP Potion -->
|
||||
<item id="21166" count="1" /> <!-- Agathion - Zaken's Spirit Swords (7-Day) -->
|
||||
|
||||
<item id="23805" count="300" /> <!-- Hero Coin -->
|
||||
<item id="22610" count="6" /> <!-- Luxury Cocktail -->
|
||||
<item id="1540" count="20" /> <!-- Quick Healing Potion -->
|
||||
<item id="23284" count="5" /> <!-- SP Rune 100% (1-hour) -->
|
||||
<item id="23277" count="5" /> <!-- XP Rune III 100% (1-hour) -->
|
||||
<item id="23176" count="1" /> <!-- Stylish Straw Hat (30-Day) -->
|
||||
<item id="22955" count="1" /> <!-- Mount - Tame Princess Ant (30-Day) -->
|
||||
</list>
|
@@ -28,6 +28,7 @@ import com.l2jmobius.gameserver.data.xml.impl.AbilityPointsData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.AdminData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.AppearanceItemData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.ArmorSetsData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.AttendanceRewardData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.BuyListData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.DoorData;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.EnchantItemData;
|
||||
@@ -305,6 +306,12 @@ public class AdminReload implements IAdminCommandHandler
|
||||
AdminData.getInstance().broadcastMessageToGMs(activeChar.getName() + ": Reloaded Fishing data.");
|
||||
break;
|
||||
}
|
||||
case "attendance":
|
||||
{
|
||||
AttendanceRewardData.getInstance().load();
|
||||
AdminData.getInstance().broadcastMessageToGMs(activeChar.getName() + ": Reloaded Attendance Reward data.");
|
||||
break;
|
||||
}
|
||||
case "fakeplayers":
|
||||
{
|
||||
FakePlayerData.getInstance().load();
|
||||
|
18
L2J_Mobius_3.0_Helios/dist/game/data/xsd/AttendanceRewards.xsd
vendored
Normal file
18
L2J_Mobius_3.0_Helios/dist/game/data/xsd/AttendanceRewards.xsd
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
<xs:element name="list">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="item" maxOccurs="unbounded" minOccurs="0">
|
||||
<xs:complexType>
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:string">
|
||||
<xs:attribute type="xs:int" name="id" use="required"/>
|
||||
<xs:attribute type="xs:int" name="count" use="required"/>
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
Reference in New Issue
Block a user