public override void Execute(CommandEventArgs e, object obj) { PlayerMobile pm = e.Mobile as PlayerMobile; bool GoodData = false; if (e.Length >= 1) { for (var i = 0; i < e.Length; ++i) { var result = Properties.GetValue(e.Mobile, obj, e.GetString(i)); if (result == "Property not found." || result == "Property is write only." || result.StartsWith("Getting this property")) { LogFailure(result); } else { AddResponse(result); if (result.Contains(" = ")) { string[] getVal = result.Split('('); string[] getHue = getVal[0].Split('='); string hue = "0"; if (getHue[1] != null) { hue = getHue[1].Trim(' '); } BBServerClient.SendCommand(new BBPacket(pm.Name, BBPacket.CommandTypes.RETURN_COMMAND, "HUE", hue, "SET_DATA")); GoodData = true; } } } } else { LogFailure("Format: Get <propertyName>"); } if (!GoodData) { BBServerClient.SendCommand(new BBPacket(pm.Name, BBPacket.CommandTypes.RETURN_COMMAND, "HUE", "0", "SET_DATA")); } }
private static void SHUTDOWN(PlayerMobile player) { BBServerClient.SendCommand(new BBPacket(player.Name, BBPacket.CommandTypes.SPECIAL_COMMAND, "SHUTDOWN", "", "SET_DATA")); }