Advertisement
hendra814

Room antibot

Aug 22nd, 2011
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.59 KB | None | 0 0
  1. //===== eAthena Script =======================================
  2. //= Bot Checker
  3. //===== Made By: ============================================
  4. //= Mystogan
  5. //===== Compatible With: =====================================
  6. //= eAthena SVN
  7. //===== Description: =========================================
  8. //= Simple Bot Checker with a code.
  9. //========================================================
  10.  
  11. // - The Warper
  12. -   script  DataScriptAntiBot   -1,{
  13. OnPCLoginEvent:
  14. warp    "lhz_in03", 260,    261;
  15. end;
  16. }
  17.  
  18. // - The Script
  19. lhz_in03,260,266,4  script  Bot Checker 75,{
  20. set @bot1, rand (10,99);
  21. set @bot2, rand (2,7);
  22. set @bot3, rand (1,9);
  23. set @bot4, rand (0,9);
  24. set @bot5, rand (0,9);
  25. set @bot6, rand (10,99);
  26. mes "[^00ccffBot Checker^000000]";
  27. mes "Please enter this code correctly.";
  28. mes "";
  29. mes "Code: ^0000FF"+@bot1+""+@bot2+""+@bot3+""+@bot4+""+@bot5+""+@bot6+"^000000";
  30. input @codes2$;
  31. if (@codes2$ == ""+@bot1+""+@bot2+""+@bot3+""+@bot4+""+@bot5+""+@bot6+"") {
  32. next;
  33. mes "[^00ccffBot Checker^000000]";
  34. mes "We have confirmed that you're not a bot.";
  35. close2;
  36. warp    "prontera", 155,    179;
  37. end;
  38. }
  39. next;
  40. mes "[^00ccffApel Ragnarok Online^000000]";
  41. mes "The code you have entered is incorrect.";
  42. mes "Please try again.";
  43. close2;
  44. atcommand strcharinfo(0)+ "@kick "+strcharinfo(0)+"";
  45. end;
  46. }
  47.  
  48. // - The Mapflags
  49. lhz_in03    mapflag nowarpto
  50. lhz_in03    mapflag nowarp
  51. lhz_in03    mapflag noreturn
  52. lhz_in03    mapflag nosave
  53. lhz_in03    mapflag noteleport
  54. lhz_in03    mapflag nomemo
  55. lhz_in03    mapflag noexp
  56. lhz_in03    mapflag noloot
  57. lhz_in03    mapflag noskill
  58. lhz_in03    mapflag noicewall
  59. lhz_in03    mapflag nobranch
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement