/
NLObP
/
AAEmu
Обзор
Документация
Войти
/
NLObP
/
AAEmu
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
AAEmu.Game/Utils/Scripts/SubCommands/FishFinder/FishFinderSetSubCommand.cs
34 строки
1 KB
ZeromusXYZ
[Game] Feature/tradepacks and slaves part 3 (#776)
08 ноя 2023, 16:25
Не верифицирован
08 ноя 2023, 16:25
c0187a5
Код
Авторство
О чём код?
using System.Collections.Generic; using AAEmu.Game.Core.Managers; using AAEmu.Game.Models.Game.Char; namespace AAEmu.Game.Utils.Scripts.SubCommands.FishFinder; public class FishFinderSetSubCommand : SubCommandBase { public FishFinderSetSubCommand() { Title = "[FishFinder setup]"; Description = "FishFinder setup"; CallPrefix = $"{CommandManager.CommandPrefix}set"; AddParameter(new StringSubCommandParameter("start", "start", true)); } public override void Execute(ICharacter character, string triggerArgument, IDictionary<string, ParameterValue> parameters, IMessageOutput messageOutput) { string start = parameters["start"]; if (start == "true") { RadarManager.Instance.RegisterForFishSchool((Character)character, 1000f); SendMessage(messageOutput, $"FishFinder set start: true"); } else { RadarManager.Instance.RegisterForFishSchool((Character)character, 0f); SendMessage(messageOutput, $"FishFinder set start: false"); } //TODO: There is much more potential information to show on this command. } }