Nevermind I got it! Woot!
|
I'm making a minigame for my server and I need to know how to make it so that if you have a certain amount of keys you can use them on a chest and get items?
Help would be appreciated.
this is what I have right now, would this work?
if(objectID == 2566){
if(playerHasItem(709, 5)) {
deleteItem(709, getItemSlot(709), 1);
addItem(8002, 1);
addItem(995,1000000);
sM("You search the chest and find some crap");
} else
sM("You need 5 keys to obtain the reward!");
}
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |