int lol(){
int r=(int)(Math.random()*farmer.length);
int l=(int)(Math.random()*farmer[r].length);
return farmer[r][l];
}
|
|
title say all..
its do not work like thisCode:int[][] farmer = { /**item id, lowest amo, random amo, chance**/ {995, 500, 2520, 0}, /**money**/ {555, 500, 2520, 0}, /**Water Rune**/ {560, 500, 2520, 0} /**Death Rune**/ };
Code:int RandomFarmer() { return farmer[(int)(Math.random()*farmer.length)][]; }
| « Attacking other players with mage ANYWHERE | How do i remove the white mist in the background ( Picture ) » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |