Jump to content
  • 0

HELP ME WITH THIS SCRIPT ANYONE?


blakbord

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  108
  • Reputation:   1
  • Joined:  02/10/12
  • Last Seen:  

-    script    Anti-Bot    -1,{

OnInit:
    set .Map$,"prt_maze03";
    setmapflag .Map$,mf_loadevent;
    end;

OnPCLoadMapEvent:
if(strcharinfo(3) == .Map$){
    dispbottom "This is only to find out if you're a BOT";

    atcommand "@battleignore";
    atcommand "@adjgroup -1"+strcharinfo(0);
    atcommand "@option 2";
    sc_start SC_FREEZE,10000000,1;
    sc_start SC_HIDE,10000000,1;

        mes "Please Enter Red Color Key in the Code...";
        set .Code,rand(1000,99999);
        mes "^0000FF"+rand(1,9999)+"^FF0000"+.Code+"^0000FF"+rand(1,9999)+"^000000";

            input @Code;
                if( @Code != .Code ){
                    atcommand "@kick "+strcharinfo(0);
                }
                    else {
                        atcommand "@battleignore";
                        atcommand "@option 0";
                        sc_end SC_FREEZE;
                        sc_end SC_HIDE;
                        dispbottom "Sorry for INTERRUPTING you, Thank You!";
                        }
                    close;
        }
}

•I want to make this script everytime I warp at the map this will trigger

•I want to make also this script triggers every hour

 

can anyone help me? thanks..

Edited by blakbord
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  151
  • Reputation:   5
  • Joined:  11/09/12
  • Last Seen:  

-	script	Anti-bot	-1,{
OnPCLoginEvent:
    attachnpctimer ""+strcharinfo(0)+"";
    initnpctimer;
    end;

OnTimer3600000:
OnPCLoadMapEvent:
getmapxy(@map$,@x,@y,0);
if(strcharinfo(3) == @map$){
    setmapflag .Map$,mf_loadevent;
    dispbottom "This is only to find out if you're a BOT";

    atcommand "@battleignore";
    atcommand "@adjgroup -1"+strcharinfo(0);
    atcommand "@option 2";
    sc_start SC_FREEZE,10000000,1;
    sc_start SC_HIDE,10000000,1;

        mes "Please Enter Red Color Key in the Code...";
        set .Code,rand(1000,99999);
        mes "^0000FF"+rand(1,9999)+"^FF0000"+.Code+"^0000FF"+rand(1,9999)+"^000000";

            input @Code;
                if( @Code != .Code ){
stopnpctimer;
detachnpctimer;
                    atcommand "@kick "+strcharinfo(0);

                }
                    else {
                        atcommand "@battleignore";
                        atcommand "@option 0";
                        sc_end SC_FREEZE;
                        sc_end SC_HIDE;
                        dispbottom "Sorry for INTERRUPTING you, Thank You!";
                        stopnpctimer;
                        initnpctimer;
                        }
                    close;
        }
    end;
} 

well.. if im not wrong.. i can do it like this and both labels will run properly .-.

OnTimer3600000:
OnPCLoadMapEvent:

Warp to the MAP and then Anti-Bot show.. (input the right code and done..) [ready, please try it]

After 1 Hour the Anti-Bot show again.. (input again) [ready, please try it]

 

Only my point of view:

sometimes this tipe of anti-bots system could be annoying for the players. 

Edited by Dynasty
Link to comment
Share on other sites


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

the script should have working just like what you wanted how it work..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  108
  • Reputation:   1
  • Joined:  02/10/12
  • Last Seen:  

the script should have working just like what you wanted how it work..

 

I know that its working sir Emistry, but the script goes like this..

When I warp at that map (prt_maze03) Anti-Bot shows.. (input the right code and done)

prt_maze03 has many portal, when I enter at the portal the Anti-Bot appears again..

 

 

All I want is:

Warp to the MAP and then Anti-Bot show.. (input the right code and done..)

After 1 Hour the Anti-Bot show again.. (input again)

Every 1 Hour the Anti-Bot shows and so on and so on..

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