Jump to content

[Share] Stuck augument fix ! [Both ways]


DominiQue

Recommended Posts

There are 2 ways I think :

Equip an 2handed wep and put a shield :)

Equip an one handed weapons ,equp shield and put a 2handed weapon in hand :)

 

File :

/**

*

* useitem.java

*

*/

 

 

FIX :

           if (activeChar.isFishing() && (itemId < 6535 || itemId > 6540))

           {

               // You cannot do anything else while fishing

               SystemMessage sm = new SystemMessage(SystemMessageId.CANNOT_DO_WHILE_FISHING_3);

               getClient().getActiveChar().sendPacket(sm);

               sm = null;

               return;

           }

 

+ L2Weapon curwep = activeChar.getActiveWeaponItem();

+            if (curwep != null)

+               {

+            if ((curwep.getItemType() == L2WeaponType.DUAL) && (item.getItemType() == L2WeaponType.NONE))

+                    {

+             activeChar.sendMessage("You are not allowed to do this.");

+             return;

+                    }

+             else if ((curwep.getItemType() == L2WeaponType.BOW) && (item.getItemType() == L2WeaponType.NONE))

+                    {

+         activeChar.sendMessage("You are not allowed to do this.");

+         return;

+                    }

+             else if ((curwep.getItemType() == L2WeaponType.BIGBLUNT) && (item.getItemType() == L2WeaponType.NONE))

+                    {

+         activeChar.sendMessage("You are not allowed to do this.");

+         return;

+                    }

+             else if ((curwep.getItemType() == L2WeaponType.BIGSWORD) && (item.getItemType() == L2WeaponType.NONE))

+                    {

+         activeChar.sendMessage("You are not allowed to do this.");

+         return;

+                    }

+             else if ((curwep.getItemType() == L2WeaponType.POLE) && (item.getItemType() == L2WeaponType.NONE))

+                    {

+         activeChar.sendMessage("You are not allowed to do this.");

+         return;

+                    }

+ else if ((curwep.getItemType() == L2WeaponType.DUALFIST) && (item.getItemType() == L2WeaponType.NONE))

+                    {

+         activeChar.sendMessage("You are not allowed to do this.");

+         return;

+                    }

+ else if ((curwep.getItemType() == L2WeaponType.DAGGER) && (item.getItemType() == L2WeaponType.DUALFIST))

+                    {

+         activeChar.sendMessage("You are not allowed to do this.");

+         return;

+                   }

+ else if ((curwep.getItemType() == L2WeaponType.DAGGER) && (item.getItemType() == L2WeaponType.POLE))

+                    {

+         activeChar.sendMessage("You are not allowed to do this.");

+         return;

+                    }

+ else if ((curwep.getItemType() == L2WeaponType.DAGGER) && (item.getItemType() == L2WeaponType.BIGBLUNT))

+                    {

+         activeChar.sendMessage("You are not allowed to do this.");

+         return;

+                    }

+ else if ((curwep.getItemType() == L2WeaponType.DAGGER) && (item.getItemType() == L2WeaponType.BIGSWORD))

+                    {

+         activeChar.sendMessage("You are not allowed to do this.");

+         return;

+                    }

+ else if ((curwep.getItemType() == L2WeaponType.DAGGER) && (item.getItemType() == L2WeaponType.BOW))

+                    {

+         activeChar.sendMessage("You are not allowed to do this.");

+         return;

+                    }

+ else if ((curwep.getItemType() == L2WeaponType.DAGGER) && (item.getItemType() == L2WeaponType.DUAL))

+                    {

+         activeChar.sendMessage("You are not allowed to do this.");

+         return;

+                    }

+ else if ((curwep.getItemType() == L2WeaponType.SWORD) && (item.getItemType() == L2WeaponType.DUALFIST))

+                    {

+         activeChar.sendMessage("You are not allowed to do this.");

+         return;

+                    }

+ else if ((curwep.getItemType() == L2WeaponType.SWORD) && (item.getItemType() == L2WeaponType.POLE))

+                    {

+         activeChar.sendMessage("You are not allowed to do this.");

+         return;

+                    }

+ else if ((curwep.getItemType() == L2WeaponType.SWORD) && (item.getItemType() == L2WeaponType.BIGBLUNT))

+                    {

+         activeChar.sendMessage("You are not allowed to do this.");

+         return;

+                    }

+ else if ((curwep.getItemType() == L2WeaponType.SWORD) && (item.getItemType() == L2WeaponType.BIGSWORD))

+                    {

+         activeChar.sendMessage("You are not allowed to do this.");

+         return;

+                    }

+ else if ((curwep.getItemType() == L2WeaponType.SWORD) && (item.getItemType() == L2WeaponType.BOW))

+                    {

+         activeChar.sendMessage("You are not allowed to do this.");

+         return;

+                    }

+ else if ((curwep.getItemType() == L2WeaponType.SWORD) && (item.getItemType() == L2WeaponType.DUAL))

+                    {

+         activeChar.sendMessage("You are not allowed to do this.");

+         return;

+                    }

+ else if ((curwep.getItemType() == L2WeaponType.BLUNT) && (item.getItemType() == L2WeaponType.DUALFIST))

+                    {

+         activeChar.sendMessage("You are not allowed to do this.");

+         return;

+                    }

+ else if ((curwep.getItemType() == L2WeaponType.BLUNT) && (item.getItemType() == L2WeaponType.POLE))

+                    {

+         activeChar.sendMessage("You are not allowed to do this.");

+         return;

+                    }

+ else if ((curwep.getItemType() == L2WeaponType.BLUNT) && (item.getItemType() == L2WeaponType.BIGBLUNT))

+                    {

+         activeChar.sendMessage("You are not allowed to do this.");

+         return;

+                    }

+ else if ((curwep.getItemType() == L2WeaponType.BLUNT) && (item.getItemType() == L2WeaponType.BIGSWORD))

+                    {

+         activeChar.sendMessage("You are not allowed to do this.");

+         return;

+                    }

+ else if ((curwep.getItemType() == L2WeaponType.BLUNT) && (item.getItemType() == L2WeaponType.BOW))

+                    {

+         activeChar.sendMessage("You are not allowed to do this.");

+         return;

+                    }

+ else if ((curwep.getItemType() == L2WeaponType.BLUNT) && (item.getItemType() == L2WeaponType.DUAL))

+                    {

+         activeChar.sendMessage("You are not allowed to do this.");

+         return;

+                    }

+                }

 

// Char cannot use item when dead

if (activeChar.isDead())

{

SystemMessage sm = new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED);

sm.addItemName(itemId);

getClient().getActiveChar().sendPacket(sm);

sm = null;

return;

}

 

 

CREDITS : V3ndetta[ME}
Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
  • 4 weeks later...

then sey as that weys, some ppl will fix that i think

 

and here you have same code but some shorter :)

 

            L2Weapon curwep = activeChar.getActiveWeaponItem();
            if(curwep != null)
            {
            	if((curwep.getItemType() == L2WeaponType.DUAL && item.getItemType() == L2WeaponType.NONE)
            		|| (curwep.getItemType() == L2WeaponType.BOW && item.getItemType() == L2WeaponType.NONE)
            		|| (curwep.getItemType() == L2WeaponType.BIGBLUNT && item.getItemType() == L2WeaponType.NONE)
            		|| (curwep.getItemType() == L2WeaponType.BIGBLUNT && item.getItemType() == L2WeaponType.NONE)
            		|| (curwep.getItemType() == L2WeaponType.POLE && item.getItemType() == L2WeaponType.NONE)
            		|| (curwep.getItemType() == L2WeaponType.DUALFIST && item.getItemType() == L2WeaponType.NONE)
            		|| (curwep.getItemType() == L2WeaponType.DAGGER && item.getItemType() == L2WeaponType.DUALFIST)
            		|| (curwep.getItemType() == L2WeaponType.DAGGER && item.getItemType() == L2WeaponType.POLE)
            		|| (curwep.getItemType() == L2WeaponType.DAGGER && item.getItemType() == L2WeaponType.BIGBLUNT)
            		|| (curwep.getItemType() == L2WeaponType.DAGGER && item.getItemType() == L2WeaponType.BIGSWORD)
            		|| (curwep.getItemType() == L2WeaponType.DAGGER && item.getItemType() == L2WeaponType.BOW)
            		|| (curwep.getItemType() == L2WeaponType.DAGGER && item.getItemType() == L2WeaponType.DUAL)
            		|| (curwep.getItemType() == L2WeaponType.SWORD && item.getItemType() == L2WeaponType.DUALFIST)
            		|| (curwep.getItemType() == L2WeaponType.SWORD && item.getItemType() == L2WeaponType.POLE)
            		|| (curwep.getItemType() == L2WeaponType.SWORD && item.getItemType() == L2WeaponType.BIGBLUNT)
            		|| (curwep.getItemType() == L2WeaponType.SWORD && item.getItemType() == L2WeaponType.BIGSWORD)
            		|| (curwep.getItemType() == L2WeaponType.SWORD && item.getItemType() == L2WeaponType.BOW)
            		|| (curwep.getItemType() == L2WeaponType.SWORD && item.getItemType() == L2WeaponType.DUAL)
            		|| (curwep.getItemType() == L2WeaponType.BLUNT && item.getItemType() == L2WeaponType.DUALFIST)
            		|| (curwep.getItemType() == L2WeaponType.BLUNT && item.getItemType() == L2WeaponType.POLE)
            		|| (curwep.getItemType() == L2WeaponType.BLUNT && item.getItemType() == L2WeaponType.BIGBLUNT)
            		|| curwep.getItemType() == L2WeaponType.BLUNT && item.getItemType() == L2WeaponType.BIGSWORD)
            		|| (curwep.getItemType() == L2WeaponType.BLUNT && item.getItemType() == L2WeaponType.BOW)
            		|| (curwep.getItemType() == L2WeaponType.BLUNT && item.getItemType() == L2WeaponType.DUAL))
            	{
            		activeChar.sendMessage("You are not allowed to do this.");
            		return;
            	}	
            }

Link to comment
Share on other sites

  • 3 months later...

credits to setekh from L2J-Archid.

Credits to vago... Anyway i said it once and again.. the packet protection of auguments is stupid.. CUS IT OVERLAP! use item listeners.

Locked

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • LGBTQ!! ⋐⋑ (209) 876-5519 Love Spells In Atlanta, GA Psychic Reading Black Magic Spells Marriage spells Divorce spells Psychic Readings | Astrology | Love Spells | Black Magic spells | Witchcraft Spells | Spell Caster | Voodoo spells | Marriage spells | Divorce spells | Attraction spells | Bring back lost lover spells REUNITE WITH AN EX LOVER IN 72 HOURS If your lover is gone, don’t be desperate anymore! You are a few clicks away from a prompt resolution of your problem: We will our spiritual powers to bring him/her back Let us show you our method with zero chances of rejection. Don’t waste your precious time; get your lover back NOW! MAKE HIM/HER LOVE ME Don’t wait for the deluge and make him or her love you now. This service will create a great alchemy between this person and you. In just a few weeks, you can make the person you dream of falling in love with you. We recommend you to combine this service with a Marriage ritual if you want this person to commit you. BREAK UP A RELATIONSHIP The perfect service to break up a relationship you don’t think legitimate. Your lover has gone with someone else Don’t hesitate to break them up as this ritual and prayer is very powerful and will Psychic Readings | Astrology | Love Spells | Black Magic spells | Witchcraft Spells | Spell Caster | Voodoo spells | Marriage spells | Divorce spells | Attraction spells | Bring back lost lover spells REUNITE WITH AN EX LOVER IN 72 HOURS If your lover is gone, don’t be desperate anymore! You are a few clicks away from a prompt resolution of your problem: We will our spiritual powers to bring him/her back Let us show you our method with zero chances of rejection. Don’t waste your precious time; get your lover back NOW! MAKE HIM/HER LOVE ME Don’t wait for the deluge and make him or her love you now. This service will create a great alchemy between this person and you. In just a few weeks, you can make the person you dream of falling in love with you. We recommend you to combine this service with a Marriage ritual if you want this person to commit you.
    • Psychic Readings | Astrology | Love Spells | Black Magic spells | Witchcraft Spells | Spell Caster | Voodoo spells | Marriage spells | Divorce spells | Attraction spells | Bring back lost lover spells REUNITE WITH AN EX LOVER IN 72 HOURS If your lover is gone, don’t be desperate anymore! You are a few clicks away from a prompt resolution of your problem: We will our spiritual powers to bring him/her back Let us show you our method with zero chances of rejection. Don’t waste your precious time; get your lover back NOW! MAKE HIM/HER LOVE ME Don’t wait for the deluge and make him or her love you now. This service will create a great alchemy between this person and you. In just a few weeks, you can make the person you dream of falling in love with you. We recommend you to combine this service with a Marriage ritual if you want this person to commit you. BREAK UP A RELATIONSHIP The perfect service to break up a relationship you don’t think legitimate. Your lover has gone with someone else Don’t hesitate to break them up as this ritual and prayer is very powerful and will Psychic Readings | Astrology | Love Spells | Black Magic spells | Witchcraft Spells | Spell Caster | Voodoo spells | Marriage spells | Divorce spells | Attraction spells | Bring back lost lover spells REUNITE WITH AN EX LOVER IN 72 HOURS If your lover is gone, don’t be desperate anymore! You are a few clicks away from a prompt resolution of your problem: We will our spiritual powers to bring him/her back Let us show you our method with zero chances of rejection. Don’t waste your precious time; get your lover back NOW! MAKE HIM/HER LOVE ME Don’t wait for the deluge and make him or her love you now. This service will create a great alchemy between this person and you. In just a few weeks, you can make the person you dream of falling in love with you. We recommend you to combine this service with a Marriage ritual if you want this person to commit you.
    • Psychic Readings | Astrology | Love Spells | Black Magic spells | Witchcraft Spells | Spell Caster | Voodoo spells | Marriage spells | Divorce spells | Attraction spells | Bring back lost lover spells REUNITE WITH AN EX LOVER IN 72 HOURS If your lover is gone, don’t be desperate anymore! You are a few clicks away from a prompt resolution of your problem: We will our spiritual powers to bring him/her back Let us show you our method with zero chances of rejection. Don’t waste your precious time; get your lover back NOW! MAKE HIM/HER LOVE ME Don’t wait for the deluge and make him or her love you now. This service will create a great alchemy between this person and you. In just a few weeks, you can make the person you dream of falling in love with you. We recommend you to combine this service with a Marriage ritual if you want this person to commit you. BREAK UP A RELATIONSHIP The perfect service to break up a relationship you don’t think legitimate. Your lover has gone with someone else Don’t hesitate to break them up as this ritual and prayer is very powerful and will Psychic Readings | Astrology | Love Spells | Black Magic spells | Witchcraft Spells | Spell Caster | Voodoo spells | Marriage spells | Divorce spells | Attraction spells | Bring back lost lover spells REUNITE WITH AN EX LOVER IN 72 HOURS If your lover is gone, don’t be desperate anymore! You are a few clicks away from a prompt resolution of your problem: We will our spiritual powers to bring him/her back Let us show you our method with zero chances of rejection. Don’t waste your precious time; get your lover back NOW! MAKE HIM/HER LOVE ME Don’t wait for the deluge and make him or her love you now. This service will create a great alchemy between this person and you. In just a few weeks, you can make the person you dream of falling in love with you. We recommend you to combine this service with a Marriage ritual if you want this person to commit you.
    • Psychic Readings | Astrology | Love Spells | Black Magic spells | Witchcraft Spells | Spell Caster | Voodoo spells | Marriage spells | Divorce spells | Attraction spells | Bring back lost lover spells REUNITE WITH AN EX LOVER IN 72 HOURS If your lover is gone, don’t be desperate anymore! You are a few clicks away from a prompt resolution of your problem: We will our spiritual powers to bring him/her back Let us show you our method with zero chances of rejection. Don’t waste your precious time; get your lover back NOW! MAKE HIM/HER LOVE ME Don’t wait for the deluge and make him or her love you now. This service will create a great alchemy between this person and you. In just a few weeks, you can make the person you dream of falling in love with you. We recommend you to combine this service with a Marriage ritual if you want this person to commit you. BREAK UP A RELATIONSHIP The perfect service to break up a relationship you don’t think legitimate. Your lover has gone with someone else Don’t hesitate to break them up as this ritual and prayer is very powerful and will Psychic Readings | Astrology | Love Spells | Black Magic spells | Witchcraft Spells | Spell Caster | Voodoo spells | Marriage spells | Divorce spells | Attraction spells | Bring back lost lover spells REUNITE WITH AN EX LOVER IN 72 HOURS If your lover is gone, don’t be desperate anymore! You are a few clicks away from a prompt resolution of your problem: We will our spiritual powers to bring him/her back Let us show you our method with zero chances of rejection. Don’t waste your precious time; get your lover back NOW! MAKE HIM/HER LOVE ME Don’t wait for the deluge and make him or her love you now. This service will create a great alchemy between this person and you. In just a few weeks, you can make the person you dream of falling in love with you. We recommend you to combine this service with a Marriage ritual if you want this person to commit you.
    • Psychic Readings | Astrology | Love Spells | Black Magic spells | Witchcraft Spells | Spell Caster | Voodoo spells | Marriage spells | Divorce spells | Attraction spells | Bring back lost lover spells REUNITE WITH AN EX LOVER IN 72 HOURS If your lover is gone, don’t be desperate anymore! You are a few clicks away from a prompt resolution of your problem: We will our spiritual powers to bring him/her back Let us show you our method with zero chances of rejection. Don’t waste your precious time; get your lover back NOW! MAKE HIM/HER LOVE ME Don’t wait for the deluge and make him or her love you now. This service will create a great alchemy between this person and you. In just a few weeks, you can make the person you dream of falling in love with you. We recommend you to combine this service with a Marriage ritual if you want this person to commit you. BREAK UP A RELATIONSHIP The perfect service to break up a relationship you don’t think legitimate. Your lover has gone with someone else Don’t hesitate to break them up as this ritual and prayer is very powerful and will Psychic Readings | Astrology | Love Spells | Black Magic spells | Witchcraft Spells | Spell Caster | Voodoo spells | Marriage spells | Divorce spells | Attraction spells | Bring back lost lover spells REUNITE WITH AN EX LOVER IN 72 HOURS If your lover is gone, don’t be desperate anymore! You are a few clicks away from a prompt resolution of your problem: We will our spiritual powers to bring him/her back Let us show you our method with zero chances of rejection. Don’t waste your precious time; get your lover back NOW! MAKE HIM/HER LOVE ME Don’t wait for the deluge and make him or her love you now. This service will create a great alchemy between this person and you. In just a few weeks, you can make the person you dream of falling in love with you. We recommend you to combine this service with a Marriage ritual if you want this person to commit you.
  • Topics

×
×
  • Create New...