Tomahawk Posted June 28, 2020 Posted June 28, 2020 (edited) I'm trying to add a secondary cooldown for a certain map. Here's the code: skill.hpp int32 raidcd[MAX_SKILL_LEVEL]; int skill_get_raidcd(uint16 skill_id, uint16 skill_lv); skill.cpp int skill_get_raidcd(uint16 skill_id, uint16 skill_lv) { skill_get_lv(skill_id, skill_lv, skill_db.find(skill_id)->raidcd); } pc.cpp int cooldown = skill_get_cooldown(skill_id, skill_lv); if (map_getmapflag(sd->bl.m, MF_SMAP) && skill_get_raidcd(skill_id, skill_lv)) cooldown = skill_get_raidcd(skill_id, skill_lv); no errors but its not applying the cd i put on skill db Raidcd: xxxxx its like its not recognizing the skill_get_raidcd(skill_id, skill_lv). I need some help please, thank you! SOLVED. Forgot to phase it into yaml. Thanks to Stolao for helping me! Edited June 28, 2020 by Tomahawk Quote
Question
Tomahawk
I'm trying to add a secondary cooldown for a certain map.
Here's the code:
skill.hpp int32 raidcd[MAX_SKILL_LEVEL]; int skill_get_raidcd(uint16 skill_id, uint16 skill_lv); skill.cpp int skill_get_raidcd(uint16 skill_id, uint16 skill_lv) { skill_get_lv(skill_id, skill_lv, skill_db.find(skill_id)->raidcd); } pc.cpp int cooldown = skill_get_cooldown(skill_id, skill_lv); if (map_getmapflag(sd->bl.m, MF_SMAP) && skill_get_raidcd(skill_id, skill_lv)) cooldown = skill_get_raidcd(skill_id, skill_lv);
no errors but its not applying the cd i put on skill db Raidcd: xxxxx
its like its not recognizing the skill_get_raidcd(skill_id, skill_lv).
I need some help please, thank you!
SOLVED.
Forgot to phase it into yaml. Thanks to Stolao for helping me!
Edited by Tomahawk0 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.