Addition of setclass menu for Vanguard players.

This commit is contained in:
MobiusDevelopment 2022-03-27 22:44:02 +00:00
parent ec18244b50
commit 8f9a99f06c
2 changed files with 29 additions and 0 deletions

View File

@ -54,4 +54,26 @@
<td><button value="Grand Khavatari" action="bypass -h admin_setclass 114" width="130" height="20" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
</table>
<br>
<center>Vanguard</center>
<table width="302" border="0" bgcolor="999999">
<tr>
<td><center><button value="Orc Lancer" action="bypass -h admin_setclass 217" width="130" height="20" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></center></td>
</tr>
</table>
<table width="302" border="0" bgcolor="666666">
<tr>
<td><center><button value="Rider" action="bypass -h admin_setclass 218" width="130" height="20" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></center></td>
</tr>
</table>
<table width="302" border="0" bgcolor="0066FF">
<tr>
<td><button value="Dragoon" action="bypass -h admin_setclass 219" width="130" height="20" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
</table>
<table width="302" border="0" bgcolor="0066FF">
<tr>
<td><button value="Vanguard Rider" action="bypass -h admin_setclass 220" width="130" height="20" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
</tr>
</table>
</body></html>

View File

@ -429,6 +429,13 @@ public class AdminEditChar implements IAdminCommandHandler
}
}
// Vanguard checks.
if (CategoryData.getInstance().isInCategory(CategoryType.VANGUARD_ALL_CLASS, classidval))
{
player.getAppearance().setMale();
player.disarmShield();
}
final String newclass = ClassListData.getInstance().getClass(player.getClassId()).getClassName();
player.store(false);
player.broadcastUserInfo();