office,285,168,3	script	Mobile Macro Guard	8W_SOLDIER,{
	if (#BotAnswer$ == "") end;
	mes "Regulation Officer";
	mes "Hello ^00CC00"+strcharinfo(0)+"^000000!";
	mes "Please answer very simple math below:";
	if (#BotC==1) {
		mes "Given: [ A = "+#BotA+" and B = "+#BotB+" ].";
		mes "How much is A + B?";
	}
	if( #BotC==2) { 
		mes "Given: [ A = "+#BotA+" and B = "+#BotB+" ].";
		mes "How much is A - B?";
	}
	if ( #BotC==3) {
		mes "Given: [ A ="+#BotA+" and B ="+#BotB+" ].";
		mes "How much is B - A?";
	}
	next;
	input .@verifycode$;
	if (.@verifycode$==#BotAnswer$) {
		mes "^00CC00Regulation Officer^000000";
		mes "Thank you for verifying. I am sending you now to your training field/dungeon.";
		next;
		set Hp,mhp;
		set Sp,msp;
		warp mlastmap$, mlastx, mlasty;
		// Give INC AGI			
		if(getstatus(SC_INC_AGI) <=0) {
			if(Hp>15) {
				skilleffect AL_INCAGI,0;
				sc_start SC_INC_AGI,240000,10;
				heal -15,0;
			}
		}
		// Give BLESSING
		skilleffect AL_BLESSING,0;
		sc_start SC_BLESSING,240000,10;


			deltimer "antibot::OnFail";							if(.debug) dispbottom "[OnVerify] Deleting OnFail timer.";
			deltimer "antibot::OnCheck";							if(.debug) dispbottom "[OnVerify] Deleting OnCheck timer.";

			#BotAnswer$ = "";								if(.debug) dispbottom "[OnVerify] Set verification code to none.";
			#bot_verification_timer = 0;							if(.debug) dispbottom "[OnVerify] Set verification timer to zero.";
			#bot_verification_last = gettimetick(2);					if(.debug) dispbottom "[OnVerify] Set verification time "+#bot_verification_last;
			
			// Reset Timers
			.@timenow = gettimetick(2);							if(.debug) dispbottom "[OnVerify] Time: "+.@timenow;
			.@lastcheck = #bot_verification_last;						if(.debug) dispbottom "[OnVerify] Last: "+.@lastcheck;
			.@nextcheck = .@timenow + (getvariableofnpc(.check_minute, "antibot") * 60);	if(.debug) dispbottom "[OnVerify] Next: "+.@nextcheck;
			.@remainingtime = .@nextcheck-.@timenow;
			addtimer ( .@remainingtime * 600 ),"antibot::OnCheck";				if(.debug) dispbottom "[OnVerify] No Verifiication Code. Cheking in "+.@remainingtime/60+" minutes.";

		close;
	} else {
		#BotTry ++;
		if (#BotTry >= 5) {
		 	query_sql "INSERT INTO bot_watchlist (`account_id`,`char_id`,`name`,`timestamp`) VALUES ("+getcharid(CHAR_ID_ACCOUNT)+","+getcharid(CHAR_ID_CHAR)+",'"+escape_sql(strcharinfo(PC_NAME))+"','"+gettimestr("%Y-%m-%d %H:%M:%S",21)+"')";
			set #BotTry,0;	
		}
		mes "^00CC00Regulation Officer^000000";
		mes "That is not the correct code. Please try again.";

			
		close;
	}

OnInit:
	set .debug,0;	
}
