Jump to content
  • 0

Script that disables @refresh in PvP?


Question

3 answers to this question

Recommended Posts

Posted (edited)

try this

on atcommand.c
 

ACMD_FUNC(refresh)
{
    nullpo_retr(-1, sd);

if ( map[m].flag.pvp  ) {
        clif_displaymessage(fd, "Refresh in pvp is not allowed");
        return -1;
}

    clif_refresh(sd);
    return 0;
}
Edited by TrojanWorm
Posted

No search in atcommand.c

ACMD_FUNC(refresh)

and replace the current function by TrojanWorm's function

 

 

 

 

 

 

 

You also can block @refresh on pvp map with npc script

-	script	refresh_pvp	-1,{
OnInit:
	bindatcmd "refresh",strnpcinfo(0) +"::OnRefresh";
	end;
OnRefresh:
	if( getmapflag( strcharinfo(3),mf_pvp ) )
		message strcharinfo(0),"@refresh is not allowed in pvp map.";
	end;
}

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