Currently Posted March 23, 2013 Posted March 23, 2013 (edited) Script that disables @refresh in PvP or no @commands. Edited March 23, 2013 by Dreamworks Quote
PewN Posted March 23, 2013 Posted March 23, 2013 (edited) try thison 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 March 23, 2013 by TrojanWorm Quote
Currently Posted March 23, 2013 Author Posted March 23, 2013 Do I just add this anywhere in atcommand Quote
Capuche Posted March 23, 2013 Posted March 23, 2013 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; } Quote
Question
Currently
Script that disables @refresh in PvP or no @commands.
Edited by Dreamworks3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.