hello im having a problem in this anti bot system everytime the player wrongly answer the question and got dc the cart, falcon or peco are missing the script are removing it can anyone help me to fixed this problem ty
Quote
//================================================Name======================================================
// AntiBot (Official Release Name)
//===============================================Version====================================================
// 1.0
//===============================================Author=====================================================
// ____ _____ ______ __ __ __ _______ __ _____ __ __ _______
// | __ \ _ \| __ \| | \ | |/ ___ \ | | / / | \ | |/ ___ \
// | |__| | \ \ |__| | | \| | | _\_/ | |/ /| | \| | | _\_/
// | __/ | | /| | | | |_ \ | | | | | | | |_ \
// | |\ \_/ / |\ \| | |\ | \_/ | | |\ \| | |\ | \_/ |
// |__| \_____/|__| \__\__|__| \__|\______/ |__| \__\__|__| \__|\______/
//----------------------------------------Script Last Update 2020-------------------------------------------
//==============================================Changelog===================================================
// 1.0 *
// - Initial Release
//==========================================================================================================
- script Anti Bot -1,{
OnNPCKillEvent:
if(getgmlevel() > 0) end;
set @kill,@kill+1;
if(@kill >= rand(100,150)) goto Check;
end;
//OnPCLoginEvent:
Check:
if(getgmlevel() > 0) end;
getmapxy .@map$, .@x, .@y, BL_PC;
if(checkcart() == 1) set @cart,1;
if(checkfalcon() == 1) set @falcon,1;
if(checkriding() == 1) set @riding,1;
atcommand "@option 2 0 0";
atcommand "@battleignore";
setoption 0x2,1;
mes "[ ^FF7700Anti Bot^000000 ]";
mes "Bot checking time";
mes "Please input the number you see";
next;
switch( rand(1,5) ) {
case 1:
mes "################^83F52C##^000000################";
mes "##############^83F52C####^000000################";
mes "################^83F52C##^000000################";
mes "################^83F52C##^000000################";
mes "################^83F52C##^000000################";
mes "################^83F52C##^000000################";
mes "##############^83F52C######^000000##############";
input @num;
if(@num == 1) break;
atcommand "@kick "+strcharinfo(0);
end;
case 2:
mes "############^83F52C#######^000000###############";
mes "###########^83F52C##^000000#####^83F52C##^000000##############";
mes "##################^83F52C##^000000##############";
mes "############^83F52C#######^000000###############";
mes "###########^83F52C##^000000#####################";
mes "###########^83F52C##^000000#####################";
mes "###########^83F52C#########^000000##############";
input @num;
if(@num == 2) break;
atcommand "@kick "+strcharinfo(0);
end;
case 3:
mes "############^83F52C#######^000000###############";
mes "###########^83F52C##^000000#####^83F52C##^000000##############";
mes "##################^83F52C##^000000##############";
mes "############^83F52C#######^000000###############";
mes "##################^83F52C##^000000##############";
mes "###########^83F52C##^000000#####^83F52C##^000000##############";
mes "############^83F52C#######^000000###############";
input @num;
if(@num == 3) break;
atcommand "@kick "+strcharinfo(0);
end;
case 4:
mes "###################################";
mes "###########^83F52C##^000000####^83F52C##^000000###############";
mes "###########^83F52C##^000000####^83F52C##^000000###############";
mes "###########^83F52C##^000000####^83F52C##^000000###############";
mes "###########^83F52C#########^000000##############";
mes "#################^83F52C##^000000###############";
mes "#################^83F52C##^000000###############";
input @num;
if(@num == 4) break;
atcommand "@kick "+strcharinfo(0);
end;
case 5:
mes "###########^83F52C########^000000###############";
mes "###########^83F52C##^000000#####################";
mes "###########^83F52C##^000000#####################";
mes "###########^83F52C#######^000000################";
mes "#################^83F52C##^000000###############";
mes "###########^83F52C##^000000####^83F52C##^000000###############";
mes "############^83F52C######^000000################";
input @num;
if(@num == 5) break;
atcommand "@kick "+strcharinfo(0);
end;
}
next;
mes "[ ^FF7700Anti Bot^000000 ]";
mes "Thank you for your patience, you can now move on.";
atcommand "@option 0 0 0";
atcommand "@battleignore";
setoption 0x2,0;
sc_end sc_berserk;
set @kill,0;
if(@cart == 1) {
setcart;
set @cart,0;
}
if(@falcon == 1) {
setfalcon;
set @falcon,0;
}
if(@riding == 1) {
setriding;
set @riding,0;
}
close;
}
Question
Sallycantdance
hello im having a problem in this anti bot system everytime the player wrongly answer the question and got dc the cart, falcon or peco are missing the script are removing it can anyone help me to fixed this problem ty
Link to comment
Share on other sites
5 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.