valentinesdayexp.txt 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. //===== rAthena Script =======================================
  2. //= Valentine Event Script + EXP bonus
  3. //===== By: ==================================================
  4. //= Lupus (based on Muad_Dib's work)
  5. //===== Current Version: =====================================
  6. //= 1.1
  7. //===== Compatible With: =====================================
  8. //= rAthena Project; SVN r4500+
  9. //===== Description: =========================================
  10. // Close to other official stValentine event (added white chocolate)
  11. // Custom: Handmade choco gives some EXP bonuses to married people
  12. //===== Additional Comments: =================================
  13. //= WARNING!! To use this event, disable original valentinesday.txt
  14. //= You can use this event from 12 till 16 February 8) [Lupus]
  15. //= 1.1 Removed Duplicates [Silent]
  16. //============================================================
  17. // Tine - Valentine Event Chocolate Even Guide ------------------
  18. prontera,156,172,4 script Tine 58,{
  19. // Debug info for item effects and tricky conditions 8)
  20. // mes "@dsv: "+@dsv;
  21. // mes "ispartneron()=="+ispartneron();
  22. // mes "Sex == "+Sex;
  23. // if(@dsv == gettime(DT_HOUR)+1) mes "@dsv == gettime(DT_HOUR)+1";
  24. mes "[Tine]";
  25. mes "The legend says that on 14th February... on the Day of Saint Valentine...";
  26. mes "Only in Run-Midgard kingdom...";
  27. next;
  28. specialeffect EF_HITBODY;
  29. mes "[Tine]";
  30. mes "Some married chocolate lovers almost double their experience at trainings!";
  31. mes "But everything isn't so simply...";
  32. next;
  33. menu "Wow! Tell me more!",M_INFO,"Marri... what?",-;
  34. mes "[Tine]";
  35. mes "Are you a single?";
  36. mes "Today is a great date to ask your beloved half for marriage!";
  37. next;
  38. mes "[Tine]";
  39. mes "The Marriage fee is ridiculous low these days!";
  40. close;
  41. M_INFO:
  42. mes "[Tine]";
  43. mes "The magic effect posesses only handmade chocolate from grand-grand-grand-whoever recipes!";
  44. next;
  45. mes "[Tine]";
  46. mes "It being known that Black Handmade Chocolate works on married guys... And the White one on the married girls!";
  47. mes "If you lose your wedding ring... then alas, it won't work on you.";
  48. next;
  49. mes "[Tine]";
  50. mes "On having a Chocolate, you should put off your ring then... put it back... And if your partner is online, then magc would last till the next hour!";
  51. next;
  52. mes "[Tine]";
  53. mes "Rumors bark that guys and gals have +50% EXP bonuses on FIVE different races of the monsters... Exluding bloody bosses, of course.";
  54. next;
  55. mes "[Tine]";
  56. mes "There's a fameous confectioner in the Castle of Prontera! He's the one you need.";
  57. close;
  58. OnInit:
  59. //559,Hand-made_Chocolate
  60. setitemscript 559,"{ itemheal 50,50; if(Sex==SEX_FEMALE || @dsv == gettime(DT_HOUR)+1 || ispartneron()==0)end; set @dsv,gettime(DT_HOUR)+1; misceffect 113; }";
  61. //560,Hand-made_White_Chocolate
  62. setitemscript 560,"{ itemheal 50,50; if(Sex==SEX_MALE || @dsv == gettime(DT_HOUR)+1 || ispartneron()==0)end; set @dsv,gettime(DT_HOUR)+1; misceffect 113; }";
  63. //2634,Wedding_Ring_M,Wedding Ring,5,,10,0,,0,,0,127918079,7,1,136,,0,0,0,{ skill 334,1; skill 335,1; skill 336,1; }
  64. setitemscript 2634,"{ skill 334,1; skill 335,1; skill 336,1; if(@dsv == gettime(DT_HOUR)+1 && ispartneron()){ bonus2 bExpAddRace,5,50; bonus2 bExpAddRace,6,50; bonus2 bExpAddRace,7,50; bonus2 bExpAddRace,8,50; bonus2 bExpAddRace,1,50; } }";
  65. //2635,Wedding_Ring_F,Wedding Ring,5,,10,0,,0,,0,127918079,7,0,136,,0,0,0,{ skill 334,1; skill 335,1; skill 336,1; }
  66. setitemscript 2635,"{ skill 334,1; skill 335,1; skill 336,1; if(@dsv == gettime(DT_HOUR)+1 && ispartneron()){ bonus2 bExpAddRace,0,50; bonus2 bExpAddRace,9,50; bonus2 bExpAddRace,2,50; bonus2 bExpAddRace,3,50; bonus2 bExpAddRace,4,50; } }";
  67. end;
  68. }
  69. // Stephen - Valentine Event Chocolate seller ------------------
  70. alberta,26,243,4 script Stephen#val1 58,{
  71. mes "[Stephen]";
  72. mes "Guess what I've got?";
  73. mes "A tasty treat not easily found in Rune-Midgard....";
  74. next;
  75. mes "[Stephen]";
  76. mes "Chocolate!";
  77. mes "That's right, don't you love chocolate.... I do.";
  78. mes "And you are in luck, because I'm selling them for only 5,000 zeny a piece!";
  79. next;
  80. menu "I want some chocolate!",M_CHOCO,"No thanks.",-;
  81. mes "[Stephen]";
  82. mes "You don't want any chocolate?";
  83. mes "I'm telling you! You'll regret it!";
  84. mes "You better get some now... you won't come across Chocolate like this ever again!";
  85. mes "Think it over and visit me again sometime.";
  86. close;
  87. M_CHOCO:
  88. mes "[Stephen]";
  89. mes "Hah!";
  90. mes "I knew it!";
  91. mes "But I can't sell you more then 5 at once....but, if you really need more....";
  92. mes "you can come back again.";
  93. mes "So how many do you want?";
  94. next;
  95. set @needmon,0;
  96. input @flag_num;
  97. if (@flag_num <= 0) goto L_NONE;
  98. if (@flag_num > 5) goto L_ERR;
  99. set @needmon,@flag_num*5000;
  100. if (Zeny < @needmon) goto L_NOTENO;
  101. set Zeny,Zeny - @needmon;
  102. getitem 558,@flag_num;
  103. mes "[Stephen]";
  104. mes "There you go!";
  105. mes "You can give that to someone as a gift, or enjoy it yourself!";
  106. mes "Mmm....sweet chocolate...";
  107. mes "Visit me anytime...!";
  108. close;
  109. L_ERR:
  110. mes "[Stephen]";
  111. mes "I'm sorry but I can't give you that many.";
  112. L_NONE:
  113. close;
  114. L_NOTENO:
  115. mes "[Stephen]";
  116. mes "I'm sorry but it seems you can't afford to buy these of me.";
  117. close;
  118. }
  119. // Jainie -- Gives information about Valentine Event ------------------------
  120. alberta,29,243,4 script Jainie#val1 53,{
  121. mes "[Jainie]";
  122. mes "You know what? The chocolate that my boyfriend sells are from me!";
  123. mes "I made them by myself. Now I need some Milk for my special White Chocolate.";
  124. next;
  125. mes "[Jainie]";
  126. mes "You know ... In cetain countries, there's a tradition of presenting chocolates to a person that you love...";
  127. mes "They call it ^3355FFValentine's Day^000000.";
  128. next;
  129. mes "[Jainie]";
  130. mes "So I gave him my delicious chocolate...";
  131. mes "And then he made me cook a lot more...";
  132. mes "And now he is selling them to everyone.";
  133. mes "I guess he really enjoyed it.";
  134. mes "But, I do feel good when people buy something I have made.";
  135. next;
  136. mes "[Jainie]";
  137. mes "It would be great if you bought some too...";
  138. mes "I will be making white chocolates for a while so...";
  139. next;
  140. menu "I want some white chocolate!",M_CHOCO,"No thanks.",-;
  141. mes "[Jainie]";
  142. mes "You don't like white chocolate?";
  143. mes "Then buy some Stephen's black one!";
  144. close;
  145. M_CHOCO:
  146. mes "[Jainie]";
  147. mes "I can't sell you more then 5 at once....but, if you really need more....";
  148. mes "you can come back again.";
  149. mes "So how many do you want? 1 portion is 4500z + 1 Milk.";
  150. next;
  151. set @needmon,0;
  152. input @flag_num;
  153. if (@flag_num == 0) goto L_NONE;
  154. if (@flag_num > 5) goto L_ERR;
  155. set @needmon,@flag_num*4500;
  156. if (Zeny < @needmon) goto L_NOTENO;
  157. if (countitem(519) < @flag_num) goto L_NOMILK;
  158. set Zeny,Zeny - @needmon;
  159. delitem 519,@flag_num;
  160. getitem 561,@flag_num;
  161. mes "[Jainie]";
  162. mes "There you go!";
  163. mes "You can give that to someone as a gift, or enjoy it yourself!";
  164. mes "Mmm... sweet chocolate...";
  165. mes "Visit me anytime...!";
  166. close;
  167. L_ERR:
  168. mes "[Jainie]";
  169. mes "I'm sorry but I can't give you that many.";
  170. L_NONE:
  171. close;
  172. L_NOTENO:
  173. mes "[Jainie]";
  174. mes "I'm sorry but it seems you can't afford to buy these of me.";
  175. close;
  176. L_NOMILK:
  177. mes "[Jainie]";
  178. mes "You need "+@flag_num+" Milk for "+@flag_num+" portions of my special White Chocolate...";
  179. close;
  180. }
  181. // Carl Orleans -- Valentine Event Chocolate maker ------------------
  182. prt_castle,54,34,4 script Carl Orleans#val1 47,{
  183. mes "[Carl Orleans]";
  184. mes "Yes? What can I cook for you?";
  185. next;
  186. menu "Black handmade Chocolate, please",-,"I want a White handmade Chocolate...",M_WHITE,"I'm lost, sorry to bother you.",M_END;
  187. mes "[Carl Orleans]";
  188. mes "Well, I just might be able to fulfill your needs...";
  189. next;
  190. if (countitem(558)<3) {
  191. mes "[Carl Orleans]";
  192. mes "I'm sorry you do not have enough Chocolate Bars to do this.";
  193. if(rand(2))mes "They say Stephen from Alberta used to sell good Chocolate.";
  194. close;
  195. }
  196. delitem 558,3;
  197. mes "[Carl Orleans]";
  198. mes "You got 3 pieces of pure chocolate I see.";
  199. mes "Give them to me...";
  200. next;
  201. mes "[Carl Orleans]";
  202. mes "Ok, now I will only create my special handmade chocolates if you promise to use it wisely.";
  203. next;
  204. mes "[Carl Orleans]";
  205. mes "....Hmmmmmm.....";
  206. mes "Well...";
  207. next;
  208. getitem 559,1;
  209. mes "[Carl Orleans]";
  210. mes "Here.";
  211. if(rand(2))close;
  212. mes "I hope you give it to someone special, because its a special chocolate.";
  213. mes "As you know... only I can create this.";
  214. next;
  215. mes "[Carl Orleans]";
  216. mes "Enjoy.";
  217. close;
  218. M_WHITE:
  219. mes "[Carl Orleans]";
  220. mes "Well, I just might be able to fulfill your needs...";
  221. next;
  222. if (countitem(561)<3) {
  223. mes "[Carl Orleans]";
  224. mes "I'm sorry you do not have enough White Chocolate Bars to do this.";
  225. if(rand(2))mes "They say Jainie from Alberta used to sell good White Chocolate.";
  226. close;
  227. }
  228. delitem 561,3;
  229. mes "[Carl Orleans]";
  230. mes "You got 3 pieces of pure white chocolate I see.";
  231. mes "Give them to me...";
  232. next;
  233. mes "[Carl Orleans]";
  234. mes "Ok, now I will only create my special handmade chocolates if you promise to use it wisely.";
  235. next;
  236. mes "[Carl Orleans]";
  237. mes "....Hmmmmmm.....";
  238. mes "Well...";
  239. next;
  240. getitem 560,1;
  241. mes "[Carl Orleans]";
  242. mes "Here.";
  243. if(rand(2))close;
  244. mes "I hope you give it to someone special, because its a special chocolate.";
  245. mes "As you know... only I can create this.";
  246. next;
  247. mes "[Carl Orleans]";
  248. mes "Enjoy.";
  249. close;
  250. M_END:
  251. mes "[Carl Orleans]";
  252. mes "Oh.. well, if you want me to make some of my special handmade Chocolate....";
  253. mes "You will need to give me at least ^0000FF 3 Chocolates^000000 or ^0000FF 3 White Chocolates^000000.";
  254. if(rand(2))close;
  255. next;
  256. mes "[Carl Orleans]";
  257. mes "That's right, only ^0000FF 3 Chocolates^000000 or ^0000FF 3 White Chocolates^000000.";
  258. mes "Bring them to me and you'll get what you came for.";
  259. if(rand(2))close;
  260. next;
  261. mes "[Carl Orleans]";
  262. mes "See You.";
  263. close;
  264. }