so i have a custom buff skill, called ALL_INFINITE_AMMO.
its properly defined, in skill_db, skill_require_db, and skill_cast_db.
how ever, the duration defined in skill_cast_db is somewhat not being read.
i've overridden an existing status to display the icon so that i know if the buff is working or not.
skill_cast_db.txt entry
//=== Custom ====
1501,0,0,0,360000,0,60000,3000
skill.c entry
case ALL_INFINITE_AMMO:
clif_skill_nodamage(src,bl,skillid,1,
sc_start(bl,type,100,skilllv,skill_get_time(skillid,skilllv)));
break;
using this code, the status icon just flashes for less than a second, then vanishes, (so as the effect of the skill)
however, when I try to hardcode the duration in skill.c, its working pretty well.
case ALL_INFINITE_AMMO:
clif_skill_nodamage(src,bl,skillid,1,
sc_start(bl,type,100,skilllv,360000)); // 6 mins.
break;
if its about status.c, which part there is supposed to be the duration of the skill?
all that's written in the wiki is about custom offensive skill, so it didnt helped me a lot.
//this is under
//int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val1,int val2,int val3,int val4,int tick,int flag)
case SC_INFINITE_AMMO:
// is the duration being defined here? O.o
break;
looking forward for your help. thanks a lot.
EDIT: Forgot to mention that the cooldown and casting time are not acting correctly as well.
Question
Jhedzkie
so i have a custom buff skill, called ALL_INFINITE_AMMO.
its properly defined, in skill_db, skill_require_db, and skill_cast_db.
how ever, the duration defined in skill_cast_db is somewhat not being read.
i've overridden an existing status to display the icon so that i know if the buff is working or not.
skill_cast_db.txt entry
skill.c entry
using this code, the status icon just flashes for less than a second, then vanishes, (so as the effect of the skill)
however, when I try to hardcode the duration in skill.c, its working pretty well.
if its about status.c, which part there is supposed to be the duration of the skill?
all that's written in the wiki is about custom offensive skill, so it didnt helped me a lot.
looking forward for your help. thanks a lot.
EDIT: Forgot to mention that the cooldown and casting time are not acting correctly as well.
Edited by JhedzkieLink to comment
Share on other sites
1 answer 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.