Addition of commands for enchanting new item slots.

Contributed by CostyKiller.
This commit is contained in:
MobiusDevelopment
2021-03-01 05:15:55 +00:00
parent 39ef320fab
commit 818420d436
3 changed files with 45 additions and 1 deletions

View File

@@ -51,7 +51,12 @@ public class AdminEnchant implements IAdminCommandHandler
"admin_seten", // 3
"admin_setun", // 0
"admin_setba", // 13
"admin_setbe",
"admin_setbe", // 29
"admin_setrb", // 16
"admin_setci", // 2
"admin_setma", // 3
"admin_setbr", // 30
"admin_setab", // 37
"admin_enchant"
};
@@ -125,6 +130,26 @@ public class AdminEnchant implements IAdminCommandHandler
{
armorType = Inventory.PAPERDOLL_BELT;
}
else if (command.startsWith("admin_setrb"))
{
armorType = Inventory.PAPERDOLL_RBRACELET;
}
else if (command.startsWith("admin_setci"))
{
armorType = Inventory.PAPERDOLL_HAIR2;
}
else if (command.startsWith("admin_setma"))
{
armorType = Inventory.PAPERDOLL_HAIR;
}
else if (command.startsWith("admin_setbr"))
{
armorType = Inventory.PAPERDOLL_BROOCH;
}
else if (command.startsWith("admin_setab"))
{
armorType = Inventory.PAPERDOLL_ARTIFACT_BOOK;
}
if (armorType != -1)
{