private static void PremiumSpawner_OnCommand(CommandEventArgs e) { e.Mobile.SendGump(new PremiumSpawnerMainGump(e)); }
private static bool Dublicate_OnCommand(CommandEventArgs e) { string name; string toacctname; Character from = new Character(); if (e.Length == 2 && e.Target != null && e.Target is Character) { name = e.GetString(1); from = e.Target as Character; toacctname = e.GetString(0); } else if (e.Length == 3) { bool found = false; name = e.GetString(2); toacctname = e.GetString(1); foreach (Account acct in World.allAccounts) { foreach (Mobile m in acct.characteres) { Character ch = m as Character; if (ch.Name.ToLower() == e.GetString(0).ToLower()) { from = ch; found = true; } } } if (!found) { e.Player.SendMessage(String.Format("Character with name {0} not found.", e.GetString(0))); return(false); } } else { e.Player.SendMessage("Usage : .Dublicate <To Account> <New Name>"); e.Player.SendMessage("Usage : .Dublicate <Character Name> <To Account> <New Name>"); return(false); } foreach (Account acct in World.allAccounts) { foreach (Mobile m in acct.characteres) { if (m.Name.ToLower() == name.ToLower()) { e.Player.SendMessage(String.Format("Name '{0}' is allready exist.", name)); return(false); } } } foreach (Account toacct in World.allAccounts) { if (toacct.Username.ToLower() == toacctname.ToLower()) { DublicateCharacter(from, toacct, name); e.Player.SendMessage(String.Format("Character '{0}' successfully dublicated to account '{1}'.", from.Name, toacct.Username)); return(true); } } e.Player.SendMessage(String.Format("Account with name '{0}' not found.", toacctname)); return(false); }
private static void ResetForm_OnCommand(CommandEventArgs e) { e.Mobile.Target = new ChangeFormTarget(0); }
private static void MakeLich_OnCommand(CommandEventArgs e) { e.Mobile.Target = new ChangeFormTarget(0x18); }
private static void MakeZombie_OnCommand(CommandEventArgs e) { e.Mobile.Target = new ChangeFormTarget(3); }
private static void MakeDefiled_OnCommand(CommandEventArgs e) { e.Mobile.Target = new MakeDefiledTarget(); }
public static void Emote_OnCommand(CommandEventArgs e) { Mobile pm = e.Mobile; string em = e.ArgString.Trim(); int SoundInt; switch (em) { case "ah": SoundInt = 1; break; case "ahha": SoundInt = 2; break; case "applaud": SoundInt = 3; break; case "blownose": SoundInt = 4; break; case "bow": SoundInt = 5; break; case "bscough": SoundInt = 6; break; case "burp": SoundInt = 7; break; case "clearthroat": SoundInt = 8; break; case "cough": SoundInt = 9; break; case "cry": SoundInt = 10; break; case "faint": SoundInt = 11; break; case "fart": SoundInt = 12; break; case "gasp": SoundInt = 13; break; case "giggle": SoundInt = 14; break; case "groan": SoundInt = 15; break; case "growl": SoundInt = 16; break; case "hey": SoundInt = 17; break; case "hiccup": SoundInt = 18; break; case "huh": SoundInt = 19; break; case "kiss": SoundInt = 20; break; case "laugh": SoundInt = 21; break; case "no": SoundInt = 22; break; case "oh": SoundInt = 23; break; case "oooh": SoundInt = 24; break; case "oops": SoundInt = 25; break; case "puke": SoundInt = 26; break; case "punch": SoundInt = 27; break; case "scream": SoundInt = 28; break; case "shush": SoundInt = 29; break; case "sigh": SoundInt = 30; break; case "slap": SoundInt = 31; break; case "sneeze": SoundInt = 32; break; case "sniff": SoundInt = 33; break; case "snore": SoundInt = 34; break; case "spit": SoundInt = 35; break; case "stickouttongue": SoundInt = 36; break; case "tapfoot": SoundInt = 37; break; case "wistle": SoundInt = 38; break; case "woohoo": SoundInt = 39; break; case "yawn": SoundInt = 40; break; case "yea": SoundInt = 41; break; case "yell": SoundInt = 42; break; default: SoundInt = 0; e.Mobile.SendGump(new EmoteGump(e.Mobile, EmotePage.P1)); break; } if (SoundInt > 0) { new ESound(pm, SoundInt); } }