Go Back   RunUO - Ultima Online Emulation > RunUO > New Join Forum

New Join Forum So your new to RunUO and looking to work with people that are new, this is the place.

Reply
 
Thread Tools Display Modes
Old 08-16-2004, 11:04 PM   #1 (permalink)
 
Join Date: Aug 2004
Age: 29
Posts: 48
Default Boat problems

Ok on my server we removed recall only problem is now im getting a bunch of messages complaining that they can't get their boat. Is there a way to allow casting gate on the boat key instead of recall.
juggalo_mmfcl is offline   Reply With Quote
Old 08-20-2004, 06:54 AM   #2 (permalink)
J Powers your World
 
jrocks's Avatar
 
Join Date: Jan 2004
Location: London, England
Age: 22
Posts: 547
Send a message via ICQ to jrocks Send a message via MSN to jrocks
Default

Sorry i don't know how to do that, but can't players just access there boat using the boarding plank, which opens on the side?
__________________
jrocks.... but not at scripting :(

Message to "n00bs" Search before you ask questions which have been answered 100 times before
jrocks is offline   Reply With Quote
Old 08-20-2004, 07:25 AM   #3 (permalink)
Connection Reset by Peer
 
Join Date: Jan 2003
Posts: 676
Default

This is if they've lost their boat, I imagine. Look at the Recall and Gate Travel Scripts.
tejster24 is offline   Reply With Quote
Old 08-22-2004, 06:20 AM   #4 (permalink)
 
Join Date: Aug 2004
Age: 29
Posts: 48
Default Uhh

Normally you can recall to your lost boat but I have recall disabled. Can I change it so you can gate off the key is what im asking and if you can how?
juggalo_mmfcl is offline   Reply With Quote
Old 08-22-2004, 09:26 AM   #5 (permalink)
Forum Novice
 
Join Date: Jul 2004
Age: 22
Posts: 216
Default

When you say you have disabled recall, may I ask how? Did you remove the spell Recall completely so it doesn't exist in your shard, or did you comment out the target checks?

One way that you cold disable recall off of runes or runebooks and still have them recall off their boat key is quite simple. In Recall.cs you have the target method of the spell (where you usally target a rune or rune book) which involves a series of checks to see whether or not the item targeted is valid.

All you have to do is simply remove these checks to something like this:

Code:
protected override void OnTarget( Mobile from, object o )
			{
				if ( o is RecallRune )
				{
					RecallRune rune = (RecallRune)o;

					from.SendMessage("The spell fizzles");
					
					/*if ( rune.Marked )
						m_Owner.Effect( rune.Target, rune.TargetMap, true );
					else
						from.SendLocalizedMessage( 501805 ); // That rune is not yet marked.*/
				}
				else if ( o is Runebook )
				{
					RunebookEntry e = ((Runebook)o).Default;


					from.SendMessage("The spell fizzles");

					/*if ( e != null )
						m_Owner.Effect( e.Location, e.Map, true );
					else
						from.SendLocalizedMessage( 502354 ); // Target is not marked.*/
				}
				else if ( o is Key && ((Key)o).KeyValue != 0 && ((Key)o).Link is BaseBoat )
				{
					BaseBoat boat = ((Key)o).Link as BaseBoat;

					if ( !boat.Deleted && boat.CheckKey( ((Key)o).KeyValue ) )
						m_Owner.Effect( boat.GetMarkedLocation(), boat.Map, false );
					else
						from.Send( new MessageLocalized( from.Serial, from.Body, MessageType.Regular, 0x3B2, 3, 502357, from.Name, "" ) ); // I can not recall from that object.
				}
				else
				{
					from.Send( new MessageLocalized( from.Serial, from.Body, MessageType.Regular, 0x3B2, 3, 502357, from.Name, "" ) ); // I can not recall from that object.
				}
			}
plus is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5