Support for > 6.0.1.7 (Containers, SecureTrade, SpellBook, Vendors, etc)
WarningGump Fixed
This commit is contained in:
parent
3f839ed5bf
commit
57293771a2
12 changed files with 290 additions and 48 deletions
|
|
@ -11,16 +11,16 @@ namespace Server.Gumps
|
|||
private object m_State;
|
||||
private bool m_CancelButton;
|
||||
|
||||
public WarningGump( int header, int headerColor, object content, int contentColor, int width, int height, WarningGumpCallback callback, object state, bool cancelButton )
|
||||
: this( header, headerColor, content, contentColor, width, height, callback, state )
|
||||
public WarningGump( int header, int headerColor, object content, int contentColor, int width, int height, WarningGumpCallback callback, object state )
|
||||
: this( header, headerColor, content, contentColor, width, height, callback, state, false )
|
||||
{
|
||||
m_CancelButton = cancelButton;
|
||||
}
|
||||
|
||||
public WarningGump( int header, int headerColor, object content, int contentColor, int width, int height, WarningGumpCallback callback, object state ) : base( (640 - width) / 2, (480 - height) / 2 )
|
||||
public WarningGump( int header, int headerColor, object content, int contentColor, int width, int height, WarningGumpCallback callback, object state, bool cancelButton ) : base( (640 - width) / 2, (480 - height) / 2 )
|
||||
{
|
||||
m_Callback = callback;
|
||||
m_State = state;
|
||||
m_CancelButton = cancelButton;
|
||||
|
||||
Closable = false;
|
||||
|
||||
|
|
|
|||
|
|
@ -157,8 +157,14 @@ namespace Server.Items
|
|||
if ( CheckRange( from ) )
|
||||
{
|
||||
Cleanup();
|
||||
from.Send( new BBDisplayBoard( this ) );
|
||||
from.Send( new ContainerContent( from, this ) );
|
||||
|
||||
NetState state = from.NetState;
|
||||
|
||||
state.Send( new BBDisplayBoard( this ) );
|
||||
if ( state.IsPost6017 )
|
||||
state.Send( new ContainerContent6017( from, this ) );
|
||||
else
|
||||
state.Send( new ContainerContent( from, this ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using Server;
|
||||
using Server.Targeting;
|
||||
using Server.Network;
|
||||
using Server.Spells;
|
||||
using Server.Commands;
|
||||
using Server.Engines.Craft;
|
||||
using Server.Network;
|
||||
using Server.Spells;
|
||||
using Server.Targeting;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
|
|
@ -484,7 +484,10 @@ namespace Server.Items
|
|||
else if ( Parent is Item )
|
||||
{
|
||||
// What will happen if the client doesn't know about our parent?
|
||||
to.Send( new ContainerContentUpdate( this ) );
|
||||
if ( to.NetState.IsPost6017 )
|
||||
to.Send( new ContainerContentUpdate6017( this ) );
|
||||
else
|
||||
to.Send( new ContainerContentUpdate( this ) );
|
||||
}
|
||||
else if ( Parent is Mobile )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -633,7 +633,10 @@ namespace Server.Mobiles
|
|||
|
||||
SendPacksTo( from );
|
||||
|
||||
from.Send( new VendorBuyContent( list ) );
|
||||
if ( from.NetState.IsPost6017 )
|
||||
from.Send( new VendorBuyContent6017( list ) );
|
||||
else
|
||||
from.Send( new VendorBuyContent( list ) );
|
||||
from.Send( new VendorBuyList( this, list ) );
|
||||
from.Send( new DisplayBuyList( this ) );
|
||||
from.Send( new MobileStatusExtended( from ) );//make sure their gold amount is sent
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue