Advertisement
akbare

[Ragnarok] Type Event

Jan 25th, 2013
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. prontera,173,184,4 script Typing Event 859,{
  2.  
  3. // Set this to the minimum GM level allowed to access the GM CP.
  4. if (getgmlevel() >= 40) goto L_gm;
  5.  
  6. L_insert:
  7. if($prizewon == 0) {
  8. mes "[Oak]";
  9. mes "I am in-charge of hosting the 'Typo Event'";
  10. mes "...";
  11. next;
  12. mes "[Oak]";
  13. mes "Basically, it's an event that you will have to type EXACT letters that the Game Master typed!";
  14. next;
  15. mes "Please wait for the next event!";
  16. close;
  17. }
  18. mes "[Oak]";
  19. mes "Go on, TYPE "+$password$+"";
  20. input @text$;
  21. if ( $prizewon == 0 ) {
  22. mes "Too late, you were not fast enough!";
  23. close;
  24. }
  25. if (@text$ == $password$) goto L_win;
  26. if (@text$ != $password$) goto L_error;
  27.  
  28. L_error:
  29. mes "[Oak]";
  30. mes "Sorry, that's incorrect. Try again.";
  31. close;
  32.  
  33. L_win:
  34. mes "[Oak]";
  35. mes "Congratulations!! You typed it correctly!";
  36. announce "Oak: " + strcharinfo(0) + " has typed it correctly, what a quick playa!",0;
  37. getitem 674,2;
  38. dispbottom "Congratulations! You earned another Event Point!";
  39. dispbottom "Total Event Points: "+#ep+"";
  40. set $prizewon, 0;
  41. close;
  42. L_error1:
  43. mes "[Oak]";
  44. mes "Event still going..";
  45. close;
  46.  
  47. L_gm:
  48. if($prizewon == 1) goto L_error1;
  49. mes "[Oak]";
  50. mes "Hello GM " + strcharinfo(0) + ", What would you like to do?";
  51. switch(select("Set the words:Normal Player Mode:Announce")) {
  52. case 1:
  53. mes "[Oak]";
  54. mes "So, what words should I use this time boss?";
  55. input $password$;
  56. next;
  57. mes "[Oak]";
  58. mes "Ok, so you want the words to be ^008000"+$password$+"^000000? cool.";
  59. next;
  60. goto L_gm;
  61. case 2:
  62. next;
  63. goto L_insert;
  64. case 3:
  65. mes "[Oak]";
  66. mes "Ok, I'll let everyone know we're ready.";
  67. next;
  68. announce "Oak: Talk to me and type ("+$password$+")",0;
  69. set $prizewon, 1;
  70. next;
  71. goto L_gm;
  72. }
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement