kafras_alb.txt 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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::kaf_alberta 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::kaf_alberta2 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. cleararray @wrpC$[0],"",getarraysize(@wrpC$);
  48. setarray @wrpP[0], 1200, 1800, 1800;
  49. setarray @wrpD$[0], "Payon", "Morroc", "Prontera";
  50. set @wrpC$[0], @wrpD$[0]+" -> "+@wrpP[0];
  51. set @wrpC$[1], @wrpD$[1]+" -> "+@wrpP[1];
  52. set @wrpC$[2], @wrpD$[2]+" -> "+@wrpP[2];
  53. set @wrpC$[3], "Cancel";
  54. setarray @viewpX[0], 28, 113, 0, 0;
  55. setarray @viewpY[0], 229, 60, 0, 0;
  56. return;
  57. }