kafras_alde.txt 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. //===== eAthena Script =======================================
  2. //= Al De Baran Kafras
  3. //===== By: ============================
  4. //= eAthena Dev Team
  5. //===== Current Version: =======================
  6. //= 2.3a
  7. //===== Compatible With: ============================
  8. //= eAthena 1.0
  9. //===== Description: ============================================
  10. //= Description of argument settings for callfunc "F_Kafra".
  11. //= arg(0): When set at 0 the default Kafra message is displayed.
  12. //= When set to 1 the Niflhiem Kafra message is displayed.
  13. //= When set to 2 the Guild Kafra message is displayed.
  14. //= arg(1): Set to 1 to disable teleport menu option. Otherwise set to 0.
  15. //= arg(2): Set to 1 to disable info menu. Otherwise set to 0.
  16. //= arg(3): Cost of Storage service
  17. //= arg(4): Cost of Rent a Pushcart service
  18. //===== Additional Comments: ==========================================
  19. //= v1.1 Now using functions :)
  20. //= v2.1b Minor changes to function calls. Using arguments.
  21. //= This version uses arrays .[kobra_k88]
  22. //= 2.2 New teleport destinations, prices [Lupus]
  23. //= 2.3 Updated function calls with new arguments. [L0ne_W0lf]
  24. //= Kafra Leilah is now a full NPC and no longer uses functions.
  25. //= Added unique Kafra Welcome message.
  26. //= Changed "Yuno" to "Juno"
  27. //= 2.3a Added "callfunc("F_CheckKafCode")" when you open storage. (bugreport:515) [Samuray22]
  28. //=====================================================================
  29. // Kafra Main Office (Kafra Leilah) ------------------------------------
  30. aldeba_in,96,181,4 script Kafra Service 113,{
  31. cutin "kafra_05",2;
  32. mes "[Kafra Leilah]";
  33. mes "Hm...?";
  34. mes "Oh, welcome to";
  35. mes "the Kafra Corporation";
  36. mes "Headquarters. Did you";
  37. mes "need something?";
  38. next;
  39. switch(select("Save:Use Storage:Rent a Pushcart:Cancel")) {
  40. case 1:
  41. mes "[Kafra Leilah]";
  42. mes "Your Respawn Point has";
  43. mes "been saved here, inside";
  44. mes "of the Kafra Corporation";
  45. mes "Headquarters. Thank you.";
  46. next;
  47. savepoint "aldeba_in",96,179;
  48. mes "[Kafra Leilah]";
  49. mes "Please make use of";
  50. mes "the Kafra Services that are";
  51. mes "available throughout all of";
  52. mes "Rune Midgard. Thank you for";
  53. mes "visiting the Kafra Headquarters.";
  54. close2;
  55. break;
  56. case 2:
  57. if (zeny < 20) {
  58. mes "[Kafra Leilah]";
  59. mes "Excuse me, but it";
  60. mes "seems that you don't";
  61. mes "have the 20 zeny to pay";
  62. mes "the Storage access fee...";
  63. }
  64. mes "[Kafra Leilah]";
  65. mes "Although this facility is";
  66. mes "exclusively intended for";
  67. mes "the training of Kafra Employee";
  68. mes "and administrative functions,";
  69. mes "I'll access your Storage for you.";
  70. next;
  71. set zeny,zeny-20;
  72. set RESRVPTS, RESRVPTS + (20/5);
  73. mes "[Kafra Leilah]";
  74. mes "In the future, please";
  75. mes "ask the Kafra Employee on";
  76. mes "duty if you wish to use";
  77. mes "any of the Kafra Services.";
  78. mes "Thank you for your patronage.";
  79. callfunc("F_CheckKafCode"); //check your storage password, if set
  80. close2;
  81. openstorage;
  82. break;
  83. case 3:
  84. mes "[Kafra Leilah]";
  85. mes "My apologies, but I'm";
  86. mes "not on duty. I'd assist you";
  87. mes "if I could, but actually don't";
  88. mes "have any available Pushcarts.";
  89. mes "Why don't you ask another Kafra";
  90. mes "Employee for assistance?";
  91. next;
  92. mes "[Kafra Leilah]";
  93. mes "Kafra Employees are";
  94. mes "stationed all over the";
  95. mes "Rune Midgard continent,";
  96. mes "and you should be able to find";
  97. mes "plenty outside in Al De Baran.";
  98. close2;
  99. break;
  100. case 4:
  101. mes "[Kafra Leilah]";
  102. mes "^666666*Whew...*^000000";
  103. mes "Great, because I'm";
  104. mes "actually on my break";
  105. mes "right now. Choosing";
  106. mes "''Cancel'' was a good";
  107. mes "move on your part.";
  108. close2;
  109. break;
  110. }
  111. cutin "",255;
  112. end;
  113. }
  114. // Central --------------------------------------------------
  115. aldebaran,143,119,4 script Kafra Employee::kaf_aldebaran 113,{
  116. cutin "kafra_05",2;
  117. cleararray @wrpC$[0],"",getarraysize(@wrpC$);
  118. setarray @wrpP[0], 1200, 1200, 1800, 1700;
  119. setarray @wrpD$[0], "Geffen", "Juno" , "Izlude", "Mjolnir Dead Pit";
  120. set @wrpC$[0], @wrpD$[0]+" -> "+@wrpP[0];
  121. set @wrpC$[1], @wrpD$[1]+" -> "+@wrpP[1];
  122. set @wrpC$[2], @wrpD$[2]+" -> "+@wrpP[2];
  123. set @wrpC$[3], @wrpD$[3]+" -> "+@wrpP[3];
  124. set @wrpC$[4], "Cancel";
  125. mes "[Kafra Employee]";
  126. mes "The Kafra Corporation";
  127. mes "is always working to provide";
  128. mes "you with convenient services.";
  129. mes "How may I be of assistance?";
  130. callfunc "F_Kafra",5,0,1,20,600;
  131. M_Save:
  132. savepoint "aldebaran",143,109;
  133. callfunc "F_KafEnd",0,1,"in the city of Al De Baran";
  134. }