kafras_pay.txt 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. //===== eAthena Script =======================================
  2. //= Payon Kafras
  3. //===== By: =========================
  4. //= eAthena Dev Team
  5. //===== Current Version: ===================
  6. //= 2.4b
  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. //= v2.2 New Payon Locations. [Darkchild]
  23. //= 2.3 1 New Kafra, fixed save menus
  24. //= 2.31 New prices [Evera]
  25. //= 2.32 Minor fix to Payon Archer Kafra [SinSloth]
  26. //= 2.4 Updated function calls with new arguments. [L0ne_W0lf]
  27. //= Added unique Kafra Welcome message.
  28. //= 2.4b Updated the remaning names for the Kafras. [L0ne_W0lf]
  29. //==========================================================================
  30. // Main Town, South ----------------------------------------------------------
  31. payon,181,104,4 script Kafra Employee::kaf_payon 113,{
  32. cutin "kafra_05",2;
  33. callfunc "F_KafSetPay";
  34. mes "[Kafra Employee]";
  35. mes "The Kafra Corporation";
  36. mes "is always working to provide";
  37. mes "you with convenient services.";
  38. mes "How may I be of assistance?";
  39. callfunc "F_Kafra",5,0,1,60,930;
  40. M_Save:
  41. savepoint "payon",160,58;
  42. callfunc "F_KafEnd",0,1,"in the city of Payon";
  43. }
  44. // Main Town, Middle North --------------------------------------------------
  45. payon,175,226,4 script Kafra Employee::kaf_payon2 116,{
  46. cutin "kafra_02",2;
  47. callfunc "F_KafSetPay";
  48. mes "[Kafra Employee]";
  49. mes "Welcome to the";
  50. mes "Kafra Corporation.";
  51. mes "The Kafra services are";
  52. mes "always on your side.";
  53. mes "How may I assist you?";
  54. callfunc "F_Kafra",5,0,1,60,930;
  55. M_Save:
  56. savepoint "payon",257,242;
  57. callfunc "F_KafEnd",0,1,"in the city of Payon";
  58. }
  59. // Archer Village ------------------------------------------------------------
  60. pay_arche,55,123,0 script Kafra Employee::kaf_payon3 115,{
  61. cutin "kafra_03",2;
  62. callfunc "F_KafSetPay";
  63. mes "[Kafra Employee]";
  64. mes "Welcome to the";
  65. mes "Kafra Corporation.";
  66. mes "The Kafra services";
  67. mes "are always on your side.";
  68. mes "How may I assist you?";
  69. callfunc "F_Kafra",5,5,1,90,1200;
  70. M_Save:
  71. savepoint "pay_arche",49,144;
  72. callfunc "F_KafEnd",0,1,"at the Payon Dungeon";
  73. }
  74. // Function: Sets variables for Payon Kafras ---------------------------------
  75. function script F_KafSetPay {
  76. cleararray @wrpC$[0],"",getarraysize(@wrpC$);
  77. setarray @wrpD$[0], "Alberta", "Prontera", "Morroc";
  78. setarray @wrpP[0], 1200, 1200, 1200;
  79. set @wrpC$[0], @wrpD$[0]+" -> "+@wrpP[0];
  80. set @wrpC$[1], @wrpD$[1]+" -> "+@wrpP[1];
  81. set @wrpC$[2], @wrpD$[2]+" -> "+@wrpP[2];
  82. set @wrpC$[3], "Cancel";
  83. return;
  84. }