Jump to content
  • 0

NPC Captcha


idLaZ

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  93
  • Reputation:   6
  • Joined:  12/10/11
  • Last Seen:  

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.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   241
  • Joined:  09/05/12
  • Last Seen:  

Post your gold room script here

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  


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;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  93
  • Reputation:   6
  • Joined:  12/10/11
  • Last Seen:  

@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!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

@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;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  93
  • Reputation:   6
  • Joined:  12/10/11
  • Last Seen:  

Ty sir!


 

Edited by idLaZ
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...