#W# Region work. Spawn tweaks. Greeted TownRegion.

This commit is contained in:
WarrentyExpired 2026-08-13 13:50:42 -04:00
parent 65b4b11616
commit 428272196b
3 changed files with 50 additions and 5 deletions

View file

@ -6,9 +6,12 @@
<rect x="794" y="563" width="112" height="131" />
<rect x="904" y="563" width="14" height="23" />
<rect x="911" y="527" width="38" height="57" />
<region type="TownRegion" priority="60" name="the Castle Courtyard">
<region type="TownRegion" priority="60" name="the Keep Courtyard">
<rect x="854" y="469" width="34" height="17" />
<rect x="814" y="486" width="74" height="77" />
<region type="BusinessRegion" priority="70" name="the Valor Hall Keep">
<rect x="843" y="514" width="29" height="24" />
</region>
</region>
<region type="BusinessRegion" priority="70" name="Bastion Tailor Shop" >
<rect x="890" y="671" width="6" height="10" />
@ -113,6 +116,32 @@
<rect x="709" y="732" width="24" height="15" />
</region>
</region>
<region type="TownRegion" priority="50" name="Stonehollow" >
<rect x="526" y="271" width="128" height="112" />
</region>
<region type="TownRegion" priority="50" name="Fairwinds" >
<rect x="281" y="1286" width="149" height="101" />
</region>
<region type="TownRegion" priority="50" name="Winterhold" >
<rect x="1723" y="213" width="84" height="38" />
</region>
<region type="TownRegion" priority="50" name="Port Rim" >
<rect x="1533" y="82" width="50" height="71" />
</region>
<region type="TownRegion" priority="50" name="Bleakwatch" >
<rect x="1952" y="86" width="83" height="71" />
</region>
<region type="TownRegion" priority="50" name="Cresthaven" >
<rect x="1150" y="223" width="220" height="238" />
</region>
<region type="TownRegion" priority="50" name="Deepwatch" >
<rect x="1631" y="1647" width="67" height="68" />
<rect x="1611" y="1672" width="21" height="29" />
</region>
<region type="TownRegion" priority="50" name="Port City" >
<rect x="1359" y="727" width="112" height="136" />
<rect x="1465" y="745" width="28" height="64" />
</region>
<region type="CaveRegion" priority="50" name="Cave System">
<rect x="2368" y="528" width="856" height="228" />
</region>

View file

@ -12,9 +12,9 @@
*|bird|dog|cat|rat|||772|652|0|1|5|10|-1|25|1|15|2|2|2|0|0
*|sheep||||||812|764|0|1|5|10|5|3|1|4|0|0|0|0|0
*|chicken:sheep||||||849|853|0|1|5|10|4|2|1|4|0|0|0|0|0
*|bird|cat|dog|rat|||324|1332|0|1|5|10|-1|30|1|20|3|2|2|0|0
*|bird|cat|dog|rat|||352|1332|0|1|5|10|-1|30|1|20|3|2|2|0|0
*|bird|cat|dog|rat|||382|1332|0|1|5|10|-1|30|1|20|3|2|2|0|0
*|bird|cat|dog|rat|||324|1332|0|1|5|10|-1|30|1|10|3|2|2|0|0
*|bird|cat|dog|rat|||352|1332|0|1|5|10|-1|30|1|10|3|2|2|0|0
*|bird|cat|dog|rat|||382|1332|0|1|5|10|-1|30|1|10|3|2|2|0|0
*|cow|bull|horse|chicken|llama|sheep|363|1347|0|1|5|10|-1|5|1|1|1|1|3|1|0
*|cow|bull|horse|chicken|llama|sheep|358|1354|0|1|5|10|-1|5|1|1|1|1|3|1|0
*|cow|bull|horse|chicken|llama|sheep|372|1344|0|1|5|10|-1|5|1|1|1|1|3|1|0

View file

@ -9,5 +9,21 @@ namespace Server.Regions
public TownRegion( XmlElement xml, Map map, Region parent ) : base( xml, map, parent )
{
}
public override void OnEnter( Mobile m )
{
base.OnEnter( m );
if (m != null && m.Player )
{
m.SendMessage( "Welcom to <BASEFONT COLOR='#3BB143'>{0}</BASEFONT>", this.Name );
}
}
public override void OnExit( Mobile m )
{
if (m != null && m.Player )
{
m.SendMessage( "You have left <BASEFONT COLOR='#3BB143'>{0}</BASEFONT>", this.Name );
}
}
}
}
}