Currently Posted March 23, 2013 Group: Members Topic Count: 162 Topics Per Day: 0.03 Content Count: 313 Reputation: 1 Joined: 01/22/12 Last Seen: November 17, 2023 Share Posted March 23, 2013 (edited) Script that disables @refresh in PvP or no @commands. Edited March 23, 2013 by Dreamworks Quote Link to comment Share on other sites More sharing options...
PewN Posted March 23, 2013 Group: Members Topic Count: 209 Topics Per Day: 0.04 Content Count: 892 Reputation: 27 Joined: 12/09/11 Last Seen: April 16, 2016 Share 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 Link to comment Share on other sites More sharing options...
Currently Posted March 23, 2013 Group: Members Topic Count: 162 Topics Per Day: 0.03 Content Count: 313 Reputation: 1 Joined: 01/22/12 Last Seen: November 17, 2023 Author Share Posted March 23, 2013 Do I just add this anywhere in atcommand Quote Link to comment Share on other sites More sharing options...
Capuche Posted March 23, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share 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 Link to comment Share on other sites More sharing options...
Question
Currently
Script that disables @refresh in PvP or no @commands.
Edited by DreamworksLink to comment
Share on other sites
3 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.