mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-12 19:14:34 +01:00
* Deleted TestCommand.cs No longer needed. * Update AbyssCommand.cs Added a command to adjust the player's bracket at will. * Update User.cs Added Abyss Group Value * Update Command.cs Added Examples[] to the constructor and handler. * Update HelpCommand.cs Made the Help command more helpful! * Update AbyssCommand.cs Added Help Examples * Update GiveCommand.cs Added help examples, handles negative inputs again, added more aliases, can add or remove materials by ID, can now for add all skipped characters with `give avatars-scuffed` * Update AbyssCommand.cs missed a quote * Update UltraEndlessGetMainDataReqHandler.cs Bracket can now be set with commands. Need to unscuff the fight cycle. * Update GiveCommand.cs Cheeky give gold command * Further refined the Help Command --------- Co-authored-by: TerminalAide0017 <Sucks@code>
40 lines
1.3 KiB
C#
40 lines
1.3 KiB
C#
using Common.Database;
|
|
using Common.Resources.Proto;
|
|
using Common.Utils.ExcelReader;
|
|
using PemukulPaku.GameServer.Game;
|
|
|
|
namespace PemukulPaku.GameServer.Commands
|
|
{
|
|
[CommandHandler("abyss", "<sel> [#]", CommandType.Player,"temp 400", "bracket [1-9]")]
|
|
internal class AbyssCommand : Command
|
|
{
|
|
public override void Run(Session session, string[] args)
|
|
{
|
|
Run(session.Player, args);
|
|
|
|
//session.ProcessPacket(Packet.FromProto(new UltraEndlessGetMainDataReq() { }, CmdId.UltraEndlessGetMainDataReq));
|
|
}
|
|
public override void Run(Player player, string[] args)
|
|
{
|
|
string action = args[0];
|
|
uint value = args[1] is not null ? uint.Parse(args[1]) : 0;
|
|
|
|
switch (action)
|
|
{
|
|
case "disturbance":
|
|
case "d":
|
|
case "temp":
|
|
player.User.AbyssDynamicHard = value;
|
|
break;
|
|
case "bracket":
|
|
case "group":
|
|
player.User.AbyssGroupLevel = value > 0 && value < 10 ? value : 9;
|
|
break;
|
|
default: throw new ArgumentException("Unrecognized action");
|
|
}
|
|
|
|
player.User.Save();
|
|
}
|
|
}
|
|
}
|