Jump to content
  • 0

ANTI Bot Scripting help


rexxar31

Question


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   0
  • Joined:  04/07/12
  • Last Seen:  

- 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?

Link to comment
Share on other sites

12 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   8
  • Joined:  02/08/12
  • Last Seen:  

- 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;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   0
  • Joined:  04/07/12
  • Last Seen:  

- 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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   52
  • Joined:  11/15/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   0
  • Joined:  04/07/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   52
  • Joined:  11/15/11
  • Last Seen:  

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..?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   0
  • Joined:  04/07/12
  • Last Seen:  

nope.. its just doesnt work. :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   0
  • Joined:  01/03/12
  • Last Seen:  

how about to other job like clown & gypsy only to detect in this anti bot ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   0
  • Joined:  04/07/12
  • Last Seen:  

it is working correctly but i want is, if the character is a gm of level 99 the character will bypass the verification code.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

change

if( getgmlevel() < 60 ){

into

if( getgmlevel() < 99 ){

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   0
  • Joined:  04/07/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  439
  • Reputation:   29
  • Joined:  12/08/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

@rexxar31

your script have 1 missing "{" at the end of the script...

Link to comment
Share on other sites

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.

×
×
  • Create New...