Jump to content

Question

Posted

Hello, can someone help me and make an NPC with a random captcha before you can enter?

 

>Like in Gold Room, you need to enter the captcha before you can enter.

 

I hope you can help me, thanks.

5 answers to this question

Recommended Posts

Posted


if(@tcheck < 1) {

set captchoice,rand(1,10);

mes "Please enter the captcha!";

switch(captchoice) {

case 1:

mes "Please input the captcha";

mes "123capt1";

input botname$;

if(botname$ != "123capt1") atcommand "@kick "+strcharinfo(0);

break;

case 2:

mes "Please input the captcha";

mes "123capt2";

input botname$;

if(botname$ != "123capt2") atcommand "@kick "+strcharinfo(0);

break;

case 3:

mes "Please input the captcha";

mes "123capt3";

input botname$;

if(botname$ != "123capt3") atcommand "@kick "+strcharinfo(0);

break;

case 4:

mes "Please input the captcha";

mes "123capt4";

input botname$;

if(botname$ != "123capt4") atcommand "@kick "+strcharinfo(0);

break;

case 5:

mes "Please input the captcha";

mes "123capt5";

input botname$;

if(botname$ != "123capt5") atcommand "@kick "+strcharinfo(0);

break;

case 6:

mes "Please input the captcha";

mes "123capt6";

input botname$;

if(botname$ != "123capt6") atcommand "@kick "+strcharinfo(0);

break;

case 7:

mes "Please input the captcha";

mes "123capt7";

input botname$;

if(botname$ != "123capt7") atcommand "@kick "+strcharinfo(0);

break;

case 8:

mes "Please input the captcha";

mes "123capt8";

input botname$;

if(botname$ != "123capt8") atcommand "@kick "+strcharinfo(0);

break;

case 9:

mes "Please input the captcha";

mes "123capt9";

input botname$;

if(botname$ != "123capt9") atcommand "@kick "+strcharinfo(0);

break;

default:

mes "Please input the captcha";

mes "123capt10";

input botname$;

if(botname$ != "123capt10") atcommand "@kick "+strcharinfo(0);

break;

}

mes "Good job!";

set @tcheck,1;

}

Posted

@Patskie

This is my gold room script http://pastebin.com/ZzXEWhvm

 

@Anakid

Where do I put that script? I tried to put it under the  ordeal_1-2,0,0,0    script    Gold Room    -1,{   but nothing happened.

 

 

 Can you edit my gold room script?



Never mind, its working now. Thank you!

Posted

@Patskie

This is my gold room script http://pastebin.com/ZzXEWhvm

 

@Anakid

Where do I put that script? I tried to put it under the  ordeal_1-2,0,0,0    script    Gold Room    -1,{   but nothing happened.

 

 

 Can you edit my gold room script?

Never mind, its working now. Thank you!

 

You can also use this:

prontera,150,150,3	script	Test	123,{
set .@q1,rand(10000,99990);
mes "Please enter the Captcha!:";
mes "^0000FF"+.@q1+"^000000";
input .@q2;
if(.@q1!=.@q2) close;
warp "prontera",150,150;
end;
}

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