|
||
|
|||||||
| 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 publish them under the GPL licensing terms. 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. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Administrator
Join Date: Aug 2002
Location: Baltimore, MD
Age: 26
Posts: 4,890
|
Summary
This script allows your server to negotiate with Razor to determine which features are allowed on your server. This script will work with both 1.0 and 2.0 RunUO versions. Installation Simply place this script anywhere in your Scripts sub-folder. Configuration The following entries appear at the top of the script file: Code:
public const bool Enabled = true; // Is the "Feature Enforced" turned on? public const bool KickOnFailure = true; // When true, this will cause anyone who does not negotiate (include those not running Razor at all) to be disconnected from the server. public static readonly TimeSpan HandshakeTimeout = TimeSpan.FromSeconds( 30.0 ); // How long to wait for a handshake response before showing warning and disconnecting public static readonly TimeSpan DisconnectDelay = TimeSpan.FromSeconds( 15.0 ); // How long to show warning message before they are disconnected public const string WarningMessage = "The server was unable to negotiate features with Razor on your system.<BR>You must be running the <A HREF=\"http://razor.runuo.com/download.php\">latest version of Razor</A> to play on this server.<BR>Once you have Razor installed and running, go to the <B>Options</B> tab and check the box in the lower right-hand corner marked <B>Negotiate features with server</B>. Once you have this box checked, you may log in and play normally.<BR>You will be disconnected shortly."; Code:
public static void Configure()
{
// TODO: Add your server's feature allowances here
// For example, the following line will disallow all looping macros on your server
//DisallowFeature( RazorFeatures.LoopedMacros );
}
Code:
public static void Configure()
{
DisallowFeature( RazorFeatures.FilterWeather );
DisallowFeature( RazorFeatures.FilterLight );
}
This script negotiates features with Razor by sending a packet to the client and listening for a response sent by Razor. Razor sends the response if and only if the "Negotiate features with server" option is checked on the "Options" tab. If players do not check this box, then Razor will not respond to the negotiation packet. After starting negotiation, the server waits for 30 seconds for Razor to respond. If no response is received, a message is displayed to the user and 15 seconds later they are disconnected from the server. This means that both users who have not checked the "Negotiate features with server" box and users who do not have Razor running at all will be disconnected from your server. If you use this script with the default configuration, your users must be running Razor version 1.0.8 or higher in order to play on your server. The reason for this is that the users must voluntarily allow the server to detect Razor. If they chose not to allow it, then the server will be unable to detect them. If the user has their Razor properly configured, they will see no messages and can play as normal. Features which have be disallowed by the server will show up as "locked" on the Razor window and players will not be able to use them. Note: This script also requires Razor version 1.0.8 to work. This Razor version is being released today, and all users will be automatically updated over the next 24 hours. Users who prevent razor from updating properly or who use an other version of Razor will be treated as though they are not using Razor at all. In the default configuration, this means they will be shown a message and then disconnected from the server. NOTICE: This feature and this script have only undergone a small amount of testing. There may be unexpected problems related to this script, and you are using it AT YOUR OWN RISK. Please test it before placing it on your live shard. Also, please DO NOT post bugs in this thread. Please post bugs relating to this feature and this script in the Razor Support Forum here on RunUO.com. Please post all general support questions (How do I do ____? Why is my ____ not working?) in this thread. Please do not ask questions about this script in the Razor Support Forum. The Razor Forum is for Razor questions and bugs related to this script (not support questions)! Thank you, and enjoy.
__________________
Zippy, Razor Creator and RunUO Core Developer The RunUO Software Team "Intuition, like a flash of lightning, lasts only for a second. It generally comes when one is tormented by a difficult decipherment and when one reviews in his mind the fruitless experiments already tried. Suddenly the light breaks through and one finds after a few minutes what previous days of labor were unable to reveal." ~The Cryptonomicon |
|
|
|
|
|
#2 (permalink) |
|
Forum Expert
Join Date: Jan 2003
Location: California
Age: 41
Posts: 3,259
|
You Rock!!
__________________
My Scripts: HoodableRobe CellarAddon SeigeUpdates Refresh/CloneMe Commands VooDoo Dolls Lost Alchemy SVN 187 Updates: Bard System + Upgrade Ultima VII |
|
|
|
|
|
#3 (permalink) |
|
Forum Expert
|
wow...this is great.
too bad there isn't a better way to distinguish old versions and people who arent using it. That may be one reason i won't use this right away due to it require's everyone to run razor. but this will be helpful to many....thanks for this ![]() |
|
|
|
|
|
#4 (permalink) |
|
Master of the Internet
Join Date: Dec 2005
Posts: 13,307
|
I agree with you wholeheartedly, but i can see from a technical standpoint where that would be difficult. TBH, I'd just put in the connectuo listing for the shard "Requires Razor" in description field.
If a player really wants to play the shard, they'll install it and just minimize/ignore it. |
|
|
|
|
|
#5 (permalink) |
|
Master of the Internet
|
this does sound great, and i would use it, except to many of my players use the old encryption method (at least until connect uo can split up the patch files and support multi uo for gm's)
to bad can not make 2 different versions of 1.0.8 (1.0.8 & 1.0.8 old enc or what ever) one for the new encryption and one for old encryption - because many many people are still using the old encrption method
__________________
http://www.AoAUO.com
:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :) |
|
|
|
|
|
#8 (permalink) | |
|
Administrator
Join Date: Aug 2002
Location: Baltimore, MD
Age: 26
Posts: 4,890
|
Quote:
I'll fix that and post an update later today.
__________________
Zippy, Razor Creator and RunUO Core Developer The RunUO Software Team "Intuition, like a flash of lightning, lasts only for a second. It generally comes when one is tormented by a difficult decipherment and when one reviews in his mind the fruitless experiments already tried. Suddenly the light breaks through and one finds after a few minutes what previous days of labor were unable to reveal." ~The Cryptonomicon |
|
|
|
|
|
|
#11 (permalink) |
|
Administrator
Join Date: Aug 2002
Location: Baltimore, MD
Age: 26
Posts: 4,890
|
Unlikely .
__________________
Zippy, Razor Creator and RunUO Core Developer The RunUO Software Team "Intuition, like a flash of lightning, lasts only for a second. It generally comes when one is tormented by a difficult decipherment and when one reviews in his mind the fruitless experiments already tried. Suddenly the light breaks through and one finds after a few minutes what previous days of labor were unable to reveal." ~The Cryptonomicon |
|
|
|
|
|
#13 (permalink) | |
|
Forum Novice
Join Date: Dec 2005
Location: Germany
Age: 32
Posts: 402
|
Quote:
![]() (Disclaimer: of course I recognize that your word on it is final. A request is hardly a bad thing though.) |
|
|
|
|
|
|
#14 (permalink) | |
|
Master of the Internet
Join Date: Dec 2005
Posts: 13,307
|
Dudes, I think that its more of a technical problem than him choosing not to allow non razor users on.
Quote:
|
|
|
|
|
|
|
#15 (permalink) | |
|
Master of the Internet
|
Quote:
It will work with the clients, but not all 3rd party programs using the old encryption method (the one introduced in 5.0.65 is the new method that osi uses) so only those using razor or connect uo to coonnect can use the newest razor and like i said - neither one supports multi uo, multiple patches, and a few other features, that a lot of shards still use I still love the idea, and hopefully once connect uo gets fully finctional, i amy be able to use it then until then myself and a lot of other players are stuch using razor 1.0.1 or earlier versions only
__________________
http://www.AoAUO.com
:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :) |
|
|
|
|
|
|
#16 (permalink) |
|
Administrator
Join Date: Aug 2002
Location: Baltimore, MD
Age: 26
Posts: 4,890
|
ConnectUO supports MultiUO and patches.
Razor supports MultiUO.
__________________
Zippy, Razor Creator and RunUO Core Developer The RunUO Software Team "Intuition, like a flash of lightning, lasts only for a second. It generally comes when one is tormented by a difficult decipherment and when one reviews in his mind the fruitless experiments already tried. Suddenly the light breaks through and one finds after a few minutes what previous days of labor were unable to reveal." ~The Cryptonomicon |
|
|
|
|
|
#17 (permalink) |
|
Master of the Internet
|
connect uo will only allow me to have 1 big patch file, not many smaller ones
can have many files instide of it but only 1 patch file unless it was changed in the last couple of months again but i have never got multi uo to work it - just sits there whne i try to open a second one up - but i could be doing something wrong but it still does not fully support all of the different files either - there are a few that players still complain about, like bodydef, etc not working right but things like that are for the connect uo discussion forums and not for here
__________________
http://www.AoAUO.com
:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :) |
|
|
|
|
|
#18 (permalink) |
|
Lurker
Join Date: Jan 2006
Posts: 1
|
Hi,
i have problem, when i set this row to Configuration method Code:
public static void Configure()
{
DisallowFeature( RazorFeatures.FilterWeather );
DisallowFeature( RazorFeatures.FilterLight );
}
I was thing that this setting can help disable this filter. Or i understand wrong? ![]() |
|
|
|
|
|
#19 (permalink) |
|
Master of the Internet
|
a nice simple question - has any one have this running yet on their shard and got it working correctly?
And was it worth it? just making sure before i force everyone to have razor ![]()
__________________
http://www.AoAUO.com
:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :) |
|
|
|
|
|
#20 (permalink) |
|
Forum Expert
Join Date: Jan 2003
Location: California
Age: 41
Posts: 3,259
|
I use it to simply filter Light and Weather and it works fine. I toyed with nulling auto doors and it worked but I removed it as that one annoyed people.
__________________
My Scripts: HoodableRobe CellarAddon SeigeUpdates Refresh/CloneMe Commands VooDoo Dolls Lost Alchemy SVN 187 Updates: Bard System + Upgrade Ultima VII |
|
|
|
|
|
#21 (permalink) |
|
Master of the Internet
|
i am looking for doing the same filters as you, and maybe the block dismounting - at least until i test it to make sure that if i "hit a person" and dismount them they stay down - because i thought i say a couple auto mount again, and they sort of blows using the dismount special ability on weapons
(but if test show differently - then just the 1st 2) *edited - just checked - it still does allow dismounting via weapon use even when checked - so can keep that one in ![]()
__________________
http://www.AoAUO.com
:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :) Last edited by Lord_Greywolf; 08-14-2007 at 01:12 AM. |
|
|
|
|
|
#22 (permalink) | |
|
Forum Expert
Join Date: Feb 2004
Age: 28
Posts: 1,834
|
Quote:
__________________
[sig]all my scripts are public domain and can be re-released in any form[/sig] |
|
|
|
|
|
|
#23 (permalink) | |
|
Forum Novice
|
Quote:
![]() |
|
|
|
|
|
|
#24 (permalink) |
|
Administrator
Join Date: Aug 2002
Location: Baltimore, MD
Age: 26
Posts: 4,890
|
Can you translate that to English?
__________________
Zippy, Razor Creator and RunUO Core Developer The RunUO Software Team "Intuition, like a flash of lightning, lasts only for a second. It generally comes when one is tormented by a difficult decipherment and when one reviews in his mind the fruitless experiments already tried. Suddenly the light breaks through and one finds after a few minutes what previous days of labor were unable to reveal." ~The Cryptonomicon |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|