public static void Execute(string[] arguments) { if (arguments.Length <= 2) { s_log.Error("Wrong parameters!: resultType, resultCode, resultName, destCharName"); return; } int resultType; int resultCode; string resultName = string.Empty; string destCharName = string.Empty; try { resultType = Convert.ToInt32(arguments[0]); resultCode = Convert.ToInt32(arguments[1]); destCharName = arguments[2]; if (arguments.Length == 4) { resultName = arguments[3]; } } catch (Exception) { s_log.Error("Wrong parameter types!"); return; } Character character = WorldMgr.GetCharacterByName(destCharName, false); if (character == null) { s_log.Error("Unable to find given character!"); return; } Group.SendResult(character.Client, (GroupResult)resultCode, (uint)resultType, resultName); }