Virtue Posted April 12, 2012 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
Emistry Posted April 12, 2012 Posted April 12, 2012 if(strcharinfo(3) = "gl_prison" || strcharinfo(3) = "gl_prison1" ){ Quote
Lordamax Posted April 14, 2012 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
plankt Posted April 14, 2012 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
Lordamax Posted April 16, 2012 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
Lordamax Posted April 18, 2012 Posted April 18, 2012 [WARNING]: npc_event: player's event queue is full, can't add event 'Checker::OnNPCKillEvent' ! Quote
Lordamax Posted April 20, 2012 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
Yohann Posted March 9, 2013 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
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 mnjfx10 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.