ok tnx i read guide but i have more one question
so i need import this is L2PcInstance.java
but my code need like this ?
@@ -8425,4 +8425,6 @@
public boolean addSubClass(int classId, int classIndex)
{
+ L2PcInstance player = getClient().getActiveChar();
+
if (getTotalSubClasses() == 3 || classIndex == 0)
return false;
@@ -8430,4 +8432,8 @@
if (getSubClasses().containsKey(classIndex))
return false;
+
+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_HOLD_1);
+ player.setIsParalyzed(true);
+ player.sendMessage("You are paralized untill your subclass load.");
// Note: Never change _classIndex in any method other than setActiveClass().
@@ -8492,4 +8498,8 @@
if (Config.DEBUG)
_log.info(getName() + " was given " + getAllSkills().length + " skills for their new sub class.");
+
+ player.setIsParalyzed(false);
+ player.stopAbnormalEffect(L2Character.ABNORMAL_EFFECT_HOLD_1);
+ player.sendMessage("You are unparalized.");
return true;
or need like this :
public boolean addSubClass(int classId, int classIndex)
{
+ L2PcInstance player = getClient().getActiveChar();
+
if (getTotalSubClasses() == 3 || classIndex == 0)
return false;
@@ -8430,4 +8432,8 @@
if (getSubClasses().containsKey(classIndex))
return false;
+
+ player.startAbnormalEffect(L2Character.ABNORMAL_EFFECT_HOLD_1);
+ player.setIsParalyzed(true);
+ player.sendMessage("You are paralized untill your subclass load.");
// Note: Never change _classIndex in any method other than setActiveClass().
@@ -8492,4 +8498,8 @@
if (Config.DEBUG)
_log.info(getName() + " was given " + getAllSkills().length + " skills for their new sub class.");
+
+ player.setIsParalyzed(false);
+ player.stopAbnormalEffect(L2Character.ABNORMAL_EFFECT_HOLD_1);
+ player.sendMessage("You are unparalized.");
return true;