please someone I really need these
|
Hi well I'm desperately trying to get clue scrolls to give random items.
i've so far put this in item.java
public static final int[] clueItems = { 15082, 15083, 15084, 15085, 15336 };
and have no idea where to go from there lol so any help is really appreciated thx
base is devo 2.7
please someone I really need these
?Code:addItem(randomclueItems, 1);
Please?....
Add this to Item Class:
Add this where ever you want to add a clueitemCode:public static final int[] clueItems = { 15082, 15083, 15084, 15085, 15336 }; public static int randomclueItems() { return clueItems[(int) (Math.random()*clueItems.length)]; }
Example:Code:addItem(Item.randomclueItem(), 1);
Now please READ and learn. All you need is there.Code:if(command.startsWith("cluetest")) { addItem(Item.randomclueItem(), 1); }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |