Jump to content
  • 0

Skill instead of target, being splash with collision


h3drix

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  06/18/17
  • Last Seen:  

good morning good afternoon or good night

Does anyone by any chance know how to do such a thing?
Put the ability as splash and it hits the first target it passes in front of.

For example, placing an ice barrier in front of a player and when you cast the ability, it hits the barrier and not the player behind it like this:
https://i.imgur.com/sH5qtRC.png

I found this in skill.c, but is this really where I should move?

void skill_attack_blow(struct block_list *src, struct block_list *dsrc, struct block_list *target, uint8 blewcount, uint16 skill_id, uint16 skill_lv, int64 damage, unsigned int tick, int flag) {
int8 dir = -1; // default direction
//Only knockback if it's still alive, otherwise a "ghost" is left behind. [Skotlex]
//Reflected spells from not bounce back (src == dsrc since it only happens for direct skills)

 

Link to comment
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.

×
×
  • Create New...