Jump to content
  • 0

[Ask] Antibot


Question

Posted (edited)

-	script	Checker	-1,{
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...";
	next;
	set .Code,rand(1000,99999);
	mes "^0000FF"+rand(1,9999)+"^FF0000"+.Code+"^0000FF"+rand(1,9999)+"^000000";
	input @Code;
	if( @Code != .Code ){
	mes "Wrong";
	sc_end sc_berserk;
	atcommand "@option 0";
	atcommand "@load";
	atcommand "@alootid";
	atcommand "@autoloot 0";
	atcommand "@mute 1 "+strcharinfo(0);
	} else {
		atcommand "@option 0";
		sc_end SC_BERSERK;
		set @mobskilled, 0;
		set #check,0;
		percentheal 100,100;
	}
	close;
}
end;
}

ask :

1. how to set in certain map only?

2. why if wrong answer , and backto savepoint the police ask about red code ( number ) again?

3. how to make a case example :

- 1x wrong = mute only 1 minutes

- 2x wrong = mute 30minutes

- 3x= wrong = mute 1 hours~

and back to first case again if already get the final case...

this case always count everytime...so after wrong at first time..get case 1 , and if wrong again at next time get case 2 and same think at case 3~ after case tree go back to case 1 again..

sorry for bad english ~_~

Edited by RyokoMVP

4 answers to this question

Recommended Posts

Posted

1) depending on revision u can use strcharinfo(3) to get mapname or the getmapxy() command... Then check an if against that map

2) because your check checks if #check == 1 which is what u ser it to and never unset it

3) store a variable for integer on char such as num_code_wrong and +1 to it in every wrong try... Use

Switch (num_code_wrong) {

case 1: mes "one wrong"; close;

Case 2: mes "two wrong"; close;

Case 3: mes "three wrong"; close;

Default: mes "none wrong"; close;

}

Posted (edited)

1) depending on revision u can use strcharinfo(3) to get mapname or the getmapxy() command... Then check an if against that map

2) because your check checks if #check == 1 which is what u ser it to and never unset it

3) store a variable for integer on char such as num_code_wrong and +1 to it in every wrong try... Use

Switch (num_code_wrong) {

case 1: mes "one wrong"; close;

Case 2: mes "two wrong"; close;

Case 3: mes "three wrong"; close;

Default: mes "none wrong"; close;

}

can u help me to input this ?

and if my player already answer this bot they always lose her mount..

can u help me ? so after answer the antibot , my player can get the mount again...thanks 4 help me >_<" sorry im noob

i already try to input your case by myself...but failed >_<"

Edited by RyokoMVP

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...