Hey everyone,
I've been developing some features for my server and I've put together a little something that might interest some of you. It's a daily rewards system designed to give players a nice little boost for logging in each day. I thought it might be something worth sharing.
Daily Rewards Script:
This script automatically awards players with a random amount of gold coins each day when they log in. The amount varies from a minimum of 5,000 to a maximum of 20,000 gold coins.
Scripts:
Setting up this script on your server is straightforward. You need to place the DailyRewards script in your scripts directory and then register it in your creaturescripts.xml file to trigger upon player login.
Step-by-Step Guide:
Make sure to adjust the script path if you place it in a subdirectory within the scripts directory.
Remember to restart your server after making these changes to ensure everything works smoothly.
Customization
To customize the rewards to better fit your server or to add variety, you can modify the minReward and maxReward variables within the script for different gold amounts.
Try it out
Tibia Version: 8.0
Website: tibia.nu
IP: tibia.nu
Port 7171
I've been developing some features for my server and I've put together a little something that might interest some of you. It's a daily rewards system designed to give players a nice little boost for logging in each day. I thought it might be something worth sharing.
Daily Rewards Script:
This script automatically awards players with a random amount of gold coins each day when they log in. The amount varies from a minimum of 5,000 to a maximum of 20,000 gold coins.
Scripts:
- DailyRewards.lua: Handles the logic for determining if a player is eligible for their daily reward and then awards them a random amount of gold coins.
Setting up this script on your server is straightforward. You need to place the DailyRewards script in your scripts directory and then register it in your creaturescripts.xml file to trigger upon player login.
Step-by-Step Guide:
- Save the Lua script as DailyRewards.lua in your server's scripts directory, for example Server\data\creaturescripts\scripts\DailyRewards.lua
- Add the following entry to your creaturescripts.xml to register the script:
LUA:
<event type="login" name="DailyRewards" script="DailyRewards.lua"/>
Make sure to adjust the script path if you place it in a subdirectory within the scripts directory.
Remember to restart your server after making these changes to ensure everything works smoothly.
Customization
To customize the rewards to better fit your server or to add variety, you can modify the minReward and maxReward variables within the script for different gold amounts.
Try it out
Tibia Version: 8.0
Website: tibia.nu
IP: tibia.nu
Port 7171
Attachments
-
DailyRewards.lua1.1 KB · Views: 36 · VirusTotal
Last edited: