|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Master
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
|
Client Patch Warning v1.6 Originally created by Joeku AKA Demortris Completely revamped by XxSP1DERxX Changelog -v1.0 > v1.1 Post #12: updated to allow seperate required and suggested patches. Fixed bug that would potentially leave players invulnerable/frozen (Thanks for the report Erica). -v1.1 > v1.2 Post #13: fixed small bug that would sometimes send gump on invalid clients. Fixed bug that always made the player mortal and unfrozen (was an annoyance for staff who keep immortal). -v1.2 > v1.3 Post #45 XxSP1DERxX's Complete Revamp: Consolidated the gumps into 1 gump. Consolidated the gump display. Optimized the version checks. Fixed the null Client Version bug. Fixed an exploit to defeat the gump. Fixed a timer bug keeping the timer alive indefinately. Fixed a timer bug making the gumps keep reappearing. 'bad client version' is now written to the console. Fixed a bug with freezing/blessing not being taken off. Removed the Try/Catch and added a Mobile check (jic?). Fixed the spacing on the buttons to be standard for all gump variants. Edited the messages that are sent to the client. Suggested patching no longer blesses/freezes you. -v1.3 > v1.45 Post #55: Removed the Blessing/CantWalk crap due to bugs. Added Enforce Client Verification so that you can enforce Required clients to go through the client verification as a normal RunUO server would. v1.45 > v1.5 Post #63: Fixed the problem with EnforceClientVerification. It will now work without any other file modifications. v1.5 > v1.6 Post #69: Updated to allow a certain amount of seconds for invulnerability protection. Default protection is 15 seconds. Description Dynamic Client Patch Warning gump. No distro files included. Features -Automatically detects shard name/inserts where neccesary -Pops up overtop of other gumps on player login (if player's client is not up-to-date) -Seperate required and suggested patch versions can be enabled. -Built-in Help Menu. -Website button. -Yet more sexy gump art by yours truly! -Tons of updates and options by XxSP1DERxX! -Optional invulnerability protection for players, time-based (you can set how long you want). Default 15 seconds. Patch Suggested Preview* Patch Required Preview* Help Gump Preview* Installation Extract the attached file to your custom scripts directory. In the file "ClientPatchWarning.cs", locate the following code: Code:
public class ClientPatchWarning
{
//Settings
public static bool EnforceClientVerification = false;
public static ClientVersion Required = new ClientVersion( "5.0.1a" );
public static ClientVersion Suggested = new ClientVersion( "5.0.1j" );
public static string WebsiteURL = "http://www.runuo.com/forums";
public static TimeSpan Delay = TimeSpan.FromSeconds( 1.0 );
public static TimeSpan KickDelay = TimeSpan.FromSeconds( 30.0 );
public static int InvulProtection = 15; //seconds of invulnerability protection
Future Plans -Auto-detect new client patch versions (I have no idea how I can do this, if anyone has any idea please tell me!) -Simple organized logging with an in-game viewer. Thank you for using this script, I hope you enjoy it! You can e-mail suggestions/requests to demortris@adelphia.net, post them here, or contact XxSP1DERxX. *Preview Images are bad quality. Images are not up-to-date. Last edited by Joeku; 03-29-2006 at 02:19 AM. Reason: v1.5 > v1.6 |
|
|
|
|
#4 (permalink) |
|
Forum Expert
|
So let me get this straight your saying this script if i just put it in my custom folder script and do not change nothing on the script at all that if a player is in client 5.0.1h and i just got that part on script to 5.0.1j they wont be able to do nothing or move till they patch up and they get the gump to read what they gotta do if so please let me know cause if thats the case this is awesome since lots never listen when you tell them to patch up on osi.*PS* Also was wondering if player already has account before i added this script and if there client is 5.0.1h would that also freeze them up till they patch also.
|
|
|
|
|
#5 (permalink) |
|
Forum Master
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
|
If you have it set to "bool required = true;" then they can't do anything until they patch. If you have it set to "bool required = false;" then the gump just pops up every time they log in and they can exit out of it, but it should eventually annoy them enough to make them patch lol.
|
|
|
|
|
#6 (permalink) | |
|
Forum Expert
|
Quote:
![]() |
|
|
|
|
|
#9 (permalink) |
|
Join Date: Oct 2002
Age: 23
Posts: 4,689
|
Also you could have done this script without using new gumps. RunUO comes with OSI's default warning gump (used with moongate travelling etc). if you had used it, you would only need to specify the title, the body, and its callback.
|
|
|
|
|
#11 (permalink) | |
|
Forum Master
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
|
Quote:
I'll be running some more tests on this, should come out with a new release soon. |
|
|
|
|
|
#12 (permalink) |
|
Forum Master
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
|
v1.0 > v1.1
Client Patch Warning v1.1 now posted, please replace the following: "Client Patch Warning v1.0.cs" with the updated version. Info: updated to allow seperate required and suggested patches. Fixed bug that would potentially leave players invulnerable/frozen (Thanks for the report Erica). Last edited by Joeku; 02-15-2006 at 03:06 PM. |
|
|
|
|
#13 (permalink) |
|
Forum Master
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
|
v1.1 > v1.2
Client Patch Warning v1.2 now posted, please replace the following: "Client Patch Warning v1.1.cs" with the updated version. Info: fixed small bug that would sometimes send gump on invalid clients. Fixed bug that always made the player mortal and unfrozen (was an annoyance for staff who keep immortal). |
|
|
|
|
#14 (permalink) | |
|
Forum Novice
Join Date: May 2005
Age: 36
Posts: 175
|
Quote:
|
|
|
|
|
|
#15 (permalink) |
|
Forum Master
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
|
The script has been updated since that post; please read through the entire thread. Now you can have a required version and a suggested version. The required version is default at 4.0.0 (which almost everyone has anyway). If you want it to be the latest version, just set it to 5.0.1j.
|
|
|
|
|
#16 (permalink) | |
|
Forum Expert
|
Quote:
|
|
|
|
|
|
#18 (permalink) |
|
Join Date: Oct 2002
Age: 23
Posts: 4,689
|
This should work, but I am at school so I doubt its perfect. It should be enough for you to get an idea of how to fix it (if I didn't already). I also consolidated your gump.
Last edited by XxSP1DERxX; 02-22-2006 at 03:57 AM. |
|
|
|
|
#19 (permalink) | |
|
Forum Expert
|
Quote:
Code:
- Error: Scripts\CustomScripts\ClientPatchWarning.cs: CS0103: (line 25, column 47) The name 'World_Logout' does not exist in the class or namespace 'Server.Cli entPatchWarning' - Error: Scripts\CustomScripts\ClientPatchWarning.cs: CS1026: (line 63, column 49) ) expected |
|
|
|
|
|
#22 (permalink) |
|
Join Date: Oct 2002
Age: 23
Posts: 4,689
|
Here i fixed those 2 errors.
I believe I fixed the bug with the gump, but since I haven't tested it I cannot be 100%. Please get back to me on that, or of course Joeku ![]() There is a problem with the way the CTimer runs. It will run indefinately. Once I have this fixed, I will repost it. Last edited by XxSP1DERxX; 02-24-2006 at 03:32 AM. |
|
|
|
|
#23 (permalink) | |
|
Forum Expert
|
Quote:
|
|
|
|
|
|
#24 (permalink) | |
|
Join Date: Oct 2002
Age: 23
Posts: 4,689
|
Quote:
|
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|