Shadow1980
Wanderer
S1980 Shard Referral Reward System
Update: This is for RunUO 1.0.
For the RunUO 2.0 version, click here.
Thanks go to Pyro-Tech for updating it.
Script Name: TellAFriend.cs
Author: Shadow1980
Version: 1.6
Public Release: 17/04/2006
Latest Release: 08/05/2006
Purpose: Automation of Referral Rewards
Description:
Version 1.3
This system allows you to reward players for bringing friends into the shard.
When a new player joins, they receive a gump asking who referred them to the shard. They can then enter the account name of the person in question there.
Once certain configurable conditions are met, the referrer will receive a reward.
By Default, the new player has 7 days to enter the account of the person who referred him/her to the shard. The same timespan has to be passed before the reward system checks if somebody should receive a reward.
Once both the referrer *and* the new player have spent a minimal amount of time in-game ( 120 hours by default ) the referrer will receive a reward if both the new player and the referrer have logged in during the last x days. ( By default 7 )
Version 1.4
* Removed all mention of Account Name of other player in the gumps.
* Added the option in the gump to target a player character as referrer rather then just adding the Account Name.
Entering the Account Name remains an option for players who don't mind giving this to actual friends. People who want either of the options (entering account name or targeting) out of the gump can easely comment out the lines in question on the gump.
Version 1.5
* Updated to support rewards for multiple referrals at once. If a player now brings multiple friends into the shard who all name him/her as referrer, the player will receive a reward for each and every one of them. (Once the set conditions are met.)
Thanks to snicker7 for the Suggestion and for Providing a good way of doing this.
Version 1.6
* Updated to fix a crash issue.
Thanks to Sunshine and Xar for their debug crash report.
Everything is handled on login, so to receive a reward for a referral both accounts have to remain active. The system was designed to reward active players only.
Please note only the referrer receives a reward, but you can easely give a reward to the new player as well.
To do this, uncomment lines 71 and 72. The reward can be found at line 251. Please modify the reward as you see fit, the rest of the script is to remain 'as is'.
Please feel free to make suggestions, though I don't make any promises that any will be implemented.
Acknowledgements: I would like to thank the playerbase of Prophecies for their support and being a constant source of inspiration.
Installation: Put TellAFriend.cs in your \RunUO 1.0\Custom\ folder.
No distro file edits required.
Please support people who release scripts by *rating* their scripts if you appreciate their efforts. This helps users find good scripts more easely.
Update: This is for RunUO 1.0.
For the RunUO 2.0 version, click here.
Thanks go to Pyro-Tech for updating it.
Script Name: TellAFriend.cs
Author: Shadow1980
Version: 1.6
Public Release: 17/04/2006
Latest Release: 08/05/2006
Purpose: Automation of Referral Rewards
Description:
Version 1.3
This system allows you to reward players for bringing friends into the shard.
When a new player joins, they receive a gump asking who referred them to the shard. They can then enter the account name of the person in question there.
Once certain configurable conditions are met, the referrer will receive a reward.
By Default, the new player has 7 days to enter the account of the person who referred him/her to the shard. The same timespan has to be passed before the reward system checks if somebody should receive a reward.
Once both the referrer *and* the new player have spent a minimal amount of time in-game ( 120 hours by default ) the referrer will receive a reward if both the new player and the referrer have logged in during the last x days. ( By default 7 )
Version 1.4
* Removed all mention of Account Name of other player in the gumps.
* Added the option in the gump to target a player character as referrer rather then just adding the Account Name.
Entering the Account Name remains an option for players who don't mind giving this to actual friends. People who want either of the options (entering account name or targeting) out of the gump can easely comment out the lines in question on the gump.
Version 1.5
* Updated to support rewards for multiple referrals at once. If a player now brings multiple friends into the shard who all name him/her as referrer, the player will receive a reward for each and every one of them. (Once the set conditions are met.)
Thanks to snicker7 for the Suggestion and for Providing a good way of doing this.
Version 1.6
* Updated to fix a crash issue.
Thanks to Sunshine and Xar for their debug crash report.
Everything is handled on login, so to receive a reward for a referral both accounts have to remain active. The system was designed to reward active players only.
Please note only the referrer receives a reward, but you can easely give a reward to the new player as well.
To do this, uncomment lines 71 and 72. The reward can be found at line 251. Please modify the reward as you see fit, the rest of the script is to remain 'as is'.
Please feel free to make suggestions, though I don't make any promises that any will be implemented.
Acknowledgements: I would like to thank the playerbase of Prophecies for their support and being a constant source of inspiration.
Installation: Put TellAFriend.cs in your \RunUO 1.0\Custom\ folder.
No distro file edits required.
Please support people who release scripts by *rating* their scripts if you appreciate their efforts. This helps users find good scripts more easely.