Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P L2jFrozen_GameServer
- Index: head-src/com/l2jfrozen/gameserver/model/base/ClassId.java
- ===================================================================
- --- head-src/com/l2jfrozen/gameserver/model/base/ClassId.java (revision 1004)
- +++ head-src/com/l2jfrozen/gameserver/model/base/ClassId.java (working copy)
- @@ -519,6 +519,17 @@
- {
- return _parent;
- }
- +
- + /**
- + * @return to the first class
- + */
- + public final ClassId getFirstClass()
- + {
- + if (_parent == null)
- + return this;
- +
- + return _parent.getFirstClass();
- + }
- public static ClassId getClassIdByOrdinal(int id){
- Index: head-src/com/l2jfrozen/gameserver/handler/admincommandhandlers/AdminAio.java
- ===================================================================
- --- head-src/com/l2jfrozen/gameserver/handler/admincommandhandlers/AdminAio.java (revision 1004)
- +++ head-src/com/l2jfrozen/gameserver/handler/admincommandhandlers/AdminAio.java (working copy)
- @@ -27,6 +27,7 @@
- import com.l2jfrozen.Config;
- import com.l2jfrozen.gameserver.datatables.GmListTable;
- import com.l2jfrozen.gameserver.handler.IAdminCommandHandler;
- +import com.l2jfrozen.gameserver.model.L2Skill;
- import com.l2jfrozen.gameserver.model.L2World;
- import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
- import com.l2jfrozen.gameserver.network.serverpackets.EtcStatusUpdate;
- @@ -198,6 +199,10 @@
- if(days > 0)
- {
- + _player.setClassId(_player.getClassId().getFirstClass().getId());
- + for (L2Skill skill : _player.getAllSkills())
- + _player.removeSkill(skill);
- +
- _player.setAio(true);
- _player.setEndTime("aio", days);
- _player.getStat().addExp(_player.getStat().getExpForLevel(81));
- Index: head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java
- ===================================================================
- --- head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java (revision 1004)
- +++ head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java (working copy)
- @@ -10348,18 +10348,6 @@
- }
- }
- }
- - if(player.getClassIndex() == 0 && activeClassId != player.getBaseClass())
- - {
- - // Subclass in use but doesn't exist in DB -
- - // a possible restart-while-modifysubclass cheat has been attempted.
- - // Switching to use base class
- - player.setClassId(player.getBaseClass());
- - _log.warning("Player " + player.getName() + " reverted to base class. Possibly has tried a relogin exploit while subclassing.");
- - }
- - else
- - {
- - player._activeClass = activeClassId;
- - }
- player.setApprentice(rset.getInt("apprentice"));
- player.setSponsor(rset.getInt("sponsor"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement