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 02-06-2006, 06:33 PM   #1 (permalink)
Forum Expert
 
Greystar's Avatar
 
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
Default DynDNS updater Script for use with RunUO.

Updated: 02-09-2006
  • Now Includes a changable setting to use No-IP instead
  • No Longer requires Mr. Fixit's serverlist to avoid future confusion.
  • Has Ingame notices when command is used (may also display when autoupdated).
    • Should only display to GMs and Above.

Code now includes another configuration options to make it so that it can use EITHER DynDNS or No-IP. I figured I'd accomodate XxSP1DERxX since he was nice enough to accomodate me with his Currency System, might as well right. If someone else knows another free IP update site I'd be happy to try and mod it to support that one as well, as long as the give their update protocol like these two sites do. The No-IP update doesnt support as many options cause the Additional Options are not free, so if you edit them they wont do anything anyway.

Code:
        private static bool Enabled = false; //activate expiramental AutoUpdate by changing this to true.
        private static bool m_NoIP = false; // set this to true if you are using No-Ip
        private static string m_Username = "YOUR ACCOUNT NAME HERE"; //Edit this to your DynDNS account name or NO-IP login email.
        private static string m_Password = "YOUT ACCOUNT PASSWORD HERE"; //Edit this for your DynDNS or NO-IP password.
        // Since both DynDNS and No-IP offer mutiple free domains essentially just make it 
        // look something like whats below my example is using DynDNS.org
        private static string m_Domain = "MyShard.dyndns.org"; //Your fully designated address
Other Requirements:
1) Must have a DynDNS or No-IP account (Its free for a basic account which is all thats needed)
2) Must edit the above lines of Code

What It Does:
Uses your Shard as a DynDNS update program by using the command "IPUpdate" removing the quotes and preceeding it with your command prefix OR by doing me a favor and testing my Expiramental AUTOUPDATE by changing Enabled = false; to Enabled = true; This in effect will eliminate the need to run another program to keep your IPAddress updated with DynDNS so your players can use an address like myshard.dyndns.org instead of 123.234.21.1 to connect to your shard or your web page.

PS: When are they going to enable the Uploading of .cs files?
Attached Files
File Type: txt DynDNS.cs.txt (16.6 KB, 70 views)
__________________
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."

Last edited by Greystar; 02-10-2006 at 03:37 AM.
Greystar is offline  
Old 02-06-2006, 06:40 PM   #2 (permalink)
 
Join Date: Apr 2004
Location: Duh! ireland
Age: 22
Posts: 73
Send a message via AIM to irishdog Send a message via MSN to irishdog Send a message via Yahoo to irishdog
Default

Very nice. I dont need this myself but it is a very good idea.
irishdog is offline  
Old 02-06-2006, 06:56 PM   #3 (permalink)
Forum Expert
 
Greystar's Avatar
 
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
Default

Possibly adding an in game announcement in the near future, need to test it first so just use this one for now and updates I'll just add the mods to the first post. Since you have to edit the info to change things.
__________________
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 02-08-2006, 10:27 AM   #4 (permalink)
Forum Novice
 
Join Date: May 2005
Age: 36
Posts: 222
Default

Well don't know about anybody else, but this script would have been easier on my part, if it had worked. Every time I impliment it, I get errors that the shard won't start because of my existing ServerList.cs file in Scripts/Misc. When I remove that one the shard compiles the scripts fine, but right after it starts to load the Reports, I get a dialogue box that says "Application has generated an exception that could not be handled - Click OK to terminate the application - Click CANCEL to debut the application".
seanandre is offline  
Old 02-08-2006, 10:44 AM   #5 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

Can you make one for No-IP.org?
XxSP1DERxX is offline  
Old 02-09-2006, 01:28 AM   #6 (permalink)
Forum Expert
 
Greystar's Avatar
 
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
Default

Quote:
Originally Posted by seanandre
Well don't know about anybody else, but this script would have been easier on my part, if it had worked. Every time I impliment it, I get errors that the shard won't start because of my existing ServerList.cs file in Scripts/Misc. When I remove that one the shard compiles the scripts fine, but right after it starts to load the Reports, I get a dialogue box that says "Application has generated an exception that could not be handled - Click OK to terminate the application - Click CANCEL to debut the application".
and the error isnt from this script unless you can prove it with a crashlog in debug mode.

for XxSp1derxX (untested)

Code:
        public static string HttpGetRequest( )
        {
                // Syntax: http://www.no-ip.com/integrate/request/
                string httpUpdate =
                    @"http://" + m_Username + ":" + m_Password + "dynupdate.no-ip.com/nic/update?" +
                    "hostname=" + m_Domain + "&" +
                    "myip=" + m_MyIP;

            return httpUpdate;
        }
and the username i guess for No-IP is the email you signed up with. I dont have an account with No-IP and since i have one with DynDNS I figured I didnt need one. Im sure more can be added to that like the other one I made but that should give enough basics to make it work. Also sp1der it may require some others changes like I said I don't have a No-IP account. and I dont know if certain other sections of code are needed or not. If it works right away please let me know and I'll try to see if my other mods im making work to give an announcement ingame when you use the command, or when you have it autoupdate. I also know with DynDNS you can include multiple domains to update but I figure people should only need one.

EDIT: I just made a no-ip account havent tried updating with this script yet, but the format I have should work, only thing is it may not show the proper update message. I'll have to edit that and change a couple more things. The next update with include a bool for m_NOIP and if no-ip is true then it will use no-ip instead of Dyndns so it will be usable by either. it appears that No-IP uses a numeric code instead of a string. I might just add an extra interp in there so it will return the same messages... no real big deal. may also change it to a case instead of that if statement im using now. will mess with things in the near future.

EDIT2: Found a way to make it so it uses the same codes I already use so it will save me a bit of coding to make it compatible. If it doesnt work with the above code then let me know and i'll get it working. Shouldnt be that big of a deal and i'll keep messing with it till its right. I figure if i can manually type in the URL then when the script submitts the HTTP request it will submit it exactly the same as I type it, so in theory there shouldnt be a problem. It seems the No-IP doesnt use half the stuff I have defined at the top but im still leaving it cause it will support it if you are using a "premium" no-ip account, but users who want the extra stuff will have to figure out in what order it needs to go.
__________________
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."

Last edited by Greystar; 02-09-2006 at 02:35 AM.
Greystar is offline  
Old 02-10-2006, 03:40 AM   #7 (permalink)
Forum Expert
 
Greystar's Avatar
 
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
Default Updated

New Updated in first post.

Updated: 02-09-2006
  • Now Includes a changable setting to use No-IP instead
  • No Longer requires Mr. Fixit's serverlist to avoid future confusion.
  • Has Ingame notices when command is used (may also display when autoupdated).
    • Should only display to GMs and Above.

I know bumping is bad, but since I updated it I figured I needed to show that I did it.

Mr. Fixit's serverlist is no longer required or included. However I strongly suggest adding it anyway cause it makes it so that you don't HAVE to know your internet IP address since it will get it for you.
__________________
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  
 

Bookmarks


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5