rpsroulette.txt 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. //===== eAthena Script =======================================
  2. //= Rock Scissors Roulette Script
  3. //===== By: ==================================================
  4. //= acky (1.1)
  5. //===== Current Version: =====================================
  6. //= 1.2
  7. //===== Compatible With: =====================================
  8. //= Any eAthena Version
  9. //===== Description: =========================================
  10. //= Plays a hybrid Russian Roulette Rock Scissors Paper game.
  11. //===== Additional Comments: =================================
  12. //= Prizes customisable, Added emotions.
  13. //= 1.2 Fixes by Blackthunder and me [Poki#3]
  14. //============================================================
  15. cmd_in02,182,126,2 script Crazy Boris 85,{
  16. mes "Crazy Boris";
  17. set @counter,1;
  18. mes "Hey you! Up for Rock Scissors Roulette?";
  19. next;
  20. menu "Let me play.",PLAY,"Explain the rules.",RULES,"Leave",LEAVE;
  21. SAME:
  22. mes "Draw! Again!";
  23. next;
  24. goto PLAY;
  25. WIN:
  26. mes "Damnit, You Win!";
  27. emotion 19;
  28. next;
  29. goto OPPPULL;
  30. LOSE:
  31. emotion 18;
  32. mes "Boorah! You Lose!";
  33. next;
  34. goto YOUPULL;
  35. PLAY:
  36. mes "Rock... Paper...";
  37. set @opp,rand (1,3);
  38. menu "^0000FFROCK!",ROCK,"^FF0000SCISSORS!",SCISSORS,"^00FF00PAPER!^000000",PAPER;
  39. ROCK:
  40. if (@lastchoice == 1) set @opp,rand (1,3);
  41. if (@opp == 1) emotion 11;
  42. if (@opp == 2) emotion 10;
  43. if (@opp == 3) emotion 12;
  44. set @lastchoice,1;
  45. if (@opp == 1) goto SAME;
  46. if (@opp == 2) goto WIN;
  47. if (@opp == 3) goto LOSE;
  48. SCISSORS:
  49. if (@lastchoice == 2) set @opp,rand (1,2);
  50. if (@opp == 1) emotion 11;
  51. if (@opp == 2) emotion 10;
  52. if (@opp == 3) emotion 12;
  53. set @lastchoice,2;
  54. if (@opp == 1) goto LOSE;
  55. if (@opp == 2) goto SAME;
  56. if (@opp == 3) goto WIN;
  57. PAPER:
  58. if (@lastchoice == 3) set @opp,rand (2,3);
  59. if (@opp == 1) emotion 11;
  60. if (@opp == 2) emotion 10;
  61. if (@opp == 3) emotion 12;
  62. set @lastchoice,3;
  63. if (@opp == 1) goto WIN;
  64. if (@opp == 2) goto LOSE;
  65. if (@opp == 3) goto SAME;
  66. YOUPULL:
  67. if (@counter == 1) goto ONE;
  68. if (@counter == 2) goto TWO;
  69. if (@counter == 3) goto THREE;
  70. if (@counter == 4) goto FOUR;
  71. if (@counter == 5) goto FIVE;
  72. if (@counter == 6) goto SIX;
  73. OPPPULL:
  74. if (@counter == 1) goto ONEa;
  75. if (@counter == 2) goto TWOa;
  76. if (@counter == 3) goto THREEa;
  77. if (@counter == 4) goto FOURa;
  78. if (@counter == 5) goto FIVEa;
  79. if (@counter == 6) goto SIXa;
  80. ONE:
  81. set @counter,2;
  82. mes "1 of 6";
  83. set @pull,rand (1,6);
  84. next;
  85. if (@pull == 1) goto DIE;
  86. if (@pull != 1) goto SAFE;
  87. TWO:
  88. set @counter,3;
  89. mes "2 of 6";
  90. set @pull,rand (1,5);
  91. next;
  92. if (@pull == 1) goto DIE;
  93. if (@pull != 1) goto SAFE;
  94. THREE:
  95. set @counter,4;
  96. mes "3 of 6";
  97. set @pull,rand (1,4);
  98. next;
  99. if (@pull == 1) goto DIE;
  100. if (@pull != 1) goto SAFE;
  101. FOUR:
  102. set @counter,5;
  103. mes "4 of 6";
  104. set @pull,rand (1,3);
  105. next;
  106. if (@pull == 1) goto DIE;
  107. if (@pull != 1) goto SAFE;
  108. FIVE:
  109. set @counter,6;
  110. mes "5 of 6";
  111. set @pull,rand (1,2);
  112. if (@pull == 1) set @pull,rand (1,2);
  113. next;
  114. if (@pull == 1) goto DIE;
  115. if (@pull != 1) goto SAFE;
  116. SIX:
  117. mes "6 of 6";
  118. mes "Say your prayers";
  119. set @pull,1;
  120. next;
  121. if (@pull == 1) goto DIE;
  122. if (@pull != 1) goto SAFE;
  123. ONEa:
  124. set @counter,2;
  125. mes "1 of 6";
  126. set @pull,rand (1,6);
  127. next;
  128. if (@pull == 1) goto KILL;
  129. if (@pull != 1) goto SAFE;
  130. TWOa:
  131. set @counter,3;
  132. mes "2 of 6";
  133. set @pull,rand (1,5);
  134. next;
  135. if (@pull == 1) goto KILL;
  136. if (@pull != 1) goto SAFE;
  137. THREEa:
  138. set @counter,4;
  139. mes "3 of 6";
  140. set @pull,rand (1,4);
  141. next;
  142. if (@pull == 1) goto KILL;
  143. if (@pull != 1) goto SAFE;
  144. FOURa:
  145. set @counter,5;
  146. mes "4 of 6";
  147. set @pull,rand (1,3);
  148. next;
  149. if (@pull == 1) goto KILL;
  150. if (@pull != 1) goto SAFE;
  151. FIVEa:
  152. set @counter,6;
  153. mes "5 of 6";
  154. set @pull,rand (1,2);
  155. next;
  156. if (@pull == 1) goto KILL;
  157. if (@pull != 1) goto SAFE;
  158. SIXa:
  159. mes "6 of 6";
  160. mes "Say your prayers";
  161. set @pull,1;
  162. next;
  163. if (@pull == 1) goto KILL;
  164. if (@pull != 1) goto SAFE;
  165. SAFE:
  166. emotion 32;
  167. mes "*^0000FFClick^000000* whew...";
  168. goto PLAY;
  169. DIE:
  170. specialeffect2 183;
  171. emotion 29;
  172. percentheal -100,-100;
  173. mes "*^0000FFClick^000000* *^FF0000BANG^000000*";
  174. mes "You're dead!";
  175. close;
  176. KILL:
  177. specialeffect 183;
  178. emotion 23;
  179. mes "*^0000FFClick^000000* *^FF0000BANG^000000*";
  180. mes "OWWW @#$%^!! THAT HURT LIKE HELL!!";
  181. next;
  182. goto PRIZE;
  183. RULES:
  184. mes "Ok here are the rules:";
  185. mes "I have with me a ^FF00006^000000 chamber pistol with ^FF00001^000000 round. First we play ^FF0000Scissors ^00FF00Paper ^0000FFRock^000000. The loser pulls the trigger. The winner is whoever comes out best.";
  186. mes "Beat me to win a prize.";
  187. menu "Let me play.",CONT,"No thanks.",LEAVE;
  188. CONT:
  189. mes "Ok here we go...";
  190. next;
  191. goto PLAY;
  192. PRIZE:
  193. mes "Congratulations! You have won...";
  194. set @prize,rand (1,10);
  195. if (@prize == 1) goto P1;
  196. if (@prize == 2) goto P2;
  197. if (@prize == 3) goto P3;
  198. if (@prize == 4) goto P4;
  199. if (@prize == 5) goto P5;
  200. if (@prize == 6) goto P6;
  201. if (@prize == 7) goto P7;
  202. if (@prize == 8) goto P8;
  203. if (@prize == 9) goto P9;
  204. if (@prize == 10) goto P10;
  205. P1:
  206. mes "10x Oridicon!";
  207. getitem 984,10;
  208. close;
  209. P2:
  210. mes "10x Elunium!";
  211. getitem 985,10;
  212. close;
  213. P3:
  214. mes "100x Fly Wings!";
  215. getitem 601,100;
  216. close;
  217. P4:
  218. mes "8x Old Blue Box!";
  219. getitem 603,8;
  220. close;
  221. P5:
  222. mes "4x Old Violet Box!";
  223. getitem 617,4;
  224. close;
  225. P6:
  226. mes "1x Old Card Album!";
  227. getitem 616,1;
  228. close;
  229. P7:
  230. mes "10x Dead Branch!";
  231. getitem 604,10;
  232. close;
  233. P8:
  234. mes "3x Gold!";
  235. getitem 969,3;
  236. close;
  237. P9:
  238. mes "10x Elunium!";
  239. getitem 985,10;
  240. close;
  241. P10:
  242. mes "20x Blue Potion!";
  243. getitem 505,20;
  244. close;
  245. LEAVE:
  246. mes "Pansy.";
  247. close;
  248. }