Ryandor.com

Forums
It is currently Sun Jul 06, 2025 1:20 pm

All times are UTC - 7 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: ships in malas
PostPosted: Fri Feb 27, 2004 10:45 am 
Offline
Apprentice
Apprentice

Joined: Mon Jan 26, 2004 8:25 am
Posts: 43
Location: some place warm
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 27, 2004 11:14 am 
Offline
Not your daddy
Not your daddy

Joined: Mon Nov 18, 2002 2:18 am
Posts: 1224
Location: Oregon State
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;
            }

_________________
Forget what you know, know what you forget.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 27, 2004 2:15 pm 
Offline
Apprentice
Apprentice

Joined: Mon Jan 26, 2004 8:25 am
Posts: 43
Location: some place warm
thanks so much worked like a charm

gawin


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group