edit: nvm
|
ok so here is the code that needs fixing :
case 404:
if (c.getItems().playerHasItem(18015,1) && c.getItems().playerHasItem(18016,10) && c.getItems().playerHasItem(18017,2) && c.getItems().playerHasItem(526,1) && c.getItems().freeSlots() >= 1) {
c.getItems().deleteItem(18015, 1);
c.getItems().deleteItem(18016, 10);
c.getItems().deleteItem(526, 1);
c.getItems().deleteItem(18017, 2);
c.getItems().addItem(12047, 1);
c.getPA().addSkillXP((1500), 22);
c.sendMessage("You Created A Spirit Wolf Pouch!");
} else {
c.sendMessage("You need a 2 gold charms, 10 shards, a pouch, and a bone");
}
break;
issue : i had 100k of each of those items click the npc it took ALL of them, requires less than 10 of each anyone know the issue?
edit: nvm
ofc theres something wronge or else i wouldnt post it =p
the problem is it takes everything instead of whats required, like say i have 100k of each of the items it doesnt take 1,1,2,10 it takes 100k,100k,100k,100k
i have no clue why it does that either
no idea what your trying todo
delete items things to:
c.getItems().deleteItem(12155, c.getItems().getItemSlot(12155), 1);
np
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |