idul_fitri.txt 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. //===== rAthena Script =======================================
  2. //= Feast Day Of Ramadan Idul Fitri Event
  3. //===== By: ==================================================
  4. //= $ephiroth
  5. //===== Current Version: =====================================
  6. //= 1.1
  7. //===== Compatible With: =====================================
  8. //= rAthena Version
  9. //===== Description: =========================================
  10. //= Info : Official idRO
  11. //= 2006/10/16: 1.0 Release and fully working. [$ephiroth]
  12. //= 1.1 Replaced effect numerics with constants. [Samuray22]
  13. //============================================================
  14. prontera,146,92,3 script Cellerb 58,{
  15. set @npcname$,"[Staff Idul Fitri]";
  16. mes @npcname$;
  17. if((gettime(6)==10 && (gettime(5)==24 || gettime(5)==25))==0) {
  18. mes "Congratulation! Celebrate Feast Day Of Ramadan Idul Fitri 1427 H.";
  19. specialeffect EF_SANDMAN;
  20. close;
  21. }
  22. mes "Haii......^FF8800"+strcharinfo(0)+"^000000!!";
  23. mes "First day of Idulfitri has arrived.";
  24. mes "Congratulation celebrate him.";
  25. mes "There is event special today.";
  26. next;
  27. mes @npcname$;
  28. mes "Event today .....^009500Idul Fitri Quest!^000000";
  29. next;
  30. mes @npcname$;
  31. mes "If you interest to follow this event, I will cook it to you.";
  32. next;
  33. switch(select("Allright. I like that!!","Next time.... Thanks.")){
  34. case 1:
  35. mes @npcname$;
  36. mes "I have something that might interest you.";
  37. mes "I need all of the following items:";
  38. mes "^D5A500Ketupat Sayur Ingredient :^000000";
  39. mes "^00B6FF~5 Ketupat, 5 Carrot~,^000000";
  40. mes "^CC6633~5 Sweet Potato, 10 Meat~,^000000";
  41. mes "^000088~2 Green Herb, 5 Stem~.^000000";
  42. next;
  43. mes @npcname$;
  44. if ( (countitem(552)<5 || countitem(515)<5 ||countitem(516)<5 || countitem(517)<10 || countitem(511)<2 || countitem(905)<5) ) {
  45. mes "You don't have enough items.";
  46. mes "Come back when you have them all.";
  47. close;
  48. }
  49. delitem 552,5;
  50. delitem 515,5;
  51. delitem 516,2;
  52. delitem 517,10;
  53. delitem 511,2;
  54. delitem 905,5;
  55. mes "I see you already have all the items you need.";
  56. mes "Just a moment, please!!";
  57. next;
  58. mes "^009500-Plupping snapping bubbling~^000000";
  59. mes "^009500-Clinking clingking~^000000";
  60. mes "^009500-Clang clang~^000000";
  61. getitem 583,1;
  62. next;
  63. mes @npcname$;
  64. mes "We appreciate your participation in this special event.";
  65. emotion e_thx;
  66. close;
  67. case 2:
  68. mes @npcname$;
  69. mes "Oh well, maybe you will participate in tommorow's quest.";
  70. emotion e_hmm;
  71. close;
  72. }
  73. }