Thread: 2Handed Weapons Glitch - Delta

Results 1 to 6 of 6
  1. #1 2Handed Weapons Glitch - Delta 
    Banned

    Join Date
    May 2009
    Posts
    1,387
    Thanks given
    21
    Thanks received
    14
    Rep Power
    0
    The glitch when you have a 2 handed weapon equipped and then weild a shield without the requirements, which unequips your weapon but still keeps your strength bonus and allows you to hit at normal speed.

    I tried fixing it but had no success. Before you ask, I have searched for the fix.

    Can anyone help?
     

  2. #2  
    Donator


    Join Date
    Feb 2009
    Age
    30
    Posts
    2,128
    Thanks given
    261
    Thanks received
    280
    Rep Power
    563
    just make a method if your wearing two things like obby maul and steel kite remove one of the items
     

  3. #3  
    Banned

    Join Date
    May 2009
    Posts
    1,387
    Thanks given
    21
    Thanks received
    14
    Rep Power
    0
    Quote Originally Posted by b a l l a View Post
    just make a method if your wearing two things like obby maul and steel kite remove one of the items
    That isnt the problem. If you have a defence level of 1 and try equipping a steel kite whilst weilding a 2handed weapon, the steel kite wont equip (obviously), however the obby maul will also unequip except you will still be left with the bonuses.

    I tried adding this:

    Code:
    for (int element : Item.shields) {
    			if ((targetSlot == playerShield)
    					&& (playerEquipment[playerWeapon] != -1)
    					&& (Item.itemTwoHanded[playerWeapon] == true)) {
    				remove(playerEquipment[playerWeapon], playerWeapon) = false;
    			}		
    		}
    but it came out with an error on the last line.

    Im not exactly a pro coder, as you can see .
     

  4. #4  
    sυввч

    Sub's Avatar
    Join Date
    Aug 2007
    Age
    24
    Posts
    4,352
    Thanks given
    1,205
    Thanks received
    359
    Rep Power
    2845
    there should be a reset bonus method, i had in my old server, lemme dig it out for you cuz
     

  5. #5  
    Registered Member
    Join Date
    Jul 2008
    Posts
    51
    Thanks given
    9
    Thanks received
    0
    Rep Power
    74
    put that in the code

    Code:
    ResetBonus();
    if you dont got this method add this :

    Code:
    	public void ResetBonus() {
    		for (int i = 0; i < playerBonus.length; i++) {
    			playerBonus[i] = 0;
    		}
    	}
     

  6. #6  
    Banned

    Join Date
    May 2009
    Posts
    1,387
    Thanks given
    21
    Thanks received
    14
    Rep Power
    0
    Still need a fix, the fix above didnt work.
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •