just make a method if your wearing two things like obby maul and steel kite remove one of the items
|
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?
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:
but it came out with an error on the last line.Code:for (int element : Item.shields) { if ((targetSlot == playerShield) && (playerEquipment[playerWeapon] != -1) && (Item.itemTwoHanded[playerWeapon] == true)) { remove(playerEquipment[playerWeapon], playerWeapon) = false; } }
Im not exactly a pro coder, as you can see .
there should be a reset bonus method, i had in my old server, lemme dig it out for you cuz
put that in the code
if you dont got this method add this :Code:ResetBonus();
Code:public void ResetBonus() { for (int i = 0; i < playerBonus.length; i++) { playerBonus[i] = 0; } }
Still need a fix, the fix above didnt work.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |