Jump to content
  • 0
Sign in to follow this  
Thuan

Storm Gust Number of Strikes

Question

Can someone tell me where to find the code for how Storm Gust works?

 

I can see it reading from skill_unit_db.txt but not how that information gets computed.

 

I'm trying to mimic the behavior on how Storm Gust worked on officials for pre-re boss property monsters (every second hit getting an extra hit for a total of 15 hits), but I can't find where it's coded.

 

Thanks.

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Tough one, Stormgust right now uses all the default settings for ground skill. That's why you couldn't find it.

It's actually pretty wrong and I totally would want to fix it for pre-renewal if I could. ^^;

 

But anyway, try it here:

int skill_unit_onplace_timer(struct skill_unit *src, struct block_list *bl, int64 tick) {
https://raw.githubusercontent.com/HerculesWS/Hercules/master/src/map/skill.c

 

I think that's the function that gets called each ground hit interval.

 

Check out the part for FIREWALL for example, where it does multiple hits during one interval. That's kind of similar to what you want.

 

To do it only every second hit you will need to check the sg_counter variable saved in the target struct (tsc I think).

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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