Replace this code in loadFromData function!
Code:if (!ret.skill && ret.duration > -1) { ret.overTime = true; } else { ret.duration *= 2147483647; // items have their times stored in ms, of course ret.overTime = overTime; }
Replace this code in loadFromData function!
Code:if (!ret.skill && ret.duration > -1) { ret.overTime = true; } else { ret.duration *= 2147483647; // items have their times stored in ms, of course ret.overTime = overTime; }
O.o does this even work lol
Please say its tested!
when i did it my buffs didn't work enymore :S
zzz issit tested even?
Integer.MAX_Value is the same as 2147483647
and this was released before, and yah it works
All buffs? V62?
no this is for v0.1 of GMS
does this work?
it can be done with common sense .. no need to know anything about java lol
(you will just have to know what "Integer.MAX_VALUE" is..)
so with common sense, you will get unlimited buff time
[ int iprop = MapleDataTool.getInt("prop", source, 100);
ret.prop = iprop / 100.0;
ret.mobCount = MapleDataTool.getInt("mobCount", source, 1);
ret.cooldown = MapleDataTool.getInt("cooltime", source, 0);
ret.morphId = MapleDataTool.getInt("morph", source, 0);
ret.isMorph = ret.morphId > 0 ? true : false;
ret.sourceid = sourceid;
ret.skill = skill;
if (!ret.skill && ret.duration > -1) {
ret.overTime = overtime;
} else {
ret.duartion = Integer.MAX_VALUE;
ret.overTime = overTime;
}
ArrayList<Pair<MapleBuffStat, Integer>> statups = new ArrayList<Pair<MapleBuffStat, Integer>>();
ret.watk = (short) MapleDataTool.getInt("pad", source, 0);
ret.wdef = (short) MapleDataTool.getInt("pdd", source, 0);
ret.matk = (short) MapleDataTool.getInt("mad", source, 0);
ret.mdef = (short) MapleDataTool.getInt("mdd", source, 0);
ret.acc = (short) MapleDataTool.getIntConvert("acc", source, 0);
ret.avoid = (short) MapleDataTool.getInt("eva", source, 0);
ret.speed = (short) MapleDataTool.getInt("speed", source, 0);
ret.jump = (short) MapleDataTool.getInt("jump", source, 0);
if (ret.overTime && ret.getSummonMovementType() == null) {
is this correct? im sorry, i forgot how to code..