Jump to content
  • 0
Sign in to follow this  
Tomahawk

Custom Skill flag on db

Question

Posted (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 by Tomahawk

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.