rexxar31 Posted April 17, 2012 Posted April 17, 2012 - 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? Quote
XenaNyx Posted April 17, 2012 Posted April 17, 2012 - 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; } Quote
rexxar31 Posted April 17, 2012 Author Posted April 17, 2012 - 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. Quote
Nameless2you Posted April 17, 2012 Posted April 17, 2012 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. Quote
rexxar31 Posted April 17, 2012 Author Posted April 17, 2012 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. Quote
Nameless2you Posted April 17, 2012 Posted April 17, 2012 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..? Quote
NeoGenesis Posted April 18, 2012 Posted April 18, 2012 how about to other job like clown & gypsy only to detect in this anti bot ? Quote
rexxar31 Posted April 19, 2012 Author Posted April 19, 2012 it is working correctly but i want is, if the character is a gm of level 99 the character will bypass the verification code. Quote
Emistry Posted May 1, 2012 Posted May 1, 2012 change if( getgmlevel() < 60 ){ into if( getgmlevel() < 99 ){ Quote
rexxar31 Posted May 2, 2012 Author Posted May 2, 2012 (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 May 2, 2012 by rexxar31 Quote
Magnetix Posted May 2, 2012 Posted May 2, 2012 (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 May 2, 2012 by Magnetix Quote
Emistry Posted May 2, 2012 Posted May 2, 2012 @rexxar31 your script have 1 missing "{" at the end of the script... Quote
Question
rexxar31
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.