Olórin

Member
ServUO Version
Publish 57
Ultima Expansion
Endless Journey
So on this server im working on, we have decided to only use Fel Lost Lands, Fel Bucs Den, & Ocllo... What are my options to keep players from sailing to the mainland from the islands? Other than using blockers and surrounding the island... i could have swore the region control plugin had the option to not allow them to leave.. but im no longer seeing it. Can we restrict boat use in fel?
 
BaseBoatDeed.cs and BaseDockedBoat.cs under OnDoubleClick

add Felucca to the following:
C#:
            if (from.AccessLevel < AccessLevel.GameMaster && (from.Map == Map.Ilshenar || from.Map == Map.Malas))
            {
                from.SendLocalizedMessage(1010567, null, 0x25); // You may not place a boat from this location.
            }

that should make it impossible to place a boat in fel
 
BaseBoatDeed.cs and BaseDockedBoat.cs under OnDoubleClick

add Felucca to the following:
C#:
            if (from.AccessLevel < AccessLevel.GameMaster && (from.Map == Map.Ilshenar || from.Map == Map.Malas))
            {
                from.SendLocalizedMessage(1010567, null, 0x25); // You may not place a boat from this location.
            }

that should make it impossible to place a boat in fel
Awesome sir, thank you!
if (from.AccessLevel < AccessLevel.GameMaster && (from.Map == Map.Ilshenar || from.Map == Map.Malas || from.Map == Map.Felucca))

Like this?
 
You could also modify the wrap points for the map in baseboat.cs. You can "box in" Occlo and Buc's Den using wrap points so that boats will just teleport to the other side of the box when they hit the wrap point. Look for this code in baseboat.cs and modify as needed:

private static readonly Rectangle2D[] m_BritWrap = new Rectangle2D[]{ new Rectangle2D( 16, 16, 5120 - 32, 4096 - 32 ), new Rectangle2D( 5136, 2320, 992, 1760 ), new Rectangle2D(6272, 1088, 319, 319)};
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back