Jump to content
  • 0

Question

Posted

Okay guys i think you all know the bug that when you use 2 handed weapon and change to shield to stuck augments. The problem is that in my server it works and i need a code to fix it. For example when you have 2 handed weapon to not be able to use shield. Any ideas? Searched but didnt found anything.

9 answers to this question

Recommended Posts

  • 0
Posted

           L2Weapon curwep = activeChar.getActiveWeaponItem();
           if (curwep != null)
           { 
			if ((curwep.getItemType() == L2WeaponType.BOW) && (item.getItemType() == L2WeaponType.NONE)) 
       			return; 
			else if ((curwep.getItemType() == L2WeaponType.BIGBLUNT) && (item.getItemType() == L2WeaponType.NONE)) 
       			return; 
			else if ((curwep.getItemType() == L2WeaponType.DUAL) && (item.getItemType() == L2WeaponType.NONE)) 
       			return; 
			else if ((curwep.getItemType() == L2WeaponType.DUALFIST) && (item.getItemType() == L2WeaponType.NONE))
       			return; 
			else if ((curwep.getItemType() == L2WeaponType.FIST) && (item.getItemType() == L2WeaponType.NONE)) 
       			return; 
			else if ((curwep.getItemType() == L2WeaponType.POLE) && (item.getItemType() == L2WeaponType.NONE)) 
       			return; 
			else if ((curwep.getItemType() == L2WeaponType.BIGSWORD) && (item.getItemType() == L2WeaponType.NONE)) 
       			return; 
           }

 

use search :)

  • 0
Posted

            L2Weapon curwep = activeChar.getActiveWeaponItem();
            if (curwep != null)
            { 
			if ((curwep.getItemType() == L2WeaponType.BOW) && (item.getItemType() == L2WeaponType.NONE)) 
        			return; 
			else if ((curwep.getItemType() == L2WeaponType.BIGBLUNT) && (item.getItemType() == L2WeaponType.NONE)) 
        			return; 
			else if ((curwep.getItemType() == L2WeaponType.DUAL) && (item.getItemType() == L2WeaponType.NONE)) 
        			return; 
			else if ((curwep.getItemType() == L2WeaponType.DUALFIST) && (item.getItemType() == L2WeaponType.NONE))
        			return; 
			else if ((curwep.getItemType() == L2WeaponType.FIST) && (item.getItemType() == L2WeaponType.NONE)) 
        			return; 
			else if ((curwep.getItemType() == L2WeaponType.POLE) && (item.getItemType() == L2WeaponType.NONE)) 
        			return; 
			else if ((curwep.getItemType() == L2WeaponType.BIGSWORD) && (item.getItemType() == L2WeaponType.NONE)) 
        			return; 
            }

 

use search :)

Thanks so much xaddytzu :) I really dont understand why you have only 2 karma. You are the most helpfun person in this forum and some members have more karma than you and you are making better job. Thanks again.

 

  • 0
Posted

You welcome.

 

Most users hate me. I don't know why but I'm still with you guys :D

Dont worry they are just Haters... They will always exist, even if they dont deserve it xD

  • 0
Posted

            L2Weapon curwep = activeChar.getActiveWeaponItem();
            if (curwep != null)
            { 
			if ((curwep.getItemType() == L2WeaponType.BOW) && (item.getItemType() == L2WeaponType.NONE)) 
        			return; 
			else if ((curwep.getItemType() == L2WeaponType.BIGBLUNT) && (item.getItemType() == L2WeaponType.NONE)) 
        			return; 
			else if ((curwep.getItemType() == L2WeaponType.DUAL) && (item.getItemType() == L2WeaponType.NONE)) 
        			return; 
			else if ((curwep.getItemType() == L2WeaponType.DUALFIST) && (item.getItemType() == L2WeaponType.NONE))
        			return; 
			else if ((curwep.getItemType() == L2WeaponType.FIST) && (item.getItemType() == L2WeaponType.NONE)) 
        			return; 
			else if ((curwep.getItemType() == L2WeaponType.POLE) && (item.getItemType() == L2WeaponType.NONE)) 
        			return; 
			else if ((curwep.getItemType() == L2WeaponType.BIGSWORD) && (item.getItemType() == L2WeaponType.NONE)) 
        			return; 
            }

 

use search :)

where add this?

Guest
This topic is now closed to further replies.


×
×
  • Create New...