Jump to content
  • 0

Antibot Help.


Virtue

Question


  • Group:  Members
  • Topic Count:  92
  • Topics Per Day:  0.02
  • Content Count:  354
  • Reputation:   22
  • Joined:  11/17/11
  • Last Seen:  

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

10 answers to this question

Recommended Posts


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

if(strcharinfo(3) = "gl_prison" ||  strcharinfo(3) = "gl_prison1"  ){

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  92
  • Topics Per Day:  0.02
  • Content Count:  354
  • Reputation:   22
  • Joined:  11/17/11
  • Last Seen:  

i'll try that emistry, thanks.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  71
  • Topics Per Day:  0.02
  • Content Count:  328
  • Reputation:   13
  • Joined:  11/27/11
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  130
  • Reputation:   43
  • Joined:  12/11/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  71
  • Topics Per Day:  0.02
  • Content Count:  328
  • Reputation:   13
  • Joined:  11/27/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  130
  • Reputation:   43
  • Joined:  12/11/11
  • Last Seen:  

Could you show the errors?

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  71
  • Topics Per Day:  0.02
  • Content Count:  328
  • Reputation:   13
  • Joined:  11/27/11
  • Last Seen:  

[WARNING]: npc_event: player's event queue is full, can't add event 'Checker::OnNPCKillEvent' !

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

Is the script given by Emistry working?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  71
  • Topics Per Day:  0.02
  • Content Count:  328
  • Reputation:   13
  • Joined:  11/27/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  01/22/13
  • Last Seen:  

[WARNING]: npc_event: player's event queue is full, can't add event 'Checker::OnNPCKillEvent' !

 

edit to your src folder  the que_event

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