blakbord Posted December 5, 2013 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
Emistry Posted December 5, 2013 Posted December 5, 2013 the script should have working just like what you wanted how it work.. Quote
blakbord Posted December 5, 2013 Author 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
Dynasty Posted December 6, 2013 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
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 blakbord3 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.