kafras_pron.txt 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. //===== eAthena Script =======================================
  2. //= Prontera Kafras
  3. //===== By: =========================
  4. //= eAthena Dev Team
  5. //===== Current Version: ===================
  6. //= 2.5
  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. //= 2.41 New prices [Evera]
  25. //= 2.5 Can't save outside city [Evera]
  26. //=====================================================================
  27. // North ==================================
  28. prontera.gat,152,326,4 script Kafra::kaf_prontera 112,{
  29. cutin "kafra_06",2;
  30. callfunc "F_Kafra",0,1,1;
  31. M_Save:
  32. savepoint "prontera.gat",157,327;
  33. callfunc "F_KafEnd",0,1;
  34. }
  35. // SOUTH ======================================
  36. prontera.gat,151,29,8 script Kafra::kaf_prontera2 116,{
  37. cutin "kafra_02",2;
  38. callfunc "F_KafSetPront";
  39. callfunc "F_Kafra",0,0,0;
  40. M_Save:
  41. savepoint "prontera.gat",150,33;
  42. callfunc "F_KafEnd",0,1;
  43. }
  44. //WEST=========================================
  45. prontera.gat,29,207,6 script Kafra::kaf_prontera3 113,{
  46. cutin "kafra_05",2;
  47. callfunc "F_KafSetPront";
  48. callfunc "F_Kafra",0,0,0;
  49. M_Save:
  50. savepoint "prontera.gat",33,208;
  51. callfunc "F_KafEnd",0,1;
  52. }
  53. // East ===========================================
  54. prontera.gat,282,200,4 script Kafra::kaf_prontera4 115,{
  55. cutin "kafra_03",2;
  56. callfunc "F_KafSetPront";
  57. callfunc "F_Kafra",0,0,0;
  58. M_Save:
  59. savepoint "prontera.gat",281,203;
  60. callfunc "F_KafEnd",0,1;
  61. }
  62. // Center ===========================================
  63. prontera.gat,146,86,6 script Kafra::kaf_prontera5 117,{
  64. cutin "kafra_01",2;
  65. callfunc "F_KafSetPront";
  66. callfunc "F_Kafra",0,0,0;
  67. M_Save:
  68. savepoint "prontera.gat",116,73;
  69. callfunc "F_KafEnd",0,1;
  70. }
  71. // Function: Sets variables for Prontera Kafras ----------------------------
  72. function script F_KafSetPront {
  73. cleararray @wrpC$[0],"",getarraysize(@wrpC$);
  74. setarray @wrpD$[0], "Izlude", "Geffen", "Payon", "Morroc", "Orc Dungeon", "Alberta";
  75. setarray @wrpP[0], 600, 1200, 1200, 1200, 1200, 1800;
  76. set @wrpC$[0], @wrpD$[0]+" -> "+@wrpP[0];
  77. set @wrpC$[1], @wrpD$[1]+" -> "+@wrpP[1];
  78. set @wrpC$[2], @wrpD$[2]+" -> "+@wrpP[2];
  79. set @wrpC$[3], @wrpD$[3]+" -> "+@wrpP[3];
  80. set @wrpC$[4], @wrpD$[4]+" -> "+@wrpP[4];
  81. set @wrpC$[5], @wrpD$[5]+" -> "+@wrpP[5];
  82. set @wrpC$[6], "Cancel";
  83. setarray @viewpX[0], 151, 29, 282, 152;
  84. setarray @viewpY[0], 29, 207, 200, 326;
  85. return;
  86. }