public override void OnDoubleClick(Mobile from) { if (!IsChildOf(from)) { from.SendAsciiMessage("That must be in your backpack to use it."); return; } Target t; int number; if (m_KeyVal != 0) { number = 501662; // What shall I use this key on? t = new UnlockTarget(this); } else { number = 501663; // This key is a key blank t = new CopyTarget(this); } from.SendLocalizedMessage(number); from.Target = t; }
public override void OnDoubleClick(Mobile from) { if (!this.IsChildOf(from.Backpack)) { from.SendLocalizedMessage(501661); // That key is unreachable. return; } Target t; int number; if (m_KeyVal != 0) { number = 501662; // What shall I use this key on? t = new UnlockTarget(this); } else { number = 501663; // This key is a key blank. Which key would you like to make a copy of? t = new CopyTarget(this); } from.SendLocalizedMessage(number); from.Target = t; }
public override void OnDoubleClick(Mobile from) { Target t; if (!IsChildOf(from.Backpack)) { from.SendLocalizedMessage(1060640); // The item must be in your backpack to use it. } else { from.SendMessage("What chest do you want to use the torch on?"); t = new UnlockTarget(this); from.Target = t; } }
public override void OnDoubleClick(Mobile from) { Target t; int number; if (!IsChildOf(from.Backpack)) { number = 1060640; // The item must be in your backpack to use it. } else { number = 501662; // What shall I use this key on? t = new UnlockTarget(this); from.Target = t; } from.SendLocalizedMessage(number); }
public override void OnDoubleClick(Mobile from) { Target t; int number; if (m_KeyVal != 0) { number = 501662; // What shall I use this key on? t = new UnlockTarget(this); } else { number = 501663; // This key is a key blank. Which key would you like to make a copy of? t = new CopyTarget(this); } from.SendLocalizedMessage(number); from.Target = t; }
public override void OnDoubleClick(Mobile from) { Target t; string number; if (m_KeyVal != 0) { number = "What shall I use this key on?"; t = new UnlockTarget(this); } else { number = "This key is a key blank. Which key would you like to make a copy of?"; t = new CopyTarget(this); } from.SendAsciiMessage(number); from.Target = t; }
public override void OnDoubleClick(Mobile from) { if (!IsChildOf(from.Backpack)) { from.SendLocalizedMessage(501661); // That key is unreachable. return; } Target t; if (m_KeyVal != 0) { from.SendAsciiMessage("Select the item to use the key on."); t = new UnlockTarget(this); } else { from.SendAsciiMessage("This key is a key blank. Which key would you like to make a copy of?"); t = new CopyTarget(this); } from.Target = t; }
public override void OnDoubleClick( Mobile from ) { Target t; int number; if ( m_KeyVal != 0 ) { number = 501662; // What shall I use this key on? t = new UnlockTarget( this ); } else { number = 501663; // This key is a key blank. Which key would you like to make a copy of? t = new CopyTarget( this ); } from.SendLocalizedMessage( number ); from.Target = t; }
public override void OnDoubleClick( Mobile from ) { if ( !this.IsChildOf( from.Backpack ) ) { from.SendLocalizedMessage( 501661 ); // That key is unreachable. return; } Target t; int number; if ( m_KeyVal != 0 ) { number = 501662; // What shall I use this key on? t = new UnlockTarget( this ); } else { number = 501663; // This key is a key blank. Which key would you like to make a copy of? t = new CopyTarget( this ); } from.SendLocalizedMessage( number ); from.Target = t; }
public override void OnDoubleClick( Mobile from ) { Target t; string number; if ( m_KeyVal != 0 ) { number = "What shall I use this key on?"; t = new UnlockTarget( this ); } else { number = "This key is a key blank. Which key would you like to make a copy of?"; t = new CopyTarget( this ); } from.SendAsciiMessage( number ); from.Target = t; }
public override void OnDoubleClick( Mobile from ) { if ( !this.IsChildOf( from.Backpack ) ) { from.SendLocalizedMessage( 501661 ); // That key is unreachable. return; } Target t; int number; if ( m_KeyVal != 0 ) { number = 501662; // What shall I use this key on? t = new UnlockTarget( this ); } else { from.SendMessage( "This key is blank. Target a key if you want to make a copy of it, or a door if you want to change its lock." ); from.Target = new CopyTarget( this ); return; } from.SendLocalizedMessage( number ); from.Target = t; }
public override void OnDoubleClick( Mobile from ) { if ( !IsChildOf( from ) ) { from.SendAsciiMessage( "That must be in your backpack to use it." ); return; } Target t; int number; if ( m_KeyVal != 0 ) { number = 501662; // What shall I use this key on? t = new UnlockTarget( this ); } else { number = 501663; // This key is a key blank t = new CopyTarget( this ); } from.SendLocalizedMessage( number ); from.Target = t; }