Unlimited buff time

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Valued Member LastBattle is offline
    MemberRank
    Aug 2009 Join Date
    115Posts

    Unlimited buff time

    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;
    	}


  2. #2
    Proficient Member ijohnny is offline
    MemberRank
    Aug 2008 Join Date
    154Posts

    Re: Unlimited buff time

    O.o does this even work lol

  3. #3
    :) iJFAC is offline
    MemberRank
    Sep 2007 Join Date
    SomewhereLocation
    519Posts

    Re: Unlimited buff time

    Please say its tested!

  4. #4
    Account Upgraded | Title Enabled! ex4life6pro is offline
    MemberRank
    Dec 2008 Join Date
    BelgiumLocation
    206Posts

    Re: Unlimited buff time

    when i did it my buffs didn't work enymore :S

  5. #5
    Member gmshawn is offline
    MemberRank
    May 2009 Join Date
    65Posts

    Re: Unlimited buff time

    zzz issit tested even?

  6. #6
    Xephizion Development Ehab is offline
    MemberRank
    Apr 2008 Join Date
    Somewhere I BelLocation
    1,935Posts

    Re: Unlimited buff time

    Integer.MAX_Value is the same as 2147483647
    and this was released before, and yah it works

  7. #7
    Member bhpchen94 is offline
    MemberRank
    Apr 2009 Join Date
    57Posts

    Re: Unlimited buff time

    All buffs? V62?

  8. #8
    Account Upgraded | Title Enabled! ohmx is offline
    MemberRank
    Jul 2008 Join Date
    270Posts

    Re: Unlimited buff time

    no this is for v0.1 of GMS

  9. #9
    Apprentice ivanstephen is offline
    MemberRank
    Dec 2008 Join Date
    chinaLocation
    6Posts

    Re: Unlimited buff time

    does this work?

  10. #10
    Member iTouchyou is offline
    MemberRank
    Oct 2009 Join Date
    LoveLocation
    52Posts

    Re: Unlimited buff time

    Quote Originally Posted by ivanstephen View Post
    does this work?
    LOL, see Ehab comment

    Quote Originally Posted by Read me,i am Ehab View Post
    Integer.MAX_Value is the same as 2147483647
    and this was released before, and yah it works

  11. #11
    Xephizion Development Ehab is offline
    MemberRank
    Apr 2008 Join Date
    Somewhere I BelLocation
    1,935Posts

    Re: Unlimited buff time

    Quote Originally Posted by iTouchyou View Post
    LOL, see Ehab comment
    point, and make a [font=9000] on "yah it works"

    just make ret.duartion = Integer.MAX_VALUE;

    and you're done

  12. #12
    Member iTouchyou is offline
    MemberRank
    Oct 2009 Join Date
    LoveLocation
    52Posts

    Re: Unlimited buff time

    Quote Originally Posted by Ehab View Post
    point, and make a [font=9000] on "yah it works"

    just make ret.duartion = Integer.MAX_VALUE;

    and you're done
    LOL...hmm,okay... Thanks for telling.

  13. #13
    Xephizion Development Ehab is offline
    MemberRank
    Apr 2008 Join Date
    Somewhere I BelLocation
    1,935Posts

    Re: Unlimited buff time

    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

  14. #14
    Apprentice x3antiemo is offline
    MemberRank
    Nov 2009 Join Date
    11Posts

    Re: 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..

  15. #15
    return null; mertjuh is offline
    MemberRank
    Dec 2008 Join Date
    The NetherlandsLocation
    1,269Posts

    Re: Unlimited buff time

    Quote Originally Posted by Ehab View Post
    point, and make a [font=9000] on "yah it works"

    just make ret.duartion = Integer.MAX_VALUE;

    and you're done
    lol ehab will you quit the rz?



Page 1 of 2 12 LastLast

Advertisement