kafras_pay.txt 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. //===== eAthena Script =======================================
  2. //= Payon 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. //= v2.2 New Payon Locations. [Darkchild]
  21. //==========================================================================
  22. // Main Town ----------------------------------------------------------------
  23. payon.gat,181,104,4 script Kafra 113,{
  24. cutin "kafra_05",2;
  25. callfunc "F_KafSetPay";
  26. callfunc "F_Kafra",0,0,1;
  27. M_Save:
  28. menu "-Save outside city.",sM_Out,"-Save inside city.",sM_In;
  29. sM_Out:
  30. savepoint "pay_fild01.gat",340,347;
  31. callfunc "F_KafEnd",0,1;
  32. sM_In:
  33. savepoint "payon.gat",179,97;
  34. callfunc "F_KafEnd",0,1;
  35. }
  36. // Archer Village ------------------------------------------------------------
  37. pay_arche.gat,55,123,8 script Kafra 115,{
  38. cutin "kafra_03",2;
  39. callfunc "F_KafSetPay";
  40. callfunc "F_Kafra",0,0,1;
  41. M_Save:
  42. savepoint "pay_arche.gat",49,144;
  43. callfunc "F_KafEnd",0,1;
  44. }
  45. // Function: Sets variables for Payon Kafras ---------------------------------
  46. function script F_KafSetPay {
  47. setarray @wrpD$[0], "Alberta", "Prontera", "Morroc";
  48. setarray @wrpP[0], 1200, 1800, 2000;
  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. return;
  57. }