awesomazingxed Posted January 23, 2015 Group: Members Topic Count: 51 Topics Per Day: 0.01 Content Count: 95 Reputation: 1 Joined: 10/24/14 Last Seen: August 7, 2015 Share Posted January 23, 2015 Hello everyone, can i request an @hold command. it has a function that the players CAN'T walk, but can cast skills and attack. This one is useful during GVG to avoid slide due to lag spikes. Thank you in advance. Ciao Quote Link to comment Share on other sites More sharing options...
Skorm Posted January 26, 2015 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted January 26, 2015 Nothing happens whenever i'm using @hold commands. Maybe like this? - script hold -1,{ OnInit: bindatcmd("hold", strnpcinfo(3)+"::OnHold"); end; OnHold: if ( !@Hold ) { set @Hold, 1; message strcharinfo(0), "Hold mode is ON."; pcblockmove getcharid(3), 1; } else { set @Hold, 0; message strcharinfo(0), "Hold mode is OFF."; pcblockmove getcharid(3), 0; } } Quote Link to comment Share on other sites More sharing options...
EL Dragon Posted January 23, 2015 Group: Members Topic Count: 86 Topics Per Day: 0.02 Content Count: 591 Reputation: 146 Joined: 06/19/12 Last Seen: December 10, 2016 Share Posted January 23, 2015 (edited) use @refresh make @refresh all 5 sec - script Hold -1,{ OnInit: while(1) { bindatcmd("hold", strnpcinfo(3) +"::OnAFK"); end; OnAFK: if (@Hold) { set @Hold, 0; dispbottom "Hold mode is OFF."; end; } else { set @Hold, 1; new: if(@Hold==1) atcommand "@refresh"; sleep2 5000; goto new; } } } Edited January 23, 2015 by EL Dragon Quote Link to comment Share on other sites More sharing options...
awesomazingxed Posted January 23, 2015 Group: Members Topic Count: 51 Topics Per Day: 0.01 Content Count: 95 Reputation: 1 Joined: 10/24/14 Last Seen: August 7, 2015 Author Share Posted January 23, 2015 use @refresh make @refresh all 5 sec - script Hold -1,{ OnInit: while(1) { bindatcmd("hold", strnpcinfo(3) +"::OnAFK"); end; OnAFK: if (@Hold) { set @Hold, 0; dispbottom "Hold mode is OFF."; end; } else { set @Hold, 1; new: if(@Hold==1) atcommand "@refresh"; sleep2 5000; goto new; } } } Nothing happens whenever i'm using @hold commands. Quote Link to comment Share on other sites More sharing options...
awesomazingxed Posted January 26, 2015 Group: Members Topic Count: 51 Topics Per Day: 0.01 Content Count: 95 Reputation: 1 Joined: 10/24/14 Last Seen: August 7, 2015 Author Share Posted January 26, 2015 Nothing happens whenever i'm using @hold commands. Maybe like this? - script hold -1,{ OnInit: bindatcmd("hold", strnpcinfo(3)+"::OnHold"); end; OnHold: if ( !@Hold ) { set @Hold, 1; message strcharinfo(0), "Hold mode is ON."; pcblockmove getcharid(3), 1; } else { set @Hold, 0; message strcharinfo(0), "Hold mode is OFF."; pcblockmove getcharid(3), 0; } } Works like a gem. Thank you Skorm! Quote Link to comment Share on other sites More sharing options...
Question
awesomazingxed
Hello everyone, can i request an @hold command. it has a function that the players CAN'T walk, but can cast skills and attack. This one is useful during GVG to avoid slide due to lag spikes. Thank you in advance. Ciao
Link to comment
Share on other sites
4 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.