penal_servitude.txt 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. //===== rAthena Script =======================================
  2. //= Penal Servitude
  3. //===== By: ==================================================
  4. //= Lupus
  5. //===== Current Version: =====================================
  6. //= 1.2
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= A simple Penal Servitude Script.
  11. //= It could cheer up your prisoners a bit.
  12. //===== Additional Comments: =================================
  13. // This script uses CHEQUES of the 2nd KAFRA_BANK.TXT
  14. // var PRISON - it counts number of your imprisonments.
  15. // 1.1 English translation
  16. // 1.2 Stricted the conditions a bit
  17. //============================================================
  18. sec_pri,36,58,1 script Chief Warder 105,{
  19. mes "[Saddeus]";
  20. emotion e_what;
  21. mes (Sex?"Mr.":"Ms.")+" Prisoner #"+BaseLevel+JobLevel+",";
  22. mes "what's the noise over there?";
  23. next;
  24. menu "Let me free, I'll pay!",-, "Let me to work off my freedom!",M_Q1, "Nothing",M_NO_THANKS;
  25. M_PAY:
  26. mes "[Saddeus]";
  27. set .@MUSTPAY,(PRISON+1)*1000000;
  28. if (.@MUSTPAY<1000000) set .@MUSTPAY,1000000;
  29. if (.@MUSTPAY>100000000) set .@MUSTPAY,100000000;
  30. if (PRISON==0) mes "I can't remember you. Is it your 1st time?";
  31. if (PRISON>0) mes "You again? Somebody hasn't grown wiser from the very first visit...";
  32. mes "OK, we could release you for ^FF0000"+.@MUSTPAY+"z^000000.";
  33. next;
  34. menu "I pay cash!",M_PAYCASH,"Do you accept cheques?",M_PAYBANK,"I've changed my mind.",-;
  35. mes "[Saddeus]";
  36. mes "You've got some time to think about...";
  37. close;
  38. M_PAYCASH:
  39. if (.@MUSTPAY>Zeny) goto L_NOCASH;
  40. set Zeny,Zeny-.@MUSTPAY;
  41. mes "[Saddeus]";
  42. mes "OK, sing here and there.";
  43. goto L_RELEASE;
  44. L_NOCASH:
  45. mes "[Saddeus]";
  46. mes "What's this? It's not enough!";
  47. close;
  48. M_PAYBANK:
  49. if (.@MUSTPAY>#kafrabank) goto L_NOBANK;
  50. set #kafrabank,#kafrabank-.@MUSTPAY;
  51. mes "[Saddeus]";
  52. mes "OK, sign your cheque. And put down your name in my book.";
  53. goto L_RELEASE;
  54. L_NOBANK:
  55. mes "[Saddeus]";
  56. if (#kafrabank==0) mes "Your case says nothing about your bank accounts.";
  57. if (#kafrabank!=0) mes "Alas, there's your bank account info... ^FF0000"+#kafrabank+"z^000000... in the case. It's not enough.";
  58. mes "Stop your silly games now!";
  59. close;
  60. L_RELEASE:
  61. set PRISON,PRISON+1;
  62. next;
  63. mes "[Saddeus]";
  64. mes "You are free now!";
  65. next;
  66. savepoint "izlude",105,112;
  67. warp "izlude",105,112;
  68. close;
  69. M_Q1:
  70. mes "[Saddeus]";
  71. mes "Our stocks are short of toadstools. Remember your morning's skilly? What about some work at our sponsored mushroom farm?";
  72. next;
  73. menu "OK, I'll work off!",-, "I love this prison!",M_NO_THANKS;
  74. mes "[Saddeus]";
  75. if(checkcart() || checkfalcon() || checkriding()){
  76. emotion e_hmm;
  77. mes "I'm sorry, you should release your Cart, PecoPeco or Falcon!";
  78. close;
  79. }
  80. mes "Talk to our overseer, Oliver.";
  81. next;
  82. nude;
  83. set .@rw,rand(1,4);
  84. if (.@rw==2) goto L_W2;
  85. if (.@rw==3) goto L_W3;
  86. if (.@rw==4) goto L_W4;
  87. L_W1:
  88. savepoint "sec_in02",179,76;
  89. warp "sec_in02",179,76;
  90. close;
  91. L_W2:
  92. savepoint "sec_in02",139,32;
  93. warp "sec_in02",139,32;
  94. close;
  95. L_W3:
  96. savepoint "sec_in02",100,28;
  97. warp "sec_in02",100,28;
  98. close;
  99. L_W4:
  100. savepoint "sec_in02",107,75;
  101. warp "sec_in02",107,75;
  102. close;
  103. M_NO_THANKS:
  104. mes "[Saddeus]";
  105. if (rand(2)) mes "Is today X-Mas time, huh?";
  106. mes "Now shut up and back off!";
  107. if (rand(2)) emotion e_omg;
  108. close;
  109. }
  110. sec_in02,137,57,1 script Overseer 708,{
  111. mes "[Oliver]";
  112. delitem 4002,countitem(4002);//Items: Fabre_Card,
  113. delitem 4009,countitem(4009);//Items: Chonchon_Card,
  114. delitem 4022,countitem(4022);//Items: Spore_Card,
  115. delitem 4048,countitem(4048);//Items: Poison_Spore_Card,
  116. if (PRISON_Q <= 0 ) goto L_GET_Q;
  117. mes "I want you to gather ^FF0000"+PRISON_Q+" Orange Net Mushroom^000000.";
  118. if ( countitem(1069)<PRISON_Q ) close;//Items: Orange_Net_Mushroom,
  119. mes "OK... hand me all the shrooms...";
  120. mes "Let me see... "+countitem(1069)+" of almost eadible ones...";//Items: Orange_Net_Mushroom,
  121. mes "And "+countitem(1070)+" useless deadly ones.";//Items: Orange_Gooey_Mushroom_,
  122. next;
  123. mes "[Oliver]";
  124. mes "Thank you. You are free!";
  125. set PRISON_Q,0;
  126. delitem 1069,countitem(1069);//Items: Orange_Net_Mushroom,
  127. delitem 1070,countitem(1070);//Items: Orange_Gooey_Mushroom_,
  128. next;
  129. savepoint "izlude",105,112;
  130. warp "izlude",105,112;
  131. close;
  132. L_GET_Q:
  133. set PRISON,PRISON+1;
  134. if (PRISON > 1) mes "Hmm... You've been here already... Well-well...";
  135. if ( countitem(1069) || countitem(1070) ) mes "Drop these mushrooms!! They are poisonous!";//Items: Orange_Net_Mushroom, Orange_Gooey_Mushroom_,
  136. delitem 1069,countitem(1069);//Items: Orange_Net_Mushroom,
  137. delitem 1070,countitem(1070);//Items: Orange_Gooey_Mushroom_,
  138. set PRISON_Q, PRISON*3 + BaseLevel/3;
  139. set PRISON_Q, PRISON_Q * (readparam(bAspd)/55 + 1);
  140. set PRISON_Q, PRISON_Q+rand(50,60);
  141. mes "OK, you must bring me ^FF0000"+PRISON_Q+"^000000 edible ^FF0000Orange Net Mushroom^000000 toadstoo.. shrooms.";
  142. if(readparam(bAspd)>=100) mes "You're a fast fella! You'll have to get more shrooms, then.";
  143. if (rand(10)<4) mes "And you may eat the deadly ones for breakfast.";
  144. close;
  145. }
  146. sec_in02 mapflag nomemo
  147. sec_in02 mapflag nosave SavePoint
  148. sec_in02 mapflag noteleport
  149. sec_in02 mapflag nobranch
  150. sec_in02 mapflag nowarp
  151. sec_in02 mapflag nowarpto
  152. sec_in02 mapflag noexp
  153. sec_in02 mapflag noskill
  154. //sec_in02 mapflag pvp
  155. //sec_in02 mapflag pvp_noparty
  156. //sec_in02 mapflag gvg
  157. sec_in02 mapflag pvp_nightmaredrop random,all,300
  158. sec_in02,138,55,100,100 monster Toadstool 1182,30,10000,10000,1
  159. sec_in02,138,55,100,100 monster Fabre 1184,10,20000,20000
  160. sec_in02,138,55,100,100 monster Chonchon 1183,11,20000,20000
  161. sec_in02,138,55,100,100 monster Spore 1014,12,20000,20000
  162. sec_in02,138,55,100,100 monster Poison Spore 1077,3,20000,20000