Hello. I'm korean.
While granting random Watk to an order,An error has occurred.
The Watk is not rising.
Please see the source below to see what the problem is
Or can I add it randomly in different ways?
Please tell me how
help me!
Sorry for my bad English Speak
ItemInformation.java
case 2047814:
nEquip.setStr((short) (nEquip.getStr() + 3));
nEquip.setInt((short) (nEquip.getInt() + 3));
nEquip.setDex((short) (nEquip.getDex() + 3));
nEquip.setLuk((short) (nEquip.getLuk() + 3));
nEquip.setWatk((short) (nEquip.getMatk() + Randomizer.ScrollRand(9, 11)));break;
Randomizer.java
public static int ScrollRand(int min, int max) {
int a = 0;
do {
a = nextInt(max + 1);
}
while (a >= min);
return a;
}
While granting random Watk to an order,An error has occurred.
The Watk is not rising.
Please see the source below to see what the problem is
Or can I add it randomly in different ways?
Please tell me how
help me!
Sorry for my bad English Speak
ItemInformation.java
case 2047814:
nEquip.setStr((short) (nEquip.getStr() + 3));
nEquip.setInt((short) (nEquip.getInt() + 3));
nEquip.setDex((short) (nEquip.getDex() + 3));
nEquip.setLuk((short) (nEquip.getLuk() + 3));
nEquip.setWatk((short) (nEquip.getMatk() + Randomizer.ScrollRand(9, 11)));break;
Randomizer.java
public static int ScrollRand(int min, int max) {
int a = 0;
do {
a = nextInt(max + 1);
}
while (a >= min);
return a;
}