Jump to content
  • 0

thorn trap, heaven's drive, demonstration


Fresh prince

Question


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  295
  • Reputation:   6
  • Joined:  10/14/12
  • Last Seen:  

Hi rathena,

 

I need help on the following skills please.

 

1. Thorn trap (genetic): 

* I wanted to null the effect on party mates/ guild mates, only on enemies.

* I wanted for the skill icon to disappear once you stepped on it.

* I wanted it to have at least have 5 seconds when trapped then icon disappear. 

 

2. Heaven's drive (high wizard):

* I wanted when casted, the enemies on hide/cloak will be revealed.

 

3. Demonstration (creator):

* I wanted to null the effect on party mates/ guild mates, only on enemies.

 

Thanks you very much!



bump

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

look more like a request then support, I'll give support anyway :

thorn trap :

search UNT_THORNS_TRAP on skill.c::skill_unit_onplace_timer
-you can see duration is define with "int sec = skill_get_time2(sg->skill_id, sg->skill_lv);"
so go in skill_cast_db.txt and change duration2 for your desired one (5s)
- unit should already have no effect on allly etc but only affect ennemy, if not it's buggy but you can add a "battle_check_target" om that unit handler to force it to tread ennemy if you wish.

-icon refer to status, don't you have the icone only when you step on it ??
you could send to client that status is finish even if it's not true just to make icone disapear with "clif_status_change(bl,SI_THORNTRAP,0,0,0,0,0);"

heaven drive:
-already the case, since once you get hit you'll be uncloack unhide, or are you implying cloaking exceed ?

on skill.c::skill_additional_effect (wich mean our attack went trough target) add a "case WZ_HEAVENDRIVE:" and stop the status you want with "status_change_end(src, typeIwannaStop, INVALID_TIMER);"

demonstration:
-the unit seem already to be set to ennemy only for me, but you could add a "battle_check_target" just like we did for UNT_THORNS_TRAP on UNT_DEMONSTRATION.

          case UNT_TATAMIGAESHI:
         case UNT_DEMONSTRATION:
+            if(battle_check_target(ss,bl,BCT_ENEMY) > 0)
             skill_attack(BF_WEAPON,ss,&src->bl,bl,sg->skill_id,sg->skill_lv,tick,0);
             break;


oops that exemple not perfect cause it affect UNT_TATAMIGAESHI too, but it was just to show battle_check_target exemple on a unit.

this should cover all what u ask.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  295
  • Reputation:   6
  • Joined:  10/14/12
  • Last Seen:  

Thanks a lot Mr. Lighta! you're like an angel! Thanks again!

 

Solved.

Edited by Fresh prince
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...