public static void SetAllSkills_OnCommand( CommandEventArgs arg ) { if ( arg.Length != 1 ) { arg.Mobile.SendMessage( "SetAllSkills <value>" ); } else { arg.Mobile.Target = new AllSkillsTarget( arg.GetDouble( 0 ) ); } }
public static void SetSkill_OnCommand( CommandEventArgs arg ) { if ( arg.Length != 2 ) { arg.Mobile.SendMessage( "SetSkill <skill name> <value>" ); } else { SkillName skill; try { skill = (SkillName)Enum.Parse( typeof( SkillName ), arg.GetString( 0 ), true ); } catch { arg.Mobile.SendLocalizedMessage( 1005631 ); // You have specified an invalid skill to set. return; } arg.Mobile.Target = new SkillTarget( skill, arg.GetDouble( 1 ) ); } }