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 06-10-2007, 05:55 PM   #1 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 41
Posts: 1,427
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default [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:

[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.
Attached Files
File Type: zip ShardControl w-Advanced Player Gate.zip (45.4 KB, 606 views)

Last edited by Lokai; 06-12-2007 at 02:59 PM.
Lokai is offline   Reply With Quote
Old 06-10-2007, 08:27 PM   #2 (permalink)
Forum Newbie
 
Join Date: Nov 2006
Age: 21
Posts: 7
Default

Excellent! This shall be of great benifit to implementing my races. Thanks!
Thaine is offline   Reply With Quote
Old 06-10-2007, 11:50 PM   #3 (permalink)
Forum Novice
 
Join Date: Jun 2004
Location: Mesa, AZ
Age: 41
Posts: 186
Send a message via Yahoo to Soultaker
Thumbs up

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
__________________
Special Thanks to Liacs for Scripts & Modero for Sig
Soultaker is offline   Reply With Quote
Old 06-11-2007, 12:12 PM   #4 (permalink)
Forum Novice
 
vash88's Avatar
 
Join Date: Jan 2006
Posts: 104
Send a message via AIM to vash88
Default

Excellent! i love this script makes my life a tad much easer thank you
__________________
vash88 is offline   Reply With Quote
Old 06-11-2007, 01:08 PM   #5 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 41
Posts: 1,427
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 vash88's Signature
My Shard
Hall of Apollo
Host/IP: 67.173.194.120
Port: 2593
Try it
I'm trying. Are you down?
Lokai is offline   Reply With Quote
Old 06-11-2007, 01:21 PM   #6 (permalink)
Forum Novice
 
vash88's Avatar
 
Join Date: Jan 2006
Posts: 104
Send a message via AIM to vash88
Default

yes im working on the scripts if you would like what is your aim or hotmail
__________________
vash88 is offline   Reply With Quote
Old 06-12-2007, 12:59 PM   #7 (permalink)
Newbie
 
PrinceArda's Avatar
 
Join Date: Aug 2006
Posts: 73
Default

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.
is it because of the time system script im using?
PrinceArda is offline   Reply With Quote
Old 06-12-2007, 01:56 PM   #8 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 41
Posts: 1,427
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
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.
is it because of the time system script im using?
per the instructions.txt, if you are not using SVN, you need to comment out the DisplayWeight function.
Lokai is offline   Reply With Quote
Old 06-12-2007, 02:18 PM   #9 (permalink)
Newbie
 
PrinceArda's Avatar
 
Join Date: Aug 2006
Posts: 73
Default error

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.cs
CS0117: Line 638: 'Server.Race' does not contain a definition for 'RequiredExpansion'
PrinceArda is offline   Reply With Quote
Old 06-12-2007, 02:57 PM   #10 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 41
Posts: 1,427
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
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.cs
CS0117: Line 638: 'Server.Race' does not contain a definition for 'RequiredExpansion'
I only made small changes to those 2 scripts. I recommend that you just open the files to see which sections I added, and incorporate them into your RC1 scripts. I believe I was using SVN 181 with these scripts, which would account for your errors.
Lokai is offline   Reply With Quote
Old 06-21-2007, 07:45 AM   #11 (permalink)
Newbie
 
PrinceArda's Avatar
 
Join Date: Aug 2006
Posts: 73
Default

are there any ways to make this script work on Runuo 2 Rc1? I am terrible with C# language so i don't understand what to change. =(

Can you please give me a few hints to make this script runable at Runuo 2 Rc1?
__________________

Prince
PrinceArda is offline   Reply With Quote
Old 06-21-2007, 03:37 PM   #12 (permalink)
Forum Newbie
 
Join Date: Dec 2005
Posts: 47
Send a message via ICQ to Ahrkan Send a message via MSN to Ahrkan
Default

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.
Ahrkan is offline   Reply With Quote
Old 06-21-2007, 09:53 PM   #13 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 41
Posts: 1,427
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
are there any ways to make this script work on Runuo 2 Rc1? I am terrible with C# language so i don't understand what to change. =(

Can you please give me a few hints to make this script runable at Runuo 2 Rc1?
AutoSave.cs: probably want to just replace your file with mine.
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.
Lokai is offline   Reply With Quote
Old 06-22-2007, 06:19 AM   #14 (permalink)
Newbie
 
PrinceArda's Avatar
 
Join Date: Aug 2006
Posts: 73
Default help!

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 :
__________________

Prince

Last edited by PrinceArda; 09-02-2007 at 10:41 PM.
PrinceArda is offline   Reply With Quote
Old 06-22-2007, 07:21 AM   #15 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 41
Posts: 1,427
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

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:
#region Changed for ShardControl
//This is the code I added.
#endregion 
Copy those sections from my scripts, and paste them to your fresh copies. DO NOT USE MY VERSION OF THESE 2 FILES AS THEY ARE NOT COMPATIBLE WITH YOURS.
Lokai is offline   Reply With Quote
Old 06-22-2007, 09:00 AM   #16 (permalink)
Newbie
 
PrinceArda's Avatar
 
Join Date: Aug 2006
Posts: 73
Default

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 =)
__________________

Prince
PrinceArda is offline   Reply With Quote
Old 06-22-2007, 02:26 PM   #17 (permalink)
Forum Expert
 
Join Date: Jun 2007
Posts: 367
Default

Quote:
Originally Posted by PrinceArda View Post
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 =)
How in the world did you get it to work?! I've been trying this for hours now and tried yesterday and all i kept on getting was errors....Any chance your making one for RC1 maybe please?
Flats is offline   Reply With Quote
Old 06-22-2007, 02:37 PM   #18 (permalink)
Newbie
 
PrinceArda's Avatar
 
Join Date: Aug 2006
Posts: 73
Default [RUNUO 2 RC1] Lokai's Shard Control w/ Advanced Player Gate

Here you go mate:

Description:
This works with RUNUO 2 RC1.


Install:
Extract it to your Scripts folder, and replace files.
Attached Files
File Type: zip RC1 ShardControl w-Advanced Player Gate.zip (45.3 KB, 72 views)
__________________

Prince
PrinceArda is offline   Reply With Quote
Old 06-22-2007, 02:56 PM   #19 (permalink)
Forum Expert
 
Join Date: Jun 2007
Posts: 367
Default

Quote:
Originally Posted by PrinceArda View Post
Here you go mate:

Description:
This works with RUNUO 2 RC1.


Install:
Extract it to your Scripts folder, and replace files.

Thank You!!!!!!!!!!!!!!!!!!!!!!!!!!!
+++Karma!!!!
Flats is offline   Reply With Quote
Old 07-17-2007, 09:09 AM   #20 (permalink)
Forum Newbie
 
Join Date: Nov 2006
Age: 21
Posts: 2
Default Error

Hello!

I get errors when I run this script, could anyone help me? *Points to attachment*

Thanks in advance!
//Zolomon
Attached Images
File Type: jpg error.jpg (230.6 KB, 63 views)
Zolomon is offline   Reply With Quote
Old 07-17-2007, 09:28 AM   #21 (permalink)
Forum Expert
 
Join Date: Jun 2007
Posts: 367
Default

Quote:
Originally Posted by Zolomon View Post
Hello!

I get errors when I run this script, could anyone help me? *Points to attachment*

Thanks in advance!
//Zolomon
Sure we can!
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!!!!
__________________

Shard Name: MurDeR Go RounD
Shard IP: Murdergoround.servegame.com
The Ultimate PvP Deed
Flats is offline   Reply With Quote
Old 07-17-2007, 09:48 AM   #22 (permalink)
Forum Newbie
 
Join Date: Nov 2006
Age: 21
Posts: 2
Default Error

Ah, thanks for the quick reply.

It seems to work, thank you! Most kind


Regards,
//Zolomon
Zolomon is offline   Reply With Quote
Old 07-17-2007, 10:14 AM   #23 (permalink)
Forum Expert
 
Join Date: Jun 2007
Posts: 367
Default

Quote:
Originally Posted by Zolomon View Post
Ah, thanks for the quick reply.

It seems to work, thank you! Most kind


Regards,
//Zolomon
No Problem!
I don't have anything to do now so why not help people?! Hehe
__________________

Shard Name: MurDeR Go RounD
Shard IP: Murdergoround.servegame.com
The Ultimate PvP Deed
Flats is offline   Reply With Quote
Old 07-29-2007, 02:27 PM   #24 (permalink)
Forum Expert
 
Lokai's Avatar
 
Join Date: Aug 2003
Location: Bergen, NY (Rochester)
Age: 41
Posts: 1,427
Send a message via ICQ to Lokai Send a message via MSN to Lokai Send a message via Yahoo to Lokai
Default

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.
Lokai is offline   Reply With Quote
Old 08-25-2007, 04:04 PM   #25 (permalink)
Forum Novice
 
neuton's Avatar
 
Join Date: Oct 2006
Location: Westchester County, NY
Posts: 113
Send a message via ICQ to neuton Send a message via MSN to neuton Send a message via Yahoo to neuton
Default

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