#W# I think the backend for Inns and Static houses are done!
This commit is contained in:
parent
8f44a3fe50
commit
83be03adea
6 changed files with 41 additions and 35 deletions
|
|
@ -158,73 +158,76 @@
|
||||||
<rect x="2368" y="756" width="337" height="228" />
|
<rect x="2368" y="756" width="337" height="228" />
|
||||||
<rect x="2368" y="985" width="232" height="159" />
|
<rect x="2368" y="985" width="232" height="159" />
|
||||||
</region>
|
</region>
|
||||||
|
<region type="BaseRegion" prority="50" name="Bastion Inn Rooms">
|
||||||
|
<rect x="7130" y="3990" width="37" height="106" />
|
||||||
|
</region>
|
||||||
<region type="DungeonTrapRegion" priority="50" name="the Dungeon Passage">
|
<region type="DungeonTrapRegion" priority="50" name="the Dungeon Passage">
|
||||||
<rect x="2366" y="408" width="112" height="78" />
|
<rect x="2366" y="408" width="112" height="78" />
|
||||||
</region>
|
</region>
|
||||||
<region type="DungeonRegion" priority="50" name="the Dungeon Whipering Depths">
|
<region type="DungeonTrapRegion" priority="50" name="the Dungeon Whipering Depths">
|
||||||
<rect x="2627" y="62" width="321" height="469" />
|
<rect x="2627" y="62" width="321" height="469" />
|
||||||
</region>
|
</region>
|
||||||
<region type="DungeonRegion" priority="50" name="the Dungeon Ashen Maw">
|
<region type="DungeonTrapRegion" priority="50" name="the Dungeon Ashen Maw">
|
||||||
<rect x="2969" y="52" width="247" height="476" />
|
<rect x="2969" y="52" width="247" height="476" />
|
||||||
</region>
|
</region>
|
||||||
<region type="DungeonRegion" priority="50" name="the Hallow Keep">
|
<region type="DungeonTrapRegion" priority="50" name="the Hallow Keep">
|
||||||
<rect x="883" y="101" width="38" height="34" />
|
<rect x="883" y="101" width="38" height="34" />
|
||||||
</region>
|
</region>
|
||||||
<region type="DungeonRegion" priority="50" name="the Dungeon Hallow Keep">
|
<region type="DungeonTrapRegion" priority="50" name="the Dungeon Hallow Keep">
|
||||||
<rect x="2363" y="52" width="233" height="328" />
|
<rect x="2363" y="52" width="233" height="328" />
|
||||||
</region>
|
</region>
|
||||||
<region type="DungeonRegion" priority="50" name="the Dungeon Dune Oasis">
|
<region type="DungeonTrapRegion" priority="50" name="the Dungeon Dune Oasis">
|
||||||
<rect x="3220" y="51" width="266" height="540" />
|
<rect x="3220" y="51" width="266" height="540" />
|
||||||
</region>
|
</region>
|
||||||
<region type="DungeonRegion" priority="50" name="the Dungeon Shame">
|
<region type="DungeonTrapRegion" priority="50" name="the Dungeon Shame">
|
||||||
<rect x="3493" y="46" width="264" height="390" />
|
<rect x="3493" y="46" width="264" height="390" />
|
||||||
</region>
|
</region>
|
||||||
<region type="DungeonRegion" priority="50" name="the Dungeon Deciet">
|
<region type="DungeonTrapRegion" priority="50" name="the Dungeon Deciet">
|
||||||
<rect x="3760" y="50" width="231" height="245" />
|
<rect x="3760" y="50" width="231" height="245" />
|
||||||
</region>
|
</region>
|
||||||
<region type="DungeonRegion" priority="50" name="the Dungeon Covetous">
|
<region type="DungeonTrapRegion" priority="50" name="the Dungeon Covetous">
|
||||||
<rect x="4008" y="49" width="262" height="262" />
|
<rect x="4008" y="49" width="262" height="262" />
|
||||||
</region>
|
</region>
|
||||||
<region type="DungeonRegion" priority="50" name="the Dungeon Hythloth">
|
<region type="DungeonTrapRegion" priority="50" name="the Dungeon Hythloth">
|
||||||
<rect x="4281" y="49" width="245" height="237" />
|
<rect x="4281" y="49" width="245" height="237" />
|
||||||
</region>
|
</region>
|
||||||
<region type="DungeonRegion" priority="50" name="the Dungeon Despise">
|
<region type="DungeonTrapRegion" priority="50" name="the Dungeon Despise">
|
||||||
<rect x="4537" y="50" width="470" height="269" />
|
<rect x="4537" y="50" width="470" height="269" />
|
||||||
</region>
|
</region>
|
||||||
<region type="DungeonRegion" priority="50" name="the Dungeon Destard">
|
<region type="DungeonTrapRegion" priority="50" name="the Dungeon Destard">
|
||||||
<rect x="5023" y="50" width="263" height="252" />
|
<rect x="5023" y="50" width="263" height="252" />
|
||||||
</region>
|
</region>
|
||||||
<region type="DungeonRegion" priority="55" name="the Ice Tower">
|
<region type="DungeonTrapRegion" priority="55" name="the Ice Tower">
|
||||||
<rect x="2912" y="209" width="86" height="79" />
|
<rect x="2912" y="209" width="86" height="79" />
|
||||||
</region>
|
</region>
|
||||||
<region type="DungeonRegion" prority="55" name="the Daemon Temple">
|
<region type="DungeonTrapRegion" prority="55" name="the Daemon Temple">
|
||||||
<rect x="1970" y="1541" width="15" height="36" />
|
<rect x="1970" y="1541" width="15" height="36" />
|
||||||
<rect x="1985" y="1541" width="37" height="36" />
|
<rect x="1985" y="1541" width="37" height="36" />
|
||||||
<rect x="2022" y="1540" width="22" height="32" />
|
<rect x="2022" y="1540" width="22" height="32" />
|
||||||
<rect x="1984" y="1573" width="40" height="45" />
|
<rect x="1984" y="1573" width="40" height="45" />
|
||||||
</region>
|
</region>
|
||||||
<region type="DungeonRegion" priority="55" name="the Dreadfall Keep">
|
<region type="DungeonTrapRegion" priority="55" name="the Dreadfall Keep">
|
||||||
<rect x="1849" y="656" width="60" height="60" />
|
<rect x="1849" y="656" width="60" height="60" />
|
||||||
</region>
|
</region>
|
||||||
<region type="DungeonRegion" priority="50" name="the Dungeon of Dreadfall Keep">
|
<region type="DungeonTrapRegion" priority="50" name="the Dungeon of Dreadfall Keep">
|
||||||
<rect x="3767" y="305" width="350" height="358" />
|
<rect x="3767" y="305" width="350" height="358" />
|
||||||
</region>
|
</region>
|
||||||
<region type="DungeonRegion" priority="50" name="the Dungeon Deepwatch Keep">
|
<region type="DungeonTrapRegion" priority="50" name="the Dungeon Deepwatch Keep">
|
||||||
<rect x="4687" y="338" width="383" height="198" />
|
<rect x="4687" y="338" width="383" height="198" />
|
||||||
<rect x="5075" y="335" width="84" height="73" />
|
<rect x="5075" y="335" width="84" height="73" />
|
||||||
</region>
|
</region>
|
||||||
<region type="DungeonRegion" priority="55" name="the Eclipse Sanctum">
|
<region type="DungeonTrapRegion" priority="55" name="the Eclipse Sanctum">
|
||||||
<rect x="229" y="1752" width="48" height="50" />
|
<rect x="229" y="1752" width="48" height="50" />
|
||||||
</region>
|
</region>
|
||||||
<region type="DungeonRegion" priority="50" name="the Dungeon of Eclipse Sanctum">
|
<region type="DungeonTrapRegion" priority="50" name="the Dungeon of Eclipse Sanctum">
|
||||||
<rect x="3486" y="456" width="281" height="286" />
|
<rect x="3486" y="456" width="281" height="286" />
|
||||||
</region>
|
</region>
|
||||||
<region type="DungeonRegion" priority="55" name="the Deathkneel Temple">
|
<region type="DungeonTrapRegion" priority="55" name="the Deathkneel Temple">
|
||||||
<rect x="224" y="652" width="41" height="23" />
|
<rect x="224" y="652" width="41" height="23" />
|
||||||
<rect x="228" y="635" width="37" height="17" />
|
<rect x="228" y="635" width="37" height="17" />
|
||||||
<rect x="242" y="627" width="22" height="9" />
|
<rect x="242" y="627" width="22" height="9" />
|
||||||
</region>
|
</region>
|
||||||
<region type="DungeonRegion" priority="50" name="the Dungeon Deathkneel">
|
<region type="DungeonTrapRegion" priority="50" name="the Dungeon Deathkneel">
|
||||||
<rect x="4511" y="352" width="167" height="158" />
|
<rect x="4511" y="352" width="167" height="158" />
|
||||||
</region>
|
</region>
|
||||||
</Facet>
|
</Facet>
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
# TownMap DoorX Y Z RoomMap RoomX Y Z Price ItemID StartX StartY Width Height
|
# TownMap DoorX Y Z RoomMap RoomX Y Z Price ItemID StartX StartY Width Height
|
||||||
#Vaelen 835 666 0 Vaelen 7157 4081 0 5000 1779 7152 4076 10 10
|
Vaelen 835 666 0 Vaelen 7156 4081 0 2000 1779 7152 4079 6 5
|
||||||
Vaelen 835 666 0 Vaelen 7157 4081 0 2000 1779 7152 4079 5 6
|
Vaelen 835 661 0 Vaelen 7156 4076 0 2000 1779 7152 4074 6 5
|
||||||
Vaelen 835 661 0 Vaelen 7154 4076 0 2000 1779 7152 4074 5 6
|
Vaelen 835 656 0 Vaelen 7156 4071 0 2000 1779 7152 4069 6 5
|
||||||
Vaelen 835 656 0 Vaelen 7154 4071 0 2000 1779 7152 4069 5 6
|
|
||||||
Vaelen 829 671 0 Vaelen 7146 4084 0 5000 1779 7143 4081 9 8
|
Vaelen 829 671 0 Vaelen 7146 4084 0 5000 1779 7143 4081 9 8
|
||||||
Vaelen 836 666 20 Vaelen 7155 4013 20 2000 1779 7153 4011 5 6
|
Vaelen 836 666 20 Vaelen 7158 4013 20 2000 1779 7153 4011 6 5
|
||||||
Vaelen 836 661 20 Vaelen 7155 4008 20 2000 1779 7153 4006 5 6
|
Vaelen 836 661 20 Vaelen 7158 4008 20 2000 1779 7153 4006 6 5
|
||||||
Vaelen 836 656 20 Vaelen 7155 4003 20 2000 1779 7153 4001 5 6
|
Vaelen 836 656 20 Vaelen 7158 4003 20 2000 1779 7153 4001 6 5
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Map SignX SignY SignZ MinZ MaxZ Price Locks Secs ItemID Area1X Area1Y Area1W Area1H Area2X Area2Y Area2W Area2H
|
# Map SignX SignY SignZ MinZ MaxZ Price Locks Secs ItemID Area1X Area1Y Area1W Area1H Area2X Area2Y Area2W Area2H
|
||||||
Vaelen 863 595 5 0 55 5000 500 500 0xC0C 861 583 11 13
|
Vaelen 863 595 0 0 55 5000 500 500 0xC0C 861 583 11 13
|
||||||
Vaelen 779 675 0 0 55 5000 500 500 0xC0B 769 672 11 10
|
Vaelen 779 675 0 0 55 5000 500 500 0xC0B 769 672 11 10
|
||||||
Vaelen 842 619 0 0 55 5000 500 500 0xC0B 834 614 8 16 826 620 9 10
|
Vaelen 843 619 10 0 55 5000 500 500 0xC0B 834 614 8 16 826 620 9 10
|
||||||
|
|
|
||||||
|
|
@ -79,13 +79,14 @@ namespace Server.Scripts.Commands
|
||||||
|
|
||||||
public static void DoDecorate( Mobile m )
|
public static void DoDecorate( Mobile m )
|
||||||
{
|
{
|
||||||
m.SendMessage( "Generating World Decorations, Signs & Teleporters, Inn Room Doors..." );
|
m.SendMessage( "Generating World Decorations, Signs & Teleporters, Inn Room Doors, and Static Houses..." );
|
||||||
Console.WriteLine( "Decorating the world...");
|
Console.WriteLine( "Decorating the world...");
|
||||||
|
|
||||||
CommandSystem.Handle(m, String.Format("{0}Decorate", CommandSystem.Prefix));
|
CommandSystem.Handle(m, String.Format("{0}Decorate", CommandSystem.Prefix));
|
||||||
CommandSystem.Handle(m, String.Format("{0}SignGen", CommandSystem.Prefix));
|
CommandSystem.Handle(m, String.Format("{0}SignGen", CommandSystem.Prefix));
|
||||||
CommandSystem.Handle(m, String.Format("{0}TelGen", CommandSystem.Prefix));
|
CommandSystem.Handle(m, String.Format("{0}TelGen", CommandSystem.Prefix));
|
||||||
CommandSystem.Handle(m, String.Format("{0}InnGen", CommandSystem.Prefix));
|
CommandSystem.Handle(m, String.Format("{0}InnGen", CommandSystem.Prefix));
|
||||||
|
CommandSystem.Handle(m, String.Format("{0}GenStaticHouses", CommandSystem.Prefix));
|
||||||
|
|
||||||
m.SendMessage( "Decorations, Signs, Inn Room Doors, and Teleporters generated!" );
|
m.SendMessage( "Decorations, Signs, Inn Room Doors, and Teleporters generated!" );
|
||||||
}
|
}
|
||||||
|
|
@ -158,7 +159,7 @@ namespace Server.Scripts.Commands
|
||||||
|
|
||||||
// Button 3: Decorate Only
|
// Button 3: Decorate Only
|
||||||
AddButton(35, 195, 4005, 4007, 3, GumpButtonType.Reply, 0);
|
AddButton(35, 195, 4005, 4007, 3, GumpButtonType.Reply, 0);
|
||||||
AddLabel(75, 196, 63, "Generate World Decor & Teleporters");
|
AddLabel(75, 196, 63, "Generate World Decor, Teleporters, Housing & Inns");
|
||||||
|
|
||||||
// Button 4: Map Spawns Only
|
// Button 4: Map Spawns Only
|
||||||
AddButton(35, 235, 4005, 4007, 4, GumpButtonType.Reply, 0);
|
AddButton(35, 235, 4005, 4007, 4, GumpButtonType.Reply, 0);
|
||||||
|
|
|
||||||
|
|
@ -158,13 +158,16 @@ namespace Server.Custom.InnRooms
|
||||||
|
|
||||||
if (RoomMap != null)
|
if (RoomMap != null)
|
||||||
{
|
{
|
||||||
IPooledEnumerable eable = RoomMap.GetItemsInRange(RoomLocation, 12);
|
IPooledEnumerable eable = RoomMap.GetItemsInRange(RoomLocation, 8);
|
||||||
foreach (Item item in eable)
|
foreach (Item item in eable)
|
||||||
{
|
{
|
||||||
if (item is InnExitDoor)
|
if (item is InnExitDoor)
|
||||||
{
|
{
|
||||||
dest = item.Location;
|
if (m_RoomArea.Contains(new Point2D(item.X, item.Y)))
|
||||||
break;
|
{
|
||||||
|
dest = item.Location;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
eable.Free();
|
eable.Free();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue