Tomahawk Posted June 28, 2020 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 28 Reputation: 7 Joined: 07/17/18 Last Seen: May 17 Share 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 Link to comment Share on other sites More sharing options...
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 TomahawkLink to comment
Share on other sites
0 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.