Ryandor.com
https://ryandor.com/forum/

ships in malas
https://ryandor.com/forum/viewtopic.php?f=2&t=1548
Page 1 of 1

Author:  gawin [ Fri Feb 27, 2004 10:45 am ]
Post subject:  ships in malas

well i finaly found another spot where i need help

ive serched through run uo as well as here as well as doug through scripts for hours on end

does anyone know where you set the setting to allow ships in custom malas and ilsh???

as always thanks in advace for the help

gawin

Author:  Dian [ Fri Feb 27, 2004 11:14 am ]
Post subject: 

In your RunUO/Scripts/Multis/Boats/BaseBoatDeed.cs

Around line 80-81..

Code:
public void OnPlacement( Mobile from, Point3D p )
      {
         if ( Deleted )
         {
            return;
         }
         else if ( !IsChildOf( from.Backpack ) )
         {
            from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it.
         }
         else
         {
            Map map = from.Map;

            if ( map == null )
               return;

            if ( from.AccessLevel < AccessLevel.GameMaster && (map == Map.Ilshenar || map == Map.Malas) )
            {
               from.SendLocalizedMessage( 1043284 ); // A ship can not be created here.
               return;
            }

            BaseBoat boat = Boat;

            if ( boat == null )
               return;

            p = new Point3D( p.X - m_Offset.X, p.Y - m_Offset.Y, p.Z - m_Offset.Z );

            if ( BaseBoat.IsValidLocation( p, map ) && boat.CanFit( p, map, boat.ItemID ) )
            {
               Delete();

               boat.Owner = from;
               boat.Anchored = true;

               uint keyValue = boat.CreateKeys( from );

               if ( boat.PPlank != null )
                  boat.PPlank.KeyValue = keyValue;

               if ( boat.SPlank != null )
                  boat.SPlank.KeyValue = keyValue;

               boat.MoveToWorld( p, map );
            }
            else
            {
               boat.Delete();
               from.SendLocalizedMessage( 1043284 ); // A ship can not be created here.
            }
         }
      }


just remove the -- || map == Map.Malas --

so that line is like this..

Code:
if ( from.AccessLevel < AccessLevel.GameMaster && map == Map.Ilshenar )


Or, to allow on any map, just remove this code completly...

Code:
if ( from.AccessLevel < AccessLevel.GameMaster && (map == Map.Ilshenar || map == Map.Malas) )
            {
               from.SendLocalizedMessage( 1043284 ); // A ship can not be created here.
               return;
            }

Author:  gawin [ Fri Feb 27, 2004 2:15 pm ]
Post subject: 

thanks so much worked like a charm

gawin

Page 1 of 1 All times are UTC - 7 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/