Jump to content
  • 0

[help] When changing Sub-Class Unequiping Weapon


EdenEternal

Question

hello maxchaters ! i have problem on my pack!

 

when i'm changing Sub-Class weapon is disarmed and many times is disappear!!!

 

how to fix this?

 

i think for here

 

model.actor.instande.L2pcInstance

 

    /**
     * Changes the character's class based on the given class index.
     * <BR><BR>
     * An index of zero specifies the character's original (base) class,
     * while indexes 1-3 specifies the character's sub-classes respectively.
     *
     * @param classIndex
     */
    public boolean setActiveClass(int classIndex)
    {
        for (L2ItemInstance temp : getInventory().getAugmentedItems())
            if (temp != null && temp.isEquipped()) temp.getAugmentation().removeBoni(this);
        
        if(_forceBuff != null)
            abortCast();

	for(L2Character character : getKnownList().getKnownCharacters())
	{
		if(character.getForceBuff() != null && character.getForceBuff().getTarget() == this)
			character.abortCast();
	}

        store();

but i don't know what change!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...