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

@ -220,6 +220,11 @@
<admin command="admin_setun" accessLevel="100" />
<admin command="admin_setba" accessLevel="100" />
<admin command="admin_setbe" accessLevel="100" />
<admin command="admin_setrb" accessLevel="100" />
<admin command="admin_setci" accessLevel="100" />
<admin command="admin_setma" accessLevel="100" />
<admin command="admin_setbr" accessLevel="100" />
<admin command="admin_setab" accessLevel="100" />
<admin command="admin_enchant" accessLevel="100" />
<!-- ADMIN EVENT ENGINE -->

View File

@ -18,6 +18,12 @@
<br>
<table width=260>
<tr>
<td><button value="+5" action="bypass -h admin_setma 5" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Mask" action="bypass -h admin_setma $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Circlet" action="bypass -h admin_setci $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="+5" action="bypass -h admin_setci 5" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
<tr>
<td><button value="+6" action="bypass -h admin_seteh 6" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Helmet" action="bypass -h admin_seteh $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Upper Earring" action="bypass -h admin_setle $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
@ -50,6 +56,8 @@
<tr>
<td><button value="+4" action="bypass -h admin_setba 4" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Cloak" action="bypass -h admin_setba $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="R Bracelet" action="bypass -h admin_setrb $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="+4" action="bypass -h admin_setrb 4" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
<tr>
<td><button value="+4" action="bypass -h admin_setun 4" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
@ -63,6 +71,12 @@
<td><button value="Shield / Sigil" action="bypass -h admin_setes $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="+4" action="bypass -h admin_setes 4" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
<tr>
<td><button value="+5" action="bypass -h admin_setbr 5" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Brooch" action="bypass -h admin_setbr $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Artifact Book" action="bypass -h admin_setab $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="+5" action="bypass -h admin_setab 5" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
</table>
<br><br>
<font color="LEVEL">Attribute Enhancement:</font><br>

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)
{