[release] Custom chaos scrolls stats

Joined
Oct 12, 2005
Messages
1,293
Reaction score
70
this is for those who want something fun to do on custom servers, just some simple editing that took 5 mins lol.

UNDER : MapleItemInformationProvider.java
find public IItem scrollEquipWithId and ull see something like this. just replace those codes with these, whalla custom items XD. scrolling way.

i released this as a small test to see how ppl like me.

case 2049102:
int increase = 1;
if (Math.ceil(Math.random() * 100.0) <= 50)
increase = increase*-1;
if (nEquip.getStr() > 0) {
short newStat = (short)(nEquip.getStr()+Math.ceil(Math.random() * 25.0)*increase);
nEquip.setStr(newStat);
if (nEquip.getStr() < 0) {
short oldStat = 0;
nEquip.setStr(oldStat);
}
}
if (nEquip.getDex() > 0) {
short newStat = (short)(nEquip.getDex()+Math.ceil(Math.random() * 25.0)*increase);
nEquip.setDex(newStat);
if (nEquip.getDex() < 0) {
short oldStat = 0;
nEquip.setDex(oldStat);
}
}
if (nEquip.getInt() > 0) {
short newStat = (short)(nEquip.getInt()+Math.ceil(Math.random() * 25.0)*increase);
nEquip.setInt(newStat);
if (nEquip.getInt() < 0) {
short oldStat = 0;
nEquip.setInt(oldStat);
}
}
if (nEquip.getLuk() > 0) {
short newStat = (short)(nEquip.getLuk()+Math.ceil(Math.random() * 25.0)*increase);
nEquip.setLuk(newStat);
if (nEquip.getLuk() < 0) {
short oldStat = 0;
nEquip.setLuk(oldStat);
}
}
if (nEquip.getWatk() > 0) {
short newStat = (short)(nEquip.getWatk()+Math.ceil(Math.random() * 15.0)*increase);
nEquip.setWatk(newStat);
if (nEquip.getWatk() < 0) {
short oldStat = 0;
nEquip.setWatk(oldStat);
}
}
if (nEquip.getWdef() > 0) {
short newStat = (short)(nEquip.getWdef()+Math.ceil(Math.random() * 25.0)*increase);
nEquip.setWdef(newStat);
if (nEquip.getWdef() < 0) {
short oldStat = 0;
nEquip.setWdef(oldStat);
}
}
if (nEquip.getMatk() > 0) {
short newStat = (short)(nEquip.getMatk()+Math.ceil(Math.random() * 15.0)*increase);
nEquip.setMatk(newStat);
if (nEquip.getMatk() < 0) {
short oldStat = 0;
nEquip.setMatk(oldStat);
}
}
if (nEquip.getMdef() > 0) {
short newStat = (short)(nEquip.getMdef()+Math.ceil(Math.random() * 25.0)*increase);
nEquip.setMdef(newStat);
if (nEquip.getMdef() < 0) {
short oldStat = 0;
nEquip.setMdef(oldStat);
}
}
if (nEquip.getAcc() > 0) {
short newStat = (short)(nEquip.getAcc()+Math.ceil(Math.random() * 25.0)*increase);
nEquip.setAcc(newStat);
if (nEquip.getAcc() < 0) {
short oldStat = 0;
nEquip.setAcc(oldStat);
}
}
if (nEquip.getAvoid() > 0) {
short newStat = (short)(nEquip.getAvoid()+Math.ceil(Math.random() * 25.0)*increase);
nEquip.setAvoid(newStat);
if (nEquip.getAvoid() < 0) {
short oldStat = 0;
nEquip.setAvoid(oldStat);
}
}
if (nEquip.getSpeed() > 0) {
short newStat = (short)(nEquip.getSpeed()+Math.ceil(Math.random() * 20.0)*increase);
nEquip.setSpeed(newStat);
if (nEquip.getSpeed() < 0) {
short oldStat = 0;
nEquip.setSpeed(oldStat);
}
}
if (nEquip.getJump() > 0) {
short newStat = (short)(nEquip.getJump()+Math.ceil(Math.random() * 20.0)*increase);
nEquip.setJump(newStat);
if (nEquip.getJump() < 0) {
short oldStat = 0;
nEquip.setJump(oldStat);
}
}
if (nEquip.getHp() > 0) {
short newStat = (short)(nEquip.getHp()+Math.ceil(Math.random() * 100.0)*increase);
nEquip.setHp(newStat);
if (nEquip.getHp() < 0) {
short oldStat = 0;
nEquip.setHp(oldStat);
}
}
if (nEquip.getMp() > 0) {
short newStat = (short)(nEquip.getMp()+Math.ceil(Math.random() * 100.0)*increase);
nEquip.setMp(newStat);
if (nEquip.getMp() < 0) {
short oldStat = 0;
nEquip.setMp(oldStat);
}
}
break;
 
Last edited:
Back