Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from zerodowned/master
EC Support Update
- Loading branch information
Showing
111 changed files
with
9,597 additions
and
6,039 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using System; | ||
using Server; | ||
using Server.Mobiles; | ||
using Server.Network; | ||
|
||
namespace Server.Gumps | ||
{ | ||
public class ConfirmReleaseDeadPetGump : Gump | ||
{ | ||
public override int TypeID { get { return 0x259; } } | ||
|
||
private Mobile m_From; | ||
private BaseCreature m_Pet; | ||
|
||
public ConfirmReleaseDeadPetGump( Mobile from, BaseCreature pet ) | ||
: base( 50, 50 ) | ||
{ | ||
m_From = from; | ||
m_Pet = pet; | ||
|
||
m_From.CloseGump( typeof( ConfirmReleaseDeadPetGump ) ); | ||
|
||
AddBackground( 0, 0, 270, 120, 0x13BE ); | ||
|
||
AddHtmlLocalized( 10, 10, 250, 75, 1049669, true, false ); // <div align=center>Releasing a ghost pet will destroy it, with no chance of recovery. Do you wish to continue?</div> | ||
|
||
AddHtmlLocalized( 55, 90, 75, 20, 1011011, false, false ); // CONTINUE | ||
AddButton( 20, 90, 0xFA5, 0xFA7, 2, GumpButtonType.Reply, 0 ); | ||
|
||
AddHtmlLocalized( 170, 90, 75, 20, 1011012, false, false ); // CANCEL | ||
AddButton( 135, 90, 0xFA5, 0xFA7, 1, GumpButtonType.Reply, 0 ); | ||
} | ||
|
||
public override void OnResponse( NetState sender, RelayInfo info ) | ||
{ | ||
if ( info.ButtonID == 2 ) | ||
{ | ||
if ( !m_Pet.Deleted && m_Pet.Controlled && m_From == m_Pet.ControlMaster && m_From.CheckAlive() ) | ||
{ | ||
if ( m_Pet.Map == m_From.Map && m_Pet.InRange( m_From, 14 ) ) | ||
m_Pet.Delete(); | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.