Jump to content
  • 0

when the jail time ends it will ask for another question-anti bot`


RN1986

Question


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.03
  • Content Count:  439
  • Reputation:   2
  • Joined:  05/04/12
  • Last Seen:  

when jail time ends? if the answer is wrong the character will remain for another 3mins

and if the answer is correct... character will unjail instantly..

- script AntiBot -1,{

OnNPCKillEvent:
if( rand(1) > 1 ) end;  // 5% trigger
atcommand "@option 2 0 3";
set .@A,rand(5);
set .@B,rand(5);
mes "If A = "+.@A+"   B = "+.@B;
switch( rand(1) ){
Case 0:
set .@Answer,.@A + .@B;
mes "How many is A + B ?";
break;
//Case 1:
set .@Answer,.@A - .@B;
mes "How many is A - B ?";
break;
//Case 2:
set .@Answer,.@A * .@B;
mes "How many is A * B ?";
break;
//Case 3:
set .@Answer,.@A / .@B;
mes "DarkSider-RO police` How many is A / B ?";
break;
}
input .@Input;
if( .@Input != .@Answer ){
mes "Wrong";
atcommand "@option 0";
atcommand "@jailfor 3 "+strcharinfo(0);
}
else if( .@Input == .@Answer ){
mes "Good Job!";
atcommand "@option 0";
percentheal 0,100; // since berserk use your 100% sp
}
close;
}

bump ^_^

Edited by Emistry
Please use [CODEBOX] for long contents.
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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