kafras_alde.txt 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. close;
  64. }
  65. mes "[Kafra Leilah]";
  66. mes "Although this facility is";
  67. mes "exclusively intended for";
  68. mes "the training of Kafra Employee";
  69. mes "and administrative functions,";
  70. mes "I'll access your Storage for you.";
  71. next;
  72. set zeny,zeny-20;
  73. set RESRVPTS, RESRVPTS + (20/5);
  74. mes "[Kafra Leilah]";
  75. mes "In the future, please";
  76. mes "ask the Kafra Employee on";
  77. mes "duty if you wish to use";
  78. mes "any of the Kafra Services.";
  79. mes "Thank you for your patronage.";
  80. callfunc("F_CheckKafCode"); //check your storage password, if set
  81. close2;
  82. openstorage;
  83. break;
  84. case 3:
  85. mes "[Kafra Leilah]";
  86. mes "My apologies, but I'm";
  87. mes "not on duty. I'd assist you";
  88. mes "if I could, but actually don't";
  89. mes "have any available Pushcarts.";
  90. mes "Why don't you ask another Kafra";
  91. mes "Employee for assistance?";
  92. next;
  93. mes "[Kafra Leilah]";
  94. mes "Kafra Employees are";
  95. mes "stationed all over the";
  96. mes "Rune Midgard continent,";
  97. mes "and you should be able to find";
  98. mes "plenty outside in Al De Baran.";
  99. close2;
  100. break;
  101. case 4:
  102. mes "[Kafra Leilah]";
  103. mes "^666666*Whew...*^000000";
  104. mes "Great, because I'm";
  105. mes "actually on my break";
  106. mes "right now. Choosing";
  107. mes "''Cancel'' was a good";
  108. mes "move on your part.";
  109. close2;
  110. break;
  111. }
  112. cutin "",255;
  113. end;
  114. }
  115. // Central --------------------------------------------------
  116. aldebaran,143,119,4 script Kafra Employee::kaf_aldebaran 113,{
  117. cutin "kafra_05",2;
  118. cleararray @wrpC$[0],"",getarraysize(@wrpC$);
  119. setarray @wrpP[0], 1200, 1200, 1800, 1700;
  120. setarray @wrpD$[0], "Geffen", "Juno" , "Izlude", "Mjolnir Dead Pit";
  121. set @wrpC$[0], @wrpD$[0]+" -> "+@wrpP[0];
  122. set @wrpC$[1], @wrpD$[1]+" -> "+@wrpP[1];
  123. set @wrpC$[2], @wrpD$[2]+" -> "+@wrpP[2];
  124. set @wrpC$[3], @wrpD$[3]+" -> "+@wrpP[3];
  125. set @wrpC$[4], "Cancel";
  126. mes "[Kafra Employee]";
  127. mes "The Kafra Corporation";
  128. mes "is always working to provide";
  129. mes "you with convenient services.";
  130. mes "How may I be of assistance?";
  131. callfunc "F_Kafra",5,0,1,20,600;
  132. M_Save:
  133. savepoint "aldebaran",143,109;
  134. callfunc "F_KafEnd",0,1,"in the city of Al De Baran";
  135. }