whiteday.txt 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. //===== rAthena Script =======================================
  2. //= White Day Event Script
  3. //===== By: ==================================================
  4. //= 1.0a Muad_Dib (Prometheus Project)
  5. //===== Current Version: =====================================
  6. //= 1.0a
  7. //===== Compatible With: =====================================
  8. //= Any Athena Version; RO Episode 6+
  9. //===== Description: =========================================
  10. //= Sells candy, candy cane and well baked cookie.
  11. //===== Additional Comments: =================================
  12. //= 07/06/05 : Added 1st Version. [Muad_Dib]
  13. //= Converted to rAthena format by Dr.Evil
  14. //============================================================
  15. alberta,188,64,4 script Sugar 91,{
  16. set @maplenum,0;
  17. set @mapleItemID,0;
  18. set @maplePrice,0;
  19. set @maplePriceT,0;
  20. mes "[Sugar]";
  21. mes "Welcome!";
  22. mes "How delicious are sweets?";
  23. mes "My teacher.........";
  24. mes "The sweets craftsman of ARUBERUTA";
  25. mes "There are sweets that is built hard.";
  26. next;
  27. mes "[Sugar]";
  28. mes "It was given by the darling person.";
  29. mes "In return of the present ....";
  30. mes "heartfelt like";
  31. mes "the sweetness of the present some how.";
  32. next;
  33. menu "Please give me!",-,"I don't need it.",M_END,"The teacher.",M_L1;
  34. mes "[Sugar]";
  35. mes "Yes!";
  36. mes "Select from menu here.";
  37. mes "Since there is a limitation in numbers";
  38. mes "Not more than ^ff0000 5 pieces^000000.";
  39. mes "are allowed to carry out?";
  40. next;
  41. menu "Candy",-,"Candy Cane",L0_2,"Well baked cookie",L0_3;
  42. set @maplePrice,3000;
  43. set @mapleItemID,529;
  44. mes "[Sugar]";
  45. mes "It is a candy, and the price is";
  46. mes "3000 Zeny each.";
  47. mes "How many do you like to purchase?";
  48. next;
  49. goto L_INPUT;
  50. L0_2:
  51. set @maplePrice,4000;
  52. set @mapleItemID,530;
  53. mes "[Sugar]";
  54. mes "It is a candy cane, and the price is";
  55. mes "4000 Zeny each.";
  56. mes "How many do you like to purchase?";
  57. next;
  58. goto L_INPUT;
  59. L0_3:
  60. set @maplePrice,2000;
  61. set @mapleItemID,538;
  62. mes "[Sugar]";
  63. mes "It is a well baked cookie, and the price is";
  64. mes "2000 Zeny each.";
  65. mes "How many do you like to purchase?";
  66. next;
  67. L_INPUT:
  68. input @maplenum;
  69. if (@maplenum > 5) goto L_ERROR;
  70. if (@maplenum == 0) goto M_END;
  71. set @maplePriceT,@maplePrice*@maplenum;
  72. if (Zeny < @maplePriceT) goto L_ERROR2;
  73. set Zeny,Zeny- @maplePriceT;
  74. getitem @mapleItemID,@maplenum;
  75. mes "[Sugar]";
  76. mes "Thank you!!!";
  77. mes "These sweets are really delicious.";
  78. mes "Since my teacher of sweet is the No.1 teacher's in world!";
  79. mes "Although you may eat by yourself";
  80. mes "don't eat so much or you'll grow fat.";
  81. mes "Please take care!!!";
  82. close;
  83. M_L1:
  84. mes "[Sugar]";
  85. mes "Yes";
  86. mes "The teacher of mine";
  87. mes "is Mr. Kuberu, a sweets craftsman.";
  88. mes "Making sweets under two persons.";
  89. mes "which is allowed to self-train.";
  90. next;
  91. mes "[Sugar]";
  92. mes "Although selling is seemingly to carried out ....";
  93. mes "Where he is now?";
  94. mes "Which I don't know.";
  95. close;
  96. L_ERROR:
  97. mes "[Sugar]";
  98. mes "???";
  99. mes "You seem to have a failure on hearing.";
  100. mes "I will tell you once again?";
  101. mes "You can only purchase";
  102. mes "^ff0000 5 pieces^000000 at once.";
  103. next;
  104. goto L_INPUT;
  105. L_ERROR2:
  106. mes "[Sugar]";
  107. mes "???";
  108. mes "Hmmm it seems you don't have enough money";
  109. mes "to make that purchase.";
  110. mes "I will ask you to check your money first.";
  111. close;
  112. M_END:
  113. mes "[Sugar]";
  114. mes "Really .... You might regret it..";
  115. mes "If you change your mind.";
  116. mes "I am just here ok.";
  117. mes "Have a nice day!";
  118. close;
  119. }