|
||
|
|||||||
| 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) |
|
Forum Expert
|
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: [RunUO 2.0 RC1] Lokai's Advanced Player Gate 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: ShardControl.cs for Common Script Changes 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.
__________________
Advanced Player Gate with Shard Control - My Master Runebook - Linked Books & Bags - Full Toolbar (Fubar) - XML Bible system - Music Box - Enhancement Deeds - House Paints - Light Switch Last edited by Lokai; 06-12-2007 at 02:59 PM. |
|
|
|
|
|
#3 (permalink) |
|
Forum Novice
|
Dang this is sweet!!! already use the advanced player gate... thanks for the New fix on that btw... works perfectly now.!! i like the shard control... thats a heck of alot easier than doing it the old way *cough* editing lol
Thanks Soultaker
__________________
:eek: Custom Script Databaseor C# Script Cache :eek: Special Thanks to Liacs for Scripts & Modero for Sig
|
|
|
|
|
|
#7 (permalink) |
|
Newbie
Join Date: Aug 2006
Posts: 73
|
Ive just read it and i think its an awesome script.
i installed the script but i got this error message: Code:
+ Misc.ShardControl.cs: CS0115: Line 107: 'Server.Misc.ShardControl.Display/e light' : no suitable method found to override. |
|
|
|
|
|
#8 (permalink) | |
|
Forum Expert
|
Quote:
|
|
|
|
|
|
|
#9 (permalink) |
|
Newbie
Join Date: Aug 2006
Posts: 73
|
ok i fixed that problem.
but i have these errors now. i also checked this script with a clean Runuo 2 RC1, and i still get the same error message: Code:
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/CaracterCreation.csCS0117: Line 638: 'Server.Race' does not contain a definition for 'RequiredExpansion' |
|
|
|
|
|
#10 (permalink) | |
|
Forum Expert
|
Quote:
|
|
|
|
|
|
|
#12 (permalink) |
|
Forum Newbie
|
I'm new to RunUO, but I still know that this is a good script! I've just got a question, is there a way to make it so when the player steps into the portal and get teleported to britain, they can choose 3 skills to start at 50, also when I set the "Set_STAT_str/dex/int" option none of them change (and the "_ChangesStats" is set to true. Thanks in advanced.
Edit: Okay so I found a "welcomeskillball" script, and if anyone could help me use the skill gump in it and put it in the advanced player gate script I'd be very thankful. Last edited by Ahrkan; 06-21-2007 at 05:01 PM. |
|
|
|
|
|
#13 (permalink) | |
|
Forum Expert
|
Quote:
ShardControl.cs: should work if you remove the "DisplayWeight" method. SkillCheck.cs: use mine, unless you have special features on yours. If so, post to script support forum for help. AdvancedPlayerGate.cs: should work with RC1. All the rest: look for #region code indicating changes or additions for Shard Control. |
|
|
|
|
|
|
#14 (permalink) |
|
Newbie
Join Date: Aug 2006
Posts: 73
|
Thank you very much Lokai! I will try it right away.
.... >< oh i suck! - i still cant get it right.here is the error message i get, and here are the scripts that are on my server.. whats wrong with them??! I've tried and tried.. for hours, but i couldn't get it right ![]() Code:
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 : Last edited by PrinceArda; 09-02-2007 at 10:41 PM. |
|
|
|
|
|
#15 (permalink) |
|
Forum Expert
|
That does not make any sense.
AccountHandler.cs and CharacterCreation.cs I only made one or two small changes in each. Get your original files for those 2 scripts, and then look in mine for sections marked by these #region tags: PHP Code:
|
|
|
|
|
|
#16 (permalink) |
|
Newbie
Join Date: Aug 2006
Posts: 73
|
Phew!
Thank's a lot Lokai! Its finally working. =) Sorry i didnt understand only region codes were required to run that script.. i thought other changes were required too. but now i understand what a region code is and i understand how to add this script to a server. =) i learn a bit scripting with every script i install. ![]() again, Thanks a lot. its a wonderful script =) |
|
|
|
|
|
#17 (permalink) | |
|
Forum Expert
Join Date: Jun 2007
Posts: 367
|
Quote:
|
|
|
|
|
|
|
#21 (permalink) | |
|
Forum Expert
Join Date: Jun 2007
Posts: 367
|
Quote:
BEFORE YOU READ THIS PLEASE READ THE END OF POST These errors have a pretty simple fix... The cause of the errors is that you just unzipped the scripts Lokai provided & didnt delete the ones you have already...Some of them you need to replace.... Do a search for AccountHandler.cs Your going to find two of them. Delete the one that ISNT in Custom/ShardControl/AccountHandler Do A Search For PetResurrectGump.cs Your going to find two of them. Same As With AcountHandler.cs Delete the one that ISNT in your custom folders which would mean Go to RunUO/Scripts/Gumps Folder Delete Both PerResurrectGump.cs & ResurrectGump.cs Then Go To RunUO/Scripts/Misc Folder Delete AutoSave.cs Delete CharacterCreation.cs Delete ProfanityProtection.cs Delete SkillCheck.cs Then Go To RunUO/Scripts/Misc/Test Center Folder Delete TestCenter.cs Then Go To RunUO/Scripts/Spells/Base Folder Delete Spell.cs YOU CAN DELETE THESE FILES & RESTART YOUR SERVER AND IT SHOULD COMPILE BUT DO NOT DELETE THESE FILES IF YOU EDITED ANY OF THEM FOR A DIFFRENT SCRIPT. IF YOU HAVE DONE SO YOU WILL NEED TO MERGE AND FIND THE DIFFRENCE BETWEEN BOTH SCRIPTS AND ADD WHAT YOU DONT FIND IN YOUR ORIGINAL SCRIPTS THAT ARE IN THE SCRIPTS LOKAI PROVIDED ALSO REMEMBER TO MAKE A BACKUP OF YOUR WHOLE RUNUO FOLDER BEFORE TRYING THIS!!!!
__________________
|
|
|
|
|
|
|
#24 (permalink) |
|
Forum Expert
|
I just was made aware of this little factoid, for those that may be interested.
Someone wanted to use this system, but did not want to ruin their custom AutoSave.cs file, since they had worked so hard on it, had a cool gump, and all that jazz. Anyway, they did not want to try to merge it, either. I advised them that THIS SYSTEM WORKS WITHOUT IT. That's right, you can feel free to use your own AutoSave.cs file, and the rest of this system will work JUST FINE! (Of course, the AutoSave features in the system will not work, but the rest will be fine.) Just thought you all might like to know. |
|
|
|
|
|
#25 (permalink) |
|
Forum Novice
|
I am new to RunUO, and I am still learning how to do things, I have installed the ML pack you put together Lokai and it works fine, however when I extracted the files from your other 2 zips ( AdvancedPlayer, ShardControl) I get a lot of errors when re-starting the server.
Is there a way for you to test them and see what you see from it, I didn't get a screenshot of the errors sorry, but they point to alot of the spells scripts. If you need to see the errors then I can re-incorporate the files again and run the server and show you a screenshot then. Thanks You for all the work you do for Runuo. Neuton |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|