awesomazingxed Posted January 23, 2015 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
Skorm Posted January 26, 2015 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
EL Dragon Posted January 23, 2015 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
awesomazingxed Posted January 23, 2015 Author 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
awesomazingxed Posted January 26, 2015 Author 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
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
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.