Jump to content
  • 0

Request Security NPC


Yasunari Ishibashi

Question


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   2
  • Joined:  01/06/12
  • Last Seen:  

if you could give examples of security npc script? function so the script provides code that must be answered before entering a particular room.

Link to comment
Share on other sites

11 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  218
  • Reputation:   32
  • Joined:  05/29/12
  • Last Seen:  

a npc with a input or a npc with a question like a captcha?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

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

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

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


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   2
  • Joined:  01/06/12
  • Last Seen:  

whether the security code can be made random letters & numbers?

and given a color to be answered is red instead of blue. whether it could help me make this script?

Link to comment
Share on other sites


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

try this

http://upaste.me/052d5070412a9c6

refer post#9

Edited by Emistry
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.03
  • Content Count:  455
  • Reputation:   3
  • Joined:  06/19/12
  • Last Seen:  

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


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

OnPCLoadMapEvent:
if( strcharinfo(3) == "prontera" ){
.........blablablablabl.................
}
end;

prontera    mapflag    loadevent

Link to comment
Share on other sites


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

Whats the code to access? >.<

there is a mistake in the return statement.. >.<

try this..

http://pastebin.com/raw.php?i=5itqsMvp

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  99
  • Reputation:   4
  • Joined:  10/25/12
  • Last Seen:  

Working! Script completed. Tq,Emistry.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  12/12/12
  • Last Seen:  

how to insert this script ??? 

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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