3rd_trader.txt 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. //===== rAthena Script =======================================
  2. //= 3rd Item Seller
  3. //===== By: ==================================================
  4. //= Masao, Mercurial
  5. //===== Current Version: =====================================
  6. //= 1.5
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= [Official Conversion]
  11. //= Sells some 3rd Job related items:
  12. //= - Poison Herbs, Rune Stones, Rare Herbs, Points
  13. //===== Additional Comments: =================================
  14. //= 1.0 First Version.
  15. //= 1.1 Optimized Poison Herb Salesman NPC
  16. //= 1.2 Optimized and standardized. [Euphy]
  17. //= 1.3 Added Malangdo/Mora Points NPC. [Euphy]
  18. //= 1.4 Updated to match the official scripts. [Euphy]
  19. //= 1.5 Added Izlude duplicates. [Euphy]
  20. //= 1.5a Remove useless array & misc. [Capuche]
  21. //= 1.6 Changing Shape of NPCs. [JohnnyPlayy]
  22. //============================================================
  23. // Poison Herb Merchants (Guillotine Cross) :: poison_herb_3rd_trader
  24. //============================================================
  25. - shop Herb_Seller HIDDEN_NPC,no,7932:4000,7933:4000,7934:4000,7935:4000,7936:4000,7937:4000,7931:5000
  26. - script ::phs HIDDEN_NPC,{
  27. npctalk "Do you need poison?", "", bc_self;
  28. callshop "Herb_Seller",1;
  29. end;
  30. }
  31. job3_guil01,79,96,3 duplicate(phs) Poison Herb Merchant 4_F_YUNYANG
  32. morocc,193,100,4 duplicate(phs) Poison Herb Merchant#moc 4_F_YUNYANG
  33. lhz_in02,16,205,4 duplicate(phs) Poison Herb Merchant#lhz 4_F_YUNYANG
  34. // Rune Stone Merchants (Rune Knight) :: rune_3rd_trader
  35. //============================================================
  36. - shop Runes_Seller HIDDEN_NPC,no,12737:1000,12734:2500,12738:7500,12735:18000,12736:50000,7939:20000,7938:10000
  37. - script ::runesale HIDDEN_NPC,{
  38. npctalk "There are several types of runes.", "", bc_self;
  39. callshop "Runes_Seller",1;
  40. end;
  41. }
  42. job3_rune01,90,62,3 duplicate(runesale) Rune Merchant#job3 4W_M_01
  43. prontera,168,228,3 duplicate(runesale) Rune Merchant#prt 4W_M_01
  44. // Rare Herb Merchants (Guillotine Cross) :: rare_herb_3rd_trader
  45. //============================================================
  46. job3_guil01,91,93,3 script Rare Herb Collector 1_M_03,{
  47. if (checkweight(1201,1) == 0 || MaxWeight - Weight < 2000) {
  48. mes "- Wait a minute !! -";
  49. mes "- Currently you're carrying -";
  50. mes "- too many items with you. -";
  51. mes "- Please try again -";
  52. mes "- after you lose some weight. -";
  53. close;
  54. }
  55. if (Class == Job_Guillotine_Cross || Class == Job_Guillotine_Cross_T || Class == Job_Baby_Guillotine_Cross) {
  56. mes "[Rare Poison Herb Collector]";
  57. mes "I wander around the world and collect rare poison herbs. Recently, I started dealing in the herb called Izidor. If you are interested, you can buy them.";
  58. next;
  59. .@i = select("How can I buy them?:Exchange it for Animal Blood:Exchange it for a Bitter Herb:Exchange it for a Deadly Noxious Herb:Exchange it for a Frozen Rose:Exchange it for Ment:Exchange it for Hinalle")-2;
  60. if (.@i == -1) {
  61. mes "[Rare Poison Herb Collector]";
  62. mes "You can buy them for 10,000 zeny and one of these rare items, Animal Blood, Bitter Herb, Deadly Noxious Herb, Frozen Rose, Ment or an Hinalle.";
  63. next;
  64. mes "[Rare Poison Herb Collector]";
  65. mes "Why do I ask money? That's just to pay a little respect to a collector like me. Ha ha ha...";
  66. close;
  67. } else {
  68. setarray .@exchange[0],702,621,631,749,605,703;
  69. .@item = .@exchange[.@i];
  70. .@price = 10000;
  71. mes "[Rare Poison Herb Collector]";
  72. mes "How many do you want?";
  73. mes "You can only buy a maximum of '2000' ea.";
  74. mes "Enter '0' if you want to cancel.";
  75. next;
  76. input .@amount;
  77. if (.@amount == 0) {
  78. mes "[Rare Poison Herb Collector]";
  79. mes "You've cancelled the trade.";
  80. close;
  81. }
  82. if (.@amount > 2000) {
  83. mes "[Rare Poison Herb Collector]";
  84. mes "The number must be less than 2,000!";
  85. close;
  86. }
  87. .@total = .@amount * .@price;
  88. if (countitem(.@item) < .@amount || Zeny < .@total) {
  89. mes "[Rare Poison Herb Collector]";
  90. mes "Hey, come back when you have all the requirements for the exchange.";
  91. close;
  92. }
  93. mes "[Rare Poison Herb Collector]";
  94. mes "Good. I've received the money and the special item.";
  95. delitem .@item, .@amount;
  96. Zeny = Zeny - .@total;
  97. getitem 709, .@amount; //Izidor
  98. close;
  99. }
  100. }
  101. mes "[Rare Poison Herb Collector]";
  102. mes "I wander around the world and collect rare poison herbs. But I don't feel like selling my herbs to a person like you... ha ha ha...";
  103. close;
  104. }
  105. // Point Merchants (Sorcerer) :: point_3rd_trader
  106. //============================================================
  107. - shop Shard_Seller HIDDEN_NPC,no,6360:200,6363:200,6361:200,6362:200
  108. - script ::pss HIDDEN_NPC,{
  109. npctalk "Do you have an element for each property?", "", bc_self;
  110. callshop "Shard_Seller",1;
  111. end;
  112. }
  113. gef_tower,105,172,5 duplicate(pss) Point Merchant#Sorcerer 8_F_GIRL
  114. prt_in,131,66,0 duplicate(pss) Point Merchant#Prontera 8_F_GIRL
  115. alberta,105,52,7 duplicate(pss) Point Merchant#Alberta 8_F_GIRL
  116. aldebaran,133,114,5 duplicate(pss) Point Merchant#Aldebaran 8_F_GIRL
  117. comodo,193,159,5 duplicate(pss) Point Merchant#Comodo 8_F_GIRL
  118. geffen,129,49,5 duplicate(pss) Point Merchant#Geffen 8_F_GIRL
  119. izlude,138,163,5 duplicate(pss) Point Merchant#Izlude 8_F_GIRL // Old coordinates: izlude (135,121)
  120. izlude_a,138,163,5 duplicate(pss) Point Merchant#Izlude_a 8_F_GIRL
  121. izlude_b,138,163,5 duplicate(pss) Point Merchant#Izlude_b 8_F_GIRL
  122. izlude_c,138,163,5 duplicate(pss) Point Merchant#Izlude_c 8_F_GIRL
  123. izlude_d,138,163,5 duplicate(pss) Point Merchant#Izlude_d 8_F_GIRL
  124. malangdo,214,163,5 duplicate(pss) Point Merchant#Malangdo 8_F_GIRL
  125. mora,115,118,3 duplicate(pss) Point Merchant#Mora 8_F_GIRL
  126. ra_in01,256,273,3 duplicate(pss) Point Merchant#Rachel 8_F_GIRL
  127. veins,202,128,5 duplicate(pss) Point Merchant#Veins 8_F_GIRL
  128. dicastes01,207,200,5 duplicate(pss) Point Merchant#Dicastes 8_F_GIRL
  129. manuk,261,206,3 duplicate(pss) Point Merchant#Manuk 8_F_GIRL
  130. splendide,207,160,5 duplicate(pss) Point Merchant#Splendide 8_F_GIRL
  131. mid_camp,224,237,3 duplicate(pss) Point Merchant#Midgard 8_F_GIRL