- Joined
- Aug 1, 2006
- Messages
- 357
- Reaction score
- 68
I was bored so i made a simple drop generator for myself a while back so i can add multiple drops to a mob (or mobs) fast.
Its pretty easy to use.
Source:
save it as myProject.java and make a bat file in the folder the generator is with these contents:
To modify monster id and items, is a simple array.
Put all monster ids in mobId array, and put all items in items array.
You can also modify minimum quantity, maximum quantity and chance.
Note this is for sources that use the drop_data table.
After your done, run the bat and just select all the text in the bat and enjoy.
Its pretty easy to use.
Source:
Code:
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class generate{
int[] mobId = {8820001};
int chance = 30000; //chance
byte minq = 1; //minimum quantity
byte maxq = 1; //maximum quantity
int[] items = {1342011, 1342012, 1962002, 1972002, 1942002, 1012200};
public String generate(){
String query = "insert into drop_data\r\n(dropperid, itemid,
minimum_quantity, maximum_quantity, chance)\r\nvalues\r\n";
for(byte m = 0; m < mobId.length; m++){
for(byte i = 0;i < items.length; i++){
query += "(" + mobId[m] + ", " + items[i] +", " + minq + ", " + maxq +
", "+chance+"),\r\n";
}
}
return query;
}
}
class main{
public static String addSemiColon(){
generate staticGenerate = new generate();
String raw = staticGenerate.generate();
int length = raw.length();
raw = raw.substring(0, length -3);
raw += ";\r\n";
return raw;
}
public static void main(String args[]){
System.out.print(addSemiColon());
}
}
save it as myProject.java and make a bat file in the folder the generator is with these contents:
Code:
@echo off
javac myProject.java
java main
pause
To modify monster id and items, is a simple array.
Put all monster ids in mobId array, and put all items in items array.
You can also modify minimum quantity, maximum quantity and chance.
Note this is for sources that use the drop_data table.
After your done, run the bat and just select all the text in the bat and enjoy.