|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
Join Date: Jan 2004
Location: England
Age: 20
Posts: 442
|
Custom Regions in a Box V4.0 Description: This is a rewrite/update for RunUO 2.0 of Asayre8's extremely popular Custom Regions in a Box script for RunUO 1.0. This is also a compilation of changes made by Rift in his re-release of Custom Regions in a Box. Along with updating this to 2.0 I have included Rift's mods and quite a few changes of my own to improve upon what Asayre started. Please visit the following threads to familiarize yourself with the background of Custom Regions in a Box and a more in-depth description: Asayre's Original CustomRegions in a Box V3.6 Rift's Mod [V3.6a] Installation: Download the Custom Regions in a Box v4.0.zip below. Unzip the Custom Regions folder from the zip into your Scripts folder (preferrably a Custom folder or the Engines folder) Restart your server and you are ready to go. Usage: [add RegionControl in game to add a RegionControl. Visit the links in the Description section above to see the previous features. Read my Changelog below for V4.0 to discover the new features and changes from previous versions. The Changelog is also included in the Zip file. V4.0 Changelog: - Renaming of RegionStone.cs - RegionStone.cs renamed to RegionControl.cs to properly reflect the name of the Class. (functionality is still the same) - New RegionControl Constructors - RegionControl(Rectangle3D rect) to create a RegionControl with an optional area specified by a Rectangle3D. - RegionControl(Rectangle2D[] rects) to create a RegionControl with an optional area specified by a Rectangle2D array. - RegionControl(Rectangle3D[] rects) to create a RegionControl with an optional area specified by a Rectangle3D array. - New "Active" Property for RegionControl - Set RegionControl.Active to TRUE (Default) then the Region is active. - Set RegionControl.Active to FALSE then the Region is inactive. - Changes to Rift's Custom Region Mods - NoPlayerCorpses has been split up into DeletePlayerCorpse and DeleteNPCCorpse, to allow more customization. - NoItemDrop has been split up into NoPlayerItemDrop and NoNPCItemDrop, to allow more customization. - New RegionControl Flags - EmptyNPCCorpse, if set to TRUE all the items from an NPC's corpse, on death, will be placed outside of the corpse on to the ground. - EmptyPlayerCorpse, if set to TRUE all the items from a Player's corpse, on death, will be placed outside of the corpse on to the ground. - DeleteNPCCorpse, if set to TRUE any NPC's corpse, on death, will be deleted. - DeletePlayerCorpse, if set to TRUE any Player's corpse, on death, will be deleted. - ResNPCOnDeath, if set to TRUE any NPC that dies will have a new instance created in the spot that it died. - ResPlayerOnDeath, if set to TRUE any Player that dies will be resurrected in the spot that they died. - MoveNPCOnDeath, if set to TRUE any NPC that dies will be moved to a spot you designate. - Set MoveNPCToLoc to the Point3D that you wish to move the NPC to. - Set MoveNPCToMap to the Map that you wish to move the NPC to. - MovePlayerOnDeath, if set to TRUE any Player that dies will be moved to a spot you designate. - Set MovePlayerToLoc to the Point3D that you wish to move the Player to. - Set MovePlayerToMap to the Map that you wish to move the Player to. - NoPlayerItemDrop, if set to TRUE any Player that dies will not drop their backpack Items to their corpse. - NoNPCItemDrop, if set to TRUE any NPC that dies will not drop their backpack Items to their corpse. - Changes to [RegionBounds command - Targeting a Mobile shows their Region outlined in blue still. - Targeting a RegionControl that has its Active property set to TRUE outlines the region in green. - Targeting a RegionControl that has its Active property set to FALSE outlines the region in red. - Changes to RegionControl Flags - CannotLootOwnCorpse property changed to CanLootOwnCorpse - CannotEnter property changed to CanEnter - Fixed some spelling mistakes - All instances of "AllowBenifit" changed to "AllowBenefit". - Prevention of identical RegionName - On Deserialize, if a region control has the same RegionName as another the region it will have a 1 or 2 etc. added to its name to distinguish it. For eg. If a region is called "Custom Region" and another region is already called "Custom Region" it will get called "Custom Region 1", if "Custom Region 1" already exists too then it will be called "Custom Region 2" etc. This is because of the new way that Regions are registered on to maps in RunUO 2.0. - On creation, a new Region Control will be called "Custom Region" and as before each new "Custom Region" will have a number added after its name. - On setting of RegionName, if a Region Control already exists with the RegionName that the user tries to specify by using [props etc. the RegionName will not be changed and a Warning will be displayed in the Console. Approval Status: - Have PMed Asayre before starting work to ask permission, I receieved no reply . However after reading posts from him saying about his lack of time due to his time being commited to the main RunUO 2.0 release I decided I wanted to do Custom Regions in a Box justice and release it for all the fans for 2.0. - If Asayre himself or a Mod has a problem with this post then please either PM me and I will remove it or remove it yourself but please send me a PM telling me you have done so and your reasons. Thanks Comments/Suggestions/Bugs: Please provide me with any feedback you wish, either in this thread or as a PM. Please also provide me with any Bugs you may find and try to include as much detail in your posts as you can so I can fix them. I have started a list below of possible features that I would personally like to add to this, please reply in this thread with your comments on these features and also with your own ideas that I will also consider. Thanks everyone. Possible Future Updates: - Export/Import command An Export command for RunUO 1.0 to export details about all your pre-existing Region Controls. An Import command for RunUO 2.0 to import your exported 1.0 Region Controls into your RunUO 2.0 Server. - Region Control Profiles - Profiles for each Region Control so that it can be reused for different things according to different profile sets. An example for this is to use a Region Control for an Event Arena that can hold different Events, different profiles for the Region Control would relate to different Events, so the arena can easily be switched from one Event to another. - Overhaul of Gumps Redesigning the Gumps, this would especially be needed if the Region Control Profiles were to be implemented. This Thread is now closed. For the current release please go to: http://www.runuo.com/forums/showthread.php?t=70808
__________________
David's Sig is my Sig. He always says it best.
Last edited by tobyjug; 07-01-2006 at 07:06 AM. |
|
|
|
|
#5 (permalink) |
|
Forum Novice
Join Date: Mar 2005
Posts: 126
|
i am getting this error
Errors: + Custom/Event Region/CustomRegion.cs: CS0115: Line 82: 'Server.Regions.CustomRegion.AllowBenificial(Serve r.Mobile, Server.Mobile)': no suitable method found to override any idea's? |
|
|
|
|
#6 (permalink) |
|
Forum Expert
Join Date: Jan 2004
Location: England
Age: 20
Posts: 442
|
Make sure that you are using my version with RunUO 2.0 and NOT RunUO 1.0, AllowBeneficial was one thing that was changed for 2.0 because it was previously spelt wrong.
Make sure that you downloaded my Zip from the bottom of my first post and have extracted the files from there into your Scripts folder. Make sure to delete the old versions of Custom Regions in a Box if you have already tried to place them into your 2.0 Scripts folder.
__________________
David's Sig is my Sig. He always says it best.
|
|
|
|
|
#9 (permalink) |
|
Forum Expert
Join Date: Apr 2003
Location: Georgia
Age: 31
Posts: 392
|
Would seem music function *broke* Set up a custom region as I have before but, cant get the custom music to play tried many songs tried recall, go, ect and return wont play the selected track as previous 1.0 version did.
|
|
|
|
|
#11 (permalink) | |
|
Forum Expert
Join Date: Jan 2004
Location: England
Age: 20
Posts: 442
|
Quote:
I'm afraid that I won't be able to take a look at it till after Wednesday next week either because I'm on holiday for a bit ![]()
__________________
David's Sig is my Sig. He always says it best.
|
|
|
|
|
|
#12 (permalink) |
|
geesh go figure :P ya post this and I just happen to finish the conversion myself only difference mine was still compatible with the 1.0 saves
think I'll take look at yours interested in the new props and to see if my method of keeping it old saves would be feasible here ![]() Last edited by Rift; 06-22-2006 at 01:21 PM. |
|
|
|
|
|
#13 (permalink) | |
|
Forum Expert
Join Date: Jan 2004
Location: England
Age: 20
Posts: 442
|
Quote:
I have kept the old deserialization, so in theory I see no problems with my version with 1.0 Saves. However in my ideas section at the bottom of my post I have been thinking about writing an export/import command if its not compatible. But I've allowed for the old deser and it should update the old deser to my new system. It hasn't been tested though and from what it looks like most old 1.0 saves seems to be quite obsolete from what I can see... When I tried to put the distro 1.0 save into the distro 2.0 it had a ton of deser errors where it wanted to wipe loads of stuff...
__________________
David's Sig is my Sig. He always says it best.
|
|
|
|
|
|
#14 (permalink) |
|
no problem lol maybe I should have waited a few days would have saved me the trouble of redoing it myself lol I originally got mindblocked on it so started on Arya's BattleChess figured that out since ran into same prob I did in box so realized damn thats what I was missin lol.....
as for wipes hmmm thats funny I successfully converted a copy of very customized production shard.........nose deep in over 100 files of changes lol and no wipe Lucky I guess this and BattleChess I saved for last lol. |
|
|
|
|
|
#15 (permalink) |
|
Forum Expert
|
question: can you deactivate already prefab regions with this? I have to admit I haven't had a good look at it, but I need to get all regions deleted that come with RUNUO.
Thanks for your help! Lia
__________________
;)My C# Bookshelf (carpented by Soultaker);) BTW: Please ask questions in the adequat forum and not on a private message! Otherwise nobody can learn from it!
|
|
|
|
|
#16 (permalink) | |
|
Forum Expert
Join Date: Apr 2003
Location: Georgia
Age: 31
Posts: 392
|
Quote:
![]() |
|
|
|
|
|
#18 (permalink) | |
|
Forum Expert
Join Date: Jan 2004
Location: England
Age: 20
Posts: 442
|
Quote:
__________________
David's Sig is my Sig. He always says it best.
|
|
|
|
|
|
#19 (permalink) |
|
Forum Expert
Join Date: Jan 2004
Location: England
Age: 20
Posts: 442
|
Update (30/06/06) - Fixed a bug with Music not playing. Please redownload the Zip file at the bottom of the 1st post. CustomRegion.cs need only be replaced, however replacing the other files will not do any harm.
__________________
David's Sig is my Sig. He always says it best.
|
|
|
|
|
#21 (permalink) |
|
Forum Expert
Join Date: Jan 2004
Location: England
Age: 20
Posts: 442
|
This Thread is now closed.
For the current release please go to: [RunUO 2.0 RC1] Custom Regions in a Box V4.0
__________________
David's Sig is my Sig. He always says it best.
Last edited by tobyjug; 07-01-2006 at 07:05 AM. |
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|