Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 06-22-2003, 10:15 AM   #1 (permalink)
Newbie
 
Join Date: Nov 2002
Location: Latvia \ Riga \ Zepniekkalns
Age: 19
Posts: 96
Default Regions...

People please help ! How to add new reegion ? Or edit/delete an old one ?How to make the new region to be guarded ?
Sony is offline   Reply With Quote
Old 06-22-2003, 10:21 AM   #2 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

[code:1]using System;
using System.Collections;
using Server;
using Server.Mobiles;
using Server.Spells;

namespace Server.Regions
{
public class TrammelTown : GuardedRegion
{
public static new void Initialize()
{
Region.AddRegion( new TrammelTown( "Cove" ) );
Region.AddRegion( new TrammelTown( "Britain" ) );
Region.AddRegion( new TrammelTown( "Jhelom" ) );
Region.AddRegion( new TrammelTown( "Minoc" ) );
Region.AddRegion( new TrammelTown( "Haven" ) );
Region.AddRegion( new TrammelTown( "Trinsic" ) );
Region.AddRegion( new TrammelTown( "Vesper" ) );
Region.AddRegion( new TrammelTown( "Yew" ) );
Region.AddRegion( new TrammelTown( "Wind" ) );
Region.AddRegion( new TrammelTown( "Serpent's Hold" ) );
Region.AddRegion( new TrammelTown( "Skara Brae" ) );
Region.AddRegion( new TrammelTown( "Nujel'm" ) );
Region.AddRegion( new TrammelTown( "Moonglow" ) );
Region.AddRegion( new TrammelTown( "Magincia" ) );
Region.AddRegion( new TrammelTown( "Delucia" ) );
Region.AddRegion( new TrammelTown( "Papua" ) );

Region.AddRegion( GuardedRegion.Disable( new TrammelTown( "Buccaneer's Den" ) ) );
}

public TrammelTown( string name ) : this( name, typeof( WarriorGuard ) )
{
}

public TrammelTown( string name, Type guardType ) : base( "the town of", name, Map.Trammel, guardType )
{
}
}
}[/code:1]

Just an example:

[code:1]Region.AddRegion( new TrammelTown( "Cove" ) );[/code:1]

[code:1]<region priority="50" name="Cove">
<rect x1="2203" y1="1166" x2="2256" y2="1245" />
<rect x1="2284" y1="1219" x2="2292" y2="1235" />
<rect x1="2256" y1="1181" x2="2284" y2="1245" />
<rect x1="2256" y1="1166" x2="2260" y2="1181" />
<rect x1="2203" y1="1108" x2="2243" y2="1166" />
<go location="(2275,1210,0)" />
<music name="Cove" />
</region>[/code:1]

Please remember to do a search for your questions :-) its very helpful.
Phantom 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 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5