Jump to content
  • 0

Script Help


letstry

Question


  • Group:  Members
  • Topic Count:  87
  • Topics Per Day:  0.02
  • Content Count:  219
  • Reputation:   0
  • Joined:  05/03/12
  • Last Seen:  

I found an antibot script here http://rathena.org/b...ne-job-antibot/

And here's the code

- script Sample -1,{
OnPCLoginEvent:

if(BaseJob == Job_Bard || BaseJob == Job_Dancer ){
atcommand "@option 2";
sc_start SC_BERSERK,10000000,1;
mes "Please Red Colour 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 "@option 0";
sc_end SC_BERSERK;
}
close;
}
end;
}

How will I enable it to all jobs,

and only to certain map?

for example is,

They warped at pay_fild04, prt_fild08 or moc_fil09..

Then the antibot will show up,

Thank you in advance

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  183
  • Reputation:   15
  • Joined:  06/10/12
  • Last Seen:  

-<tab>script<tab>Sample<tab>-1,{
OnPCLoginEvent:

warp "map",x,y;
atcommand "@option 2";
sc_start SC_BERSERK,10000000,1;
mes "Please Red Colour 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 "@option 0";
sc_end SC_BERSERK;
}
end;
}

try i guess

Edited by Hurican Dooders
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:  

http://rathena.org/board/topic/56556-done-job-antibot/#entry112944

OnPCLoadMapEvent:
   if (strcharinfo(3) != "pay_fild04" && strcharinfo(3) != "prt_fild08" && strcharinfo(3) != "moc_fild09") end;
   // script
OnInit:
   setmapflag "pay_fild04",mf_loadevent;
   setmapflag "prt_fild08",mf_loadevent;
   setmapflag "moc_fild09",mf_loadevent;
   end;

http://rathena.org/wiki/Mapflag#loadevent

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  87
  • Topics Per Day:  0.02
  • Content Count:  219
  • Reputation:   0
  • Joined:  05/03/12
  • Last Seen:  

Like This?

- script Sample -1,{
OnPCLoadMapEvent:
    if (strcharinfo(3) != "pay_fild04" && strcharinfo(3) != "prt_fild08" && strcharinfo(3) != "moc_fild09") end;
atcommand "@option 2";
sc_start SC_BERSERK,10000000,1;
mes "Please Red Colour 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 "@option 0";
sc_end SC_BERSERK;
}
close;
end;
}
OnInit:
    setmapflag "pay_fild04",mf_loadevent;
    setmapflag "prt_fild08",mf_loadevent;
    setmapflag "moc_fild09",mf_loadevent;
    end;

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