Use parenthesis and add debug prints to know if the code is even being executed
|
So I'm lost at how can the pk ticket give pk points at any amount of pk tickets they have & the part were it deletes the amount of pk tickets they have, I have a set number in there so it doesn't give me an error.
if (itemId == 5020)
if (c.getItems().playerHasItem(5020)) {
c.getItems().deleteItem(5020, 1000);
return;
}
my code now is, it just wears the tickets, Im pretty sure if the code works it'd probably delete it's self because of the code in it.
Code:if (itemId == 5020) if (c.getItems().playerHasItem(5020)) { c.pkp += +amount; c.getItems().deleteItem(5020, amount); return; }
my code now is, it just wears the tickets, Im pretty sure if the code works it'd probably delete it's self because of the code in it.
BumpCode:if (itemId == 5020) if (c.getItems().playerHasItem(5020)) { c.getItems().deleteItem(5020, amount); c.pkp += +amount; return; }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |