From 31e2b1f178ebf7f625622a8aff4687373ee8ab8c Mon Sep 17 00:00:00 2001 From: MobiusDevelopment <8391001+MobiusDevelopment@users.noreply.github.com> Date: Sun, 19 Sep 2021 23:02:21 +0000 Subject: [PATCH] Clan hall auctioneers get town name from fnAgitMap spawn value. --- .../ClanHallAuctioneer.java | 61 ++++++++++++++++++- .../ClanHallAuctioneer.java | 61 ++++++++++++++++++- .../ClanHallAuctioneer.java | 61 ++++++++++++++++++- .../ClanHallAuctioneer.java | 61 ++++++++++++++++++- .../ClanHallAuctioneer.java | 61 ++++++++++++++++++- .../ClanHallAuctioneer.java | 61 ++++++++++++++++++- .../ClanHallAuctioneer.java | 61 ++++++++++++++++++- .../ClanHallAuctioneer.java | 61 ++++++++++++++++++- .../ClanHallAuctioneer.java | 61 ++++++++++++++++++- .../ClanHallAuctioneer.java | 61 ++++++++++++++++++- .../ClanHallAuctioneer.java | 61 ++++++++++++++++++- .../ClanHallAuctioneer.java | 61 ++++++++++++++++++- .../ClanHallAuctioneer.java | 61 ++++++++++++++++++- .../ClanHallAuctioneer.java | 61 ++++++++++++++++++- .../ClanHallAuctioneer.java | 61 ++++++++++++++++++- .../ClanHallAuctioneer.java | 61 ++++++++++++++++++- .../ClanHallAuctioneer.java | 61 ++++++++++++++++++- .../ClanHallAuctioneer.java | 61 ++++++++++++++++++- .../dist/game/data/spawns/Dion/Dion.xml | 6 +- .../game/data/spawns/Gludin/GludinVillage.xml | 5 ++ .../dist/game/data/spawns/Gludio/Gludio.xml | 17 +++--- 21 files changed, 1082 insertions(+), 44 deletions(-) diff --git a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java index fd735bb6cd..e25a8f60d2 100644 --- a/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java +++ b/L2J_Mobius_1.0_Ertheia/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java @@ -77,9 +77,10 @@ public class ClanHallAuctioneer extends AbstractNpcAI } case "map": { + final String fnAgitMap = npc.getParameters().getString("fnAgitMap", "gludio"); htmltext = getHtm(player, "ClanHallAuctioneer-map.html"); - htmltext = htmltext.replace("%MAP%", npc.getParameters().getString("fnAgitMap", "gludio").toUpperCase()); - htmltext = htmltext.replace("%TOWN_NAME%", npc.getCastle().getName()); + htmltext = htmltext.replace("%MAP%", fnAgitMap); + htmltext = htmltext.replace("%TOWN_NAME%", getTownName(fnAgitMap)); break; } case "cancelBid": @@ -431,6 +432,62 @@ public class ClanHallAuctioneer extends AbstractNpcAI } } + private String getTownName(String fnAgitMap) + { + String name = ""; + switch (fnAgitMap) + { + case "aden": + { + name = "Aden"; + break; + } + case "floran": + { + name = "Floran"; + break; + } + case "dion": + case "dion01": + { + name = "Dion"; + break; + } + case "giran": + { + name = "Giran"; + break; + } + case "gludin": + { + name = "Gludin"; + break; + } + case "gludio": + case "gludio01": + { + name = "Gludio"; + break; + } + case "godard": + { + name = "Goddard"; + break; + } + case "rune": + { + name = "Rune"; + break; + } + case "schuttgart": + { + name = "Schuttgart"; + break; + } + } + return name; + } + public static void main(String[] args) { new ClanHallAuctioneer(); diff --git a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java index 75ce73d138..eaf1654a53 100644 --- a/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java +++ b/L2J_Mobius_2.5_Underground/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java @@ -77,9 +77,10 @@ public class ClanHallAuctioneer extends AbstractNpcAI } case "map": { + final String fnAgitMap = npc.getParameters().getString("fnAgitMap", "gludio"); htmltext = getHtm(player, "ClanHallAuctioneer-map.html"); - htmltext = htmltext.replace("%MAP%", npc.getParameters().getString("fnAgitMap", "gludio").toUpperCase()); - htmltext = htmltext.replace("%TOWN_NAME%", npc.getCastle().getName()); + htmltext = htmltext.replace("%MAP%", fnAgitMap); + htmltext = htmltext.replace("%TOWN_NAME%", getTownName(fnAgitMap)); break; } case "cancelBid": @@ -431,6 +432,62 @@ public class ClanHallAuctioneer extends AbstractNpcAI } } + private String getTownName(String fnAgitMap) + { + String name = ""; + switch (fnAgitMap) + { + case "aden": + { + name = "Aden"; + break; + } + case "floran": + { + name = "Floran"; + break; + } + case "dion": + case "dion01": + { + name = "Dion"; + break; + } + case "giran": + { + name = "Giran"; + break; + } + case "gludin": + { + name = "Gludin"; + break; + } + case "gludio": + case "gludio01": + { + name = "Gludio"; + break; + } + case "godard": + { + name = "Goddard"; + break; + } + case "rune": + { + name = "Rune"; + break; + } + case "schuttgart": + { + name = "Schuttgart"; + break; + } + } + return name; + } + public static void main(String[] args) { new ClanHallAuctioneer(); diff --git a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java index 75ce73d138..eaf1654a53 100644 --- a/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java +++ b/L2J_Mobius_3.0_Helios/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java @@ -77,9 +77,10 @@ public class ClanHallAuctioneer extends AbstractNpcAI } case "map": { + final String fnAgitMap = npc.getParameters().getString("fnAgitMap", "gludio"); htmltext = getHtm(player, "ClanHallAuctioneer-map.html"); - htmltext = htmltext.replace("%MAP%", npc.getParameters().getString("fnAgitMap", "gludio").toUpperCase()); - htmltext = htmltext.replace("%TOWN_NAME%", npc.getCastle().getName()); + htmltext = htmltext.replace("%MAP%", fnAgitMap); + htmltext = htmltext.replace("%TOWN_NAME%", getTownName(fnAgitMap)); break; } case "cancelBid": @@ -431,6 +432,62 @@ public class ClanHallAuctioneer extends AbstractNpcAI } } + private String getTownName(String fnAgitMap) + { + String name = ""; + switch (fnAgitMap) + { + case "aden": + { + name = "Aden"; + break; + } + case "floran": + { + name = "Floran"; + break; + } + case "dion": + case "dion01": + { + name = "Dion"; + break; + } + case "giran": + { + name = "Giran"; + break; + } + case "gludin": + { + name = "Gludin"; + break; + } + case "gludio": + case "gludio01": + { + name = "Gludio"; + break; + } + case "godard": + { + name = "Goddard"; + break; + } + case "rune": + { + name = "Rune"; + break; + } + case "schuttgart": + { + name = "Schuttgart"; + break; + } + } + return name; + } + public static void main(String[] args) { new ClanHallAuctioneer(); diff --git a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java index a8b916705e..99f259ebe2 100644 --- a/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java +++ b/L2J_Mobius_4.0_GrandCrusade/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java @@ -77,9 +77,10 @@ public class ClanHallAuctioneer extends AbstractNpcAI } case "map": { + final String fnAgitMap = npc.getParameters().getString("fnAgitMap", "gludio"); htmltext = getHtm(player, "ClanHallAuctioneer-map.html"); - htmltext = htmltext.replace("%MAP%", npc.getParameters().getString("fnAgitMap", "gludio").toUpperCase()); - htmltext = htmltext.replace("%TOWN_NAME%", npc.getCastle().getName()); + htmltext = htmltext.replace("%MAP%", fnAgitMap); + htmltext = htmltext.replace("%TOWN_NAME%", getTownName(fnAgitMap)); break; } case "cancelBid": @@ -431,6 +432,62 @@ public class ClanHallAuctioneer extends AbstractNpcAI } } + private String getTownName(String fnAgitMap) + { + String name = ""; + switch (fnAgitMap) + { + case "aden": + { + name = "Aden"; + break; + } + case "floran": + { + name = "Floran"; + break; + } + case "dion": + case "dion01": + { + name = "Dion"; + break; + } + case "giran": + { + name = "Giran"; + break; + } + case "gludin": + { + name = "Gludin"; + break; + } + case "gludio": + case "gludio01": + { + name = "Gludio"; + break; + } + case "godard": + { + name = "Goddard"; + break; + } + case "rune": + { + name = "Rune"; + break; + } + case "schuttgart": + { + name = "Schuttgart"; + break; + } + } + return name; + } + public static void main(String[] args) { new ClanHallAuctioneer(); diff --git a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java index e1575721d3..c238f3e148 100644 --- a/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java +++ b/L2J_Mobius_5.0_Salvation/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java @@ -77,9 +77,10 @@ public class ClanHallAuctioneer extends AbstractNpcAI } case "map": { + final String fnAgitMap = npc.getParameters().getString("fnAgitMap", "gludio"); htmltext = getHtm(player, "ClanHallAuctioneer-map.html"); - htmltext = htmltext.replace("%MAP%", npc.getParameters().getString("fnAgitMap", "gludio").toUpperCase()); - htmltext = htmltext.replace("%TOWN_NAME%", npc.getCastle().getName()); + htmltext = htmltext.replace("%MAP%", fnAgitMap); + htmltext = htmltext.replace("%TOWN_NAME%", getTownName(fnAgitMap)); break; } case "cancelBid": @@ -431,6 +432,62 @@ public class ClanHallAuctioneer extends AbstractNpcAI } } + private String getTownName(String fnAgitMap) + { + String name = ""; + switch (fnAgitMap) + { + case "aden": + { + name = "Aden"; + break; + } + case "floran": + { + name = "Floran"; + break; + } + case "dion": + case "dion01": + { + name = "Dion"; + break; + } + case "giran": + { + name = "Giran"; + break; + } + case "gludin": + { + name = "Gludin"; + break; + } + case "gludio": + case "gludio01": + { + name = "Gludio"; + break; + } + case "godard": + { + name = "Goddard"; + break; + } + case "rune": + { + name = "Rune"; + break; + } + case "schuttgart": + { + name = "Schuttgart"; + break; + } + } + return name; + } + public static void main(String[] args) { new ClanHallAuctioneer(); diff --git a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java index e1575721d3..c238f3e148 100644 --- a/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java +++ b/L2J_Mobius_5.5_EtinasFate/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java @@ -77,9 +77,10 @@ public class ClanHallAuctioneer extends AbstractNpcAI } case "map": { + final String fnAgitMap = npc.getParameters().getString("fnAgitMap", "gludio"); htmltext = getHtm(player, "ClanHallAuctioneer-map.html"); - htmltext = htmltext.replace("%MAP%", npc.getParameters().getString("fnAgitMap", "gludio").toUpperCase()); - htmltext = htmltext.replace("%TOWN_NAME%", npc.getCastle().getName()); + htmltext = htmltext.replace("%MAP%", fnAgitMap); + htmltext = htmltext.replace("%TOWN_NAME%", getTownName(fnAgitMap)); break; } case "cancelBid": @@ -431,6 +432,62 @@ public class ClanHallAuctioneer extends AbstractNpcAI } } + private String getTownName(String fnAgitMap) + { + String name = ""; + switch (fnAgitMap) + { + case "aden": + { + name = "Aden"; + break; + } + case "floran": + { + name = "Floran"; + break; + } + case "dion": + case "dion01": + { + name = "Dion"; + break; + } + case "giran": + { + name = "Giran"; + break; + } + case "gludin": + { + name = "Gludin"; + break; + } + case "gludio": + case "gludio01": + { + name = "Gludio"; + break; + } + case "godard": + { + name = "Goddard"; + break; + } + case "rune": + { + name = "Rune"; + break; + } + case "schuttgart": + { + name = "Schuttgart"; + break; + } + } + return name; + } + public static void main(String[] args) { new ClanHallAuctioneer(); diff --git a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java index e1575721d3..c238f3e148 100644 --- a/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java +++ b/L2J_Mobius_6.0_Fafurion/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java @@ -77,9 +77,10 @@ public class ClanHallAuctioneer extends AbstractNpcAI } case "map": { + final String fnAgitMap = npc.getParameters().getString("fnAgitMap", "gludio"); htmltext = getHtm(player, "ClanHallAuctioneer-map.html"); - htmltext = htmltext.replace("%MAP%", npc.getParameters().getString("fnAgitMap", "gludio").toUpperCase()); - htmltext = htmltext.replace("%TOWN_NAME%", npc.getCastle().getName()); + htmltext = htmltext.replace("%MAP%", fnAgitMap); + htmltext = htmltext.replace("%TOWN_NAME%", getTownName(fnAgitMap)); break; } case "cancelBid": @@ -431,6 +432,62 @@ public class ClanHallAuctioneer extends AbstractNpcAI } } + private String getTownName(String fnAgitMap) + { + String name = ""; + switch (fnAgitMap) + { + case "aden": + { + name = "Aden"; + break; + } + case "floran": + { + name = "Floran"; + break; + } + case "dion": + case "dion01": + { + name = "Dion"; + break; + } + case "giran": + { + name = "Giran"; + break; + } + case "gludin": + { + name = "Gludin"; + break; + } + case "gludio": + case "gludio01": + { + name = "Gludio"; + break; + } + case "godard": + { + name = "Goddard"; + break; + } + case "rune": + { + name = "Rune"; + break; + } + case "schuttgart": + { + name = "Schuttgart"; + break; + } + } + return name; + } + public static void main(String[] args) { new ClanHallAuctioneer(); diff --git a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java index 58a1832471..670b26f133 100644 --- a/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java +++ b/L2J_Mobius_7.0_PreludeOfWar/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java @@ -77,9 +77,10 @@ public class ClanHallAuctioneer extends AbstractNpcAI } case "map": { + final String fnAgitMap = npc.getParameters().getString("fnAgitMap", "gludio"); htmltext = getHtm(player, "ClanHallAuctioneer-map.html"); - htmltext = htmltext.replace("%MAP%", npc.getParameters().getString("fnAgitMap", "gludio").toUpperCase()); - htmltext = htmltext.replace("%TOWN_NAME%", npc.getCastle().getName()); + htmltext = htmltext.replace("%MAP%", fnAgitMap); + htmltext = htmltext.replace("%TOWN_NAME%", getTownName(fnAgitMap)); break; } case "cancelBid": @@ -431,6 +432,62 @@ public class ClanHallAuctioneer extends AbstractNpcAI } } + private String getTownName(String fnAgitMap) + { + String name = ""; + switch (fnAgitMap) + { + case "aden": + { + name = "Aden"; + break; + } + case "floran": + { + name = "Floran"; + break; + } + case "dion": + case "dion01": + { + name = "Dion"; + break; + } + case "giran": + { + name = "Giran"; + break; + } + case "gludin": + { + name = "Gludin"; + break; + } + case "gludio": + case "gludio01": + { + name = "Gludio"; + break; + } + case "godard": + { + name = "Goddard"; + break; + } + case "rune": + { + name = "Rune"; + break; + } + case "schuttgart": + { + name = "Schuttgart"; + break; + } + } + return name; + } + public static void main(String[] args) { new ClanHallAuctioneer(); diff --git a/L2J_Mobius_8.2_Homunculus/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java b/L2J_Mobius_8.2_Homunculus/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java index 58a1832471..670b26f133 100644 --- a/L2J_Mobius_8.2_Homunculus/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java +++ b/L2J_Mobius_8.2_Homunculus/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java @@ -77,9 +77,10 @@ public class ClanHallAuctioneer extends AbstractNpcAI } case "map": { + final String fnAgitMap = npc.getParameters().getString("fnAgitMap", "gludio"); htmltext = getHtm(player, "ClanHallAuctioneer-map.html"); - htmltext = htmltext.replace("%MAP%", npc.getParameters().getString("fnAgitMap", "gludio").toUpperCase()); - htmltext = htmltext.replace("%TOWN_NAME%", npc.getCastle().getName()); + htmltext = htmltext.replace("%MAP%", fnAgitMap); + htmltext = htmltext.replace("%TOWN_NAME%", getTownName(fnAgitMap)); break; } case "cancelBid": @@ -431,6 +432,62 @@ public class ClanHallAuctioneer extends AbstractNpcAI } } + private String getTownName(String fnAgitMap) + { + String name = ""; + switch (fnAgitMap) + { + case "aden": + { + name = "Aden"; + break; + } + case "floran": + { + name = "Floran"; + break; + } + case "dion": + case "dion01": + { + name = "Dion"; + break; + } + case "giran": + { + name = "Giran"; + break; + } + case "gludin": + { + name = "Gludin"; + break; + } + case "gludio": + case "gludio01": + { + name = "Gludio"; + break; + } + case "godard": + { + name = "Goddard"; + break; + } + case "rune": + { + name = "Rune"; + break; + } + case "schuttgart": + { + name = "Schuttgart"; + break; + } + } + return name; + } + public static void main(String[] args) { new ClanHallAuctioneer(); diff --git a/L2J_Mobius_9.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java b/L2J_Mobius_9.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java index 58a1832471..670b26f133 100644 --- a/L2J_Mobius_9.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java +++ b/L2J_Mobius_9.2_ReturnOfTheQueenAnt/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java @@ -77,9 +77,10 @@ public class ClanHallAuctioneer extends AbstractNpcAI } case "map": { + final String fnAgitMap = npc.getParameters().getString("fnAgitMap", "gludio"); htmltext = getHtm(player, "ClanHallAuctioneer-map.html"); - htmltext = htmltext.replace("%MAP%", npc.getParameters().getString("fnAgitMap", "gludio").toUpperCase()); - htmltext = htmltext.replace("%TOWN_NAME%", npc.getCastle().getName()); + htmltext = htmltext.replace("%MAP%", fnAgitMap); + htmltext = htmltext.replace("%TOWN_NAME%", getTownName(fnAgitMap)); break; } case "cancelBid": @@ -431,6 +432,62 @@ public class ClanHallAuctioneer extends AbstractNpcAI } } + private String getTownName(String fnAgitMap) + { + String name = ""; + switch (fnAgitMap) + { + case "aden": + { + name = "Aden"; + break; + } + case "floran": + { + name = "Floran"; + break; + } + case "dion": + case "dion01": + { + name = "Dion"; + break; + } + case "giran": + { + name = "Giran"; + break; + } + case "gludin": + { + name = "Gludin"; + break; + } + case "gludio": + case "gludio01": + { + name = "Gludio"; + break; + } + case "godard": + { + name = "Goddard"; + break; + } + case "rune": + { + name = "Rune"; + break; + } + case "schuttgart": + { + name = "Schuttgart"; + break; + } + } + return name; + } + public static void main(String[] args) { new ClanHallAuctioneer(); diff --git a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java index 912b9210b3..183b207c78 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java +++ b/L2J_Mobius_Classic_2.0_Saviors/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java @@ -78,9 +78,10 @@ public class ClanHallAuctioneer extends AbstractNpcAI } case "map": { + final String fnAgitMap = npc.getParameters().getString("fnAgitMap", "gludio"); htmltext = getHtm(player, "ClanHallAuctioneer-map.html"); - htmltext = htmltext.replace("%MAP%", npc.getParameters().getString("fnAgitMap", "gludio")); - htmltext = htmltext.replace("%TOWN_NAME%", npc.getCastle().getName()); + htmltext = htmltext.replace("%MAP%", fnAgitMap); + htmltext = htmltext.replace("%TOWN_NAME%", getTownName(fnAgitMap)); break; } case "cancelBid": @@ -432,6 +433,62 @@ public class ClanHallAuctioneer extends AbstractNpcAI } } + private String getTownName(String fnAgitMap) + { + String name = ""; + switch (fnAgitMap) + { + case "aden": + { + name = "Aden"; + break; + } + case "floran": + { + name = "Floran"; + break; + } + case "dion": + case "dion01": + { + name = "Dion"; + break; + } + case "giran": + { + name = "Giran"; + break; + } + case "gludin": + { + name = "Gludin"; + break; + } + case "gludio": + case "gludio01": + { + name = "Gludio"; + break; + } + case "godard": + { + name = "Goddard"; + break; + } + case "rune": + { + name = "Rune"; + break; + } + case "schuttgart": + { + name = "Schuttgart"; + break; + } + } + return name; + } + public static void main(String[] args) { new ClanHallAuctioneer(); diff --git a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java index aa905d2406..0eab305e47 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java +++ b/L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java @@ -78,9 +78,10 @@ public class ClanHallAuctioneer extends AbstractNpcAI } case "map": { + final String fnAgitMap = npc.getParameters().getString("fnAgitMap", "gludio"); htmltext = getHtm(player, "ClanHallAuctioneer-map.html"); - htmltext = htmltext.replace("%MAP%", npc.getParameters().getString("fnAgitMap", "gludio")); - htmltext = htmltext.replace("%TOWN_NAME%", npc.getCastle().getName()); + htmltext = htmltext.replace("%MAP%", fnAgitMap); + htmltext = htmltext.replace("%TOWN_NAME%", getTownName(fnAgitMap)); break; } case "cancelBid": @@ -432,6 +433,62 @@ public class ClanHallAuctioneer extends AbstractNpcAI } } + private String getTownName(String fnAgitMap) + { + String name = ""; + switch (fnAgitMap) + { + case "aden": + { + name = "Aden"; + break; + } + case "floran": + { + name = "Floran"; + break; + } + case "dion": + case "dion01": + { + name = "Dion"; + break; + } + case "giran": + { + name = "Giran"; + break; + } + case "gludin": + { + name = "Gludin"; + break; + } + case "gludio": + case "gludio01": + { + name = "Gludio"; + break; + } + case "godard": + { + name = "Goddard"; + break; + } + case "rune": + { + name = "Rune"; + break; + } + case "schuttgart": + { + name = "Schuttgart"; + break; + } + } + return name; + } + public static void main(String[] args) { new ClanHallAuctioneer(); diff --git a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java index aa905d2406..0eab305e47 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java +++ b/L2J_Mobius_Classic_2.2_Antharas/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java @@ -78,9 +78,10 @@ public class ClanHallAuctioneer extends AbstractNpcAI } case "map": { + final String fnAgitMap = npc.getParameters().getString("fnAgitMap", "gludio"); htmltext = getHtm(player, "ClanHallAuctioneer-map.html"); - htmltext = htmltext.replace("%MAP%", npc.getParameters().getString("fnAgitMap", "gludio")); - htmltext = htmltext.replace("%TOWN_NAME%", npc.getCastle().getName()); + htmltext = htmltext.replace("%MAP%", fnAgitMap); + htmltext = htmltext.replace("%TOWN_NAME%", getTownName(fnAgitMap)); break; } case "cancelBid": @@ -432,6 +433,62 @@ public class ClanHallAuctioneer extends AbstractNpcAI } } + private String getTownName(String fnAgitMap) + { + String name = ""; + switch (fnAgitMap) + { + case "aden": + { + name = "Aden"; + break; + } + case "floran": + { + name = "Floran"; + break; + } + case "dion": + case "dion01": + { + name = "Dion"; + break; + } + case "giran": + { + name = "Giran"; + break; + } + case "gludin": + { + name = "Gludin"; + break; + } + case "gludio": + case "gludio01": + { + name = "Gludio"; + break; + } + case "godard": + { + name = "Goddard"; + break; + } + case "rune": + { + name = "Rune"; + break; + } + case "schuttgart": + { + name = "Schuttgart"; + break; + } + } + return name; + } + public static void main(String[] args) { new ClanHallAuctioneer(); diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java index aa905d2406..0eab305e47 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java @@ -78,9 +78,10 @@ public class ClanHallAuctioneer extends AbstractNpcAI } case "map": { + final String fnAgitMap = npc.getParameters().getString("fnAgitMap", "gludio"); htmltext = getHtm(player, "ClanHallAuctioneer-map.html"); - htmltext = htmltext.replace("%MAP%", npc.getParameters().getString("fnAgitMap", "gludio")); - htmltext = htmltext.replace("%TOWN_NAME%", npc.getCastle().getName()); + htmltext = htmltext.replace("%MAP%", fnAgitMap); + htmltext = htmltext.replace("%TOWN_NAME%", getTownName(fnAgitMap)); break; } case "cancelBid": @@ -432,6 +433,62 @@ public class ClanHallAuctioneer extends AbstractNpcAI } } + private String getTownName(String fnAgitMap) + { + String name = ""; + switch (fnAgitMap) + { + case "aden": + { + name = "Aden"; + break; + } + case "floran": + { + name = "Floran"; + break; + } + case "dion": + case "dion01": + { + name = "Dion"; + break; + } + case "giran": + { + name = "Giran"; + break; + } + case "gludin": + { + name = "Gludin"; + break; + } + case "gludio": + case "gludio01": + { + name = "Gludio"; + break; + } + case "godard": + { + name = "Goddard"; + break; + } + case "rune": + { + name = "Rune"; + break; + } + case "schuttgart": + { + name = "Schuttgart"; + break; + } + } + return name; + } + public static void main(String[] args) { new ClanHallAuctioneer(); diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java index aa905d2406..0eab305e47 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java @@ -78,9 +78,10 @@ public class ClanHallAuctioneer extends AbstractNpcAI } case "map": { + final String fnAgitMap = npc.getParameters().getString("fnAgitMap", "gludio"); htmltext = getHtm(player, "ClanHallAuctioneer-map.html"); - htmltext = htmltext.replace("%MAP%", npc.getParameters().getString("fnAgitMap", "gludio")); - htmltext = htmltext.replace("%TOWN_NAME%", npc.getCastle().getName()); + htmltext = htmltext.replace("%MAP%", fnAgitMap); + htmltext = htmltext.replace("%TOWN_NAME%", getTownName(fnAgitMap)); break; } case "cancelBid": @@ -432,6 +433,62 @@ public class ClanHallAuctioneer extends AbstractNpcAI } } + private String getTownName(String fnAgitMap) + { + String name = ""; + switch (fnAgitMap) + { + case "aden": + { + name = "Aden"; + break; + } + case "floran": + { + name = "Floran"; + break; + } + case "dion": + case "dion01": + { + name = "Dion"; + break; + } + case "giran": + { + name = "Giran"; + break; + } + case "gludin": + { + name = "Gludin"; + break; + } + case "gludio": + case "gludio01": + { + name = "Gludio"; + break; + } + case "godard": + { + name = "Goddard"; + break; + } + case "rune": + { + name = "Rune"; + break; + } + case "schuttgart": + { + name = "Schuttgart"; + break; + } + } + return name; + } + public static void main(String[] args) { new ClanHallAuctioneer(); diff --git a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java index aa905d2406..0eab305e47 100644 --- a/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java +++ b/L2J_Mobius_Classic_3.0_TheKamael/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java @@ -78,9 +78,10 @@ public class ClanHallAuctioneer extends AbstractNpcAI } case "map": { + final String fnAgitMap = npc.getParameters().getString("fnAgitMap", "gludio"); htmltext = getHtm(player, "ClanHallAuctioneer-map.html"); - htmltext = htmltext.replace("%MAP%", npc.getParameters().getString("fnAgitMap", "gludio")); - htmltext = htmltext.replace("%TOWN_NAME%", npc.getCastle().getName()); + htmltext = htmltext.replace("%MAP%", fnAgitMap); + htmltext = htmltext.replace("%TOWN_NAME%", getTownName(fnAgitMap)); break; } case "cancelBid": @@ -432,6 +433,62 @@ public class ClanHallAuctioneer extends AbstractNpcAI } } + private String getTownName(String fnAgitMap) + { + String name = ""; + switch (fnAgitMap) + { + case "aden": + { + name = "Aden"; + break; + } + case "floran": + { + name = "Floran"; + break; + } + case "dion": + case "dion01": + { + name = "Dion"; + break; + } + case "giran": + { + name = "Giran"; + break; + } + case "gludin": + { + name = "Gludin"; + break; + } + case "gludio": + case "gludio01": + { + name = "Gludio"; + break; + } + case "godard": + { + name = "Goddard"; + break; + } + case "rune": + { + name = "Rune"; + break; + } + case "schuttgart": + { + name = "Schuttgart"; + break; + } + } + return name; + } + public static void main(String[] args) { new ClanHallAuctioneer(); diff --git a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java index ff71c819ff..922243cba8 100644 --- a/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java +++ b/L2J_Mobius_Essence_4.2_DwellingOfSpirits/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java @@ -78,9 +78,10 @@ public class ClanHallAuctioneer extends AbstractNpcAI } case "map": { + final String fnAgitMap = npc.getParameters().getString("fnAgitMap", "gludio"); htmltext = getHtm(player, "ClanHallAuctioneer-map.html"); - htmltext = htmltext.replace("%MAP%", npc.getParameters().getString("fnAgitMap", "gludio")); - htmltext = htmltext.replace("%TOWN_NAME%", npc.getCastle().getName()); + htmltext = htmltext.replace("%MAP%", fnAgitMap); + htmltext = htmltext.replace("%TOWN_NAME%", getTownName(fnAgitMap)); break; } case "cancelBid": @@ -432,6 +433,62 @@ public class ClanHallAuctioneer extends AbstractNpcAI } } + private String getTownName(String fnAgitMap) + { + String name = ""; + switch (fnAgitMap) + { + case "aden": + { + name = "Aden"; + break; + } + case "floran": + { + name = "Floran"; + break; + } + case "dion": + case "dion01": + { + name = "Dion"; + break; + } + case "giran": + { + name = "Giran"; + break; + } + case "gludin": + { + name = "Gludin"; + break; + } + case "gludio": + case "gludio01": + { + name = "Gludio"; + break; + } + case "godard": + { + name = "Goddard"; + break; + } + case "rune": + { + name = "Rune"; + break; + } + case "schuttgart": + { + name = "Schuttgart"; + break; + } + } + return name; + } + public static void main(String[] args) { new ClanHallAuctioneer(); diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java index 4fbb951495..4a327b2c88 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/scripts/ai/others/ClanHallAuctioneer/ClanHallAuctioneer.java @@ -78,9 +78,10 @@ public class ClanHallAuctioneer extends AbstractNpcAI } case "map": { + final String fnAgitMap = npc.getParameters().getString("fnAgitMap", "gludio"); htmltext = getHtm(player, "ClanHallAuctioneer-map.html"); - htmltext = htmltext.replace("%MAP%", npc.getParameters().getString("fnAgitMap", "gludio")); - htmltext = htmltext.replace("%TOWN_NAME%", npc.getCastle().getName()); + htmltext = htmltext.replace("%MAP%", fnAgitMap); + htmltext = htmltext.replace("%TOWN_NAME%", getTownName(fnAgitMap)); break; } case "cancelBid": @@ -432,6 +433,62 @@ public class ClanHallAuctioneer extends AbstractNpcAI } } + private String getTownName(String fnAgitMap) + { + String name = ""; + switch (fnAgitMap) + { + case "aden": + { + name = "Aden"; + break; + } + case "floran": + { + name = "Floran"; + break; + } + case "dion": + case "dion01": + { + name = "Dion"; + break; + } + case "giran": + { + name = "Giran"; + break; + } + case "gludin": + { + name = "Gludin"; + break; + } + case "gludio": + case "gludio01": + { + name = "Gludio"; + break; + } + case "godard": + { + name = "Goddard"; + break; + } + case "rune": + { + name = "Rune"; + break; + } + case "schuttgart": + { + name = "Schuttgart"; + break; + } + } + return name; + } + public static void main(String[] args) { new ClanHallAuctioneer(); diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/spawns/Dion/Dion.xml b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/spawns/Dion/Dion.xml index 6488b6b4d3..f1cc29bcc0 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/spawns/Dion/Dion.xml +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/spawns/Dion/Dion.xml @@ -2,6 +2,11 @@ + + + + + @@ -44,7 +49,6 @@ - diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/spawns/Gludin/GludinVillage.xml b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/spawns/Gludin/GludinVillage.xml index 91b5819d5a..c497666333 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/spawns/Gludin/GludinVillage.xml +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/spawns/Gludin/GludinVillage.xml @@ -2,6 +2,11 @@ + + + + + diff --git a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/spawns/Gludio/Gludio.xml b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/spawns/Gludio/Gludio.xml index 7301d6dafb..132738df42 100644 --- a/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/spawns/Gludio/Gludio.xml +++ b/L2J_Mobius_Essence_5.2_FrostLord/dist/game/data/spawns/Gludio/Gludio.xml @@ -2,6 +2,16 @@ + + + + + + + + + + @@ -50,7 +60,6 @@ - @@ -165,7 +174,6 @@ - @@ -190,11 +198,6 @@ - - - - -