|
@@ -17,6 +17,7 @@
|
|
|
//= 1.3 Updated to match the latest official script. [Euphy]
|
|
|
//= 1.4 Added correct safe refines. [Haruna]
|
|
|
//= 1.5 Added Refine UI [Atemo, Lemongrass]
|
|
|
+//= 1.6 Added Barter exchange npcs [Atemo]
|
|
|
//============================================================
|
|
|
|
|
|
// +11 and above Refiners
|
|
@@ -582,3 +583,118 @@ malangdo,224,172,6 script Clink#mal_normal 544,{
|
|
|
mes "What a day!!";
|
|
|
close;
|
|
|
}
|
|
|
+
|
|
|
+// Renewal barter shops
|
|
|
+- script refine_barter_init -1,{
|
|
|
+ end;
|
|
|
+OnInit:
|
|
|
+ if (getbattleflag("feature.barter")) {
|
|
|
+ unloadnpc "Vurewell";
|
|
|
+ unloadnpc "Begnahd";
|
|
|
+ unloadnpc "Sade";
|
|
|
+ unloadnpc "Kahlamanlith";
|
|
|
+ unloadnpc "Dilemma";
|
|
|
+ unloadnpc "Tirehaus";
|
|
|
+ unloadnpc "Krugg";
|
|
|
+ unloadnpc "Hakhim";
|
|
|
+ unloadnpc "Abdula";
|
|
|
+ unloadnpc "Xenophon";
|
|
|
+ unloadnpc "Delight";
|
|
|
+ unloadnpc "Matestein";
|
|
|
+ unloadnpc "Fruel";
|
|
|
+
|
|
|
+ npcshopupdate "market_refine_prt_in",1010,200,999999;
|
|
|
+ npcshopupdate "market_refine_payon",1010,200,999999;
|
|
|
+ npcshopupdate "market_refine_morocc_in",1010,200,999999;
|
|
|
+ npcshopupdate "market_refine_alberta_in",1010,200,999999;
|
|
|
+ npcshopupdate "market_refine_yuno_in01",1010,200,999999;
|
|
|
+ npcshopupdate "market_refine_ein_in01",1010,200,999999;
|
|
|
+ npcshopupdate "market_refine_lhz_in02",1010,200,999999;
|
|
|
+
|
|
|
+ npcshopupdate "market_refine_prt_in",1011,1000,999999;
|
|
|
+ npcshopupdate "market_refine_payon",1011,1000,999999;
|
|
|
+ npcshopupdate "market_refine_morocc_in",1011,1000,999999;
|
|
|
+ npcshopupdate "market_refine_alberta_in",1011,1000,999999;
|
|
|
+ npcshopupdate "market_refine_yuno_in01",1011,1000,999999;
|
|
|
+ npcshopupdate "market_refine_ein_in01",1011,1000,999999;
|
|
|
+ npcshopupdate "market_refine_lhz_in02",1011,1000,999999;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ unloadnpc "market_refine_prt_in";
|
|
|
+ unloadnpc "market_refine_payon";
|
|
|
+ unloadnpc "market_refine_morocc_in";
|
|
|
+ unloadnpc "market_refine_alberta_in";
|
|
|
+ unloadnpc "market_refine_yuno_in01";
|
|
|
+ unloadnpc "market_refine_ein_in01";
|
|
|
+ unloadnpc "market_refine_lhz_in02";
|
|
|
+
|
|
|
+ unloadnpc "Dietrich#ns_prt";
|
|
|
+ unloadnpc "Pauline";
|
|
|
+ }
|
|
|
+ end;
|
|
|
+}
|
|
|
+
|
|
|
+- marketshop market_refine_prt_in -1,1010:-1:999999,1011:-1:999999
|
|
|
+- marketshop market_refine_payon -1,1010:-1:999999,1011:-1:999999
|
|
|
+- marketshop market_refine_morocc_in -1,1010:-1:999999,1011:-1:999999
|
|
|
+- marketshop market_refine_alberta_in -1,1010:-1:999999,1011:-1:999999
|
|
|
+- marketshop market_refine_yuno_in01 -1,1010:-1:999999,1011:-1:999999
|
|
|
+- marketshop market_refine_ein_in01 -1,1010:-1:999999,1011:-1:999999
|
|
|
+- marketshop market_refine_lhz_in02 -1,1010:-1:999999,1011:-1:999999
|
|
|
+
|
|
|
+prt_in,63,69,3 script Dietrich#ns_prt 4_M_02,{
|
|
|
+ mes "[" + strnpcinfo(1) + "]";
|
|
|
+ mes "We sell and exchange various ores used in smelting.";
|
|
|
+ next;
|
|
|
+ switch( select( "View basic smelting ores", "View advanced smelting ores", "View Ether smelting ores", "Cancel" ) ) {
|
|
|
+ case 1:
|
|
|
+ mes "[" + strnpcinfo(1) + "]";
|
|
|
+ mes "Phracon and Emveretarcon are available for use in smelting low-level weapons.";
|
|
|
+ close2;
|
|
|
+ callshop "market_refine_" + strnpcinfo(4);
|
|
|
+ end;
|
|
|
+ case 2:
|
|
|
+ mes "[" + strnpcinfo(1) + "]";
|
|
|
+ mes "We are purifying Elunium Stone or Oridecon Stone, or exchanging them with Bradium or Carnium.";
|
|
|
+ close2;
|
|
|
+ callshop "barter_refine_1";
|
|
|
+ end;
|
|
|
+ case 3:
|
|
|
+ mes "[" + strnpcinfo(1) + "]";
|
|
|
+ mes "We add Etel Dust to existing smelting ores and replace them with Ether-bearing smelting ores.";
|
|
|
+ close2;
|
|
|
+ callshop "barter_refine_2";
|
|
|
+ end;
|
|
|
+ case 4:
|
|
|
+ mes "[" + strnpcinfo(1) + "]";
|
|
|
+ mes "If you lack the materials used for smelting, come anytime.";
|
|
|
+ close;
|
|
|
+ }
|
|
|
+ end;
|
|
|
+
|
|
|
+OnInit:
|
|
|
+ setunittitle getnpcid(0), "<Responsible for smelting products>";
|
|
|
+ end;
|
|
|
+}
|
|
|
+payon,137,178,5 duplicate(Dietrich#ns_prt) Hakhim#2 4_M_ORIENT01
|
|
|
+morocc_in,72,32,3 duplicate(Dietrich#ns_prt) Abdula#2 4W_M_03
|
|
|
+alberta_in,21,63,5 duplicate(Dietrich#ns_prt) Xenophon#ns_albe 4_M_02
|
|
|
+yuno_in01,164,27,4 duplicate(Dietrich#ns_prt) Delight#2 4_M_ORIENT01
|
|
|
+ein_in01,18,82,5 duplicate(Dietrich#ns_prt) Matestein#2 4_M_02
|
|
|
+lhz_in02,281,24,5 duplicate(Dietrich#ns_prt) Fruel#2 4_M_02
|
|
|
+
|
|
|
+// Shadowdecon/Zelunium exchange npcs
|
|
|
+prt_in,64,57,3 script Pauline 4_M_02,{
|
|
|
+ mes "[" + strnpcinfo(1) + "]";
|
|
|
+ mes "Do you have <ITEM>[Shadowdecon Gemstone]<INFO>25728</INFO></ITEM> or <ITEM>[Zelunium Gemstone]<INFO>25730</INFO></ITEM>?";
|
|
|
+ mes "We will exchange them for refined products for use as smelting goods.";
|
|
|
+ close2;
|
|
|
+ callshop "barter_refine_3";
|
|
|
+ end;
|
|
|
+}
|
|
|
+payon,142,179,3 duplicate(Pauline) Jihu 4_M_ORIENT01
|
|
|
+morocc_in,64,37,3 duplicate(Pauline) Marik 4W_M_03
|
|
|
+alberta_in,24,63,5 duplicate(Pauline) Satana 4_M_02
|
|
|
+yuno_in01,164,31,6 duplicate(Pauline) Dimir 4_M_ORIENT01
|
|
|
+lhz_in02,275,23,5 duplicate(Pauline) Nemil 4_M_02
|
|
|
+ein_in01,30,88,5 duplicate(Pauline) Galan 4_M_02
|