rexxar31 Posted April 17, 2012 Group: Members Topic Count: 62 Topics Per Day: 0.01 Content Count: 137 Reputation: 0 Joined: 04/07/12 Last Seen: May 17, 2012 Share 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 Link to comment Share on other sites More sharing options...
XenaNyx Posted April 17, 2012 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 131 Reputation: 8 Joined: 02/08/12 Last Seen: May 30, 2021 Share 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 Link to comment Share on other sites More sharing options...
rexxar31 Posted April 17, 2012 Group: Members Topic Count: 62 Topics Per Day: 0.01 Content Count: 137 Reputation: 0 Joined: 04/07/12 Last Seen: May 17, 2012 Author Share 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 Link to comment Share on other sites More sharing options...
Nameless2you Posted April 17, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 351 Reputation: 52 Joined: 11/15/11 Last Seen: June 15, 2015 Share 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 Link to comment Share on other sites More sharing options...
rexxar31 Posted April 17, 2012 Group: Members Topic Count: 62 Topics Per Day: 0.01 Content Count: 137 Reputation: 0 Joined: 04/07/12 Last Seen: May 17, 2012 Author Share 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 Link to comment Share on other sites More sharing options...
Nameless2you Posted April 17, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 351 Reputation: 52 Joined: 11/15/11 Last Seen: June 15, 2015 Share 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 Link to comment Share on other sites More sharing options...
rexxar31 Posted April 17, 2012 Group: Members Topic Count: 62 Topics Per Day: 0.01 Content Count: 137 Reputation: 0 Joined: 04/07/12 Last Seen: May 17, 2012 Author Share Posted April 17, 2012 nope.. its just doesnt work. Quote Link to comment Share on other sites More sharing options...
NeoGenesis Posted April 18, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 120 Reputation: 0 Joined: 01/03/12 Last Seen: August 26, 2017 Share Posted April 18, 2012 how about to other job like clown & gypsy only to detect in this anti bot ? Quote Link to comment Share on other sites More sharing options...
rexxar31 Posted April 19, 2012 Group: Members Topic Count: 62 Topics Per Day: 0.01 Content Count: 137 Reputation: 0 Joined: 04/07/12 Last Seen: May 17, 2012 Author Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted May 1, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Thursday at 04:49 PM Share Posted May 1, 2012 change if( getgmlevel() < 60 ){ into if( getgmlevel() < 99 ){ Quote Link to comment Share on other sites More sharing options...
rexxar31 Posted May 2, 2012 Group: Members Topic Count: 62 Topics Per Day: 0.01 Content Count: 137 Reputation: 0 Joined: 04/07/12 Last Seen: May 17, 2012 Author Share 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 Link to comment Share on other sites More sharing options...
Magnetix Posted May 2, 2012 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 446 Reputation: 30 Joined: 12/08/11 Last Seen: October 13, 2024 Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted May 2, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Thursday at 04:49 PM Share Posted May 2, 2012 @rexxar31 your script have 1 missing "{" at the end of the script... Quote Link to comment Share on other sites More sharing options...
Question
rexxar31
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.