Jump to content
  • 0

[help] When changing Sub-Class Unequiping Weapon


Question

Posted

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!

4 answers to this question

Recommended Posts

  • 0
Posted

Thats a poor code,there are ways to fix it without bullshits like paralyze or disarming.

Btw,thats not what you have to change m8.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock