hmm
Code:if (playerEquipment[playerShield] == 7336 && (playerEquipment[playerWeapon] == 4718)){ remove(playerEquipment[playerWeapon], 4718); sendMessage(" You cant equip a 2h weapon and a shield "); }
|
can someone help me to stop this bug pls
i can wield bow and kite ,d axe with kite etc in the same time
pls help me
i added this in process but dont work(
if (playerEquipment[playerShield] == 7336 && (playerEquipment[playerWeapon] == 4718)){
remove(playerEquipment[playerWeapon], 3);
sendMessage(" You cant equip a 2h weapon and a shield ");
}
if (playerEquipment[playerWeapon] == 4718 && (playerEquipment[playerShield] == 7336)){
remove(playerEquipment[playerWeapon], 3);
sendMessage(" You cant equip a 2h weapon and a shield ");
}
i use devo 2,7 base!pls help me i wil rep u+++
hmm
Code:if (playerEquipment[playerShield] == 7336 && (playerEquipment[playerWeapon] == 4718)){ remove(playerEquipment[playerWeapon], 4718); sendMessage(" You cant equip a 2h weapon and a shield "); }
i just changed his code to remove the right item lol
in what class?can u tell me what item is added like 2h?or a two hands weapon pleaseadd it at the other 2h swords, find 2h somewhere in the files, i know there there.
int targetSlot = 0;
targetSlot = itemType(wearID);
int[] two_hand = { 1319, 4718, 4726, 1409, 4710, 7158 };
for (int element : two_hand) {
if ((wearID == element) && (playerEquipment[playerShield] > 0)) {
if (playerHasItem(-1)) {
addItem(playerEquipment[playerShield], 1);
playerEquipment[playerShield] = -1;
} else {
CAM().sendMessage("You can't wear this weapon with a shield");
return false;
}
}
if ((itemType(wearID) == playerShield)
&& (playerEquipment[playerWeapon] == element)) {
if (playerHasItem(-1)) {
addItem(playerEquipment[playerWeapon], 1);
playerEquipment[playerWeapon] = -1;
} else {
CAM().sendMessage("You can't wear a shield with this weapon");
return false;
}
}
look my dh axe is here but if i have my inventary full u can wear a kite but he delete ur weapon
hmm
how i fix this?
someone pls?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |