kafras_pay.txt 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. //===== eAthena Script =======================================
  2. //= Payon Kafras
  3. //===== By: =========================
  4. //= eAthena Dev Team
  5. //===== Current Version: ===================
  6. //= 2.3
  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. //= v2.2 New Payon Locations. [Darkchild]
  21. //= 2.3 1 New Kafra, fixed save menus
  22. //==========================================================================
  23. // Main Town, South ----------------------------------------------------------
  24. payon.gat,181,104,4 script Kafra 113,{
  25. cutin "kafra_05",2;
  26. callfunc "F_KafSetPay";
  27. callfunc "F_Kafra",0,0,1;
  28. M_Save:
  29. savepoint "payon.gat",160,58;
  30. callfunc "F_KafEnd",0,1;
  31. }
  32. // Main Town, Middle North --------------------------------------------------
  33. payon.gat,175,226,4 script Kafra 116,{
  34. cutin "kafra_02",2;
  35. callfunc "F_KafSetPay";
  36. callfunc "F_Kafra",0,0,1;
  37. M_Save:
  38. savepoint "payon.gat",257,242;
  39. callfunc "F_KafEnd",0,1;
  40. }
  41. // Archer Village ------------------------------------------------------------
  42. pay_arche.gat,55,123,8 script Kafra 115,{
  43. cutin "kafra_03",2;
  44. callfunc "F_KafSetPay";
  45. callfunc "F_Kafra",0,0,1;
  46. M_Save:
  47. savepoint "pay_arche.gat",49,144;
  48. callfunc "F_KafEnd",0,1;
  49. }
  50. // Function: Sets variables for Payon Kafras ---------------------------------
  51. function script F_KafSetPay {
  52. setarray @wrpD$[0], "Alberta", "Prontera", "Morroc";
  53. setarray @wrpP[0], 1200, 1800, 2000;
  54. set @wrpC$[0], @wrpD$[0]+" -> "+@wrpP[0];
  55. set @wrpC$[1], @wrpD$[1]+" -> "+@wrpP[1];
  56. set @wrpC$[2], @wrpD$[2]+" -> "+@wrpP[2];
  57. set @wrpC$[3], "Cancel";
  58. set @wrpC$[4], "";
  59. set @wrpC$[5], "";
  60. set @wrpC$[6], "";
  61. return;
  62. }