Jump to content
  • 0

custom skill duration not being read properly


Jhedzkie

Question


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  298
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

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.

Edited by Jhedzkie
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  298
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

*bump*

Anybody?

Link to comment
Share on other sites

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.

×
×
  • Create New...