public static void Initialize() { Register("info", s => { if (!TargetManager.IsTargeting) { TargetManager.SetTargeting(CursorTarget.SetTargetClientSide, CursorType.Target, TargetType.Neutral); } else { TargetManager.CancelTarget(); } }); Register("datetime", s => { if (World.Player != null) { GameActions.Print($"Current DateTime.Now is {DateTime.Now}"); } }); Register("hue", s => { if (!TargetManager.IsTargeting) { TargetManager.SetTargeting(CursorTarget.HueCommandTarget, CursorType.Target, TargetType.Neutral); } else { TargetManager.CancelTarget(); } }); }
public static void Initialize() { Register ( "info", s => { if (TargetManager.IsTargeting) { TargetManager.CancelTarget(); } TargetManager.SetTargeting(CursorTarget.SetTargetClientSide, CursorType.Target, TargetType.Neutral); } ); Register ( "datetime", s => { if (World.Player != null) { GameActions.Print(string.Format(ResGeneral.CurrentDateTimeNowIs0, DateTime.Now)); } } ); Register ( "hue", s => { if (TargetManager.IsTargeting) { TargetManager.CancelTarget(); } TargetManager.SetTargeting(CursorTarget.HueCommandTarget, CursorType.Target, TargetType.Neutral); } ); Register ( "debug", s => { CUOEnviroment.Debug = !CUOEnviroment.Debug; } ); }
public static void Initialize() { Register("info", () => { if (!TargetManager.IsTargeting) { TargetManager.SetTargeting(CursorTarget.SetTargetClientSide, 6983686, 0); } else { TargetManager.CancelTarget(); } }); }
public static void Initialize() { Register("info", s => { if (!TargetManager.IsTargeting) { TargetManager.SetTargeting(CursorTarget.SetTargetClientSide, 6983686, 0); } else { TargetManager.CancelTarget(); } }); Register("focus", s => { Engine.DebugFocus = !Engine.DebugFocus; }); }