Show us your java file that has item equipting and taking off (not really sure how to write it)
I can probably fix, It's just idk how delta is organized.
|
Hey Rune-Server! I need help to fix Dupe in my Server. I will rep++ and thanks to who help me Here I upload a video for easy you all to watch how the Dupe Way. If you know any tutorial that can fix this please post the link here or the tutorial
Note :"I WILL REP++ AND THANKS TO WHO HELP ME"
Show us your java file that has item equipting and taking off (not really sure how to write it)
I can probably fix, It's just idk how delta is organized.
explain how it works to me. i didnt watch the video.
THIS ONE ?
Code:for (int element : two_hand) { if ((wearID == element) && (playerEquipment[playerShield] > 0)) { if (playerHasItem(-1)) { addItem(playerEquipment[playerShield], 1); playerEquipment[playerShield] = -1; playerEquipmentN[playerShield] = 0; setEquipment(-1, 0, playerShield); } else { sM("Not enough space in your inventory."); return false; } } if ((itemType(wearID) == playerShield) && (playerEquipment[playerWeapon] == element)) { if (playerHasItem(-1)) { addItem(playerEquipment[playerWeapon], 1); playerEquipment[playerWeapon] = -1; playerEquipmentN[playerWeapon] = 0; setEquipment(-1, 0, playerWeapon); } else { sM("Not enough space in your inventory."); return false; } }
Remove the lines i marked with redfor (int element : two_hand) {
if ((wearID == element) && (playerEquipment[playerShield] > 0)) {
if (playerHasItem(-1)) {
addItem(playerEquipment[playerShield], 1);
playerEquipment[playerShield] = -1;
playerEquipmentN[playerShield] = 0;
setEquipment(-1, 0, playerShield);
} else {
sM("Not enough space in your inventory.");
return false;
}
}
if ((itemType(wearID) == playerShield)
&& (playerEquipment[playerWeapon] == element)) {
if (playerHasItem(-1)) {
addItem(playerEquipment[playerWeapon], 1);
playerEquipment[playerWeapon] = -1;
playerEquipmentN[playerWeapon] = 0;
setEquipment(-1, 0, playerWeapon);
} else {
sM("Not enough space in your inventory.");
return false;
}
}
what delta base r u using
You sure you actually compiled and re ran server...? Because that does look like it might be the fix.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |