1.) In a related follow up; how can I disable the young player system on new accounts? And how can you change which spots are selectable on the map or which facets are selectable?
Well, the easiest way to remove Young statis is modify it on the playermobile in the CharacterCreation.
In the module EventSink_CharacterCreated
Code:
if ( newChar is PlayerMobile )
{
PlayerMobile pm = (PlayerMobile) newChar;
pm.Profession = args.Profession;
if ( pm.AccessLevel == AccessLevel.Player && ((Account)pm.Account).Young )
young = pm.Young = true;
}
Change that last line to "young = pm.Young = false;". That should do it.
As far as that second part goes, this might be built into the client. I'll have to peruse the client files again to hunt that down.
2.) Can you give a few more details on this? I see the guarded moongate regions but in a region say: Malas: Umbra ... What line or value enables/disables the guards? I am trying to disable guards in specific regions.
Regions.xml has all the regions plotted out. X and Y location with their counterparts width and height. X and Y are the top, left coordinates. Width is how many tiles to the right of the X location and Height is how many tiles down. Top most corner is 0,0 and so everything is incrementally higher.
Disabling guarded regions. There is a command you may use in game which will accomplish this. "Guardious disableous".. .no. ..er. ..Sorry...reading harry potter. [ToggleGuarded. From what I'm gathering from GuardedRegion.cs is you need to be in the guarded region to toggle this on or off.
You may also hard code this (which I would imagine would be preferred because then these regions would be permanently unguarded).
TownRegion is a subclass of GuardedRegion so all the rules of GuardedRegion pass on to TownRegion. So, my suggestion would be to go into your Regions folder, make a copy of TownRegion.cs, rename it to UnguardedTownRegion.cs (or some such thing), change the Class to BaseRegion (and you should be able to copy a few of the modules from GuardedRegion.cs into the UnguardedTownRegion, like AllowHousing and such). Then all you have to do is go through the Regions.xml and change the towns you don't want guarded to UnguardedTownRegion, and you should be good to go.