Jump to content
  • 0

ANTI Bot Scripting help


Question

Posted

- script Sample -1,{
OnPCLoginEvent:
if( BaseClass == Job_Bard || BaseClass == Job_Dancer || BaseClass == Job_Novice || BaseClass == Job_Swordsman|| BaseClass == Job_Archer || BaseClass == Job_Thief || BaseClass == Job_Merchant || BaseClass == Job_Mage || BaseClass == Job_Acolyte ||
BaseClass == Job_Super_Novice || BaseClass == Job_Knight || BaseClass == Job_Crusader || BaseClass == Job_Hunter || BaseClass == Job_Assassin || BaseClass == Job_Rouge || BaseClass == Job_Blacksmith || BaseClass == Job_Alchemist || BaseClass == Job_Sage ||
BaseClass == Job_Wizard || BaseClass == Job_Priest || BaseClass == Job_Monk || BaseClass == Job_High_Novice || BaseClass == Job_High_Swordsman || BaseClass == Job_High_Archer || BaseClass == Job_High_Merchant || BaseClass == Job_High_Thief || BaseClass == Job_High_Mage ||
BaseClass == Job_High_Acolyte || BaseClass == Job_Lord_Knight || BaseClass == Job_Paladin || BaseClass == Job_Sniper || BaseClass == Job_Clown || BaseClass == Job_Gypsy || BaseClass == Job_Assassin_Cross || BaseClass == Job_Stalker || BaseClass == Job_Whitesmith || BaseClass == Job_Creator ||
BaseClass == Job_High_Wizard || BaseClass == Job_Professor || BaseClass == Job_Champion || BaseClass == Job_High_Priest){
atcommand "@option 2";
mes "Please Red Colour 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 "@option 0";
}
close;
}
end;
}
}

How can i edit it so that when a gm of level 99 logs in. the anti bot wont work?

12 answers to this question

Recommended Posts

Posted
- script Sample -1,{
OnPCLoginEvent:
if(getgmlevel() < 60) {
atcommand "@option 2";
mes "Please Red Colour 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 "@option 0";
}
end;
}

Posted

- script Sample -1,{
OnPCLoginEvent:
if(getgmlevel() < 60) {
atcommand "@option 2";
mes "Please Red Colour 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 "@option 0";
}
end;
}

not working. all characters can login and the anti bot is not working.

Posted

Using rathena?

remember please that getgmlevel no longer exists and it's getgroupid

Make sure you fill out the <tab> with real tabs

-<tab>script<tab>Sample<tab>-1,{
OnPCLoginEvent:
if(getgroupid() < 60) {
atcommand "@option 2";
mes "Please Red Colour Key in the Code...";
set .Code,rand(1000,99999);
mes "^0000FF"+rand(1000,99999)+"^FF0000"+.Code+"^0000FF"+rand(1000,99999)+"^000000";
input @Code;
if( @Code != .Code ){
atcommand "@kick "+strcharinfo(0);
}else{
atcommand "@option 0";
}
end;
}

I would however suggest using this:

http://upaste.me/d80418572bc6374

Because with the script inside the codebox the red colored text is always in the middle.. with the one in the link I gave you it's either left, middle or right side, changes it up a bit.

Posted

im using eAthena.

Using rathena?

remember please that getgmlevel no longer exists and it's getgroupid

Make sure you fill out the <tab> with real tabs

-<tab>script<tab>Sample<tab>-1,{
OnPCLoginEvent:
if(getgroupid() < 60) {
atcommand "@option 2";
mes "Please Red Colour Key in the Code...";
set .Code,rand(1000,99999);
mes "^0000FF"+rand(1000,99999)+"^FF0000"+.Code+"^0000FF"+rand(1000,99999)+"^000000";
input @Code;
if( @Code != .Code ){
atcommand "@kick "+strcharinfo(0);
}else{
atcommand "@option 0";
}
end;
}

I would however suggest using this:

http://upaste.me/d80418572bc6374

Because with the script inside the codebox the red colored text is always in the middle.. with the one in the link I gave you it's either left, middle or right side, changes it up a bit.

in using eAthena and BTW this also dont work. even the ordinary characters can login without any verification.

Posted

Well of course it doesn't work if you're using eAthena that's why I asked if you're using rAthena.. ._.

The scripts I gave would only be compatible or at least the getgroupid are only compatible with rA

Are you getting any error in the mapserver when the script loads..?

Posted (edited)

change

if( getgmlevel() < 60 ){

into

if( getgmlevel() < 99 ){

still all characters can log in without the verification code.

i am refering to this code:

- script Sample -1,{
OnPCLoginEvent:
if(getgmlevel() < 99) {
atcommand "@option 2";
mes "Please Red Colour 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 "@option 0";
}
end;
}

Edited by rexxar31
Posted (edited)

try using this script

-    script    antibot    -1,{
OnPCLoginEvent:

   if(getgmlevel() == 99) end;
   atcommand "@option 2";
   mes "Please Red Colour 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);
       end;
   }
   atcommand "@option 0";
   end;
}

Edited by Magnetix

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...