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 :)
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 :)
In MapleStatEffect.java, add a check for skillid and set the cooldown you want for it.
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.
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;
}
}
I'm using v142 outstory
? bump
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:
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.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>
...
ahm i want add skillcooltime but example :S
bump..
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.
Ty for replys,and how he managed to send the cooltime a skill?