Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Releases

Custom Script Releases This forum is where you can release your custom scripts for other users to use.

Please note: By releasing your scripts here you are submitting them to the public and as such agree to make them public domain. The RunUO Team has made its software GPL for you to use and enjoy you should do the same for anything based off of RunUO.

Reply
 
Thread Tools Display Modes
Old 04-15-2008, 03:35 AM   #1 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default Simple Email Registration - Final

#! System Is Finished !#

Last Update:
* Now Serializes Emails To Emails.xml In Your Server Folder
* Added "[email" command to send single emails to selected players


Description:
This system once installed correctly, will allow player to register their email address when they login by a gump. After they enter their email twice correctly the server will send them an email by using a mail server specified by you, this email will contain a unique 10 character long confirmation code, they have until they log out to then use the "[auth" command in game and enter the 10 character long code into the gump provided.

Setup:
* Place In Customs
* Configure EmailClient.cs to work with your server

Commands:
* "[sendemail", allows you to write an email in game then have that email sent to every player on the server
* "[clearemails", Clears all registered emails.

Player Commands:
* "[auth", allows them to confirm they received their registration email
* "[account", allows players to manage their email address and password
* "[email", allows player to send an email to another player

Hope You Enjoy.
Attached Files
File Type: rar Register Email.rar (11.9 KB, 133 views)
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com

Last edited by Alex21; 04-19-2008 at 05:46 PM.
Alex21 is offline   Reply With Quote
Old 04-15-2008, 06:54 PM   #2 (permalink)
Forum Novice
 
Join Date: Feb 2008
Age: 27
Posts: 135
Default

I've been looking for something like this for a long time now. I'll be testing it out soon. Thanks!
Miller. is offline   Reply With Quote
Old 04-16-2008, 02:49 AM   #3 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

I wasnt sure what to do with the emails it stored from players accounts, so all i did was supply a way to send a email to them all.

If you have any suggestion on function this system can do please post them.
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com
Alex21 is offline   Reply With Quote
Old 04-16-2008, 05:11 AM   #4 (permalink)
Forum Expert
 
Draegen's Avatar
 
Join Date: Jun 2006
Posts: 280
Default

what about making this delete they account if they do not use they athu code??? or delete chars.

What about making it if they fail to athu three times it kicks them and tells them to e-mail admin for account to be activeded
Draegen is offline   Reply With Quote
Old 04-16-2008, 12:16 PM   #5 (permalink)
Forum Novice
 
Join Date: Feb 2008
Age: 27
Posts: 135
Default

Quote:
Originally Posted by Draegen View Post
what about making this delete they account if they do not use they athu code??? or delete chars.

What about making it if they fail to athu three times it kicks them and tells them to e-mail admin for account to be activeded
Hmm... I haven't looked over the scripts yet but I had the impression that those features were included. (I'm thinking of something like what Divinity uses). If not, then those features would certainly be helpful.

Also, what about storing emails along with account information like in Saves\Accounts\accounts.xml ?
Miller. is offline   Reply With Quote
Old 04-16-2008, 05:39 PM   #6 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

Quote:
Originally Posted by Miller. View Post
Hmm... I haven't looked over the scripts yet but I had the impression that those features were included. (I'm thinking of something like what Divinity uses). If not, then those features would certainly be helpful.

Also, what about storing emails along with account information like in Saves\Accounts\accounts.xml ?
ok i think i could do that.
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com
Alex21 is offline   Reply With Quote
Old 04-16-2008, 08:04 PM   #7 (permalink)
Newbie
 
i_am_neo's Avatar
 
Join Date: Jan 2008
Location: Warsaw, Poland
Age: 22
Posts: 97
Send a message via MSN to i_am_neo
Default

Another good idea might be for the system to remind players of their account inactivity. What I mean is for the system to send players notification e-mails when their accounts are inactive for some days (that'd be customizable).
Also it would be kind of nice for staff to be able to send e-mails only to particular players.

I don't know, it it is possible to make, but the e-mail given might also be used for two-way ingame communication (eg. when players can't enter the game for some time, they could send e-mails into the game).

Those are just some ideas...
I'm not really that into scripting to know, whether it's easy to make, or not
__________________
|Heavenly Item System|Neo's Level System|
If anyone knows, how to put links here, please msg me.
i_am_neo is offline   Reply With Quote
Old 04-18-2008, 12:53 PM   #8 (permalink)
Newbie
 
Join Date: Oct 2006
Location: Indiana
Age: 45
Posts: 52
Default E-mails don't save after server reset

This is really a great idea, and is quite useful. but the confirmation only lasts until the server is reset, is there a way to fix it so that once eamil is authorized, it stays authorized, even after server reset?
Aurboda is offline   Reply With Quote
Old 04-18-2008, 07:00 PM   #9 (permalink)
Newbie
 
i_am_neo's Avatar
 
Join Date: Jan 2008
Location: Warsaw, Poland
Age: 22
Posts: 97
Send a message via MSN to i_am_neo
Default

Might want to add a property called eg. email to PlayerMobile.cs. That'd be the simplest way to do that. But it'd be very primitive and not really easy to install. Still... it would work. That's the way I (not even a beginner in scripting) would do that . Probably the expert guys here know a better way of solving the problem, that'd allow more options .
__________________
|Heavenly Item System|Neo's Level System|
If anyone knows, how to put links here, please msg me.
i_am_neo is offline   Reply With Quote
Old 04-18-2008, 08:14 PM   #10 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

No authorize will not last more then a server restart or if the player logs out, but will store there emails through world restarts.
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com

Last edited by Alex21; 04-19-2008 at 09:59 AM. Reason: Lack Of Info.....
Alex21 is offline   Reply With Quote
Old 04-18-2008, 08:33 PM   #11 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

O i see it dosnt serialize there email adresses, i think it used to o well let me fix it.
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com
Alex21 is offline   Reply With Quote
Old 04-18-2008, 08:47 PM   #12 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

Sorry guys, i understand what you were talking about now, yes the emails wouldn't last through a world save, i fixed it they will now last through a world save.
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com

Last edited by Alex21; 04-19-2008 at 01:18 AM.
Alex21 is offline   Reply With Quote
Old 04-19-2008, 01:18 AM   #13 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

I mean world restart not save, they will be saved on the world save and loaded on world load.
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com
Alex21 is offline   Reply With Quote
Old 04-19-2008, 05:22 AM   #14 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

Ok i think this is done now, feel free to suggest something to add to the system.
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com
Alex21 is offline   Reply With Quote
Old 04-19-2008, 02:20 PM   #15 (permalink)
Newbie
 
i_am_neo's Avatar
 
Join Date: Jan 2008
Location: Warsaw, Poland
Age: 22
Posts: 97
Send a message via MSN to i_am_neo
Default

I've found quite a serious bug...

When you use the [email command and bring out the list, all mobiles are shown... not only player mobiles...

Selecting any mobile, that isn't PlayerMobile crashes the shard

So I think You should add something like if( mobile is PlayerMobile ) to make sure you display only PlayerMobiles.

I'll let you know if i find anything else
__________________
|Heavenly Item System|Neo's Level System|
If anyone knows, how to put links here, please msg me.
i_am_neo is offline   Reply With Quote
Old 04-19-2008, 05:42 PM   #16 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

Quote:
Originally Posted by i_am_neo View Post
I've found quite a serious bug...

When you use the [email command and bring out the list, all mobiles are shown... not only player mobiles...

Selecting any mobile, that isn't PlayerMobile crashes the shard

So I think You should add something like if( mobile is PlayerMobile ) to make sure you display only PlayerMobiles.

I'll let you know if i find anything else
ok i will fix that, woops forgot tospecify types.
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com
Alex21 is offline   Reply With Quote
Old 04-19-2008, 05:47 PM   #17 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

Ok fixed thanks neo
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com
Alex21 is offline   Reply With Quote
Old 04-19-2008, 05:51 PM   #18 (permalink)
Newbie
 
i_am_neo's Avatar
 
Join Date: Jan 2008
Location: Warsaw, Poland
Age: 22
Posts: 97
Send a message via MSN to i_am_neo
Default

You're welcome
Always happy to help...

And I know, that the most important thing when you write a script is for a bunch of people to test it and check if it's idiot-proof ;D
__________________
|Heavenly Item System|Neo's Level System|
If anyone knows, how to put links here, please msg me.
i_am_neo is offline   Reply With Quote
Old 04-22-2008, 01:08 AM   #19 (permalink)
Forum Expert
 
Draegen's Avatar
 
Join Date: Jun 2006
Posts: 280
Default

I updated to your lastest one and it is not saving e-mails in email.xml at all it stays blank.
Draegen is offline   Reply With Quote
Old 04-22-2008, 02:51 AM   #20 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

Quote:
Originally Posted by Draegen View Post
I updated to your lastest one and it is not saving e-mails in email.xml at all it stays blank.
Have the email addresses been completely registered?, has it written the Emails.xml?

If it has written emails.xml post it here please,

anyone else having this problem?
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com
Alex21 is offline   Reply With Quote
Old 04-22-2008, 11:19 AM   #21 (permalink)
Forum Novice
 
Join Date: Feb 2008
Age: 27
Posts: 135
Default

Is there any way to make it delete the account after a time period (24 or 48 hours) if the email authorization hasn't taken place?
__________________
Miller. is offline   Reply With Quote
Old 04-22-2008, 02:09 PM   #22 (permalink)
Forum Expert
 
Draegen's Avatar
 
Join Date: Jun 2006
Posts: 280
Default

it writes they email.xml file but it only has this lines in it

count 0


Here is my emailclient.cs setup maybe im doing something wrong
public static bool Enabled = true; // Is this system enabled?

public static string ServerName = "Distant Land"; // Your server name here.

public static string EmailServer = "smtp.gmail.com"; // Your mail server here
public static string User = "UO.Distant.Land@gmail.com"; // Your username here
public static string Pass = "******"; // Your password here

public static string YourAddress = "UO.Distant.Land@gmail.com"; // Your email address here, Or Shard name
// Server will crash on start up if the adress is incorrectly formatted.

I checked Gmail does allow POP3
Draegen is offline   Reply With Quote
Old 04-22-2008, 05:00 PM   #23 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

Quote:
Originally Posted by Draegen View Post
it writes they email.xml file but it only has this lines in it

count 0


Here is my emailclient.cs setup maybe im doing something wrong
public static bool Enabled = true; // Is this system enabled?

public static string ServerName = "Distant Land"; // Your server name here.

public static string EmailServer = "smtp.gmail.com"; // Your mail server here
public static string User = "UO.Distant.Land@gmail.com"; // Your username here
public static string Pass = "******"; // Your password here

public static string YourAddress = "UO.Distant.Land@gmail.com"; // Your email address here, Or Shard name
// Server will crash on start up if the adress is incorrectly formatted.

I checked Gmail does allow POP3
If all it contains is count os that would suggest that your EmailHolder.Emails dictionary does not contain any emails?, when you enter your email on login it will send you ten char confirm code, you have to use this code before you logout or the server shuts down, after using this code you will be added to EmailHolder.Emails, if you are not getting an email after entering it on login it might be a problem with your mail server.
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com
Alex21 is offline   Reply With Quote
Old 04-23-2008, 02:47 AM   #24 (permalink)
Forum Expert
 
Draegen's Avatar
 
Join Date: Jun 2006
Posts: 280
Default

my question is do i have to have any mail server on my pc or just use g-mail mail server??? for my pop3
Draegen is offline   Reply With Quote
Old 04-23-2008, 08:41 AM   #25 (permalink)
Forum Expert
 
Alex21's Avatar
 
Join Date: Jul 2007
Location: Australia, Queensland, Sunshine Coast
Age: 16
Posts: 1,162
Send a message via MSN to Alex21
Default

Quote:
Originally Posted by Draegen View Post
my question is do i have to have any mail server on my pc or just use g-mail mail server??? for my pop3
I don't know what gmail is but i use my remote mail server to run this script and it works, if that helps?
__________________
Advertise Your Server On JoinUO!
JoinUO @ - joinuo.com
Alex21 is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes