טוב, אז זה כמו ה potential שיש בגלובאל, אבל בגלל שאין דבר כזה ב 83, זה פשוט מוסיף לחפץ סטאטים גבוהים יותר
הערה: המערכת בנוייה ל MoopleDEV בלבד. אם אתם רוצים להוסיף אותה לריפאק אחר, תצטרכו לשנות כמה דברים.
הנה כמה תמונות:
בקובץ MapleItemInformationProvider.java שנמצא בתיקייה server
תוסיפו את זה:
מתחת לזה:קוד PHP:private static short getRandStat(short defaultValue, int maxRange, short additional) {
if (defaultValue == 0) {
return 0;
}
int lMaxRange = (int) Math.min(Math.ceil(defaultValue * 0.1), maxRange);
return (short) ((defaultValue - lMaxRange) + Math.floor(Randomizer.nextDouble() * (lMaxRange * 2 + 1 * additional)));
}
public Equip randomizeStats(MapleClient c, Equip equip) {
short x = 1;
if (Math.ceil(Math.random() * 100.0) <= 25) {
x = 30;
for (MapleCharacter chr : c.getPlayer().getMap().getCharacters())
chr.dropMessage(6, "An equip with potential stats has dropped!");
}
equip.setStr(getRandStat(equip.getStr(), 5, x));
equip.setDex(getRandStat(equip.getDex(), 5, x));
equip.setInt(getRandStat(equip.getInt(), 5, x));
equip.setLuk(getRandStat(equip.getLuk(), 5, x));
equip.setMatk(getRandStat(equip.getMatk(), 5, x));
equip.setWatk(getRandStat(equip.getWatk(), 5, x));
equip.setAcc(getRandStat(equip.getAcc(), 5, x));
equip.setAvoid(getRandStat(equip.getAvoid(), 5, x));
equip.setJump(getRandStat(equip.getJump(), 5, x));
equip.setSpeed(getRandStat(equip.getSpeed(), 5, x));
equip.setWdef(getRandStat(equip.getWdef(), 10, x));
equip.setMdef(getRandStat(equip.getMdef(), 10, x));
equip.setHp(getRandStat(equip.getHp(), 10, x));
equip.setMp(getRandStat(equip.getMp(), 10, x));
return equip;
}
נעבור לקובץ MapleMap.java שנמצא ב server.mapsקוד PHP:private static short getRandStat(short defaultValue, int maxRange) {
return getRandStat(defaultValue, maxRange, (short) 1);
}
תשנו את זה:
לזה:קוד PHP:idrop = ii.randomizeStats((Equip) ii.getEquipById(de.itemId));
תעשו את זה פעמיים!קוד PHP:idrop = ii.randomizeStats(chr.getClient(), (Equip) ii.getEquipById(de.itemId));
עכשיו כדי לשנות את האחוז שיוצא חפץ עם potential בשורה הזאת:
תשנו את ה 25 למספר שאתם רוצים.קוד PHP:if (Math.ceil(Math.random() * 100.0) <= 25) {
זה הכל, תהנו![]()







ציטוט ההודעה
ספוילר:

