Help? How to add CoolDownTime a skills?

Results 1 to 12 of 12
  1. #1
    Account Upgraded | Title Enabled! mixtamal6 is offline
    MemberRank
    Mar 2013 Join Date
    686Posts

    Help? How to add CoolDownTime a skills?

    Hi How Can I Add Cooldowntime several skills? for example, 21111009 NAME: Aran Combo Recharge


    that can be used in 50 seconds?


    thanks for your tips and answers :)


  2. #2
    Member buttocks is offline
    MemberRank
    Mar 2014 Join Date
    91Posts

    Re: Help? How to add CoolDownTime a skills?

    In MapleStatEffect.java, add a check for skillid and set the cooldown you want for it.

  3. #3
    Account Upgraded | Title Enabled! mixtamal6 is offline
    MemberRank
    Mar 2013 Join Date
    686Posts

    Re: Help? How to add CoolDownTime a skills?

    example ?

    this:
    if (sourceid == 21111009) { //Aran Recharge
    applyfrom.getClient().getSession().write(CWvsContext.enableActions());
    }
    applyfrom.getClient().getSession().write(CField.skillCooldown(sourceid, getCooldown(applyfrom)));
    applyfrom.addCooldown(sourceid, System.currentTimeMillis(), getCooldown(applyfrom) * 1000);

    ?
    i try use but dont work :(
    Last edited by mixtamal6; 24-07-14 at 02:34 AM.

  4. #4
    Member buttocks is offline
    MemberRank
    Mar 2014 Join Date
    91Posts

    Re: Help? How to add CoolDownTime a skills?

    I suppose you're using a Lithium source, so I'm not 100% sure.
    This is how it's done in MoopleI suppose you're using a Lithium source, so I'm not 100% sure.
    This is how it's done in Moople
    PHP Code:
    if (ServerConstants.enableCooldowns) {
        if (
    sourceid == 21111009)  {        
            
    ret.cooldown 50;
        }


  5. #5
    Account Upgraded | Title Enabled! mixtamal6 is offline
    MemberRank
    Mar 2013 Join Date
    686Posts

    Re: Help? How to add CoolDownTime a skills?

    I'm using v142 outstory

  6. #6
    unknowndog Mallissy is offline
    MemberRank
    May 2011 Join Date
    unknowndogLocation
    493Posts

    Re: Help? How to add CoolDownTime a skills?

    Quote Originally Posted by mixtamal6 View Post
    I'm using v142 outstory
    Now there's your problem

  7. #7
    Account Upgraded | Title Enabled! mixtamal6 is offline
    MemberRank
    Mar 2013 Join Date
    686Posts

    Re: Help? How to add CoolDownTime a skills?

    ? bump

  8. #8
    Member Drum is offline
    MemberRank
    Jul 2013 Join Date
    80Posts

    Re: Help? How to add CoolDownTime a skills?

    The above solution seems hacky. First verify that your skill data (more specifically, cooldowns) are being loaded and used, rather than all skills having no cooldown. Find the skill ID in one of your Skill XML files, then find the level of the skill you want to apply the cooldown to, and alter the tag for cooldown.

    For example, this is a snippet of my XML file for the Resurrection skill, found in the path wz/Skill.wz/232.img:

    PHP Code:
    <imgdir name="2321006">
          ...
          <
    imgdir name="level">
            <
    imgdir name="1">
              <
    string name="hs" value="h1" />
              <
    vector name="lt" x="-400" y="-350" />
              <
    vector name="rb" x="400" y="250" />
              <
    int name="cooltime" value="3420" />
              <
    int name="mpCon" value="85" />
            </
    imgdir>
    ... 
    I would just need to change the value of the <int> tag with the "cooltime" attribute to the cooldown I would like for that level. The units should be seconds.

  9. #9
    Account Upgraded | Title Enabled! mixtamal6 is offline
    MemberRank
    Mar 2013 Join Date
    686Posts

    Re: Help? How to add CoolDownTime a skills?

    ahm i want add skillcooltime but example :S


    bump..

  10. #10
    unknowndog Mallissy is offline
    MemberRank
    May 2011 Join Date
    unknowndogLocation
    493Posts

    Re: Help? How to add CoolDownTime a skills?

    Quote Originally Posted by mixtamal6 View Post
    ahm i want add skillcooltime but example :S


    bump..
    Use a source that already has it? or code cooltimes and find the right op code

  11. #11
    desk.getCoffee().drink(); AngelSpirit is offline
    MemberRank
    Jul 2010 Join Date
    CanadaLocation
    318Posts

    Re: Help? How to add CoolDownTime a skills?

    The display effect for cooldowns is client-sided (I think.) You can send whatever cooldown you want to the client, but if the serverside cooldown is set to 15 seconds and the clientside's WZ files say 30 seconds, the cooldown will show halfway started. Serverside cooldowns that go above the clientsided WZ cooldowns generally do not display correctly.

  12. #12
    Account Upgraded | Title Enabled! mixtamal6 is offline
    MemberRank
    Mar 2013 Join Date
    686Posts

    Re: Help? How to add CoolDownTime a skills?

    Ty for replys,and how he managed to send the cooltime a skill?



Advertisement