|
I've added an NPC to my PI source, that is meant to distribute runes, arrows, and food, while taking away a specific amount of cash. The code is:
if (c.teleAction == 7 && c.getItems().playerHasItem(995,2000000)) {
c.getItems().addItem(555,6000);
c.getItems().addItem(560,4000);
c.getItems().addItem(565,2000);
c.getItems().removeItem(995,2000000);
It give the player runes, but does not delete cash. Help please.
Sorry, there are four options and I made that mistake for that one, but the others still don't work.
It kinda worked, but it deleted all of my cash, not just 2m
Any suggestions?
Code:if (c.teleAction == 7){ if(c.getItems().playerHasItem(995,2000000)) { c.getItems().removeItem(995,2000000); c.getItems().addItem(555,6000); c.getItems().addItem(560,4000); c.getItems().addItem(565,2000); } }
Thanks
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |