Not sure if this has been done before. But I assume it can be done on any version.
You need to edit a few place to make this work.
First place will be dist/game/config/AdminCommands.xml - Under <!-- ADMIN ENCHANT -->
<!-- ADMIN ENCHANT -->
<admin command="admin_seteh" accessLevel="100" />
<admin command="admin_setec" accessLevel="100" />
<admin command="admin_seteg" accessLevel="100" />
<admin command="admin_setel" accessLevel="100" />
<admin command="admin_seteb" accessLevel="100" />
<admin command="admin_setew" accessLevel="100" />
<admin command="admin_setes" accessLevel="100" />
<admin command="admin_setle" accessLevel="100" />
<admin command="admin_setre" accessLevel="100" />
<admin command="admin_setlf" accessLevel="100" />
<admin command="admin_setrf" accessLevel="100" />
<admin command="admin_seten" accessLevel="100" />
<admin command="admin_setun" accessLevel="100" />
<admin command="admin_setba" accessLevel="100" />
<admin command="admin_setbe" accessLevel="100" />
<admin command="admin_seth1" accessLevel="100" />
<admin command="admin_seth2" accessLevel="100" />
<admin command="admin_seta1" accessLevel="100" />
<admin command="admin_seta2" accessLevel="100" />
<admin command="admin_seta3" accessLevel="100" />
<admin command="admin_seta4" accessLevel="100" />
<admin command="admin_seta5" accessLevel="100" />
<admin command="admin_sett1" accessLevel="100" />
<admin command="admin_sett2" accessLevel="100" />
<admin command="admin_sett3" accessLevel="100" />
<admin command="admin_sett4" accessLevel="100" />
<admin command="admin_sett5" accessLevel="100" />
<admin command="admin_sett6" accessLevel="100" />
<admin command="admin_enchant" accessLevel="100" />
The next place is under the Java - dist/game/data/scripts/handlers/admincommandhandlers/AdminEnchant
private static final String[] ADMIN_COMMANDS =
{
"admin_seteh", // 6
"admin_setec", // 10
"admin_seteg", // 9
"admin_setel", // 11
"admin_seteb", // 12
"admin_setew", // 7
"admin_setes", // 8
"admin_setle", // 1
"admin_setre", // 2
"admin_setlf", // 4
"admin_setrf", // 5
"admin_seten", // 3
"admin_setun", // 0
"admin_setba", // 13
"admin_setbe",
"admin_seth1",
"admin_seth2",
"admin_seta1",
"admin_seta2",
"admin_seta3",
"admin_seta4",
"admin_seta5",
"admin_sett1",
"admin_sett2",
"admin_sett3",
"admin_sett4",
"admin_sett5",
"admin_sett6",
"admin_enchant"
};
@Override
public boolean useAdminCommand(String command, PlayerInstance activeChar)
{
if (command.equals("admin_enchant"))
{
showMainPage(activeChar);
}
else
{
int armorType = -1;
if (command.startsWith("admin_seteh"))
{
armorType = Inventory.PAPERDOLL_HEAD;
}
else if (command.startsWith("admin_setec"))
{
armorType = Inventory.PAPERDOLL_CHEST;
}
else if (command.startsWith("admin_seteg"))
{
armorType = Inventory.PAPERDOLL_GLOVES;
}
else if (command.startsWith("admin_seteb"))
{
armorType = Inventory.PAPERDOLL_FEET;
}
else if (command.startsWith("admin_setel"))
{
armorType = Inventory.PAPERDOLL_LEGS;
}
else if (command.startsWith("admin_setew"))
{
armorType = Inventory.PAPERDOLL_RHAND;
}
else if (command.startsWith("admin_setes"))
{
armorType = Inventory.PAPERDOLL_LHAND;
}
else if (command.startsWith("admin_setle"))
{
armorType = Inventory.PAPERDOLL_LEAR;
}
else if (command.startsWith("admin_setre"))
{
armorType = Inventory.PAPERDOLL_REAR;
}
else if (command.startsWith("admin_setlf"))
{
armorType = Inventory.PAPERDOLL_LFINGER;
}
else if (command.startsWith("admin_setrf"))
{
armorType = Inventory.PAPERDOLL_RFINGER;
}
else if (command.startsWith("admin_seten"))
{
armorType = Inventory.PAPERDOLL_NECK;
}
else if (command.startsWith("admin_setun"))
{
armorType = Inventory.PAPERDOLL_UNDER;
}
else if (command.startsWith("admin_setba"))
{
armorType = Inventory.PAPERDOLL_CLOAK;
}
else if (command.startsWith("admin_setbe"))
{
armorType = Inventory.PAPERDOLL_BELT;
}
else if (command.startsWith("admin_seth1"))
{
armorType = Inventory.PAPERDOLL_HAIR;
}
else if (command.startsWith("admin_seth2"))
{
armorType = Inventory.PAPERDOLL_HAIR2;
}
else if (command.startsWith("admin_seta1"))
{
armorType = Inventory.PAPERDOLL_AGATHION1;
}
else if (command.startsWith("admin_seta2"))
{
armorType = Inventory.PAPERDOLL_AGATHION2;
}
else if (command.startsWith("admin_seta3"))
{
armorType = Inventory.PAPERDOLL_AGATHION3;
}
else if (command.startsWith("admin_seta4"))
{
armorType = Inventory.PAPERDOLL_AGATHION4;
}
else if (command.startsWith("admin_seta5"))
{
armorType = Inventory.PAPERDOLL_AGATHION5;
}
else if (command.startsWith("admin_sett1"))
{
armorType = Inventory.PAPERDOLL_DECO1;
}
else if (command.startsWith("admin_sett2"))
{
armorType = Inventory.PAPERDOLL_DECO2;
}
else if (command.startsWith("admin_sett3"))
{
armorType = Inventory.PAPERDOLL_DECO3;
}
else if (command.startsWith("admin_sett4"))
{
armorType = Inventory.PAPERDOLL_DECO4;
}
else if (command.startsWith("admin_sett5"))
{
armorType = Inventory.PAPERDOLL_DECO5;
}
else if (command.startsWith("admin_sett6"))
{
armorType = Inventory.PAPERDOLL_DECO6;
}
if (armorType != -1)
Finally the last place will be under dist/game/data/html/admin/enchant.html
</table>
<br>
<table width=260>
<tr>
<td><button value="+10" action="bypass -h admin_seteh 10" 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>
<td><button value="+4" action="bypass -h admin_setle 4" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
<tr>
<td><button value="+10" action="bypass -h admin_setec 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Chest" action="bypass -h admin_setec $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Lower Earring" action="bypass -h admin_setre $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_setre 4" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
<tr>
<td><button value="+10" action="bypass -h admin_setel 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Leggings" action="bypass -h admin_setel $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Necklace" action="bypass -h admin_seten $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_seten 4" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
<tr>
<td><button value="+10" action="bypass -h admin_seteg 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Gloves" action="bypass -h admin_seteg $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Upper Ring" action="bypass -h admin_setlf $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_setlf 4" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
<tr>
<td><button value="+10" action="bypass -h admin_seteb 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Boots" action="bypass -h admin_seteb $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Lower Ring" action="bypass -h admin_setrf $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_setrf 4" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
<tr>
<td><button value="+10" action="bypass -h admin_setba 10" 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="Hair1" action="bypass -h admin_setha $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="+10" action="bypass -h admin_seth1 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
<tr>
<td><button value="+10" action="bypass -h admin_setbe 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Belt" action="bypass -h admin_setbe $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Hair2" action="bypass -h admin_seth2 $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="+10" action="bypass -h admin_seth1 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
<tr>
<td><button value="+16" action="bypass -h admin_setew 16" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Weapon" action="bypass -h admin_setew $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<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="+10" action="bypass -h admin_setes 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
<tr>
<td><button value="+10" action="bypass -h admin_seta1 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Agathion1" action="bypass -h admin_seta1 $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Agathion2" action="bypass -h admin_seta2 $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="+10" action="bypass -h admin_seta2 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
<tr>
<td><button value="+10" action="bypass -h admin_seta3 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Agathion3" action="bypass -h admin_seta3 $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Agathion4" action="bypass -h admin_seta4 $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="+10" action="bypass -h admin_seta4 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
<tr>
<td><button value="+10" action="bypass -h admin_seta5 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Agathion5" action="bypass -h admin_seta5 $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Talisman1" action="bypass -h admin_sett1 $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="+10" action="bypass -h admin_sett1 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
<tr>
<td><button value="+10" action="bypass -h admin_sett2 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Talisman2" action="bypass -h admin_sett2 $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Talisman3" action="bypass -h admin_sett3 $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="+10" action="bypass -h admin_sett3 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
<tr>
<td><button value="+10" action="bypass -h admin_sett4 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Talisman4" action="bypass -h admin_sett4 $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Talisman5" action="bypass -h admin_sett5 $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="+10" action="bypass -h admin_sett5 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
<tr>
<td><button value="+10" action="bypass -h admin_sett6 10" width=35 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
<td><button value="Talisman6" action="bypass -h admin_sett6 $qbox" width=85 height=20 back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
</table>
Hopefully this will help some for enchanting purposes instead of manually enchanting items for testing.