Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

 
 
Thread Tools Display Modes
Old 04-16-2006, 10:25 PM   #1 (permalink)
Forum Expert
 
Shadow1980's Avatar
 
Join Date: Mar 2005
Location: York, UK
Age: 28
Posts: 708
Post 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.
Attached Files
File Type: cs TellAFriend.cs (9.5 KB, 270 views)
__________________
Shadow1980
Game Reviews, Jokes and Rants from real People

Last edited by Shadow1980; 06-29-2006 at 08:48 AM.
Shadow1980 is offline  
Old 04-16-2006, 10:28 PM   #2 (permalink)
Forum Novice
 
Join Date: Feb 2006
Location: at my computer
Posts: 117
Send a message via ICQ to tindin156 Send a message via MSN to tindin156
Default

very nice script...going to add it to my shard for sure
__________________
some peaple search for what they want others have it handed to them....

Yes i know my spelling sucks.....
tindin156 is offline  
Old 04-16-2006, 10:29 PM   #3 (permalink)
Forum Expert
 
Shadow1980's Avatar
 
Join Date: Mar 2005
Location: York, UK
Age: 28
Posts: 708
Default

Thank you tindin156 :-)
__________________
Shadow1980
Game Reviews, Jokes and Rants from real People
Shadow1980 is offline  
Old 04-16-2006, 10:47 PM   #4 (permalink)
Forum Expert
 
PappaSmurf's Avatar
 
Join Date: Mar 2005
Location: Polishing my Lightsaber
Age: 31
Posts: 2,430
Send a message via ICQ to PappaSmurf Send a message via AIM to PappaSmurf Send a message via MSN to PappaSmurf Send a message via Yahoo to PappaSmurf
Default

Quote:
Originally Posted by Shadow1980
Script Name: TellAFriend.cs
Author: Shadow1980
Version: 1.3
Public Release: 17/04/2006
Purpose: Automation of Referral Rewards

Description:

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 )
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 69 and 70. The reward can be found at line 206. 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.
I'd put in a IP logger so that shards that allow 2 accounts or more per IP don't have people "refering" themselves.
__________________

For Updated Scripts from my Releases http://smurfscsharp.googlecode.com/svn/trunk/
PappaSmurf is offline  
Old 04-16-2006, 10:52 PM   #5 (permalink)
Forum Expert
 
Shadow1980's Avatar
 
Join Date: Mar 2005
Location: York, UK
Age: 28
Posts: 708
Default

Quote:
Originally Posted by PappaSmurf
I'd put in a IP logger so that shards that allow 2 accounts or more per IP don't have people "refering" themselves.
Never thought of that as we don't allow more then 1 account. If somebody would like to code such a thing I would be glad to put it in.
(As we don't have any need for it ourselves and I have plenty of other projects lined up )

Good suggestion though!
__________________
Shadow1980
Game Reviews, Jokes and Rants from real People
Shadow1980 is offline  
Old 04-16-2006, 10:57 PM   #6 (permalink)
Forum Expert
 
Rosey1's Avatar
 
Join Date: Oct 2005
Location: Oklahoma
Age: 32
Posts: 890
Send a message via ICQ to Rosey1 Send a message via AIM to Rosey1 Send a message via MSN to Rosey1 Send a message via Yahoo to Rosey1
Default

sounds really awesome
Rosey1 is offline  
Old 04-16-2006, 10:58 PM   #7 (permalink)
Forum Expert
 
Greystar's Avatar
 
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
Default

nice Idea and I do see a very nice use for it to help shard recruit new players . by getting older players to help recruit by offering a reward.
__________________
Quote:
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Killable Guards (GS Version)
Just a Simple Staff Tool
You can leave me messages.
Ernest Gary Gygax - Quote "I would like the world to remember me as the guy who really enjoyed playing games and sharing his knowledge and his fun pastimes with everybody else."
Greystar is offline  
Old 04-16-2006, 10:59 PM   #8 (permalink)
Forum Novice
 
Join Date: Feb 2006
Location: at my computer
Posts: 117
Send a message via ICQ to tindin156 Send a message via MSN to tindin156
Default

i just thought of something...ok i havent looked at the code yet but what if a player puts his account name in?
__________________
some peaple search for what they want others have it handed to them....

Yes i know my spelling sucks.....
tindin156 is offline  
Old 04-16-2006, 11:09 PM   #9 (permalink)
Forum Expert
 
Shadow1980's Avatar
 
Join Date: Mar 2005
Location: York, UK
Age: 28
Posts: 708
Default

Quote:
Originally Posted by tindin156
i just thought of something...ok i havent looked at the code yet but what if a player puts his account name in?
That has been taken into account
__________________
Shadow1980
Game Reviews, Jokes and Rants from real People
Shadow1980 is offline  
Old 04-17-2006, 01:38 AM   #10 (permalink)
Tru
Forum Expert
 
Tru's Avatar
 
Join Date: Jan 2003
Location: California
Age: 39
Posts: 3,260
Default

Great Idea...Nice Script
Tru is offline  
Old 04-17-2006, 02:47 AM   #11 (permalink)
Forum Expert
 
Rosey1's Avatar
 
Join Date: Oct 2005
Location: Oklahoma
Age: 32
Posts: 890
Send a message via ICQ to Rosey1 Send a message via AIM to Rosey1 Send a message via MSN to Rosey1 Send a message via Yahoo to Rosey1
Default

i tried it and changed the item a little but i have a question. How do you feel about giving other people your account name?
Rosey1 is offline  
Old 04-17-2006, 03:09 AM   #12 (permalink)
Forum Expert
 
Pyro-Tech's Avatar
 
Join Date: Oct 2003
Location: Carbondale, IL
Age: 24
Posts: 1,805
Send a message via MSN to Pyro-Tech
Default

This is great idea....i have wanted something like this, but lack the knowledge to do such a thing...

thank you

EDIT: yes the account name thing is a little questionable...but not too bad
__________________

Pyro-Tech is offline  
Old 04-17-2006, 07:54 AM   #13 (permalink)
Forum Expert
 
Shadow1980's Avatar
 
Join Date: Mar 2005
Location: York, UK
Age: 28
Posts: 708
Default

Somebody having your accountname shouldn't be a big deal. Normally you refer friends to the game + by default RunUO even counselors can see your accountname anyways.

I suppose you could do it through targetting another player ingame if you would want to, but this requires both of these players to be online at the same time. This method was just quick & clean without a lot of hassle.

Thanks to everybody for the support, I have waited a long time to release anything since my last ones as the experience in the past was less then pleasurable
__________________
Shadow1980
Game Reviews, Jokes and Rants from real People
Shadow1980 is offline  
Old 04-17-2006, 08:55 AM   #14 (permalink)
Forum Novice
 
Join Date: May 2005
Location: Canada
Posts: 147
Send a message via MSN to Lachuille
Default

Great script, ill be putting this on my shard for sure.
Lachuille is offline  
Old 04-17-2006, 12:57 PM   #15 (permalink)
 
Join Date: Mar 2006
Age: 26
Posts: 103
Send a message via AIM to princess Send a message via MSN to princess Send a message via Yahoo to princess
Default

i was wondering, if this would like say you have someone on dial up or with dynamic ip's, is there a way to make sure someone like that cant just take advantage of this time and time again? because i have a one acct thing kickin on my shard, but one of my friends was able to make a second acct. any suggestions?
__________________
:p Lady Bella view my website at http://bellsite.servegame.com

:o I can use as many helpful hints for making my shard grow!!:rolleyes:
princess is offline  
Old 04-17-2006, 01:19 PM   #16 (permalink)
Forum Expert
 
Shadow1980's Avatar
 
Join Date: Mar 2005
Location: York, UK
Age: 28
Posts: 708
Default

Regardless of what protection you put in, people will always be able to abuse that. IP protection is very easy to bypass. Other people could create an account for somebody, proxies can be used, etc.
Since this system only hands out a reward once somebody has been ingame for a significant amount of time, you should be ok from these forms of abuse for the most part.
__________________
Shadow1980
Game Reviews, Jokes and Rants from real People
Shadow1980 is offline  
Old 04-17-2006, 02:16 PM   #17 (permalink)
Forum Expert
 
Rosey1's Avatar
 
Join Date: Oct 2005
Location: Oklahoma
Age: 32
Posts: 890
Send a message via ICQ to Rosey1 Send a message via AIM to Rosey1 Send a message via MSN to Rosey1 Send a message via Yahoo to Rosey1
Default

u know what would be cool would be after so many rewards, they could exchange it for something else. Like 5 gets you a choice of x, y or z.
Rosey1 is offline  
Old 04-17-2006, 03:25 PM   #18 (permalink)
Forum Expert
 
Sunshine's Avatar
 
Join Date: Mar 2005
Location: Hopefully not near you
Posts: 2,233
Default

Quote:
Originally Posted by Shadow1980
I suppose you could do it through targetting another player ingame if you would want to, but this requires both of these players to be online at the same time. This method was just quick & clean without a lot of hassle.
I hate to ask but I am anyway. Is there a way to modify to where you can target the player rather than putting in the account name? if So can you post the needed changes? I would be glad to but I have no idea how...


PS I think this script is one of the better ones released as of late..THANK YOU for sharing it
__________________
All people have the right to be stupid but some abuse the privilege.
Sunshine is offline  
Old 04-17-2006, 04:41 PM   #19 (permalink)
Forum Expert
 
Johabius's Avatar
 
Join Date: Dec 2004
Location: Kansas, USA
Age: 38
Posts: 4,964
Send a message via ICQ to Johabius Send a message via Yahoo to Johabius
Default

Thanks for the submission of this. The shard I play on, used to have a buddy referral thing going on, but got rid of the idea because it just took too much time from the every day running of the shard I'm guessing. Mostly it was done on the honor system, so the staff had to do everything by hand as far as checking account ages, and people referred I think. I'll definitely be recommending this to my shards administration.
__________________
In some cases stupid makes you win-Radwen
Johabius is offline  
Old 04-17-2006, 05:34 PM   #20 (permalink)
Forum Expert
 
Shadow1980's Avatar
 
Join Date: Mar 2005
Location: York, UK
Age: 28
Posts: 708
Default

Quote:
Originally Posted by Sunshine
I hate to ask but I am anyway. Is there a way to modify to where you can target the player rather than putting in the account name? if So can you post the needed changes? I would be glad to but I have no idea how...


PS I think this script is one of the better ones released as of late..THANK YOU for sharing it
I could indeed, but you would have to give me until at least next weekend as I have very little time during weekdays next to work and running our shard!
__________________
Shadow1980
Game Reviews, Jokes and Rants from real People
Shadow1980 is offline  
Old 04-18-2006, 02:25 AM   #21 (permalink)
Forum Expert
 
Pyro-Tech's Avatar
 
Join Date: Oct 2003
Location: Carbondale, IL
Age: 24
Posts: 1,805
Send a message via MSN to Pyro-Tech
Default

Quote:
Originally Posted by Rosey1
u know what would be cool would be after so many rewards, they could exchange it for something else. Like 5 gets you a choice of x, y or z.
one thing you can do, and i will prolly do this:

1) download this and the vendor stone....forgot who made it

2) make a custom item that is given every time you refer someone to the shard

3) set the stone to accept the custom item, along with the various rewards you can get.

I plan on doing this instead of always getting the same item in return

EDIT: what i have actually done, is leave the item, and add a special token that you can also get referal credit's....so...yeah....YAY
__________________


Last edited by Pyro-Tech; 04-18-2006 at 03:29 AM.
Pyro-Tech is offline  
Old 04-18-2006, 06:02 AM   #22 (permalink)
Forum Expert
 
Shadow1980's Avatar
 
Join Date: Mar 2005
Location: York, UK
Age: 28
Posts: 708
Default

There are many easy ways to manipulate the reward(s) given, based on your needs. The script provided 'as is' is for relatively inexperienced coders. Those with some minor coding skills are free to manipulate it as they see fit as long as it is for own use.
The reward in the script is provided as an example, and to release something 'complete' in case somebody really doesn't know how to make any modifications.
Pyro-Tech referral credits are a good way of doing it. This enables you flexibility and allows you to let people choose from a range of rewards instead.

For our shard ( Prophecies ) we have a fairly low end item shard compared to most out there. No uber items and such, so the example reward is quite valuable. (Blessed items with properties are extremely sought after.)
__________________
Shadow1980
Game Reviews, Jokes and Rants from real People
Shadow1980 is offline  
Old 04-18-2006, 07:38 AM   #23 (permalink)
Forum Expert
 
Shadow1980's Avatar
 
Join Date: Mar 2005
Location: York, UK
Age: 28
Posts: 708
Default

Released version 1.4

Included Sunshine's request to enable targetting a character ingame.
Removed all mention of the other player's Account Name.
Fixed a small typo in a commented line, disabling this from working correctly. (In case somebody would have uncommented it, it wouldn't have worked.)

Thank you for all your suggestions and support. Please rate the script if you use it, there where 50+ downloads, quite a few replies and only 3 ratings
__________________
Shadow1980
Game Reviews, Jokes and Rants from real People
Shadow1980 is offline  
Old 04-18-2006, 08:12 AM   #24 (permalink)
Forum Expert
 
Join Date: Dec 2003
Location: Sitting in a chair fulfilling my life's goal
Age: 22
Posts: 2,650
Send a message via AIM to Killamus Send a message via MSN to Killamus
Default

17+ hours a day logged in? Kinda harsh.
__________________
Procrastinators unite!
Tomorrow.
Saying that Java is nice because it works on all OS's is like saying that anal sex is nice because it works on all genders.
Killamus is offline  
Old 04-18-2006, 08:16 AM   #25 (permalink)
Forum Expert
 
Sunshine's Avatar
 
Join Date: Mar 2005
Location: Hopefully not near you
Posts: 2,233
Default

Quote: