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 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.

Reply
 
Thread Tools Display Modes
Old 05-01-2007, 07:22 PM   #1 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default [RunUO 2.0 SVN]REVISED!! ShardControl.cs for Common Script Changes

***TOTAL EDIT*** PLEASE REDOWNLOAD!!!

SHARD CONTROL

************************************************** ******
CHANGE LOG:

6/10/2007

Added the new AdvancedPlayerGate w/Shard Control, see this link:

[2.0]NEW Advanced Player Gate w/Shard Control

5/4/2007

Totally rewritten, and added several features.

Here are the things you can now control:

m_StartGold ..... Amount of Starting Gold for new players.
m_AccountsPerIP ...... Number of Accounts allowed per IP.
m_TCEnabled ...... Test Center Enabled/Disabled on the fly.
m_AAC ...... Automatic Account Creation for new Accounts.
m_Delay ..... Delay in Minutes between Shard Saves.
m_Warning ..... Warning time in Seconds before Saves.
m_StatCap ..... Adjust all players Total Stat Cap on the fly.
m_SkillsCap ..... Adjust all players Total Skills Cap on the fly.
m_RegsEnabled ..... Turn on/off Use of Reagents for Spells.
m_ResFullHealth ..... On/Off Full Health after Resurrection.
m_PetResFullHealth ..... Full Health for Pets on Resurrection.
m_ProfanityProtection ..... Turn On/Off Profanity Protection.
m_ProfanityAction ..... Set Profanity Action on the fly.
m_Gains ..... Set Skill Gains from Very Low to Automatic.

Settings are now saved to XML format. (Thanks to ArteGordon for his XmlSpawner2 system, that helped with inspiration and much code.)

NEW COMMANDS (** and what they do **):

[Shard (** displays current settings. same as [shardcontrol **)
[ShardControl (** displays current settings. Same as [shard **)
[Shard Help (** displays the ShardControlGump. same as dblck the item **)
[Shard Save {myfilename.xml} (** saves settings to {myfilename.xml} **)
[Shard Load {myfilename.xml} (** loads settings from {myfilename.xml} **)
[Shard Gains 3 (** sets Gains to C_Normal **)
[SetWarning 30 (** sets Warning time to 30 seconds before Saves **)
[SetDelay 25 (** sets Delay to 25 Minutes between Saves **)

************************************************** ******

This is a nifty little script. It takes common script change needs, and puts them all in an Item called the ShardControl.

I just know some clever scripters are going to improve on this thing, and add all kinds of stuff to it. That's cool. There is a gump that has plenty of room to add more stuff to it. (Sorry, no control of the features through the gump in this release, so you have to [props it.)

OK, as usual, back up your files, and only add this once you understand what files you are replacing and/or changing. Please don't mess up a file you spent a month perfecting with no backups!

INSTALLATION

If you prefer to make changes manually, here is the list of files, and what you might be able to do manually instead of installing the files included in the release.

Look for #region code identifying what sections were changed or added for Shard Control:
CharacterCreation.cs
AccountHandler.cs
SkillCheck.cs
AutoSave.cs
Spell.cs
PetResurrectGump.cs
ResurrectGump.cs

These files are new or have been totally rewritten:
ShardControl.cs
TestCenter.cs

THESE FILES WERE CREATED WITH RunUO 2.0 SVN 181.

IF YOU HAVE A CLEAN INSTALL, OR DON'T MIND REPLACING YOUR EXISTING FILES, DROP THESE IN THE SCRIPTS FOLDER, OVERWRITING THE EXISTING FILES. (YES TO ALL)
Attached Files
File Type: zip ShardControl.zip (34.4 KB, 339 views)
File Type: zip ShardControl w-Advanced Player Gate.zip (45.4 KB, 210 views)

Last edited by Lokai; 06-10-2007 at 05:55 PM. Reason: Many changes added.
Lokai is offline   Reply With Quote
Old 05-01-2007, 08:38 PM   #2 (permalink)
Forum Expert
 
ABTOP's Avatar
 
Join Date: Sep 2006
Location: Ukraine
Posts: 1,052
Default

Cool & Simple. Thx man!
ABTOP is offline   Reply With Quote
Old 05-03-2007, 11:51 AM   #3 (permalink)
Forum Novice
 
Join Date: Jun 2004
Location: Michigan
Age: 28
Posts: 195
Send a message via MSN to septor
Default

Nice!

You could add other commonly changed things here as well:

Map rules
FC & FCC rates
Skill gain rate
Characters per account

..?
septor is offline   Reply With Quote
Old 05-03-2007, 03:05 PM   #4 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

Stay tuned...a new improved version of this will be out shortly.

Lokai is offline   Reply With Quote
Old 05-03-2007, 03:50 PM   #5 (permalink)
Forum Novice
 
Join Date: Jul 2005
Age: 33
Posts: 410
Default Looks like a great script man!

i cant wait to see what else will be added to this or made from this, thanks for sharing with the community, even though i pretty much have all the things this controls setup manually, but im sure it will become something even greater with the creative minds at work here.


PS + Karma
__________________
LoveTheGame...ClickHere.
Owner Of SecretsOfClones
Feel free to check it out so far...
wulf monat is offline   Reply With Quote
Old 05-03-2007, 07:05 PM   #6 (permalink)
Forum Novice
 
Join Date: Mar 2007
Posts: 100
Default

this could be actually pretty useful, thanks man
money is offline   Reply With Quote
Old 05-04-2007, 01:01 PM   #7 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default New Release posted

I have posted the new release I have been working on.

See the first post for changes and instructions.

Please download and replace your files, as needed.
Lokai is offline   Reply With Quote
Old 05-04-2007, 09:55 PM   #8 (permalink)
Forum Novice
 
Join Date: Jun 2004
Location: Michigan
Age: 28
Posts: 195
Send a message via MSN to septor
Default

Quote:
Originally Posted by Lokai View Post
I have posted the new release I have been working on.

See the first post for changes and instructions.

Please download and replace your files, as needed.
Damnit. I just and I mean JUST got done adding in some edits to your first script.

LOL. Thanks for the re-release, it has killed off all my work :[
septor is offline   Reply With Quote
Old 05-04-2007, 10:08 PM   #9 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

Quote:
Originally Posted by septor View Post
Damnit. I just and I mean JUST got done adding in some edits to your first script.

LOL. Thanks for the re-release, it has killed off all my work :[

You are welcome. Of course, I don't even know what FC or FCC rates are, nor did I do anything with Map rules yet, so if you have any additions that could be added, feel free.
Lokai is offline   Reply With Quote
Old 05-18-2007, 05:27 PM   #10 (permalink)
Forum Novice
 
zetamine's Avatar
 
Join Date: Feb 2004
Location: New Jersey
Age: 25
Posts: 243
Default Hey

I have just dropped your script in keeping proper structure and it's throwing this error.

Code:
+Misc/ShardControl.cs
          CS0115: Line 90: 'Server.Misc.ShardControl.DisplayWeight': no suitable method found to override
Could you help me figure out how to fix it?
zetamine is offline   Reply With Quote
Old 05-18-2007, 06:40 PM   #11 (permalink)
Tru
Forum Expert
 
Tru's Avatar
 
Join Date: Jan 2003
Location: California
Age: 41
Posts: 3,259
Default

Quote:
Originally Posted by zetamine View Post
I have just dropped your script in keeping proper structure and it's throwing this error.

Code:
+Misc/ShardControl.cs
          CS0115: Line 90: 'Server.Misc.ShardControl.DisplayWeight': no suitable method found to override
Could you help me figure out how to fix it?
What SVN you using?
Tru is offline   Reply With Quote
Old 05-18-2007, 06:51 PM   #12 (permalink)
Forum Novice
 
zetamine's Avatar
 
Join Date: Feb 2004
Location: New Jersey
Age: 25
Posts: 243
Default Doh!

I'm retarded, I'm using RC1 not even SVN. So I guess I'm boned.
zetamine is offline   Reply With Quote
Old 05-20-2007, 07:00 AM   #13 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

Quote:
Originally Posted by zetamine View Post
I'm retarded, I'm using RC1 not even SVN. So I guess I'm boned.
Not at all. You may comment out that part and be fine.
Lokai is offline   Reply With Quote
Old 05-20-2007, 01:51 PM   #14 (permalink)
Newbie
 
PrinceArda's Avatar
 
Join Date: Aug 2006
Posts: 75
Default

how can this script work with Ruo 2 RC1
PrinceArda is offline   Reply With Quote
Old 05-20-2007, 04:44 PM   #15 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

Quote:
Originally Posted by PrinceArda View Post
how can this script work with Ruo 2 RC1

Look for #region code identifying what sections were changed or added for Shard Control in these files, and add them to your files in the same place:

CharacterCreation.cs
AccountHandler.cs
SkillCheck.cs
AutoSave.cs
Spell.cs
PetResurrectGump.cs
ResurrectGump.cs

These files are new or have been totally rewritten:
ShardControl.cs
TestCenter.cs

In ShardControl.cs, comment out this method:
PHP Code:
        public override bool DisplayWeight get { return ResetProperties(); } } 
Lokai is offline   Reply With Quote
Old 06-21-2007, 08:39 PM   #16 (permalink)
Forum Novice
 
Join Date: Jun 2007
Posts: 367
Default

Quote:
Originally Posted by Lokai View Post
In ShardControl.cs, comment out this method:
PHP Code:
        public override bool DisplayWeight get { return ResetProperties(); } } 
Hi trying to install this for RunUO 2.0 RC1 and i looked in shard control cant find that line anywhere....

EDIT: Nvm found it

Last edited by Flats; 06-21-2007 at 09:16 PM. Reason: Found Line
Flats is offline   Reply With Quote
Old 06-21-2007, 09:00 PM   #17 (permalink)
Forum Novice
 
Join Date: Jun 2007
Posts: 367
Default

Hi Tried to install and got this error

Code:
Errors:
+Accounting/AccountHandler.cs
CS0246: Line 225: The type or namespace name 'Hashtable' could not be found <are you missing a using directive or assembly reference?>
CS0246: Line 227: The type or namespace name 'Hashtable' could not be found <are you missing a using directive or assembly reference?>
Help is appreciated please
Flats is offline   Reply With Quote
Old 06-21-2007, 09:37 PM   #18 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

Quote:
Originally Posted by Flats View Post
Hi Tried to install and got this error

Code:
Errors:
+Accounting/AccountHandler.cs
CS0246: Line 225: The type or namespace name 'Hashtable' could not be found <are you missing a using directive or assembly reference?>
CS0246: Line 227: The type or namespace name 'Hashtable' could not be found <are you missing a using directive or assembly reference?>
Help is appreciated please
I don't know. My version does not refer to Hashtable's at line 225 or 227, as it is using the Dictionary type in SVN 181. Not sure what you did, but I think for this file, all you need to do is use the code that is within the #region tags.
Lokai is offline   Reply With Quote
Old 07-06-2007, 01:17 AM   #19 (permalink)
Newbie
 
Join Date: Jun 2006
Posts: 75
Default help..?

Code:
Errors:
 + Custom/ShardControl w-Advanced Player Gate/Misc/ShardControl.cs:
    CS0115: Line 107: 'Server.Misc.ShardControl.DisplayWeight': no suitable meth
od found to override
I can't figure out why I'm getting this..

Code:
        public override bool DisplayWeight { get { return ResetProperties(); } }
        #endregion
bleedingspiderlegs is offline   Reply With Quote
Old 07-06-2007, 12:06 PM   #20 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

Quote:
Originally Posted by bleedingspiderlegs View Post
Code:
Errors:
 + Custom/ShardControl w-Advanced Player Gate/Misc/ShardControl.cs:
    CS0115: Line 107: 'Server.Misc.ShardControl.DisplayWeight': no suitable meth
od found to override
I can't figure out why I'm getting this..

Code:
        public override bool DisplayWeight { get { return ResetProperties(); } }
        #endregion
As stated several places in this thread, that code is for the SVN version. Simply comment out that code, and your scripts should work just fine.

Thanks.
Lokai is offline   Reply With Quote
Old 07-15-2007, 08:02 AM   #21 (permalink)
Forum Novice
 
Join Date: Sep 2004
Age: 33
Posts: 685
Default

We installed the script (along with the Advanced Player Gate) and it's exactly what we need for our shard. Thank you, Lokai. Wonderful, wonderful

One thing I did run into, though... not sure if this happens with others. After you install Shard Control, skill gains stopped until you reset the skill gain option in Shard Control. I tried fishing, mining, and other skills, all at 0.0, with no gain until I set the Shard Control to [shard gains 4, at which point the gains started.

Also, [skill gains 3 is "fast", not "normal". No big deal, just wanted to note it.

Thanks for the great script. It has allowed us to change a ton of things all at once that we wanted, and be able to keep track and do it on the fly.
__________________
Please don't preach to me. You won't convert me. You won't convince me. I am me and you are you. I will respect you because that's who I am. Disrespect me, and you've only proven who you really are.
Vhaerun is offline   Reply With Quote
Old 09-09-2007, 11:48 PM   #22 (permalink)
Lurker
 
Join Date: Oct 2004
Age: 31
Posts: 20
Default need help

I installed the shard control scripts and I got this error how do i fix it

Errors:
CS0115: Line 107 'Server.Misc.ShardControl.DisplayWeight,: no suitable method found to override
kcwolfy78 is offline   Reply With Quote
Old 09-10-2007, 06:42 AM   #23 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 42
Posts: 1,493
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

Quote:
Originally Posted by kcwolfy78 View Post
I installed the shard control scripts and I got this error how do i fix it

Errors:
CS0115: Line 107 'Server.Misc.ShardControl.DisplayWeight,: no suitable method found to override
These scripts were created with SVN 181, not RC1 version of RunUO, so comment out the entire 'DisplayWeight' method, and it should be fine.
Lokai is offline   Reply With Quote
Old 09-10-2007, 01:06 PM   #24 (permalink)
Lurker
 
Join Date: Oct 2004
Age: 31
Posts: 20
Default

Ok I did that and I got all new errors

RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (2 errors, 0 warnings)
Errors:
+ Accounting/Account.cs:
CS0117: Line 912: 'Server.Misc.AccountHandler' does not contain a definition
for 'IPTables'
CS0117: Line 913: 'Server.Misc.AccountHandler' does not contain a definition
for 'IPTables'
CS0117: Line 915: 'Server.Misc.AccountHandler' does not contain a definition
for 'IPTables'
CS0117: Line 915: 'Server.Misc.AccountHandler' does not contain a definition
for 'IPTables'
+ Misc/CharacterCreation.cs:
CS0117: Line 638: 'Server.Race' does not contain a definition for 'RequiredE
xpansion'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
kcwolfy78 is offline   Reply With Quote
Old 09-10-2007, 02:00 PM   #25 (permalink)
Lurker
 
Join Date: Oct 2004
Age: 31
Posts: 20
Default

ok this is the only error I have left if I comment it out it will make all char's have no bodys

RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
+ Misc/CharacterCreation.cs:
CS0117: Line 638: 'Server.Race' does not contain a definition for 'RequiredE
xpansion'

Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
kcwolfy78 is offline   Reply With Quote
Reply

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 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5