blakbord Posted December 5, 2013 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 108 Reputation: 1 Joined: 02/10/12 Last Seen: March 10, 2024 Share Posted December 5, 2013 (edited) - script Anti-Bot -1,{ OnInit: set .Map$,"prt_maze03"; setmapflag .Map$,mf_loadevent; end; OnPCLoadMapEvent: if(strcharinfo(3) == .Map$){ dispbottom "This is only to find out if you're a BOT"; atcommand "@battleignore"; atcommand "@adjgroup -1"+strcharinfo(0); atcommand "@option 2"; sc_start SC_FREEZE,10000000,1; sc_start SC_HIDE,10000000,1; mes "Please Enter Red Color Key in the Code..."; set .Code,rand(1000,99999); mes "^0000FF"+rand(1,9999)+"^FF0000"+.Code+"^0000FF"+rand(1,9999)+"^000000"; input @Code; if( @Code != .Code ){ atcommand "@kick "+strcharinfo(0); } else { atcommand "@battleignore"; atcommand "@option 0"; sc_end SC_FREEZE; sc_end SC_HIDE; dispbottom "Sorry for INTERRUPTING you, Thank You!"; } close; } } •I want to make this script everytime I warp at the map this will trigger •I want to make also this script triggers every hour can anyone help me? thanks.. Edited December 5, 2013 by blakbord Quote Link to comment Share on other sites More sharing options...
Dynasty Posted December 6, 2013 Group: Members Topic Count: 24 Topics Per Day: 0.01 Content Count: 151 Reputation: 5 Joined: 11/09/12 Last Seen: September 14, 2014 Share Posted December 6, 2013 (edited) - script Anti-bot -1,{ OnPCLoginEvent: attachnpctimer ""+strcharinfo(0)+""; initnpctimer; end; OnTimer3600000: OnPCLoadMapEvent: getmapxy(@map$,@x,@y,0); if(strcharinfo(3) == @map$){ setmapflag .Map$,mf_loadevent; dispbottom "This is only to find out if you're a BOT"; atcommand "@battleignore"; atcommand "@adjgroup -1"+strcharinfo(0); atcommand "@option 2"; sc_start SC_FREEZE,10000000,1; sc_start SC_HIDE,10000000,1; mes "Please Enter Red Color Key in the Code..."; set .Code,rand(1000,99999); mes "^0000FF"+rand(1,9999)+"^FF0000"+.Code+"^0000FF"+rand(1,9999)+"^000000"; input @Code; if( @Code != .Code ){ stopnpctimer; detachnpctimer; atcommand "@kick "+strcharinfo(0); } else { atcommand "@battleignore"; atcommand "@option 0"; sc_end SC_FREEZE; sc_end SC_HIDE; dispbottom "Sorry for INTERRUPTING you, Thank You!"; stopnpctimer; initnpctimer; } close; } end; } well.. if im not wrong.. i can do it like this and both labels will run properly .-. OnTimer3600000: OnPCLoadMapEvent: Warp to the MAP and then Anti-Bot show.. (input the right code and done..) [ready, please try it] After 1 Hour the Anti-Bot show again.. (input again) [ready, please try it] Only my point of view: sometimes this tipe of anti-bots system could be annoying for the players. Edited December 6, 2013 by Dynasty Quote Link to comment Share on other sites More sharing options...
Emistry Posted December 5, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted December 5, 2013 the script should have working just like what you wanted how it work.. Quote Link to comment Share on other sites More sharing options...
blakbord Posted December 5, 2013 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 108 Reputation: 1 Joined: 02/10/12 Last Seen: March 10, 2024 Author Share Posted December 5, 2013 the script should have working just like what you wanted how it work.. I know that its working sir Emistry, but the script goes like this.. When I warp at that map (prt_maze03) Anti-Bot shows.. (input the right code and done) prt_maze03 has many portal, when I enter at the portal the Anti-Bot appears again.. All I want is: Warp to the MAP and then Anti-Bot show.. (input the right code and done..) After 1 Hour the Anti-Bot show again.. (input again) Every 1 Hour the Anti-Bot shows and so on and so on.. Quote Link to comment Share on other sites More sharing options...
Question
blakbord
•I want to make this script everytime I warp at the map this will trigger
•I want to make also this script triggers every hour
can anyone help me? thanks..
Edited by blakbordLink 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.