Jump to content

  •  

Photo

Storm Gust Number of Strikes

Storm Gust WZ_STORMGUST Interval Boss

  • Please log in to reply
2 replies to this topic

#1 Thuan

Thuan

    Member

  • Members
  • PipPip
  • 15 posts

Posted 25 September 2014 - 10:13 PM

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.



#2 Playtester

Playtester

    Advanced Member

  • Members
  • PipPipPip
  • 41 posts

Posted 26 September 2014 - 05:59 AM

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.githubus...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).

#3 Thuan

Thuan

    Member

  • Members
  • PipPip
  • 15 posts

Posted 27 September 2014 - 12:49 PM

Yes, that's what I needed, thank you!







Also tagged with one or more of these keywords: Storm Gust, WZ_STORMGUST, Interval, Boss

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


This topic has been visited by 37 user(s)