public boolean isAllowedToEnchantSkills()
{
if (isLocked())
return false;
if (isTransformed())
return false;
if (AttackStanceTaskManager.getInstance().getAttackStanceTask(this))
return false;
if (isCastingNow() || isCastingSimultaneouslyNow() || isInCombat())
return false;
if (isInBoat() || isInAirShip())
return false;
return true;
}
If the skill has cooldown to return false?
// Check if this skill is enabled (ex : reuse time)
if (isSkillDisabled(skill))
{
SystemMessage sm = null;
if (_reuseTimeStamps.containsKey(Integer.valueOf(skill.getReuseHashCode())))
{
int remainingTime = (int)(_reuseTimeStamps.get(Integer.valueOf(skill.getReuseHashCode())).getRemaining()/1000);
int hours = remainingTime / 3600;
int minutes = (remainingTime % 3600) / 60;
int seconds = (remainingTime % 60);
if (hours > 0)
{
sm = new SystemMessage(SystemMessageId.S2_HOURS_S3_MINUTES_S4_SECONDS_REMAINING_FOR_REUSE_S1);
sm.addSkillName(skill);
sm.addNumber(hours);
sm.addNumber(minutes);
}
else if (minutes > 0)
{
sm = new SystemMessage(SystemMessageId.S2_MINUTES_S3_SECONDS_REMAINING_FOR_REUSE_S1);
sm.addSkillName(skill);
sm.addNumber(minutes);
}
else
{
sm = new SystemMessage(SystemMessageId.S2_SECONDS_REMAINING_FOR_REUSE_S1);
sm.addSkillName(skill);
}
sm.addNumber(seconds);
}
else
{
sm = new SystemMessage(SystemMessageId.S1_PREPARED_FOR_REUSE);
sm.addSkillName(skill);
}
sendPacket(sm);
return false;
}
One thing i learned is that most players dont care about how the website looks as long as it works. Having a nice looking and modern website helps but not as much as you think.
Our TOP advantages
✔Product: +400 pieces of accounts always in stock - delivery almost immediately, testing for your new ideas and creating kits and cards of any type.
✔Support: Help and resolution of issues related to login, emulators, etc. Instructions and guides on bypassing anti-fraud applications, replacing IP, geo, selfie logins and bypassing video verification.
✔Versatility: Individual kits for your order, drop in touch - additional verification procedures are not difficult. We will solve almost any account issue.
✔Security: Turnkey accounts, drops ❖European Union, UK, USA, etc.❖, product quality guarantee.
Question
GameBlonD
Hello,
How can i add here:
If the skill has cooldown to return false?
Link to comment
Share on other sites
26 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.