Virtue Posted April 12, 2012 Group: Members Topic Count: 92 Topics Per Day: 0.02 Content Count: 354 Reputation: 22 Joined: 11/17/11 Last Seen: May 12, 2024 Share Posted April 12, 2012 (edited) - script Antibot -1,{ OnPCLoginEvent: if(strcharinfo(3) = gl_prison || strcharinfo(3) = gl_prison1 ){ atcommand "@option 2"; sc_start SC_BERSERK,10000000,1; 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"; sc_end SC_BERSERK; } close; } end; } will this work? i just want the antibot to work in certain maps to prevent zeny/gold farming, besides i am running a pk map. and what do i need to add to run this antibot every 1hr or 2hrs only on those maps. thanks in advance to those who will help. Edited April 12, 2012 by mnjfx Quote Link to comment Share on other sites More sharing options...
Emistry Posted April 12, 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 April 12, 2012 if(strcharinfo(3) = "gl_prison" || strcharinfo(3) = "gl_prison1" ){ Quote Link to comment Share on other sites More sharing options...
Virtue Posted April 13, 2012 Group: Members Topic Count: 92 Topics Per Day: 0.02 Content Count: 354 Reputation: 22 Joined: 11/17/11 Last Seen: May 12, 2024 Author Share Posted April 13, 2012 i'll try that emistry, thanks. Quote Link to comment Share on other sites More sharing options...
Lordamax Posted April 14, 2012 Group: Members Topic Count: 71 Topics Per Day: 0.01 Content Count: 328 Reputation: 13 Joined: 11/27/11 Last Seen: July 2, 2016 Share Posted April 14, 2012 Hi! Emistry how can i modify to check when example: the player killed 80 mobs then the anti bot will check it? and it checks all maps? Quote Link to comment Share on other sites More sharing options...
plankt Posted April 14, 2012 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 130 Reputation: 43 Joined: 12/11/11 Last Seen: July 16, 2017 Share Posted April 14, 2012 (edited) You can switch "OnPCLoginEvent" for: OnNPCKillEvent:This special label triggers when a player kills a monster. And use a temporary char variable to keep track of monsters killed, ex: // Increase the mobs killed by 1 set @mobskilled, @mobskilled+1; // If the user has killed less then 80 mobs, don't run the script if(@mobskilled < 80) end; // Then reset the variable so we can start counting again set @mobskilled, 0; Edited April 14, 2012 by plankt Quote Link to comment Share on other sites More sharing options...
Lordamax Posted April 16, 2012 Group: Members Topic Count: 71 Topics Per Day: 0.01 Content Count: 328 Reputation: 13 Joined: 11/27/11 Last Seen: July 2, 2016 Share Posted April 16, 2012 I have modified something here but my new problem is i'm getting event queue problem in map server. How can I optimize it? - script Checker -1,{ OnNPCLoginEvent: OnNPCKillEvent: set @name$,strcharinfo(0); set @mobskilled, @mobskilled + 1; if((@mobskilled >= 100) || (#check == 1)){ set #check,1; atcommand "@option 2"; sc_start SC_BERSERK,10000000,1; mes "[Checker]"; mes "Please Input the ^FF0000RED NUMBERS ^0000FFinside the Input Box..."; set .Code,rand(1000,99999); mes "^0000FF"+rand(1,9999)+"^FF0000"+.Code+"^0000FF"+rand(1,9999)+"^000000"; input @Code; if( @Code != .Code ){ mes "I'm sorry but you have to relog again "; next; atcommand "@kick "+strcharinfo(0); } else { atcommand "@option 0"; sc_end SC_BERSERK; set @mobskilled, 0; set #check,0; percentheal 100,100; } close; } end; } Quote Link to comment Share on other sites More sharing options...
plankt Posted April 16, 2012 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 130 Reputation: 43 Joined: 12/11/11 Last Seen: July 16, 2017 Share Posted April 16, 2012 Could you show the errors? 1 Quote Link to comment Share on other sites More sharing options...
Lordamax Posted April 18, 2012 Group: Members Topic Count: 71 Topics Per Day: 0.01 Content Count: 328 Reputation: 13 Joined: 11/27/11 Last Seen: July 2, 2016 Share Posted April 18, 2012 [WARNING]: npc_event: player's event queue is full, can't add event 'Checker::OnNPCKillEvent' ! Quote Link to comment Share on other sites More sharing options...
WhatFT Posted April 19, 2012 Group: Members Topic Count: 142 Topics Per Day: 0.03 Content Count: 511 Reputation: 7 Joined: 02/15/12 Last Seen: April 11, 2014 Share Posted April 19, 2012 Is the script given by Emistry working? Quote Link to comment Share on other sites More sharing options...
Lordamax Posted April 20, 2012 Group: Members Topic Count: 71 Topics Per Day: 0.01 Content Count: 328 Reputation: 13 Joined: 11/27/11 Last Seen: July 2, 2016 Share Posted April 20, 2012 Just attempting the modify the script so that if the player presses alt+f4 while having the interrogation will still resume if he log in again. Quote Link to comment Share on other sites More sharing options...
Yohann Posted March 9, 2013 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 18 Reputation: 0 Joined: 01/22/13 Last Seen: August 21, 2013 Share Posted March 9, 2013 [WARNING]: npc_event: player's event queue is full, can't add event 'Checker::OnNPCKillEvent' ! edit to your src folder the que_event Quote Link to comment Share on other sites More sharing options...
Question
Virtue
will this work? i just want the antibot to work in certain maps to prevent zeny/gold farming, besides i am running a pk map.
and what do i need to add to run this antibot every 1hr or 2hrs only on those maps. thanks in advance to those who will help.
Edited by mnjfxLink to comment
Share on other sites
10 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.