penal_servitude.txt 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. //===== Athena Script =======================================
  2. //= Penal Servitude Script
  3. //===== By ================================================
  4. //= Lupus
  5. //===== Version ===========================================
  6. //= 1.1
  7. //===== Compatible With ===================================
  8. //= eAthena Final (SVN)
  9. //===== Description =======================================
  10. //= A simple Penal Servitude Script.
  11. //= It could cheer up your prisoners a bit.
  12. //===== 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. //=========================================================
  17. sec_pri.gat,36,58,1 script Chief Warder 105,{
  18. mes "[Saddeus]";
  19. emotion 1;
  20. if (sex) mes "Mr. Prisoner #"+BaseLevel+JobLevel+",";
  21. if (!sex) mes "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==1) mes "I can't remember you. Is it your 1st time?";
  31. if (PRISON>1) mes "You again? Sombody 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.gat",105,112;
  67. warp "izlude.gat",105,112;
  68. close;
  69. M_Q1:
  70. //・褥・1
  71. mes "[Saddeus]";
  72. mes "Our stocks are short of toadstools. Remember your morning's skilly? What about some work at our sponsored mushroom farm?";
  73. next;
  74. menu "OK, I'll work off!",-, "I love this prison!",M_NO_THANKS;
  75. mes "[Saddeus]";
  76. mes "Talk to our overseer, Oliver.";
  77. next;
  78. nude;
  79. set @rw,rand(1,4);
  80. if (@rw==2) goto L_W2;
  81. if (@rw==3) goto L_W3;
  82. if (@rw==4) goto L_W4;
  83. L_W1:
  84. savepoint "sec_in02.gat",179,76;
  85. warp "sec_in02.gat",179,76;
  86. close;
  87. L_W2:
  88. savepoint "sec_in02.gat",139,32;
  89. warp "sec_in02.gat",139,32;
  90. close;
  91. L_W3:
  92. savepoint "sec_in02.gat",100,28;
  93. warp "sec_in02.gat",100,28;
  94. close;
  95. L_W4:
  96. savepoint "sec_in02.gat",107,75;
  97. warp "sec_in02.gat",107,75;
  98. close;
  99. M_NO_THANKS:
  100. mes "[Saddeus]";
  101. if (rand(2)) mes "Is today X-Mas time, huh?";
  102. mes "Now shut up and back off!";
  103. if (rand(2)) emotion 23;
  104. close;
  105. }
  106. sec_in02.gat,137,57,1 script Overseer 708,{
  107. mes "[Oliver]";
  108. delitem 4002,countitem(4002);//Items: Fabre_Card,
  109. delitem 4009,countitem(4009);//Items: Chonchon_Card,
  110. delitem 4022,countitem(4022);//Items: Spore_Card,
  111. delitem 4048,countitem(4048);//Items: Poison_Spore_Card,
  112. if (PRISON_Q <= 0 ) goto L_GET_Q;
  113. mes "I want you to gather ^FF0000"+PRISON_Q+" Orange Net Mushroom^000000.";
  114. if ( countitem(1069)<PRISON_Q ) close;//Items: Orange_Net_Mushroom,
  115. mes "OK... hand me all the shrooms...";
  116. mes "Let me see... "+countitem(1069)+" of almost eadible ones...";//Items: Orange_Net_Mushroom,
  117. mes "And "+countitem(1070)+" useless deadly ones.";//Items: Orange_Gooey_Mushroom_,
  118. next;
  119. mes "[Oliver]";
  120. mes "Thank you. You are free!";
  121. set PRISON_Q,0;
  122. delitem 1069,countitem(1069);//Items: Orange_Net_Mushroom,
  123. delitem 1070,countitem(1070);//Items: Orange_Gooey_Mushroom_,
  124. next;
  125. savepoint "izlude.gat",105,112;
  126. warp "izlude.gat",105,112;
  127. close;
  128. L_GET_Q:
  129. set PRISON,PRISON+1; //・磊籵・・・�・...
  130. if (PRISON > 1) mes "Hmm... You've been here already... Well-well...";
  131. if ( countitem(1069) || countitem(1070) ) mes "Drop these mushrooms!! They are poisonous!";//Items: Orange_Net_Mushroom, Orange_Gooey_Mushroom_,
  132. delitem 1069,countitem(1069);//Items: Orange_Net_Mushroom,
  133. delitem 1070,countitem(1070);//Items: Orange_Gooey_Mushroom_,
  134. set PRISON_Q, PRISON*3 + BaseLevel/3;
  135. set PRISON_Q, PRISON_Q * (readparam(bAspd)/55 + 1);
  136. set PRISON_Q, PRISON_Q+rand(50,60);
  137. mes "OK, you must bring me ^FF0000"+PRISON_Q+"^000000 edible ^FF0000Orange Net Mushroom^000000 toadstoo.. shrooms.";
  138. if(readparam(bAspd)>=100) mes "You're a fast fella! You'll have to get more shrooms, then.";
  139. if (rand(10)<4) mes "And you may eat the deadly ones for breakfast.";
  140. close;
  141. }
  142. sec_in02.gat mapflag nomemo
  143. sec_in02.gat mapflag nosave SavePoint
  144. sec_in02.gat mapflag noteleport
  145. sec_in02.gat mapflag nobranch
  146. sec_in02.gat mapflag nowarp
  147. //sec_in02.gat mapflag pvp
  148. sec_in02.gat mapflag pvp_noparty
  149. //sec_in02.gat mapflag gvg
  150. sec_in02.gat mapflag pvp_nightmaredrop random,all,300
  151. sec_in02.gat,138,55,100,100 monster Toadstool 1182,30,10000,10000,1
  152. sec_in02.gat,138,55,100,100 monster Fabre 1184,10,20000,20000
  153. sec_in02.gat,138,55,100,100 monster Chonchon 1183,11,20000,20000
  154. sec_in02.gat,138,55,100,100 monster Spore 1014,12,20000,20000
  155. sec_in02.gat,138,55,100,100 monster Poison Spore 1077,3,20000,20000