Jump to content
  • 0
Reducto

Having problem adding @go delay hit

Question

I really don't understand this...

  • find: void pc_damage(struct map_session_data *sd,struct block_list *src,unsigned int hp, unsigned int sp)
  • then add this inside the function:

unsigned int tick = gettick(); int warpgodelaycd = 5000; //This is the delay in milliseconds you can set what ever delay you want sd->warpgodelay_tick = tick+warpgodelaycd; //This is the timer inside the function?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

I added it for you.

void pc_damage(struct map_session_data *sd,struct block_list *src,unsigned int hp, unsigned int sp)
{
unsigned int tick = gettick();
int warpgodelaycd = 5000; //This is the delay in milliseconds you can set what ever delay you want
sd->warpgodelay_tick = tick+warpgodelaycd; //This is the timer

if (sp) clif_updatestatus(sd,SP_SP);
if (hp) clif_updatestatus(sd,SP_HP);
else return;

if( !src || src == &sd->bl )
	return;

if( pc_issit(sd) )
{
	pc_setstand(sd);
	skill_sit(sd,0);
}

if( sd->progressbar.npc_id )
	clif_progressbar_abort(sd);

if( sd->status.pet_id > 0 && sd->pd && battle_config.pet_damage_support )
	pet_target_check(sd,src,1);

sd->canlog_tick = gettick();
}

Edited by Emistry
Codeboxed Content
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...

Important Information

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