kafras_alb.txt 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //===== eAthena Script ============
  2. //= Alberta Kafras
  3. //===== By: =========================
  4. //= eAthena Dev Team
  5. //===== Current Version: ===================
  6. //= 2.2
  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 New Teleport list and prices [Lupus]
  21. //=====================================================================
  22. // NorthWest -----------------------------------------------------------------
  23. alberta.gat,28,229,8 script Kafra 115,{
  24. cutin "kafra_03",2;
  25. callfunc "F_KafSetAlb";
  26. callfunc "F_Kafra",0,0,0;
  27. M_Save:
  28. menu "-Save Outside City.",sM_Out, "-Save inside City",sM_In;
  29. sM_Out:
  30. savepoint "pay_fild03.gat",386,76;
  31. callfunc "F_KafEnd",0,1;
  32. sM_In:
  33. savepoint "alberta.gat",31,231;
  34. callfunc "F_KafEnd",0,1;
  35. }
  36. // South ---------------------------------------------------------------------
  37. alberta.gat,113,60,5 script Kafra 112,{
  38. cutin "kafra_06",2;
  39. callfunc "F_KafSetAlb";
  40. callfunc "F_Kafra",0,0,0;
  41. M_Save:
  42. savepoint "alberta.gat",117,57;
  43. callfunc "F_KafEnd",0,1;
  44. }
  45. // Function: Sets variables for Ablerta Kafras -------------------------------
  46. function script F_KafSetAlb {
  47. setarray @wrpP[0], 1200, 1800, 1800;
  48. setarray @wrpD$[0], "Payon", "Morroc", "Prontera";
  49. set @wrpC$[0], @wrpD$[0]+" -> "+@wrpP[0];
  50. set @wrpC$[1], @wrpD$[1]+" -> "+@wrpP[1];
  51. set @wrpC$[2], @wrpD$[2]+" -> "+@wrpP[2];
  52. set @wrpC$[3], "Cancel";
  53. set @wrpC$[4], "";
  54. set @wrpC$[5], "";
  55. set @wrpC$[6], "";
  56. setarray @viewpX[0], 28, 113, 0, 0;
  57. setarray @viewpY[0], 229, 60, 0, 0;
  58. return;
  59. }