azzzura Posted June 12, 2013 Share Posted June 12, 2013 Hi, for example i have some command, doesn't matter what is. How are can i make this command with some delay, to prevent spam? I want some way for make only one command with delay, for example around 5 seconds (5000 miliseconds). How? Quote Link to comment Share on other sites More sharing options...
1 QQfoolsorellina Posted June 12, 2013 Share Posted June 12, 2013 or use bindatcmd script command - script asdf -1,{ end; OnInit: bindatcmd "command", strnpcinfo(0)+"::OnCommand"; end; OnCommand: if(gettimetic(2) < cooldowntime ){ dispbottom "Please wait 5 seconds!"; end; } atcommand "@command"; set cooldowntime,gettimetic(2)+5; end; } 2 Quote Link to comment Share on other sites More sharing options...
Anakid Posted June 12, 2013 Share Posted June 12, 2013 http://rathena.org/board/files/file/2356-warp-go-damage-delay/ Quote Link to comment Share on other sites More sharing options...
Cydh Posted June 13, 2013 Share Posted June 13, 2013 if you want a src mod, see here http://rathena.org/board/topic/83569-delay-to-use-command/ Quote Link to comment Share on other sites More sharing options...
Hi, for example i have some command, doesn't matter what is.
How are can i make this command with some delay, to prevent spam?
I want some way for make only one command with delay, for example around 5 seconds (5000 miliseconds). How?
Link to comment
Share on other sites