#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
|
|
@ -79,13 +79,14 @@ namespace Server.Scripts.Commands
|
|||
|
||||
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...");
|
||||
|
||||
CommandSystem.Handle(m, String.Format("{0}Decorate", 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}InnGen", CommandSystem.Prefix));
|
||||
CommandSystem.Handle(m, String.Format("{0}GenStaticHouses", CommandSystem.Prefix));
|
||||
|
||||
m.SendMessage( "Decorations, Signs, Inn Room Doors, and Teleporters generated!" );
|
||||
}
|
||||
|
|
@ -158,7 +159,7 @@ namespace Server.Scripts.Commands
|
|||
|
||||
// Button 3: Decorate Only
|
||||
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
|
||||
AddButton(35, 235, 4005, 4007, 4, GumpButtonType.Reply, 0);
|
||||
|
|
|
|||
|
|
@ -158,13 +158,16 @@ namespace Server.Custom.InnRooms
|
|||
|
||||
if (RoomMap != null)
|
||||
{
|
||||
IPooledEnumerable eable = RoomMap.GetItemsInRange(RoomLocation, 12);
|
||||
IPooledEnumerable eable = RoomMap.GetItemsInRange(RoomLocation, 8);
|
||||
foreach (Item item in eable)
|
||||
{
|
||||
if (item is InnExitDoor)
|
||||
{
|
||||
dest = item.Location;
|
||||
break;
|
||||
if (m_RoomArea.Contains(new Point2D(item.X, item.Y)))
|
||||
{
|
||||
dest = item.Location;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
eable.Free();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue