Jump to content
  • 0
Yasunari Ishibashi

Request Security NPC

Question

11 answers to this question

Recommended Posts

In the simplest form, you could write something like this:

set [email protected]$,"";
for(set [email protected],0; [email protected]<5; set [email protected],[email protected]+1)  // Increase "5" for more digits
 set [email protected]$, [email protected]$+rand(10);
mes "Code: "[email protected]$;
input [email protected];
if ([email protected] != atoi([email protected]$)) close;
// script resumes

Of course, people have gone way above and beyond with ASCII images and such, but that requires a lot more work~

Link to comment
Share on other sites

how to make this script in a certain map? example prontera map can u make one?

set .@code$,"";

for(set .@i,0; .@i<5; set .@i,.@i+1) // Increase "5" for more digits

set .@code$, .@code$+rand(10);

mes "Code: "+.@code$;

input .@input;

if (.@input != atoi(.@code$)) close;

// script resumes

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.