prosilverdragon
Member
- ServUO Version
- Publish 57
- Ultima Expansion
- High Seas
Doesnt look like anybody has asked or attempted this yet but is there away to modify the Houseplacementtool.cs so it checks if the user is staff thus allowing additional house options? Objective is to limit players from dumping castles everywhere and letting staff à la carte summon them.
Another possible solution might be to add more maps checks to line 58 in Houseplacement.cs
Nvm ended up settling on adjusting line 58 in Houseplacement.cs to look like,
C#:
switch ( info.ButtonID )
{
case 1: // Classic Houses
{
m_From.SendGump(new HousePlacementListGump(m_Tool, m_From, Core.EJ ? HousePlacementEntry.HousesEJ : HousePlacementEntry.ClassicHouses, true));
break;
}
case 2: // 2-Story Customizable Houses
{
m_From.SendGump(new HousePlacementListGump(m_Tool, m_From, HousePlacementEntry.TwoStoryFoundations));
break;
}
case 3: // 3-Story Customizable Houses
{
m_From.SendGump(new HousePlacementListGump(m_Tool, m_From, HousePlacementEntry.ThreeStoryFoundations));
break;
}
case 4: // Custom House Contest
{
if (m_Tool.UseCustomHousePlots || m_From.AccessLevel > AccessLevel.Player)
{
m_From.SendGump(new HousePlacementListGump(m_Tool, m_From, HousePlacementEntry.CustomHouseContest));
}
break;
}
}
Another possible solution might be to add more maps checks to line 58 in Houseplacement.cs
C#:
if (map == Map.Malas && (multiID == 0x007C || multiID == 0x007E))
return HousePlacementResult.InvalidCastleKeep;
C#:
if (map == Map.Malas && (multiID == 0x007C || multiID == 0x007E) || map == Map.Trammel && (multiID == 0x007C || multiID == 0x007E))
Last edited: