Lokai
Knight
[2.0]NEW Advanced Player Gate w/Shard Control
NEW Advanced Player Gate w/Shard Control
WARNING. MAY PRODUCE ERRORS IN RC1. If you are not using SVN 181 or above, you may need to MERGE changes rather than just replacing files, for Shard Control.
This may seem redundant, since both of these systems have their own release page, but please read the entire post first, and you will understand why I created a separate thread for this.
These scripts/modifications were written by me. I have combined them here in order to introduce a concept inspired by the cries for help on the Script Support threads.
First, the Advanced Player Gate:
IMPORTANT: Read almost everything about the Gate in this post:
http://www.runuo.com/forums/custom-...unuo-2-0-rc1-lokais-advanced-player-gate.html
The following changes were made to the Gate:
- Added Individual Stat Caps for players - you can set how high their STR, INT or DEX can go. (Requires ShardControl.)
- Removed the Item-adding capability (found it too buggy to work with)
Next, the ShardControl:
IMPORTANT: Read almost everything about ShardControl in this post:
http://www.runuo.com/forums/custom-script-releases/82190-shardcontrol-cs-common-script-changes.html
The following changes were made to ShardControl:
- Added line that shows the Admin the amount of time the last save took.
- Added Individual Stat Cap variable - default value of 125
- Added persistent Dictionaries to save players' IntCap, DexCap and StrCap values, stored based on the value of the player's Serial.
- SkillCheck.cs and TestCenter.cs were updated to use the new Stat Caps instead of using 125.
- New gump for all players [StatCaps, which will show the player's current Stat Caps.
Installation:
The scripts are contained in the folders where they most likely already reside in your Server's folder. So, if you don't mind replacing your files with these, just extract them and overwrite your files. Further instructions are contained in the Installation.txt file in the Zip. The AdvancedPlayerGate.cs file is in the Custom/Lokai folder. If you have an earlier version of this file, find it and replace it with this one.
How to Use ShardControl in Game:
- First, ShardControl is designed to take some of the Scripting worries away from busy Admins, so they can make some significant changes on the fly, without needing to reboot and recompile the Server. If you haven't already, please read the link above describing the features.
- Use the [Add command to create a ShardControl item. It will look like the Elven Ornate Box. If you have previous ShardControl items in the world, you may want to delete them, although the script should load correctly in any case.
- Next, use one of the commands that came with the ShardControl to set the features the way you want them.
How to Use ShardControl's StatCaps in Your Scripts:
If you have the ShardControl and you want to create your own Race system or whatever, to use the StatCap feature, simply refer to the appropriate public Dictionary by name, and make sure you check to see if the player's Serial.Value is already found before you access it. If you are just trying to read the Cap, then use ShardControl.GetIntCap, ShardControl.GetStrCap, or ShardControl.GetDexCap to retrieve the value stored. If not present, it will return the default value.
How to Use the AdvancedPlayerGate:
- First, if you haven't already, please read the link above which describes most of the Gate's features.
- In a nutshell, AdvancedPlayerGate is a moongate with a TON of features that lets you set almost all of the properties in the Game, rather than needing to script the Gates yourself.
- All of the Gate's features are accessible through [props, but most of the features are also available through the built in Gump. Just double-click on the Gate, and it will show you (or the player) all of the features in the Gate. As a GM, you will also have buttons letting you turn ON/OFF features, Raise and Lower Skills/Stats/SkillCaps and now Individual StatCaps too.
- Page ONE of the Gump features Skills and Stats, and Page TWO features all of the Caps.
- You can also give Titles to players, give Items based on Skills of a certain level, and even change the Hue and give random Names.
To recap, the reason I am releasing the ShardControl in a new Thread is because of this very important new feature of Individual StatCaps. And, in order to showcase the new feature, I am also releasing the AdvancedPlayerGate, modified with the new StatCap feature. Scripters wishing to use their own Race/Class system will, of course, be able to use the new features of the ShardControl for thier own scripts.
NEW Advanced Player Gate w/Shard Control
WARNING. MAY PRODUCE ERRORS IN RC1. If you are not using SVN 181 or above, you may need to MERGE changes rather than just replacing files, for Shard Control.
This may seem redundant, since both of these systems have their own release page, but please read the entire post first, and you will understand why I created a separate thread for this.
These scripts/modifications were written by me. I have combined them here in order to introduce a concept inspired by the cries for help on the Script Support threads.
First, the Advanced Player Gate:
IMPORTANT: Read almost everything about the Gate in this post:
http://www.runuo.com/forums/custom-...unuo-2-0-rc1-lokais-advanced-player-gate.html
The following changes were made to the Gate:
- Added Individual Stat Caps for players - you can set how high their STR, INT or DEX can go. (Requires ShardControl.)
- Removed the Item-adding capability (found it too buggy to work with)
Next, the ShardControl:
IMPORTANT: Read almost everything about ShardControl in this post:
http://www.runuo.com/forums/custom-script-releases/82190-shardcontrol-cs-common-script-changes.html
The following changes were made to ShardControl:
- Added line that shows the Admin the amount of time the last save took.
- Added Individual Stat Cap variable - default value of 125
- Added persistent Dictionaries to save players' IntCap, DexCap and StrCap values, stored based on the value of the player's Serial.
- SkillCheck.cs and TestCenter.cs were updated to use the new Stat Caps instead of using 125.
- New gump for all players [StatCaps, which will show the player's current Stat Caps.
Installation:
The scripts are contained in the folders where they most likely already reside in your Server's folder. So, if you don't mind replacing your files with these, just extract them and overwrite your files. Further instructions are contained in the Installation.txt file in the Zip. The AdvancedPlayerGate.cs file is in the Custom/Lokai folder. If you have an earlier version of this file, find it and replace it with this one.
How to Use ShardControl in Game:
- First, ShardControl is designed to take some of the Scripting worries away from busy Admins, so they can make some significant changes on the fly, without needing to reboot and recompile the Server. If you haven't already, please read the link above describing the features.
- Use the [Add command to create a ShardControl item. It will look like the Elven Ornate Box. If you have previous ShardControl items in the world, you may want to delete them, although the script should load correctly in any case.
- Next, use one of the commands that came with the ShardControl to set the features the way you want them.
How to Use ShardControl's StatCaps in Your Scripts:
If you have the ShardControl and you want to create your own Race system or whatever, to use the StatCap feature, simply refer to the appropriate public Dictionary by name, and make sure you check to see if the player's Serial.Value is already found before you access it. If you are just trying to read the Cap, then use ShardControl.GetIntCap, ShardControl.GetStrCap, or ShardControl.GetDexCap to retrieve the value stored. If not present, it will return the default value.
How to Use the AdvancedPlayerGate:
- First, if you haven't already, please read the link above which describes most of the Gate's features.
- In a nutshell, AdvancedPlayerGate is a moongate with a TON of features that lets you set almost all of the properties in the Game, rather than needing to script the Gates yourself.
- All of the Gate's features are accessible through [props, but most of the features are also available through the built in Gump. Just double-click on the Gate, and it will show you (or the player) all of the features in the Gate. As a GM, you will also have buttons letting you turn ON/OFF features, Raise and Lower Skills/Stats/SkillCaps and now Individual StatCaps too.
- Page ONE of the Gump features Skills and Stats, and Page TWO features all of the Caps.
- You can also give Titles to players, give Items based on Skills of a certain level, and even change the Hue and give random Names.
To recap, the reason I am releasing the ShardControl in a new Thread is because of this very important new feature of Individual StatCaps. And, in order to showcase the new feature, I am also releasing the AdvancedPlayerGate, modified with the new StatCap feature. Scripters wishing to use their own Race/Class system will, of course, be able to use the new features of the ShardControl for thier own scripts.