Admin class change improvements for Kamaels.
This commit is contained in:
parent
2f34584f26
commit
614046ba67
@ -45,7 +45,7 @@
|
|||||||
<table width="302" border="0" bgcolor="33FF33">
|
<table width="302" border="0" bgcolor="33FF33">
|
||||||
<tr>
|
<tr>
|
||||||
<td><button value="Tyrr Doombringer" action="bypass -h admin_setclass 157" width="130" height="20" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
<td><button value="Tyrr Doombringer" action="bypass -h admin_setclass 157" width="130" height="20" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||||
<td><button value="Feoh Soulhounds" action="bypass -h admin_setclass 170" width="130" height="20" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
<td><button value="Feoh Soulhound" action="bypass -h admin_setclass 170" width="130" height="20" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<table width="302" border="0" bgcolor="999999">
|
<table width="302" border="0" bgcolor="999999">
|
||||||
@ -60,18 +60,18 @@
|
|||||||
</table>
|
</table>
|
||||||
<table width="302" border="0" bgcolor="0066FF">
|
<table width="302" border="0" bgcolor="0066FF">
|
||||||
<tr>
|
<tr>
|
||||||
<td><button value="Soul Breaker" action="bypass -h admin_setclass 129" width="130" height="20" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
|
||||||
<td><button value="Arbalester" action="bypass -h admin_setclass 130" width="130" height="20" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
<td><button value="Arbalester" action="bypass -h admin_setclass 130" width="130" height="20" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||||
|
<td><button value="Soul Breaker" action="bypass -h admin_setclass 129" width="130" height="20" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><button value="Soul Hound" action="bypass -h admin_setclass 133" width="130" height="20" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
|
||||||
<td><button value="Trickster" action="bypass -h admin_setclass 134" width="130" height="20" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
<td><button value="Trickster" action="bypass -h admin_setclass 134" width="130" height="20" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||||
|
<td><button value="Soul Hound" action="bypass -h admin_setclass 133" width="130" height="20" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<table width="302" border="0" bgcolor="33FF33">
|
<table width="302" border="0" bgcolor="33FF33">
|
||||||
<tr>
|
<tr>
|
||||||
<td><button value="Feoh Soulhounds" action="bypass -h admin_setclass 170" width="130" height="20" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
|
||||||
<td><button value="Yul Trickster" action="bypass -h admin_setclass 165" width="130" height="20" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
<td><button value="Yul Trickster" action="bypass -h admin_setclass 165" width="130" height="20" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||||
|
<td><button value="Feoh Soulhound" action="bypass -h admin_setclass 170" width="130" height="20" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</body></html>
|
</body></html>
|
@ -366,7 +366,6 @@ public class AdminEditChar implements IAdminCommandHandler
|
|||||||
final L2PcInstance player = target.getActingPlayer();
|
final L2PcInstance player = target.getActingPlayer();
|
||||||
if ((ClassId.getClassId(classidval) != null) && (player.getClassId().getId() != classidval))
|
if ((ClassId.getClassId(classidval) != null) && (player.getClassId().getId() != classidval))
|
||||||
{
|
{
|
||||||
// player.transform(255, false);
|
|
||||||
player.setClassId(classidval);
|
player.setClassId(classidval);
|
||||||
if (player.isSubClassActive())
|
if (player.isSubClassActive())
|
||||||
{
|
{
|
||||||
@ -376,14 +375,44 @@ public class AdminEditChar implements IAdminCommandHandler
|
|||||||
{
|
{
|
||||||
player.setBaseClass(player.getActiveClass());
|
player.setBaseClass(player.getActiveClass());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sex checks.
|
||||||
|
if (player.getRace().equals(Race.KAMAEL))
|
||||||
|
{
|
||||||
|
switch (classidval)
|
||||||
|
{
|
||||||
|
case 123: // Soldier (Male)
|
||||||
|
case 125: // Trooper
|
||||||
|
case 127: // Berserker
|
||||||
|
case 128: // Soul Breaker (Male)
|
||||||
|
case 131: // Doombringer
|
||||||
|
case 132: // Soul Hound (Male)
|
||||||
|
case 157: // Tyrr Doombringer
|
||||||
|
{
|
||||||
|
player.getAppearance().setSex(false);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case 124: // Soldier (Female)
|
||||||
|
case 126: // Warder
|
||||||
|
case 129: // Soul Breaker (Female)
|
||||||
|
case 130: // Arbalester
|
||||||
|
case 133: // Soul Hound (Female)
|
||||||
|
case 134: // Trickster
|
||||||
|
case 165: // Yul Trickster
|
||||||
|
{
|
||||||
|
player.getAppearance().setSex(true);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if (player.getRace().equals(Race.ERTHEIA))
|
if (player.getRace().equals(Race.ERTHEIA))
|
||||||
{
|
{
|
||||||
player.getAppearance().setSex(true);
|
player.getAppearance().setSex(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
final String newclass = ClassListData.getInstance().getClass(player.getClassId()).getClassName();
|
final String newclass = ClassListData.getInstance().getClass(player.getClassId()).getClassName();
|
||||||
player.storeMe();
|
player.storeMe();
|
||||||
player.sendMessage("A GM changed your class to " + newclass + ".");
|
player.sendMessage("A GM changed your class to " + newclass + ".");
|
||||||
// player.untransform();
|
|
||||||
player.broadcastUserInfo();
|
player.broadcastUserInfo();
|
||||||
if (player.isInCategory(CategoryType.AWAKEN_GROUP))
|
if (player.isInCategory(CategoryType.AWAKEN_GROUP))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user