Here's my code.
Code:
if(NPCID == 276){
if(pkpoints > 1) {
addItem(6529, pkpoints);
pkpoints = 0;
sM("You recieve the number of pkpoints you had in a currency form.");
sM("Remember, 'currency form' is only for use in trading other players.");
} else {
if (playerHasItem(6529)) {
pkpoints = amountOfItem(6529);
deleteItem(6529, 999999999);
sM("Your pkpoints have been converted back into non-currency form.");
sM("You can now exchange pkpoints with npcs but not players.");
}
}
}
The part of my code not working is this.
Code:
if (playerHasItem(6529)) {
pkpoints = amountOfItem(6529);
deleteItem(6529, 999999999);
sM("Your pkpoints have been converted back into non-currency form.");
sM("You can now exchange pkpoints with npcs but not players.");
}
It doesn't give me the proper amount of pkpoints, it only gives me 1, please help? And yes I'm using delta.