Lokai
Knight
[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:
http://www.runuo.com/forums/custom-...new-advanced-player-gate-w-shard-control.html
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)
***TOTAL EDIT*** PLEASE REDOWNLOAD!!!
SHARD CONTROL
********************************************************
CHANGE LOG:
6/10/2007
Added the new AdvancedPlayerGate w/Shard Control, see this link:
http://www.runuo.com/forums/custom-...new-advanced-player-gate-w-shard-control.html
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)