Jump to content
  • 0

No delay after Autospells


monof

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  08/10/13
  • Last Seen:  

Good afternoon,

 

I have a question. I'm using the last rAthena in pre-re. When I use autospells (for exemple auto casting Metero Storm with Bloody Knight Card), a delay is applied. How can I delete this delay only for autospells ?

Thank you.

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  897
  • Reputation:   248
  • Joined:  01/30/13
  • Last Seen:  

You'll have to work a bit with the code.

 

I give you one example in skill.c, find:

	// Autospell when attacking	if( sd && !status_isdead(bl) && sd->autospell[0].id )

If you scroll a bit further down inside that block you'll see:

			//Set canact delay. [Skotlex]			ud = unit_bl2ud(src);			if (ud) {				rate = skill_delayfix(src, skill, autospl_skill_lv);				if (DIFF_TICK(ud->canact_tick, tick + rate) < 0){					ud->canact_tick = max(tick + rate, ud->canact_tick);					if ( battle_config.display_status_timers && sd )						clif_status_change(src, SI_ACTIONDELAY, 1, rate, 0, 0, 0);				}			}

If you remove that part, you have removed aftercast delay for autospells when attacking. Now you need to do the same for autospell when being hit. The code to be removed actually looks identical so you should be able to find it easily, just search for the comment from Skotlex.

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