kafras_mor.txt 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. //===== eAthena Script =======================================
  2. //= Morroc Kafras
  3. //===== By: =========================
  4. //= eAthena Dev Team
  5. //===== Current Version: ===================
  6. //= 2.4
  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. //= arg(3): Cost of Storage service
  17. //= arg(4): Cost of Rent a Pushcart service
  18. //===== Additional Comments: ==========================================
  19. //= v1.1 Now using functions :)
  20. //= v2.1b Minor changes to function calls. Using arguments.
  21. //= This version uses arrays .[kobra_k88]
  22. //= 2.2 New teleport destinations, prices [Lupus]
  23. //= 2.3 Can't save outside city [Evera[
  24. //= 2.4 Updated function calls with new arguments. [L0ne_W0lf]
  25. //= Added unique Kafra Welcome messages.
  26. //= removed West and East Kafra
  27. //=====================================================================
  28. // South ================================
  29. morocc,156,97,4 script Kafra Employee::kaf_morocc 113,{
  30. cutin "kafra_05",2;
  31. callfunc "F_KafSetMoc";
  32. mes "[Kafra Employee]";
  33. mes "The Kafra Corporation";
  34. mes "is always working to provide";
  35. mes "you with convenient services.";
  36. mes "How may I be of assistance?";
  37. callfunc "F_Kafra",5,0,0,60,930;
  38. M_Save:
  39. savepoint "morocc",156,46;
  40. callfunc "F_KafEnd",0,1,"in the city of Morroc";
  41. }
  42. // North =================================
  43. morocc,160,258,4 script Kafra::kaf_morocc2 114,{
  44. cutin "kafra_04",2;
  45. callfunc "F_KafSetMoc";
  46. mes "[Kafra Employee]";
  47. mes "Welcome!";
  48. mes "The Kafra Corporation";
  49. mes "will always support the";
  50. mes "adventurers of Rune-Midgard";
  51. mes "with its excellent service. So";
  52. mes "what can I do for you today?";
  53. callfunc "F_Kafra",5,0,0,60,930;
  54. M_Save:
  55. savepoint "morocc",157,272;
  56. callfunc "F_KafEnd",0,1,"in the city of Morroc";
  57. }
  58. // Function: Sets variables for Morroc Kafras --------------------------------
  59. function script F_KafSetMoc {
  60. cleararray @wrpC$[0],"",getarraysize(@wrpC$);
  61. setarray @wrpD$[0], "Prontera", "Payon", "Alberta", "Comodo", "Comodo Pharos Beacon";
  62. setarray @wrpP[0], 1200, 1200, 1800, 1800, 1200;
  63. set @wrpC$[0], @wrpD$[0]+" -> "+@wrpP[0];
  64. set @wrpC$[1], @wrpD$[1]+" -> "+@wrpP[1];
  65. set @wrpC$[2], @wrpD$[2]+" -> "+@wrpP[2];
  66. set @wrpC$[3], @wrpD$[3]+" -> "+@wrpP[3];
  67. set @wrpC$[4], @wrpD$[4]+" -> "+@wrpP[4];
  68. set @wrpC$[5], "Cancel";
  69. setarray @viewpX[0], 156, 163, 28, 292;
  70. setarray @viewpY[0], 97, 260, 167, 211;
  71. return;
  72. }