hit-delay plugin

Kuroyama

New member
Messages
128
Points
0
Does anyone knows how to enable enter portal while being attacked? I try any alternatives but I got no luck. Hit-delay is also affecting ecall and emperium break warp out. I really really wanted to use this hit-delay because its so smooth to use and helpful but I got no choice but to disable it because of these further issues. I hope someone could help me with this.

image.png

 
Does anyone knows how to enable enter portal while being attacked? I try any alternatives but I got no luck. Hit-delay is also affecting ecall and emperium break warp out. I really really wanted to use this hit-delay because its so smooth to use and helpful but I got no choice but to disable it because of these further issues. I hope someone could help me with this.

View attachment 6229
maybe add a mapflag check that hit-delay will not work in gvg maps

 
That's a great idea. Can you help me how to?


Try this, haven't tested yet

void pc_damage_received(struct map_session_data **sd, struct block_list **src, unsigned int *hp, unsigned int *sp)
{
struct warp_delay_tick *delay_data;

if ((map_flag_gvg(sd->bl.m)) || (map_flag_gvg2(sd->bl.m))) {
return;
}

if ((delay_data = getFromMSD(*sd, 0)) == NULL) {
CREATE(delay_data,struct warp_delay_tick,1);
addToMSD(*sd,delay_data,0,true);
}
delay_data->last_hit = timer->gettick();
if (*src)
delay_data->who_hit = (*src)->type;
else
delay_data->who_hit = BL_NUL;
return;

}




Replace the pc_damage_received function with that.

Back it up first before replacing.

 
Try this, haven't tested yet

void pc_damage_received(struct map_session_data **sd, struct block_list **src, unsigned int *hp, unsigned int *sp)
{
struct warp_delay_tick *delay_data;

if ((map_flag_gvg(sd->bl.m)) || (map_flag_gvg2(sd->bl.m))) {
return;
}

if ((delay_data = getFromMSD(*sd, 0)) == NULL) {
CREATE(delay_data,struct warp_delay_tick,1);
addToMSD(*sd,delay_data,0,true);
}
delay_data->last_hit = timer->gettick();
if (*src)
delay_data->who_hit = (*src)->type;
else
delay_data->who_hit = BL_NUL;
return;

}

void pc_damage_received(struct map_session_data **sd, struct block_list **src, unsigned int *hp, unsigned int *sp)
{
struct warp_delay_tick *delay_data;

if ((map_flag_gvg(sd->bl.m)) || (map_flag_gvg2(sd->bl.m))) {
return;
}

if ((delay_data = getFromMSD(*sd, 0)) == NULL) {
CREATE(delay_data,struct warp_delay_tick,1);
addToMSD(*sd,delay_data,0,true);
}
delay_data->last_hit = timer->gettick();
if (*src)
delay_data->who_hit = (*src)->type;
else
delay_data->who_hit = BL_NUL;
return;

}




Replace the pc_damage_received function with that.

Back it up first before replacing.
Got this message:

image.png

 
Sorry didn't see it was a Pre hook

Code:
void pc_damage_received(struct map_session_data **sd, struct block_list **src, unsigned int *hp, unsigned int *sp)
{
	struct warp_delay_tick *delay_data;

	if ((map_flag_gvg((*sd)->bl.m)) || (map_flag_gvg2((*sd)->bl.m))) {
		return;
	}

	if ((delay_data = getFromMSD(*sd, 0)) == NULL) {
		CREATE(delay_data,struct warp_delay_tick,1);
		addToMSD(*sd,delay_data,0,true);
	}
	delay_data->last_hit = timer->gettick();
	if (*src)
		delay_data->who_hit = (*src)->type;
	else
		delay_data->who_hit = BL_NUL;
	return;

}
 
Sorry didn't see it was a Pre hook

void pc_damage_received(struct map_session_data **sd, struct block_list **src, unsigned int *hp, unsigned int *sp)
{
struct warp_delay_tick *delay_data;

if ((map_flag_gvg((*sd)->bl.m)) || (map_flag_gvg2((*sd)->bl.m))) {
return;
}

if ((delay_data = getFromMSD(*sd, 0)) == NULL) {
CREATE(delay_data,struct warp_delay_tick,1);
addToMSD(*sd,delay_data,0,true);
}
delay_data->last_hit = timer->gettick();
if (*src)
delay_data->who_hit = (*src)->type;
else
delay_data->who_hit = BL_NUL;
return;

}

void pc_damage_received(struct map_session_data **sd, struct block_list **src, unsigned int *hp, unsigned int *sp)
{
struct warp_delay_tick *delay_data;

if ((map_flag_gvg((*sd)->bl.m)) || (map_flag_gvg2((*sd)->bl.m))) {
return;
}

if ((delay_data = getFromMSD(*sd, 0)) == NULL) {
CREATE(delay_data,struct warp_delay_tick,1);
addToMSD(*sd,delay_data,0,true);
}
delay_data->last_hit = timer->gettick();
if (*src)
delay_data->who_hit = (*src)->type;
else
delay_data->who_hit = BL_NUL;
return;

}

IT WORKS LIKE MAGIC. OMYSWEETJESUS! THANK YOU SO MUCH FOR THIS.  :bawling:

 
Back
Top