Nvm didn't read it fully..I don't think theres a way that is already in servers, you would have to edit it youself
|
Ok, how would I edit this code
That's the code I want to make it that they can get 3 different things from the chest at random. Can I use something to make this happen?Code:if (UsedOnObjectID == 2783 && playerHasItem(436)) { deleteItem(436, 1); addItem(995, 2000); }
Nvm didn't read it fully..I don't think theres a way that is already in servers, you would have to edit it youself
Code:private int[] items { 995,1038,1049 };for 3 chancesCode:if (UsedOnObjectID == 2783 && playerHasItem(436)) { deleteItem(436, 1); addItem(items[misc.random(items.length)], 1); }
Code:if (UsedOnObjectID == 2783 && playerHasItem(436)) { deleteItem(436, 1); for(int x = 0; x < 3; x++){ addItem(items[misc.random(items.length)], 1); } }
@ bluurr
Code:client.java:18: ';' expected private int[] items {8002,13643,13645,13664}; ^ client.java:18: not a statement private int[] items {8002,13643,13645,13664}; ^ client.java:18: ';' expected private int[] items {8002,13643,13645,13664};
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |