kafras_pron.txt 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. //===== eAthena Script =======================================
  2. //= Prontera Kafras
  3. //===== By: =========================
  4. //= eAthena Dev Team
  5. //===== Current Version: ===================
  6. //= 2.4
  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. //===== Additional Comments: ==========================================
  17. //= v1.1 Now using functions :)
  18. //= v2.1b Minor changes to function calls. Using arguments.
  19. //= This version uses arrays .[kobra_k88]
  20. //= 2.2 North Kafra allows you save your position
  21. //= 2.3 New Teleport list, new prices, 2.3a fixed Alberta Teleport [Lupus]
  22. //= 2.3b One Kafra's been moved to Prontera, thx to Vicious_Pucca [Lupus]
  23. //= 2.4 Updated Kafras locations for the mini-map [Lupus]
  24. //=====================================================================
  25. // North ==================================
  26. prontera.gat,152,326,4 script Kafra 112,{
  27. cutin "kafra_06",2;
  28. callfunc "F_Kafra",0,1,1;
  29. M_Save:
  30. savepoint "prontera.gat",157,327;
  31. callfunc "F_KafEnd",0,1;
  32. }
  33. // SOUTH ======================================
  34. prontera.gat,151,29,8 script Kafra 116,{
  35. cutin "kafra_02",2;
  36. callfunc "F_KafSetPront";
  37. callfunc "F_Kafra",0,0,0;
  38. M_Save:
  39. menu "-Save outside city.",sM_Out,"-Save inside city.",sM_In;
  40. sM_Out:
  41. savepoint "prt_fild08.gat",170,369;
  42. callfunc "F_KafEnd",0,1;
  43. sM_In:
  44. savepoint "prontera.gat",150,33;
  45. callfunc "F_KafEnd",0,1;
  46. }
  47. //WEST=========================================
  48. prontera.gat,29,207,6 script Kafra 113,{
  49. cutin "kafra_05",2;
  50. callfunc "F_KafSetPront";
  51. callfunc "F_Kafra",0,0,0;
  52. M_Save:
  53. menu "-Save outside city.",sM_Out,"-Save inside city.",sM_In;
  54. sM_Out:
  55. savepoint "prt_fild05.gat",367,205;
  56. callfunc "F_KafEnd",0,1;
  57. sM_In:
  58. savepoint "prontera.gat",33,208;
  59. callfunc "F_KafEnd",0,1;
  60. }
  61. // East ===========================================
  62. prontera.gat,282,200,4 script Kafra 115,{
  63. cutin "kafra_03",2;
  64. callfunc "F_KafSetPront";
  65. callfunc "F_Kafra",0,0,0;
  66. M_Save:
  67. menu "-Save outside city.",sM_Out,"-Save inside city.",sM_In;
  68. sM_Out:
  69. savepoint "prt_fild06.gat",31,192;
  70. callfunc "F_KafEnd",0,1;
  71. sM_In:
  72. savepoint "prontera.gat",281,203;
  73. callfunc "F_KafEnd",0,1;
  74. }
  75. // Center ===========================================
  76. prontera.gat,146,86,6 script Kafra 117,{
  77. cutin "kafra_01",2;
  78. callfunc "F_KafSetPront";
  79. callfunc "F_Kafra",0,0,0;
  80. M_Save:
  81. savepoint "prontera.gat",116,73;
  82. callfunc "F_KafEnd",0,1;
  83. }
  84. // Function: Sets variables for Prontera Kafras ----------------------------
  85. function script F_KafSetPront {
  86. setarray @wrpD$[0], "Izlude", "Geffen", "Payon", "Morroc", "Orc Dungeon", "Alberta";
  87. setarray @wrpP[0], 600, 1200, 1200, 1200, 1700, 1800;
  88. set @wrpC$[0], @wrpD$[0]+" -> "+@wrpP[0];
  89. set @wrpC$[1], @wrpD$[1]+" -> "+@wrpP[1];
  90. set @wrpC$[2], @wrpD$[2]+" -> "+@wrpP[2];
  91. set @wrpC$[3], @wrpD$[3]+" -> "+@wrpP[3];
  92. set @wrpC$[4], @wrpD$[4]+" -> "+@wrpP[4];
  93. set @wrpC$[5], @wrpD$[5]+" -> "+@wrpP[5];
  94. set @wrpC$[6], "Cancel";
  95. setarray @viewpX[0], 151, 29, 282, 152;
  96. setarray @viewpY[0], 29, 207, 200, 326;
  97. return;
  98. }