Switching available classes one after another.

Thanks to nasseka.
This commit is contained in:
MobiusDevelopment
2021-11-18 00:07:43 +00:00
parent 9e39c83dfe
commit c155a80e4c
8 changed files with 280 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket;
import org.l2jmobius.gameserver.network.serverpackets.PlaySound;
import org.l2jmobius.gameserver.network.serverpackets.UserInfo;
import org.l2jmobius.gameserver.network.serverpackets.classchange.ExClassChangeSetAlarm;
import org.l2jmobius.gameserver.network.serverpackets.elementalspirits.ElementalSpiritInfo;
/**
@@ -232,6 +233,13 @@ public class ExRequestClassChange implements IClientIncomingPacket
player.broadcastUserInfo();
player.sendSkillList();
player.sendPacket(new PlaySound("ItemSound.quest_fanfare_2"));
if (Config.DISABLE_TUTORIAL && !player.isInCategory(CategoryType.FOURTH_CLASS_GROUP) //
&& ((player.isInCategory(CategoryType.SECOND_CLASS_GROUP) && (playerLevel >= 38)) //
|| (player.isInCategory(CategoryType.THIRD_CLASS_GROUP) && (playerLevel >= 76))))
{
player.sendPacket(ExClassChangeSetAlarm.STATIC_PACKET);
}
}
}
}