mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-13 23:04:35 +01:00
More Helpful Help Command (#5)
* 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>
This commit is contained in:
@@ -1,31 +1,39 @@
|
||||
using PemukulPaku.GameServer.Game;
|
||||
using Common.Database;
|
||||
using Common.Resources.Proto;
|
||||
using Common.Utils.ExcelReader;
|
||||
using PemukulPaku.GameServer.Game;
|
||||
|
||||
namespace PemukulPaku.GameServer.Commands
|
||||
{
|
||||
[CommandHandler("abyss", "", CommandType.Player)]
|
||||
[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));
|
||||
//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.ToLower())
|
||||
switch (action)
|
||||
{
|
||||
case "disturbance":
|
||||
case "d":
|
||||
case "temp":
|
||||
player.User.AbyssDynamicHard = value;
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentException("Unrecognized action");
|
||||
case "bracket":
|
||||
case "group":
|
||||
player.User.AbyssGroupLevel = value > 0 && value < 10 ? value : 9;
|
||||
break;
|
||||
default: throw new ArgumentException("Unrecognized action");
|
||||
}
|
||||
|
||||
player.User.Save();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user