evany
Sorceror
UPDATED
- I improved the OnDoubleClick method to check for the owner ( in the original tillerman.cs this wasn't checked). Please upgrade the code with the one provided below.
- I added to the gump a button to toggle the transparency.
- Added tooltips to the buttons. (Just comment the lines inside TillermanGump.cs if you don't want them enabled ).
_____________________________________________________________________
Are you tired of having to say "forward", "backward", "drop anchor", etc... ???
Well, so do I, so I created a gump to control the tillerman without the annoying typing.
Here's a preview pic:
Yes, I know it's not very nice for the eye, but it's practical!
You can improve it anyway you want.
There might be some bugs. If you find any, post them here and I'll take a look.
Consider this release as a Beta, because I didn't fully test it .
How to install:
In BaseBoat.cs,
At the top, put this:
Thanks kenferguson for pointing that out.
Around line 735, inside public void EndDryDock( Mobile from )
In Tillerman.cs,
At the top add:
Thanks kenferguson for pointing that out.
And change the OnDoubleClick method to match this:
And finally drop somewhere you like the TillermanGump.cs file.
I uploaded all the files I mentioned in case I forgot something.
Enjoy!!
- I improved the OnDoubleClick method to check for the owner ( in the original tillerman.cs this wasn't checked). Please upgrade the code with the one provided below.
- I added to the gump a button to toggle the transparency.
- Added tooltips to the buttons. (Just comment the lines inside TillermanGump.cs if you don't want them enabled ).
_____________________________________________________________________
Are you tired of having to say "forward", "backward", "drop anchor", etc... ???
Well, so do I, so I created a gump to control the tillerman without the annoying typing.
Here's a preview pic:
Yes, I know it's not very nice for the eye, but it's practical!
You can improve it anyway you want.
- You move by clicking the 8 points of the compass ( the four dots at the edges and the W, N, S, E ).
- To stop, simply click the red button.
- To turn to a side, use the left or right arrow.
- To turn around, use the down arrow.
- Toggle One Step makes the ship move one tile at a time.
- Raise anchor becomes Drop anchor, depending on it's current state.
- The little paper at the bottom-right is for renaming the ship.
There might be some bugs. If you find any, post them here and I'll take a look.
Consider this release as a Beta, because I didn't fully test it .
How to install:
In BaseBoat.cs,
At the top, put this:
Code:
using Server.Gumps;
Around line 735, inside public void EndDryDock( Mobile from )
Code:
from.CloseGump( typeof( TillerManGump ) );
In Tillerman.cs,
At the top add:
Code:
using Server.Gumps;
And change the OnDoubleClick method to match this:
Code:
public override void OnDoubleClick( Mobile from )
{
if ( m_Boat != null )
{
if( m_Boat.Owner == from || from.AccessLevel >= AccessLevel.Administrator )
{
if( m_Boat.Contains( from ) )
{
from.SendGump( new TillerManGump( from, m_Boat, false ) ); //m_Boat.BeginRename( from );
}
else
{
m_Boat.BeginDryDock( from );
}
}
else from.SendLocalizedMessage( 501023 ); // You must be the owner to use this item
}
}
And finally drop somewhere you like the TillermanGump.cs file.
I uploaded all the files I mentioned in case I forgot something.
Enjoy!!