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:
TerminalAide0017
2023-06-09 00:23:54 -07:00
committed by GitHub
parent d784bee5fa
commit f2e83c93dd
10 changed files with 108 additions and 51 deletions

View File

@@ -6,7 +6,7 @@ using System.Globalization;
namespace PemukulPaku.GameServer.Commands
{
[CommandHandler("avatar", "Add avatar to player account", CommandType.Player)]
[CommandHandler("avatar", "<sel> <id> [Prop] [#]", CommandType.Player, "add 406", "modify -1 star 5")]
internal class AvatarCommand : Command
{
public override void Run(Session session, string[] args)
@@ -26,7 +26,7 @@ namespace PemukulPaku.GameServer.Commands
session.ProcessPacket(Packet.FromProto(new GetAvatarDataReq() { AvatarIdLists = new uint[] { (uint)avatarId } }, CmdId.GetAvatarDataReq));
}
if (action.ToLower() == "modify")
if (action.ToLower() == "modify" || action.ToLower() == "mod")
{
List<uint> updatedAvatars = new();
@@ -85,6 +85,7 @@ namespace PemukulPaku.GameServer.Commands
player.Equipment.Save();
break;
case "modify":
case "mod":
if (avatarId == -1)
{
foreach (AvatarScheme av in player.AvatarList)