--http://pastebin.ca/399423 -- /\/\ __ _ _ __ __ _ ___ / _\ ___ _ __(_)_ __ | |_ -- / \ / _` | '_ \ / _` |/ _ \\ \ / __| '__| | '_ \| __| -- / /\/\ \ (_| | | | | (_| | (_) |\ \ (__| | | | |_) | |_ -- \/ \/\__,_|_| |_|\__, |\___/\__/\___|_| |_| .__/ \__| -- |___/ |_| -- A WHOLE NEW WORLD -- MangoScript - Bringing a whole new world to MaNGOS -- -- AllInOne_guard.lua - the all-in-one guard script -- By Sanaell ( core ) - Gorad ( French translater ) -- Rev 0.1202 (12 city, v02) -- Todo : ratchet, winterspring, booty bay, darkshire and other little town... -- Full translation French / English -- Create the Mango Script Base object AllInOne_Guard = Mango.Scripts.Create('allinone_guard'); AllInOne_Guard:ForceLUA(); -- Don't use the CPP version if valid -- Function prototypes (to keep it clean) local AllInOne_Guard_GossipHello local AllInOne_Guard_GossipSelect local AllInOne_Guard_SendDefaultMenu local AllInOne_Guard_SendBattleMasterMenu local AllInOne_Guard_SendClassTrainerMenu local AllInOne_Guard_SendProfTrainerMenu -- Language choice (EN, FR) local lng= "FR" -- The actual functions -- Send the first menu (with the selections) function AllInOne_Guard_GossipHello(player,_Creature) AIScript = Mango.AIScripts.GetAIScript('allinone_guard_ai') if (AIScript ~= nil) then AIScript.GossipHello(player, _Creature); end -- Detect ID of Guard local ID_Guard = _Creature:GetEntry() -- Guard's map -- Kalimdor guards map0 = { 1423, 68, 1976, 5624, 1423, 5595, 727, 13076} -- Azeroth guards map1 = { 3502, 197, 3296, 4262, 3571, 3084, 5953, 3210, 3211, 3212, 3213, 3214, 3215, 3217, 3218, 3219, 3220, 3221, 3222, 3223, 3224, 1735, 1738, 2210, 1736, 1739, 1737, 1744, 1745, 5725, 1743, 2209, 1746, 1742} -- Guard to add soon -- 12160 (aldrassil) -- -- take the map of guard local i = 1 while map1[i] do if ID_Guard == map1[i] then map = 1 i = 999 -- endloop end i = i + 1 end if map ~= 1 then local i = 1 while map0[i] do if ID_Guard == map1[i] then map = 0 i = 999 -- endloop end i = i + 1 end end -- Choice menu --class menu class_menu= { "Mage", "Rogue", "Warrior", "Druid", "Priest", "Paladin", "Hunter", "Warlock", "Shaman"} if lng == "FR" then class_menu= { "Mage", "Voleur", "Guerrier", "Druide", "Pr\195\170tre", "Paladin", "Chasseur", "D\195\169moniste", "Chaman"} end --profession menu profession_menu= { "Alchemy", "Blacksmithing", "Cooking", "Enchanting", "Engineering", "First Aid", "Fishing", "Herbalism", "Leatherworking", "Mining", "Skinning", "Tailoring"} if lng == "FR" then profession_menu= { "Alchimie", "Forge", "Cuisine", "Enchantement", "Ing\195\169nierie", "Premiers-soins", "P\195\170che", "Herboristerie", "Tanneur", "Minage", "D\195\169pe\195\167age", "Couture"} end Gossip_profession= { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1} --default profession (all) --battleground menu battle_menu= { "Alterac Valley", "Arathi Basin", "Warsong Gulch"} if lng == "FR" then battle_menu= { "La Vall\195\169e d\'Alterac", "Le Bassin d\'Arathi", "Le Gouffre des Chanteguerres"}end Gossip_battlemaster= 0 -- City Guard Menu -- -- Warning if you need to update that scripts -- Take care about data -- Gossip_menu= { 0, 0 } -- prevent bad guard gossip Gossip_icon= { 0, 0, 0} -- prevent bad guard gossip guardok = 0 --init tirisfal loop --stormwind (finish) if ( ( ID_Guard == 68 ) or ( ID_Guard == 1976 ) ) then Gossip_menu= { "Auction House", "Bank of Stormwind", "Deeprun Tram", "The Inn", "Gryphon Master", "Guild Master", "Mailbox", "Stable Master", "Weapon Master", "Officer's Lounge", "Battlemaster", "Class Trainer", "Profession Trainer"} if lng == "FR" then Gossip_menu= { "H\195\180tel des Ventes", "Banque de Hurlevent", "Tram des Profondeurs", "Auberge", "Ma\195\174tre des Gryphons", "Ma\195\174tre de Guilde", "Bo\195\174tes aux Lettres", "Ma\195\174tre des Ecuries", "Ma\195\174tre des Armes", "Quartier des Officiers", "Battlemaster", "Instructeur de Classe", "Instructeur de M\195\169tier"} end Gossip_icon= { 0, 1, 0, 8, 2, 0, 0, 0, 0, 0, 9, 3, 5} Gossip_txt= 2593 Gossip_POI_menu= { 3834, 764, 3813, 3860, 879, 882, 3618, 5984, 4516, 7047} Gossip_POI_mtext= { "Stormwind Auction House", "Stormwind Bank", "The Deeprun Tram", "The Gilded Rose", "Stormwind Gryphon Master", "Stormwind Mailbox", "Stormwind Vistor`s Center", "Jenova Stoneshield", "Woo Ping", "Champions` Hall"} if lng == "FR" then Gossip_POI_mtext= { "H\195\180tel des Ventes de Hurlevent", "Banque de Hurlevent", "Tram des Profondeurs", "La Rose Dor\195\169e", "Ma\195\174tre des Gryphons de Hurlevent", "Bo\195\174tes aux Lettres de Hurlevent", "Accueil des Visiteurs de Hurlevent", "Jenova Stoneshield", "Woo Ping", "Hall des Champions"} end Gossip_POI_mcoord= { -8811.46, 667.46, -8916.87, 622.87, -8378.88, 554.23, -8869.0, 675.4, -8837.0, 493.5, -8894.0, 611.2, -8876.48, 649.18, -8433.0, 554.7, -8797.0, 612.8, -8759.92, 399.69} Gossip_battlemaster= 1 Gossip_POI_battle= { 7500, 7650, 7501} Gossip_POI_btext= { "Thelman Slatefist", "Dame Hoteshem", "Elfarran"} if lng == "FR" then Gossip_POI_btext= { "Thelman Poing-d'Ardoise", "Dame Hoteshem", "Elfarran"} end Gossip_POI_bcoord= { -8399.88, 296.99, -8420.37, 328.84, -8453.88, 318.99} Gossip_POI_prof= { 919, 920, 921, 941, 922, 923, 940, 924, 925, 927, 928, 929} Gossip_POI_ptext= { "Alchemy Needs", "Therum Deepforge", "Pig and Whistle Tavern", "Lucan Cordell", "Lilliam Sparkspindle", "Shaina Fuller", "Arnold Leland", "Alchemy Needs", "The Protective Hide", "Gelman Stonehand", "The Protective Hide", "Duncan`s Textiles"} if lng == "FR" then Gossip_POI_ptext= { "Tout pour l\'Alchimie", "Therum Deepforge", "La Taverne du Cochon Siffleur", "Lucan Cordell", "Lilliam Sparkspindle", "Shaina Fuller", "Arnold Leland", "Tout pour l\'Alchimie", "Au Cuir Protecteur", "Gelman Stonehand", "Au Cuir Protecteur", "Textiles Duncan"} end Gossip_POI_pcoord= {-8988.0, 759.60, -8424.0, 616.9, -8611.0, 364.6, -8858.0, 803.7, -8347.0, 644.1, -8513.0, 801.8, -8803.0, 767.5, -8967.0, 779.5, -8726.0, 477.4, -8434.0, 692.8, -8716.0, 469.4, -8938.0, 800.7} Gossip_class= { 1, 1, 1, 1, 1, 1, 1, 1, 0} Gossip_POI_class= { 899, 900, 901, 902, 903, 904, 905, 906, 0} Gossip_POI_ctext= { "Wizard`s Sanctum", "Stormwind - Rogue House", "Stormwind Barracks", "The Park", "Catedral Of Light", "Catedral Of Light", "Hunter Lodge", "The Slaughtered Lamb", 0} if lng == "FR" then Gossip_POI_ctext= { "Sanctuaire des Mages", "Hurlevent - Maison des Voleurs", "Centre de Commandement", "Le Parc", "Cath\195\169drale de Lumi\195\168re", "Cath\195\169drale de Lumi\195\168re", "Pavillon des Chasseurs", "L\'Agneau Assassin\195\169", 0} end Gossip_POI_ccoord= { -9012.0, 867.6, -8753.0, 367.8, -8704.86, 329.40, -8751.0, 1124.5, -8512.0, 862.4, -8577.0, 881.7, -8413.0, 541.5, -8948.91, 998.35, 0, 0} guardok = 1 --skip tirisfal loop --elwynn forest (finish) elseif ( ( ID_Guard == 1423 ) ) then Gossip_menu= { "The Inn", "Stable Master", "Class Trainer", "Profession Trainer"} if lng == "FR" then Gossip_menu= { "Auberge", "Ma\195\174tre des Ecuries", "Instructeur de Classe", "Instructeur de M\195\169tier"} end Gossip_icon= { 1, 5, 3, 3} Gossip_txt= 2593 Gossip_POI_menu= { 4263, 5983} Gossip_POI_mtext= { "Lion's Pride Inn", "Erma"} if lng == "FR" then Gossip_POI_mtext= { "Auberge de la Fiert\195\169 du Lion", "Erma"} end Gossip_POI_mcoord= { -9459.34, 42.08, -9466.62, 45.87} Gossip_profession= { 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1} Gossip_POI_prof= { 4274, 4275, 4276, 0, 0, 0, 4280, 4281, 4282, 0, 4284, 4285} Gossip_POI_ptext= { "Alchemist Mallory", "Smith Argus", "Tomas", 0, 0, 0, "Michelle Belle", "Lee Brown", "Herbalist Pomeroy", 0, "Helene Peltskinner", "Eldrin"} if lng == "FR" then Gossip_POI_ptext= { "Alchimiste Mallory", "Argus le Forgeron", "Tomas", 0, 0, 0, "Michelle Belle", "Lee Brown", "Herboriste Pomeroy", 0, "Helene Peltskinner", "Eldrin"} end Gossip_POI_pcoord= { -9057.04, 153.63, -9456.58, 87.90, -9467.54, -3.16, 0, 0, 0, 0, -9456.82, 30.49, -9386.54, -118.73, -9060.70, 149.23, -9376.12, -75.23, 0, 0, -9536.91, -1212.76, -9376.12, -75.23} Gossip_class= { 1, 1, 1, 0, 1, 1, 0, 1, 0} Gossip_POI_class= { 4265, 4266, 4268, 0, 4267, 4270, 0, 4271, 0} Gossip_POI_ctext= { "Zaldimar Wefhellt", "Keryn Sylvius", "Lyria Du Lac", 0, "Priestess Josetta", "Brother Wilhelm", 0, "Maximillian Crowe", 0} if lng == "FR" then Gossip_POI_ctext= { "Zaldimar Wefhellt", "Keryn Sylvius", "Lyria Du Lac", 0, "Pr\195\170tresse Josetta", "Fr\195\168re Wilhelm", 0, "Maximillian Crowe", 0} end Gossip_POI_ccoord= { -9471.12, 33.44, -9465.13, 13.29, -9461.82, 109.50, 0, 0, -9461.07, 32.6, -9469, 108.05, 0, 0, -9473.21, -4.08, 0, 0} guardok = 1 --skip tirisfal loop --undercity (finish) elseif ( ( ID_Guard == 5624 ) ) then Gossip_menu= { "The Bank", "Bat Handler", "Guild Master", "The Inn", "The Mailbox", "Auction House", "Zeppelin Master", "Weapon Master", "Stable Master", "Battlemaster", "Class Trainer", "Profession Trainer"} if lng == "FR" then Gossip_menu= { "La Banque", "Eleveur de Chauve-Souris", "Ma\195\174tre de Guilde", "Auberge", "Bo\195\174te aux Lettres", "H\195\180tel des Ventes", "Ma\195\174tre des Zeppellins", "Ma\195\174tres d'Armes", "Ma\195\174tres des Ecuries", "Battlemaster", "Instructeur de Classe", "Instructeur de M\195\169tier"} end Gossip_icon= { 6, 2, 0, 1, 4, 1, 2, 0, 5, 8, 3, 3} Gossip_txt= 3543 Gossip_POI_menu= { 3834, 764, 3813, 3860, 879, 882, 3618, 5984, 4516, 7047} Gossip_POI_mtext= { "Undercity Bank", "Undercity Bat Handler", "Undercity Guild Master", "Undercity Inn", "Undercity Mailbox", "Undercity Auction House", "Undercity Zeppelin", "Archibald", "Anya Maulray"} if lng == "FR" then Gossip_POI_mtext= { "Banque de Fossoyeuse", "Eleveur de Fossoyeuse", "Ma\195\174tre de Guilde de Fossoyeuse", "Auberge de Fossoyeuse", "Bo\195\174te aux Lettre de Fossoyeuse", "H\195\180tel des Ventes de Fossoyeuse", "Zeppellins de Fossoyeuse", "Archibald", "Anya Maulray"} end Gossip_POI_mcoord= { 1595.64, 232.45, 1565.9, 271.43, 1594.17, 205.57, 1639.43, 220.99, 1632.68, 219.40, 1647.9, 258.49, 2059, 274.86, 1670.31, 324.66, 1634.18, 226.76} Gossip_battlemaster= 1 Gossip_POI_battle= { 7525, 7646, 7526} Gossip_POI_btext= { "Grizzle Halfmane", "Sir Malory Wheeler", "Kurden Bloodclaw"} if lng == "FR" then Gossip_POI_btext= { "Grizzle Halfmane", "Sire Malory Wheeler", "Kurden Griffe-de-Sang"} end Gossip_POI_bcoord= { 1329.05, 333.92, 1283.30, 287.16, 1265.09, 351.18} Gossip_POI_prof= { 3528, 3529, 3530, 3531, 3532, 3533, 3534, 3535, 3536, 3537, 3538, 3539} Gossip_POI_ptext= { "The Apothecarium", "Undercity Blacksmithing Trainer", "Undercity Cooking Trainer", "Undercity Enchanting Trainer", "Undercity Engineering Trainer", "Undercity First Aid Trainer", "Undercity Fishing Trainer", "Undercity Herbalism Trainer", "Undercity Leatherworking Trainer", "Undercity Mining Trainer", "Undercity Skinning Trainer", "Undercity Tailoring Trainer"} if lng == "FR" then Gossip_POI_ptext= { "L\'Apothecarium", "Instructeur-Forgeron de Fossoyeuse", "Instructeur-Cuisinier de Fossoyeuse", "Instructeurs-Enchanteurs de Fossoyeuse", "Instructeurs-Ing\195\169nieurs de Fossoyeuse", "Instructeur-Premiers-Soins de Fossoyeuse", "Instructeur-P\195\170cheur de Fossoyeuse", "Instructeur-Herboriste de Fossoyeuse", "Instructeurs-Tanneurs de Fossoyeuse", "Instructeur-Mineur de Fossoyeuse", "Instructeur-D\195\169pe\195\167eur de Fossoyeuse", "Instructeurs-Couture de Fossoyeuse"} end Gossip_POI_pcoord= { 1419.82, 417.19, 1696, 285, 1596.34, 274.68, 1488.54, 280.19, 1408.58, 143.43, 1519.65, 167.19, 1679.9, 89, 1558, 349.36, 1498.76, 196.43, 1642.88, 335.58, 1498.6, 196.46, 1689.55, 193} Gossip_class= { 1, 1, 1, 0, 1, 0, 0, 1, 0} Gossip_POI_class= { 3513, 3526, 3527, 0, 3521, 0, 0, 3526, 0} Gossip_POI_ctext= { "Undercity Mage Trainers", "Undercity Rogue Trainers", "Undercity Warrior Trainers", 0, "Undercity Priest Trainers", 0, 0, "Undercity Warlock Trainers", 0} if lng == "FR" then Gossip_POI_ctext= { "Instructeurs-Mages de Fossoyeuse", "Instructeurs-Voleurs de Fossoyeuse", "Instructeurs-Guerriers de Fossoyeuse", 0, "Instructeurs-Pr\195\170tres de Fossoyeuse", 0, 0, "Instructeurs-D\195\169moniste de Fossoyeuse", 0} end Gossip_POI_ccoord= { 1781.08, 53, 1418.56, 65.02, 1775.59, 418.19, 0, 0, 1758.33, 401.50, 0, 0, 0, 0, 1780.92, 53.16, 0, 0} guardok = 1 --skip tirisfal loop --thunderbluff (finish) elseif ( ( ID_Guard == 3084 ) ) then Gossip_menu= { "Bank", "Wind Rider Master", "Guild Master", "The Inn", "Mailbox", "Auction House", "Weapon Master", "Stable Master", "Battlemaster", "Class Trainer", "Profession Trainer"} if lng == "FR" then Gossip_menu= { "Banque", "Ma\195\174tre des Coursiers du Vent", "Ma\195\174tre de Guilde", "Auberge", "Bo\195\174te aux Lettres", "H\195\180tel des Ventes", "Ma\195\174tre d\'Armes", "Ma\195\174tre des Ecuries", "Battlemaster", "Instructeur de Classe", "Instructeur de M\195\169tier"} end Gossip_icon= { 6, 2, 0, 1, 4, 1, 0, 5, 8, 3, 3} Gossip_txt= 3543 Gossip_POI_menu= { 1292, 1293, 1291, 3153, 3154, 3155, 4520, 5977} Gossip_POI_mtext= { "Thunder Bluff Bank", "Wind Rider Roost", "Thunder Bluff Civic Information", "Thunder Bluff Inn", "Thunder Bluff Mailbox", "Auction House", "Ansekhwa", "Bulrug"} if lng == "FR" then Gossip_POI_mtext= { "Banque des Pitons du Tonnerre", "Ma\195\174tre des Coursiers du Vent", "Information Civique des Pitons du Tonnerre", "Auberge des Pitons du Tonnerre", "Bo\195\174te aux Lettres des Pitons du Tonnerre", "H\195\180tel des Ventes", "Ansekhwa", "Bulrug"} end Gossip_POI_mcoord= { -1257.8, 24.14, -1196.43, 28.26, -1296.5, 127.57, -1296, 39.7, -1263.59, 44.36, 1381.77, -4371.16, -1282.31, 89.56, -1270.19, 48.84} Gossip_battlemaster= 1 Gossip_POI_battle= { 7522, 7648, 7523} Gossip_POI_btext= { "Taim Ragetotem", "Martin Lindsey", "Kergul Bloodaxe"} if lng == "FR" then Gossip_POI_btext= { "Taim Totem-de-Rage", "Martin Lindsey", "Kergul Hache-sanglante"} end Gossip_POI_bcoord= { -1387.82, -97.55, -997, 214.12, -1384.94, -75.91} Gossip_profession= { 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1} Gossip_POI_prof= { 1332, 1333, 1334, 1335, 0, 1336, 1337, 1338, 1339, 1340, 1343, 1341} Gossip_POI_ptext= { "Bena's Alchemy", "Karn's Smithy", "Aska's Kitchen", "Dawnstrider Enchanters", 0, "Spiritual Healing", "Mountaintop Bait & Tackle", "Holistic Herbalism", "Thunder Bluff Armorers", "Stonehoof Geology", "Mooranta", "Thunder Bluff Armorers"} if lng == "FR" then Gossip_POI_ptext= { "Alchimie de Bena", "Forge de Karn", "Cuisine d\'Aska", "Enchanteurs Aube-Glorieuse", 0, "Soins Spirituels", "App\195\162ts et Equipement du Sommet", "Herboristerie Holistique", "Armuriers des Pitons du Tonnerre", "G\195\169ologie de Sabot-de-Pierre", "Mooranta", "Armuriers des Pitons du Tonnerre"} end Gossip_POI_pcoord= { -1085.56, 27.29, -1239.75, 104.88, -1214.5, -21.23, -1112.65, 48.26, 0, 0, -996.58, 200.5, -1169.35, -68.87, -1137.7, -1.51, -1156.22, 66.86, -1249.17, 155, -1148.56, 51.18, -1156.22, 66.86} Gossip_class= { 1, 0, 1, 1, 1, 0, 1, 0, 1} Gossip_POI_class= { 1296, 0, 1299, 1294, 1297, 0, 1295, 0, 1298} Gossip_POI_ctext= { "Pools of Vision", 0, "Hunter's Hall", "Hall of Elders", "Pools of Vision", 0, "Hunter's Hall", 0, "Hall of Spirits"} if lng == "FR" then Gossip_POI_ctext= { "Bassins de la Vision", 0, "Hall du Chasseur", "Hall des Anciens", "Bassins de la Vision", 0, "Hall du Chasseur", 0, "Hall des Esprits"} end Gossip_POI_ccoord= { -1061.2, 195.5, 0, 0, -1416.32, -114.28, -1054.47, -285, -1061.2, 195.5, 0, 0, -1416.32, -114.28, 0, 0, -989.54, 278.25} guardok = 1 --skip tirisfal loop --darnassus (finish) elseif ( ( ID_Guard == 4262 ) ) then Gossip_menu= { "Auction House", "Bank", "Hippogryph Master", "Guild Master", "The Inn", "Mailbox", "Stable Master", "Weapon Master", "Battlemaster", "Class Trainer", "Profession Trainer"} if lng == "FR" then Gossip_menu= { "H\195\180tel des Ventes", "Banque", "Ma\195\174tre des Hippogryphes", "Ma\195\174tre de Guilde", "Auberge", "Bo\195\174te aux Lettres", "Ma\195\174tre des Ecuries", "Ma\195\174tre d\'Armes", "Battlemaster", "Instructeur de Classe", "Instructeur de M\195\169tier"} end Gossip_icon= { 1, 6, 2, 0, 1, 4, 5, 0, 8, 3, 3} Gossip_txt= 3016 Gossip_POI_menu= { 3833, 3017, 3018, 3019, 3020, 3021, 5980, 4517} Gossip_POI_mtext= { "Darnassus Auction House", "Darnassus Bank", "Rut'theran Village", "Darnassus Guild Master", "Darnassus Inn", "Darnassus Mailbox", "Alassin", "Ilyenia Moonfire"} if lng == "FR" then Gossip_POI_mtext= { "H\195\180tel des Ventes de Darnassus", "Banque de Darnassus", "Village de Rut\'theran", "Ma\195\174tre de Guilde de Darnassus", "Auberge de Darnassus", "Bo\195\174tes aux Lettres de Darnassus", "Alassin", "Ilyenia Lun\195\169clat"} end Gossip_POI_mcoord= { 9861.23, 2334.55, 9938.45, 2512.35, 9945.65, 2618.94, 10076.40, 2199.59, 10133.29, 2222.52, 9942.17, 2495.48, 10167.20, 2522.66, 9907.11, 2329.70} Gossip_battlemaster= 1 Gossip_POI_battle= { 7518, 7651, 7482} Gossip_POI_btext= { "Brogun Stoneshield", "Keras Wolfheart", "Aethalas"} if lng == "FR" then Gossip_POI_btext= { "Brogun Stoneshield", "Keras Wolfheart", "Aethalas"} end Gossip_POI_bcoord= { 9923.61, 2327.43, 9977.37, 2324.39, 9979.84, 2315.79} Gossip_profession= { 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1} Gossip_POI_prof= { 3035, 0, 3036, 3337, 0, 3037, 3038, 3039, 3040, 0, 3042, 3044} Gossip_POI_ptext= { "Darnassus Alchemy Trainer", 0, "Darnassus Cooking Trainer", "Darnassus Enchanting Trainer", 0, "Darnassus First Aid Trainer", "Darnassus Fishing Trainer", "Darnassus Herbalism Trainer", "Darnassus Leatherworking Trainer", 0, "Darnassus Skinning Trainer", "Darnassus Tailor"} if lng == "FR" then Gossip_POI_ptext= { "Instructeurs-Alchimistes de Darnassus", 0, "Instructeur-Cuisinier de Darnassus", "Instructeurs-Enchanteurs de Darnassus", 0, "Instructeur-Premiers-Soins de Darnassus", "Instructeur-P\195\170cheur de Darnassus", "Instructeur-Herboriste de Darnassus", "Instructeurs-Tanneurs de Darnassus", 0, "Instructeur-D\195\169pe\195\167eur de Darnassus", "Couturiers de Darnassus"} end Gossip_POI_pcoord= { 10075.90, 2356.76, 0, 0, 10088.59, 2419.21, 10146.09, 2313.42, 0, 0, 10150.09, 2390.43, 9836.20, 2432.17, 9757.17, 2430.16, 10086.59, 2255.77, 0, 0, 10081.40, 2257.18, 10079.70, 2268.19} Gossip_class= { 0, 1, 1, 1, 1, 0, 1, 0, 0} Gossip_POI_class= { 0, 3026, 3033, 3024, 0, 3023, 0, 0, 0} Gossip_POI_ctext= { 0, "Darnassus Rogue Trainer", "Warrior's Terrace", "Darnassus Druid Trainer", "Temple of the Moon", 0, "Darnassus Hunter Trainer", 0, 0} if lng == "FR" then Gossip_POI_ctext= { 0, "Instructeurs-Voleurs de Darnassus", "Terrasse des Guerriers", "Instructeurs-Druides de Darnassus", "Temple de la Lune", 0, "Instructeurs-Chasseurs de Darnassus", 0, 0} end Gossip_POI_ccoord= { 0, 0, 10122, 2599.12, 9951.91, 2280.38, 10186, 2570.46, 9659.12, 2524.88, 0, 0, 10177.29, 2511.10, 0, 0, 0, 0} guardok = 1 --skip tirisfal loop --Dolanaar (ok) elseif ( ( ID_Guard == 3571 ) ) then Gossip_menu= { "The Inn", "Stable Master", "Class Trainer", "Profession Trainer"} if lng == "FR" then Gossip_menu= { "Auberge", "Ma\195\174tres des Ecuries", "Instructeur de Classe", "Instructeur de M\195\169tier"} end Gossip_icon= { 1, 5, 3, 3} Gossip_txt= 4316 Gossip_POI_menu= { 4320, 5982} Gossip_POI_mtext= { "Dolanaar Inn", "Seriadne"} if lng == "FR" then Gossip_POI_mtext= { "Auberge de Dolanaar", "Seriadne"} end Gossip_POI_mcoord= {9821.49, 960.13, 9808.37, 931.1} Gossip_profession= { 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0} Gossip_POI_prof= { 4329, 0, 4330, 4331, 0, 4332, 0, 4334, 4335, 0, 4337, 0} if lng == "FR" then Gossip_POI_ptext= { "Cyndra Kindwhisper", 0, "Zarrin", "Alanna Oeil-de-Corbeau", 0, "Byancie", 0, "Malorne Bladeleaf", "Nadyia Maneweaver", 0, "Radnaal Maneweaver", 0} end if lng == "FR" then Gossip_POI_ptext= { "Cyndra Kindwhisper", 0, "Zarrin", "Alanna Raveneye", 0, "Byancie", 0, "Malorne Bladeleaf", "Nadyia Maneweaver", 0, "Radnaal Maneweaver", 0} end Gossip_POI_pcoord= { 9767.59, 878.81, 0, 0, 9751.19, 906.13, 10677.59, 1946.56, 0, 0, 9903.12, 999, 0, 0, 9773.78, 875.88, 10152.59, 1681.46, 0, 0, 10135.59, 1673.18, -1249.17, 155} Gossip_class= { 0, 1, 1, 1, 1, 0, 1, 0, 0} Gossip_POI_class= { 0, 4326, 4327, 4323, 4325, 0, 4324, 0, 0} Gossip_POI_ctext= { 0, "Jannok Breezesong", "Kyra Windblade", "Kal", "Laurna Morninglight", 0, "Dazalar", 0, 0} if lng == "FR" then Gossip_POI_ctext= { 0, "Jannok Breezesong", "Kyra Windblade", "Kal", "Laurna Morninglight", 0, "Dazalar", 0, 0} end Gossip_POI_ccoord= { 0, 0, 9789, 942.86, 9821.96, 950.61, 9741.58, 963.7, 9906.16, 986.63, 0, 0, 9815.12, 926.28, 0, 0, 0, 0} guardok = 1 --skip tirisfal loop --orgrimmar elseif ( ( ID_Guard == 3296 ) ) then Gossip_menu= { "The Bank", "Wind Rider Master", "Guild Master", "The Inn", "The Mailbox", "Auction House", "Zeppelin Master", "Weapon Master", "Stable Master", "Officer's Lounge", "Battlemaster", "Class Trainer", "Profession Trainer"} if lng == "FR" then Gossip_menu= { "Banque", "Ma\195\174tre des Coursiers du Vent", "Ma\195\174tre de Guilde", "Auberge", "Bo\195\174tes aux Lettres", "H\195\180tel des Ventes", "Ma\195\174tre des Zeppelins", "Maitre d\'Armes", "Ma\195\174tre des Ecuries", "Quartier des Officiers", "Battlemaster", "Instructeur de Classe", "Instructeur de M\195\169tier"} end Gossip_icon= { 6, 2, 0, 1, 4, 1, 2, 0, 5, 9, 8, 3, 3} Gossip_txt= 2593 Gossip_battlemaster= 1 Gossip_POI_menu= { 3834, 764, 3813, 3860, 879, 882, 3618, 5984, 4516, 7047} Gossip_POI_mtext= { "Bank of Orgrimmar", "The Sky Tower", "Horde Embassy", "Orgrimmar Inn", "Orgrimmar Mailbox", "Orgrimmar Auction House", "Orgrimmar Zeppelin Tower", "Sayoc & Hanashi", "Xon'cha", "Hall of Legends"} if lng == "FR" then Gossip_POI_mtext= { "Banque d\'Orgrimmar", "Tour des Cieux", "Ambassade de la Horde", "Auberge d\'Orgrimmar", "Bo\195\174te aux Lettres d\'Orgrimmar", "H\195\180tel des Ventes d\'Orgrimmar", "Tour d\'Atterrrissage des Zeppelins d\'Orgimmar", "Sayoc et Hanashi", "Xon\'cha", "Hall des Legendes"} end Gossip_POI_mcoord= {1631.51, -4375.33, 1676.6, -4332.72, 1576.93, -4294.75, 1644.51, -4447.27, 1622.53, -4388.79, 1679.21, -4450.1, 1337.36, -4632.7, 2092.56, -4823.95, 2133.12, -4663.93, 1633.56, -4249.37} Gossip_POI_battle= { 7484, 7644, 7520} Gossip_POI_btext= { "Hall of the Brave", "Hall of the Brave", "Hall of the Brave"} if lng == "FR" then Gossip_POI_btext= { "Hall des Braves", "Hall des Braves", "Hall des Braves"} end Gossip_POI_bcoord= { 1983.92, -4794.2, 1983.92, -4794.2, 1983.92, -4794.2} Gossip_POI_prof= { 2497, 2499, 2500, 2501, 2653, 2502, 2503, 2504, 2513, 2515, 2516, 2518} Gossip_POI_ptext= { "Yelmak's Alchemy and Potions", "The Burning Anvil", "Borstan's Firepit", "Godan's Runeworks", "Nogg's Machine Shop", "Survival of the Fittest", "Lumak's Fishing", "Jandi's Arboretum", "Kodohide Leatherworkers", "Red Canyon Mining", "Kodohide Leatherworkers", "Magar's Cloth Goods"} if lng == "FR" then Gossip_POI_ptext= { "Chez Yelmak. Alchimie et Potions", "L\'Enclume Embras\195\169e", "Fosse \195\160 Feu de Borstan", "Rune de Godan", "Atelier de Nogg", "La Survie des mieux Adapt\195\169s", "Articles de P\195\170che de Lumak", "Arboretum de Jandi", "Artisans du Cuir de Kodo", "Mine du Canyon Rouge", "Artisans du Cuir de Kodo", "Les Etoffes de Magar"} end Gossip_POI_pcoord= { 1955.17, -4475.79, 2054.34, -4831.85, 1780.96, -4481.31, 1911.80, -4436.02, 2038.45, -4744.75, 1485.21, -4160.91, 1994.15, -4655.7, 1898.61, -4454.93, 1852.82, -4562.31, 2029.79, -4704, 1852.82, -4562.31, 1802.66, -4560.66} Gossip_class= { 1, 1, 1, 0, 1, 0, 1, 1, 1} Gossip_POI_class= { 2560, 2563, 2565, 0, 2561, 0, 2559, 2564, 2562} Gossip_POI_ctext= { "Darkbriar Lodge", "Shadowswift Brotherhood", "Hall of the Brave", 0, "Spirit Lodge", 0, "Orgrimmar Hunter's Hall", "Darkfire Enclave", "Thrall's Fortress"} if lng == "FR" then Gossip_POI_ctext= { "Pavillon des Buissombre", "Confr\195\169rie Ombrevive", "Hall des Braves", 0, "Autel des Esprits", 0, "Hall du Chasseur d\'Orgrimmar", "Enclave d\'Ombregouffre", "Forteresse de Thrall"} end Gossip_POI_ccoord= { 1451.26, -4223.33, 1773.39, -4278.97, 1983.92, -4794.2, 0, 0, 1442.21, -4183.24, 0, 0, 1442.21, -4183.24, 1849.57, -4359.68, 1925.34, -4181.89} guardok = 1 --skip tirisfal loop --kharanos 727,13076 (ok) elseif ( ( ID_Guard == 727 ) or ( ID_Guard == 13076 ) ) then Gossip_menu= { "The Inn", "Stable Master", "Class Trainer", "Profession Trainer"} if lng == "FR" then Gossip_menu= { "Auberge", "Maître des Ecuries", "Instructeur de Classe", "Instructeur de Métier"} end Gossip_icon= { 1, 5, 3, 3} Gossip_txt= 2593 Gossip_POI_menu= { 4291, 5985} Gossip_POI_mtext= { "Thunderbrew Distillery", "Shelby Stoneflint"} if lng == "FR" then Gossip_POI_mtext= { "Distillerie Thunderbrew", "Shelby Stoneflint"} end Gossip_POI_mcoord= { 1631.51, -4375.33, 1676.6, -4332.72, 1576.93, -4294.75, 1644.51, -4447.27, 1622.53, -4388.79, 1679.21, -4450.1, 1337.36, -4632.7, 2092.56, -4823.95, 2133.12, -4663.93, 1633.56, -4249.37} Gossip_profession= { 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 0} Gossip_POI_prof= { 0, 4302, 4303, 0, 4305, 4306, 4307, 0, 0, 4311, 0, 0} Gossip_POI_ptext= { 0, "Tognus Flintfire", "Gremlock Pilsnor", 0, "Bronk Guzzlegear", "Thamner Pol", "Paxton Ganter", 0, 0, "Yarr Hamerstone", 0, 0} if lng == "FR" then Gossip_POI_ptext= { 0, "Tognus Flintfire", "Gremlock Pilsnor", 0, "Bronk Guzzlegear", "Thamner Pol", "Paxton Ganter", 0, 0, "Yarr Hamerstone", 0, 0} end Gossip_POI_pcoord= { 0, 0, -5584.72, -428.41, -5596.85, -541.43, 0, 0, -5531, -666.53, -5603.67, -523.57, -5202.39, -51.36, 0, 0, 0, 0, -5531, -666.53, 0, 0, 0, 0} Gossip_class= { 1, 1, 1, 0, 1, 1, 1, 1, 0} Gossip_POI_class= { 4294, 4297, 4299, 0, 4296, 4295, 4293, 4298, 0} Gossip_POI_ctext= { "Magis Sparkmantle", "Hogral Bakkan", "Granis Swiftaxe", 0, "Maxan Anvol", "Azar Stronghammer", "Grif Wildheart", "Gimrizz Shadowcog", 0} if lng == "FR" then Gossip_POI_ctext= { "Magis Sparkmantle", "Hogral Bakkan", "Granis Swiftaxe", 0, "Maxan Anvol", "Azar Stronghammer", "Grif Wildheart", "Gimrizz Shadowcog", 0} end Gossip_POI_ccoord= { 1451.26, -4223.33, 1773.39, -4278.97, 1983.92, -4794.2, 0, 0, 1442.21, -4183.24, 0, 0, 1442.21, -4183.24, 1849.57, -4359.68, 1925.34, -4181.89} guardok = 1 --skip tirisfal loop --ironforge 5595 elseif ( ( ID_Guard == 5595 ) ) then Gossip_menu= { "Auction House", "Bank of Ironforge", "Deeprun Tram", "Gryphon Master", "Guild Master", "The Inn", "Mailbox", "Stable Master", "Weapon Master", "Battlemaster", "Class Trainer", "Profession Trainer"} if lng == "FR" then Gossip_menu= { "Hôtel des Ventes", "Banque de Forgefer", "Tram des profondeurs", "Maître des Gryphons", "Maître de Guilde", "Auberge", "Boîte aux Lettres", "Maître des Ecuries", "Maître d'Armes", "Battlemaster", "Instructeur de Classe", "Instructeur de Métier"} end Gossip_icon= { 1, 6, 4, 2, 0, 1, 4, 5, 0, 8, 3, 3} Gossip_txt= 2760 Gossip_battlemaster= 1 Gossip_POI_menu= { 3014, 2761, 3814, 2762, 2764, 2768, 2769, 5986, 4518} Gossip_POI_mtext= { "Ironforge Auction House", "The Vault", "Deeprun Tram", "Ironforge Gryphon Master", "Ironforge Visitor's Center", "Stonefire Tavern", "Ironforge Mailbox", "Ulbrek Firehand", "Bixi and Buliwyf"} if lng == "FR" then Gossip_POI_mtext= { "Hôtel des Ventes de Forgefer", "Chambre forte de Forgefer", "Tram des Profondeurs", "Maître des Gryphons de Forgefer", "Accueil des Visiteurs de Forgefer", "Taverne Brassefeu", "Boîte aux Lettres de Forgefer", "Ulbrek Firehand", "Bixi et Buliwyf"} end Gossip_POI_mcoord= { -4957.39, -911.6, -4891.91, -991.47, -4835.27, -1294.69, -4821.52, -1152.3, -5021, -996.45, -4850.47, -872.57, -4845.7, -880.55, -5010.2, -1262, -5040, -1201.88} Gossip_POI_battle= { 7483, 7649, 7528} Gossip_POI_btext= { "Glordrum Steelbeard", "Donal Osgood", "Lylandris"} if lng == "FR" then Gossip_POI_btext= { "Glordrum Steelbeard", "Donal Osgood", "Lylandris"} end Gossip_POI_bcoord= { -5047.87, -1263.77, -5038.37, -1266.39, -5037.24, -1274.82} Gossip_POI_prof= { 2794, 2795, 2796, 2797, 2798, 2799, 2800, 2801, 2802, 2804, 2805, 2807} Gossip_POI_ptext= { "Berryfizz's Potions and Mixed Drinks", "The Great Forge", "The Bronze Kettle", "Thistlefuzz Arcanery", "Springspindle's Gadgets", "Ironforge Physician", "Traveling Fisherman", "Ironforge Physician", "Finespindle's Leather Goods", "Deepmountain Mining Guild", "Finespindle's Leather Goods", "Stonebrow's Clothier"} if lng == "FR" then Gossip_POI_ptext= { "Berryfizz's Potions and Mixed Drinks", "La Grande Forge", "The Bronze Kettle", "Arcanes de Thistlefuzz", "Gadgets de Springspindle", "Médecin de Forgefer", "Traveling Fisherman", "Médecin de Forgefer", "Finespindle's Leather Goods", "Deepmountain Mining Guild", "Finespindle's Leather Goods", "Stonebrow's Clothier"} end Gossip_POI_pcoord= { -4858.5, -1241.83, -4796.97, -1110.17, -4767.83, -1184.59, -4803.72, -1196.53, -4799.56, -1250.23, -4881.6, -1153.13, -4597.91, -1091.93, -4876.9, -1151.92, -4745, -1027.57, -4705.06, -1116.43, -4745, -1027.57, -4719.60, -1056.96} Gossip_class= { 1, 1, 1, 0, 1, 1, 1, 1, 0} Gossip_POI_class= { 2771, 2774, 2776, 0, 2772, 2773, 2770, 2775, 0} Gossip_POI_ctext= { "Hall of Mysteries", "Ironforge Rogue Trainer", "Hall of Arms", 0, "Hall of Mysteries", "Hall of Mysteries", "Hall of Arms", "Ironforge Warlock Trainer", 0} if lng == "FR" then Gossip_POI_ctext= { "Hall des Mystères", "Instructers-Voleurs de Forgefer", "Hall des Armes", 0, "Hall des Mystères", "Hall des Mystères", "Hall des Armes", "Instructeurs-Démonistes de Forgefer", 0} end Gossip_POI_ccoord= { -4627, -926.45, -4647.83, -1124, -5023.08, -1253.68, 0, 0, -4627, -926.45, -4627.02, -926.45, -5023, -1253.68, -4605, -1110.45, 0, 0} guardok = 1 --skip tirisfal loop --razorhill - durotar (5953) elseif ( ( ID_Guard == 5595 ) ) then Gossip_menu= { "The Inn", "Stable Master", "Class Trainer", "Profession Trainer"} if lng == "FR" then Gossip_menu= { "The Inn", "Stable Master", "Class Trainer", "Profession Trainer"} end Gossip_icon= { 1, 5, 3, 3} Gossip_txt= 2593 Gossip_POI_menu= { 4034, 5973} Gossip_POI_mtext= { "Razor Hill Inn", "Shoja'my"} if lng == "FR" then Gossip_POI_mtext= { "Razor Hill Inn", "Shoja'my"} end Gossip_POI_mcoord= { 338.7, -4688.87, 330.31, -4710.66} Gossip_profession= { 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0} Gossip_POI_prof= { 4020, 4021, 0, 0, 4024, 4025, 4026, 4027, 0, 4029, 0, 0} Gossip_POI_ptext= { "Miao'zan", "Dwukk", 0, 0, "Mukdrak", "Rawrk", "Lau'Tiki", "Mishiki", 0, "Krunn", 0, 0} if lng == "FR" then Gossip_POI_ptext= { "Miao'zan", "Dwukk", 0, 0, "Mukdrak", "Rawrk", "Lau'Tiki", "Mishiki", 0, "Krunn", 0, 0} end Gossip_POI_pcoord= { -800.25, -4894.33, 373.24, -4716.45, 0, 0, 0, 0, 368.95, -4723.95, 327.17, -4825.62, -1065.48, -4777.43, -836.25, -4896.89, 0, 0, 366.94, -4705, 0, 0, 0, 0} Gossip_class= { 1, 1, 1, 0, 1, 0, 1, 1, 1} Gossip_POI_class= { 4014, 4016, 4019, 0, 4015, 0, 4013, 4018, 4017} Gossip_POI_ctext= { "Un'Thuwa", "Kaplak", "Tarshaw Jaggedscar", 0, "Tai'jin", 0, "Thotar", "Dhugru Gorelust", "Swart"} if lng == "FR" then Gossip_POI_ctext= { "Un'Thuwa", "Kaplak", "Tarshaw Jaggedscar", 0, "Tai'jin", 0, "Thotar", "Dhugru Gorelust", "Swart"} end Gossip_POI_ccoord= { -839.33, -4935.6, 265.76, -4709, 312.3, -4824.66, 0, 0, 296.22, -4828.1, 0, 0, 276, -4706.72, 355.88, -4836.45, 307.79, -4836.97} guardok = 1 --skip tirisfal loop --bloodhoof (3210,3211,3212,3213,3214,3215,3217,3218,3219,3220,3221,3222,3223,3224)(ok) elseif ( ( ( ID_Guard > 3209 ) and ( ID_Guard < 3225 ) ) and ( ID_Guard ~= 3216 ) ) then Gossip_menu= { "The Inn", "Stable Master", "Class Trainer", "Profession Trainer"} if lng == "FR" then Gossip_menu= { "Bank", "Wind Rider Master", "The Inn", "Stable Master", "Class Trainer", "Profession Trainer"} end Gossip_icon= { 1, 5, 3, 3} Gossip_txt= 3543 Gossip_POI_menu= { 4053, 5976} Gossip_POI_mtext= { "Bloodhoof Village Inn", "Seikwa"} if lng == "FR" then Gossip_POI_mtext= { "Bloodhoof Village Inn", "Seikwa"} end Gossip_POI_mcoord= { -2361.38, -349.19, -2338.86, -357.56} Gossip_profession= { 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0} Gossip_POI_prof= { 0, 0, 4060, 0, 0, 4062, 4063, 0, 4065, 0, 4067, 0} Gossip_POI_ptext= { 0, 0, "Pyall Silentstride", 0, 0, "Vira Younghoof", "Uthan Stillwater", 0, "Chaw Stronghide", 0, "Yonn Deepcut", 0} if lng == "FR" then Gossip_POI_ptext= { 0, 0, "Pyall Silentstride", 0, 0, "Vira Younghoof", "Uthan Stillwater", 0, "Chaw Stronghide", 0, "Yonn Deepcut", 0} end Gossip_POI_pcoord= { 0, 0, 0, 0, -2263.34, -287.91, 0, 0, 0, 0, -2353.52, -355.82, -2349.21, -241.37, 0, 0, -2257.12, -288.63, 0, 0, -2252.94, -291.32, 0, 0} Gossip_class= { 0, 0, 1, 1, 0, 0, 1, 0, 1} Gossip_POI_class= { 0, 0, 4057, 4054, 0, 0, 4055, 0, 4056} Gossip_POI_ctext= { 0, 0, "Krang Stonehoof", "Gennia Runetotem", 0, 0, "Yaw Sharpmane", 0, "Narm Skychaser"} if lng == "FR" then Gossip_POI_ctext= { 0, 0, "Krang Stonehoof", "Gennia Runetotem", 0, 0, "Yaw Sharpmane", 0, "Narm Skychaser"} end Gossip_POI_ccoord= { 0, 0, 0, 0, -2345.43, -494.11, -2312.15, -443.69, 0, 0, 0, 0, -2178.14, -406.14, 0, 0, -2301.5, -439.87} guardok = 1 --skip tirisfal loop end --tirisfal (1735,1738,2210,1736,1739,1737,1744,1745,5725,1743,2209,1746,1742) (ok) if guardok ~= 1 then local tirisloop = 1 --init of tirisfall guard loop local tirisguard = { 1735, 1736, 1737, 1738, 1739, 1742, 1743, 1744, 1745, 1746, 2210, 2209, 5725} while tirisguard[tirisloop] do if ( ( ID_Guard == tirisguard[tirisloop] ) ) then Gossip_menu= { "The Inn", "Stable Master", "Class Trainer", "Profession Trainer"} if lng == "FR" then Gossip_menu= { "The Inn", "Stable Master", "Class Trainer", "Profession Trainer"} end Gossip_icon= { 1, 5, 3, 3} Gossip_txt= 2593 Gossip_POI_menu= { 4076, 5978} Gossip_POI_mtext= { "Gallows` End Tavern", "Morganus"} if lng == "FR" then Gossip_POI_mtext= { "Gallows` End Tavern", "Morganus"} end Gossip_POI_mcoord= { 2246.68, 241.89, 2267.66, 319.32} Gossip_profession= { 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1} Gossip_POI_prof= { 4082, 0, 0, 4085, 0, 4087, 4088, 4089, 4090, 0, 4092, 4093} Gossip_POI_ptext= { "Carolai Anise", 0, 0, "Vance Undergloom", 0, "Nurse Neela", "Clyde Kellen", "Faruza", "Shelene Rhobart", 0, "Rand Rhobart", "Bowen Brisboise"} if lng == "FR" then Gossip_POI_ptext= { "Carolai Anise", 0, 0, "Vance Undergloom", 0, "Nurse Neela", "Clyde Kellen", "Faruza", "Shelene Rhobart", 0, "Rand Rhobart", "Bowen Brisboise"} end Gossip_POI_pcoord= { 2263.25, 344.23, 0, 0, 0, 0, 2250.35, 249.12, 0, 0, 2246.68, 241.89, 2292.37, -10.72, 2268.21, 331.69, 2027, 78.72, 0, 0, 2027, 78.72, 2160.45, 659.93} Gossip_class= { 1, 1, 1, 0, 1, 0, 0, 1, 0} Gossip_POI_class= { 4077, 4079, 4081, 0, 4078, 0, 0, 4080, 0} Gossip_POI_ctext= { "Cain Firesong", "Marion Call", "Austil de Mon", 0, "Dark Cleric Beryl", 0, 0, "Rupert Boch", 0} if lng == "FR" then Gossip_POI_ctext= { "Cain Firesong", "Marion Call", "Austil de Mon", 0, "Dark Cleric Beryl", 0, 0, "Rupert Boch", 0} end Gossip_POI_ccoord= {2259.18, 240.93, 2259.18, 240.93, 2256.48, 240.32, 0, 0, 2259.18, 240.93, 0, 0, 0, 0, 2259., 240.93, 0, 0} tirisloop = 999 -- endloop end tirisloop= tirisloop + 1 end end --contested (9460,4624,3502,11190,15184) not supported yet --End of guard data -- Anti-error procedure (missing data...) local maxi = 1 local maxiok = 1 while Gossip_menu[maxi] do maxi= maxi + 1 end while Gossip_icon[maxiok] do maxiok= maxiok + 1 end -- endof anti-error procedure if maxiok == maxi then -- menu construction local def = 1 for i=1,maxi - 1 do player:ADD_GOSSIP_ITEM( Gossip_icon[i], Gossip_menu[i] , GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + def) def = def + 1 end player:SEND_GOSSIP_MENU(Gossip_txt, _Creature:GetGUID()); else log("ERROR IN DATA"); end return RETURN_OK end -- Called when you chose an option function AllInOne_Guard_GossipSelect(player, _Creature, sender, action) --General_Guard Main menu if sender == GOSSIP_SENDER_MAIN then AllInOne_Guard_SendDefaultMenu(player, _Creature, action) --General_Guard Submenu calling elseif sender == GOSSIP_SENDER_SEC_CLASSTRAIN then AllInOne_Guard_SendClassTrainerMenu(player, _Creature, action) elseif sender == GOSSIP_SENDER_SEC_PROFTRAIN then AllInOne_Guard_SendProfTrainerMenu(player, _Creature, action) elseif sender == GOSSIP_SENDER_SEC_BATTLEINFO then AllInOne_Guard_SendBattleMasterMenu(player, _Creature, action) end return RETURN_OK end -- React on selections from the main menu function AllInOne_Guard_SendDefaultMenu(player, _Creature, action) local i = 1 while Gossip_menu[i] do if action == GOSSIP_ACTION_INFO_DEF + i then if ( Gossip_menu[i] == "Battlemaster" ) then local j = 1 while battle_menu[j] do player:ADD_GOSSIP_ITEM( 8, battle_menu[j] , GOSSIP_SENDER_SEC_BATTLEINFO, GOSSIP_ACTION_INFO_DEF + j) j= j + 1 end player:SEND_GOSSIP_MENU(7499,_Creature:GetGUID()) elseif ( ( Gossip_menu[i] == "Profession Trainer" ) or ( Gossip_menu[i] == "Instructeur de M\195\169tier" ) ) then local j = 1 while profession_menu[j] do if ( Gossip_profession[j] == 1 ) then player:ADD_GOSSIP_ITEM( 3, profession_menu[j] , GOSSIP_SENDER_SEC_PROFTRAIN, GOSSIP_ACTION_INFO_DEF + j) end j= j + 1 end player:SEND_GOSSIP_MENU(4273,_Creature:GetGUID()) elseif ( ( Gossip_menu[i] == "Class Trainer" ) or ( Gossip_menu[i] == "Instructeur de Classe" ) ) then local j = 1 while class_menu[j] do if ( Gossip_class[j] == 1 ) then player:ADD_GOSSIP_ITEM( 3, class_menu[j] , GOSSIP_SENDER_SEC_CLASSTRAIN, GOSSIP_ACTION_INFO_DEF + j) end j= j + 1 end player:SEND_GOSSIP_MENU(4264,_Creature:GetGUID()) else local xmin= 2 * i - 1 -- x = i + i - 1 / y = x + 1 if (map == nil) then player:SEND_POI(Gossip_POI_mcoord[xmin], Gossip_POI_mcoord[xmin + 1], 6, 6, 0, Gossip_POI_mtext[i]) else player:SEND_POI(Gossip_POI_mcoord[xmin], Gossip_POI_mcoord[xmin + 1], 6, 6, map, Gossip_POI_mtext[i]) end player:SEND_GOSSIP_MENU(Gossip_POI_menu[i],_Creature:GetGUID()) i = 999 -- endloop end end i = i + 1 end end -- Sends the Battle Master menu function AllInOne_Guard_SendBattleMasterMenu(player, _Creature, action) local i = 1 while battle_menu[i] do if action == GOSSIP_ACTION_INFO_DEF + i then local xmin= 2 * i - 1 -- x = i + i - 1 / y = x + 1 if (map == nil) then player:SEND_POI(Gossip_POI_bcoord[xmin], Gossip_POI_bcoord[xmin + 1], 6, 6, 0, Gossip_POI_btext[i]) else player:SEND_POI(Gossip_POI_bcoord[xmin], Gossip_POI_bcoord[xmin + 1], 6, 6, map, Gossip_POI_btext[i]) end player:SEND_GOSSIP_MENU(Gossip_POI_battle[i],_Creature:GetGUID()) i = 999 -- endloop end i = i + 1 end end -- Sends the Class Trainer menu function AllInOne_Guard_SendClassTrainerMenu(player, _Creature, action) local i = 1 while class_menu[i] do if action == GOSSIP_ACTION_INFO_DEF + i then local xmin= 2 * i - 1 -- x = i + i - 1 / y = x + 1 if (map == nil) then player:SEND_POI(Gossip_POI_ccoord[xmin], Gossip_POI_ccoord[xmin + 1], 6, 6, 0, Gossip_POI_ctext[i]) else player:SEND_POI(Gossip_POI_ccoord[xmin], Gossip_POI_ccoord[xmin + 1], 6, 6, map, Gossip_POI_ctext[i]) end player:SEND_GOSSIP_MENU(Gossip_POI_class[i],_Creature:GetGUID()) i = 999 -- endloop end i= i + 1 end end -- Sends the Profession Trainer menu function AllInOne_Guard_SendProfTrainerMenu(player, _Creature, action) local i = 1 while profession_menu[i] do if action == GOSSIP_ACTION_INFO_DEF + i then local xmin= 2 * i - 1 -- x = i + i - 1 / y = x + 1 if (map == nil) then player:SEND_POI(Gossip_POI_pcoord[xmin], Gossip_POI_pcoord[xmin + 1], 6, 6, 0, Gossip_POI_ptext[i]) else player:SEND_POI(Gossip_POI_pcoord[xmin], Gossip_POI_pcoord[xmin + 1], 6, 6, map, Gossip_POI_ptext[i]) end player:SEND_GOSSIP_MENU(Gossip_POI_prof[i],_Creature:GetGUID()) i = 999 --endloop end i= i + 1 end end -- Assign the functions AllInOne_Guard.GossipHello = AllInOne_Guard_GossipHello; AllInOne_Guard.GossipSelect= AllInOne_Guard_GossipSelect; -- Activate (run) the script AllInOne_Guard:Activate();