Jump to content
  • 0

problem with @refresh


Question

Posted (edited)

In my sv, @refresh cancels the animation delay on some skills.

Example: Sonic Blow (with @refresh, I can SB 2 times in 1 second)

-> players are using it to spam skill :(

 

Is there any way to fix it? Or a solution to deal with it?

Edited by Eterno

11 answers to this question

Recommended Posts

Posted

Try replacing your @refresh command to this:

 

ACMD_FUNC(refresh)
{
	if (map[sd->bl.m].flag.pvp) {
		clif_displaymessage(sd->fd,"@refresh disabled on PvP maps.");
		return -1;
	}
	nullpo_retr(-1, sd);
	clif_refresh(sd);
	return 0;
}

 

 

With that, @refresh wont work on PvP maps. If you need this out of PvP maps we can modify it. I hope it help you :)

Posted

Try replacing your @refresh command to this:

 

ACMD_FUNC(refresh)
{
	if (map[sd->bl.m].flag.pvp) {
		clif_displaymessage(sd->fd,"@refresh disabled on PvP maps.");
		return -1;
	}
	nullpo_retr(-1, sd);
	clif_refresh(sd);
	return 0;
}

 

 

With that, @refresh wont work on PvP maps. If you need this out of PvP maps we can modify it. I hope it help you :)

 

 

Thx but I tried to disable @refresh in pvp map, then some players disagreed with it because of the position lag.

I hope you have an other way :(

Posted (edited)
ACMD_FUNC(refresh)
{
	nullpo_retr(-1, sd);
	clif_refresh(sd);
        status_change_start(bl, SC_INVINCIBLE, 10000, 1, 0, 0, 0, u_, 2);
        status_change_start(bl, SC_BLADESTOP_WAIT, 10000, 1, 0, 0, 0, u_, 2);
	return 0;
}

 

 

Try it, dont know if it works, dont tested.

Edited by TxusToni
Posted

if that on rA it's more a medium profile bug, so you could do a report and will get fixed right away.

if not it obviously some custom and will be hard to help without seing the cause. (well at least fix it really).

 

TxusToni patch could work. (well beside the u_ typo, wtf is that ?)

Otherwise you could try to do something like this : sd->canskill_tick += 300; wich will add 300ms to the limit tick where you could reskill.

ACMD_FUNC(refresh)
{
    nullpo_retr(-1, sd);
    clif_refresh(sd);
    sd->ud.canact_tick += 300;
    sd->ud.canmove_tick += 300;
    return 0;
}

but that just a patch on the same vein as TxusToni one
Posted (edited)

Replace in atcommand.c

ACMD_FUNC(refresh)
{
	nullpo_retr(-1, sd);
	clif_refresh(sd);
	return 0;
}

 

by

ACMD_FUNC(refresh)
{
	nullpo_retr(-1, sd);
	if (map[sd->bl.m].flag.gvg_castle) {
		clif_displaymessage(sd->fd,"@refresh disabled on GvG castle.");
		return -1;
	}
	
	clif_refresh(sd);
	return 0;
}

 

 

 

Or You also can restrict @refresh with NPC script command, *just load this script like another script NPC and reloadscript

-	script	hjklm	-1,{
OnInit:
	bindatcmd "refresh",strnpcinfo(0) +"::OnRefresh";
	end;
OnRefresh:
	if( getmapflag( strcharinfo(3),mf_gvg_castle ) )
		message strcharinfo(0),"@refresh is disabled on gvg castle.";
	end;
}
Edited by Capuche

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...