kafras_pay.txt 2.4 KB

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