
UnBotCommandRealize = {
[0] = CommandUnBotSetting,
[11] = CommandInspectFrame,
[12] = CommandInitForLevel,
[54] = CommandShowStrategyFrame,
[64] = CommandUnBotItemList,
[65] = CommandUnBotDestroyItem,
[66] = CommandUnBotEquipItem,
[67] = CommandUnBotSellItem,
[68] = CommandUnBotUseItem,
[69] = CommandUnBotSpells,
[70] = CommandCombatStop,
[71] = CommandUninvite,
[72] = CommandListIcons,
[74] = CommandShowOnlineFrame,
[77] = CommandShowNPCFrame,
[78] = CommandFriendsOnline,
[79] = CommandFriendsInvite,
[80] = CommandReadyCheck,
[88] = CommandAddFriends,
};

UnBotCommandToGroups = {
[0] = 0,
[1] = 1,
[2] = 1,
[3] = 1,
[4] = 1,
[5] = 9,
[6] = 9,
[7] = 9,
[8] = 9,
[9] = 9,
[10] = 9,
[11] = 7,
[12] = 1,
[13] = 1,
[14] = 1,
[15] = 2,
[16] = 2,
[17] = 2,
[18] = 2,
[19] = 2,
[20] = 8,
[21] = 8,
[22] = 8,
[23] = 8,
[24] = 2,
[25] = 3,
[26] = 3,
[27] = 3,
[28] = 3,
[29] = 3,
[30] = 3,
[31] = 3,
[32] = 4,
[33] = 4,
[34] = 4,
[35] = 4,
[36] = 4,
[37] = 4,
[38] = 5,
[39] = 5,
[40] = 5,
[41] = 5,
[42] = 5,
[43] = 5,
[44] = 5,
[45] = 5,
[46] = 5,
[47] = 6,
[48] = 6,
[49] = 6,
[50] = 6,
[51] = 6,
[52] = 6,
[53] = 6,
[54] = 8,
[55] = 8,
[56] = 8,
[57] = 8,
[58] = 8,
[59] = 8,
[60] = 8,
[61] = 8,
[62] = 6,
[63] = 6,
[64] = 7,
[65] = 7,
[66] = 7,
[67] = 7,
[68] = 7,
[69] = 8,
[70] = 6,
[71] = 6,
[72] = 10,
[73] = 8,
[74] = 10,
[75] = 6,
[76] = 6,
[77] = 10,
[78] = 10,
[79] = 10,
[80] = 10,
[81] = 7,
[82] = 1,
[83] = 1,
[84] = 9,
[85] = 9,
[86] = 1,
[87] = 1,
[88] = 10,
[89] = 2,
};

UnBotIconFiles = {
[0] = 5983,
[1] = 514,
[2] = 1177,
[3] = 1178,
[4] = 1287,
[5] = 1125,
[6] = 940,
[7] = 943,
[8] = 938,
[9] = 548,
[10] = 547,
[11] = 4,
[12] = 541,
[13] = 5398,
[14] = 5415,
[15] = 364,
[16] = 369,
[17] = 3006,
[18] = 569,
[19] = 569,
[20] = 928,
[21] = 925,
[22] = 3057,
[23] = 3072,
[24] = 2212,
[25] = 80,
[26] = 85,
[27] = 133,
[28] = 134,
[29] = 112,
[30] = 203,
[31] = 171,
[32] = 81,
[33] = 483,
[34] = 485,
[35] = 304,
[36] = 480,
[37] = 214,
[38] = 5089,
[39] = 4497,
[40] = 399,
[41] = 493,
[42] = 4659,
[43] = 565,
[44] = 301,
[45] = 372,
[46] = 562,
[47] = 523,
[48] = 357,
[49] = 609,
[50] = 5740,
[51] = 325,
[52] = 28,
[53] = 78,
[54] = 5678,
[55] = 5548,
[56] = 5507,
[57] = 5578,
[58] = 5574,
[59] = 5694,
[60] = 5666,
[61] = 5593,
[62] = 817,
[63] = 779,
[64] = 2888,
[65] = 5979,
[66] = 900,
[67] = 4445,
[68] = 3966,
[69] = 3003,
[70] = 3163,
[71] = 169,
[72] = 4662,
[73] = 5946,
[74] = 3513,
[75] = 515,
[76] = 380,
[77] = 598,
[78] = 5982,
[79] = 5639,
[80] = 5974,
[81] = 1758,
[82] = 402,
[83] = 3596,
[84] = 615,
[85] = 2065,
[86] = 74,
[87] = 3598,
[88] = 174,
[89] = 103
};
UnBotTooltipTitle = {
[0] = "Close all windows and sub-button groups",
[1] = "Initialize all online bots",
[2] = "Initialize selected bot",
[3] = "Initialize all bots in the team",
[4] = "Update random bots",
[5] = "Reset talents of selected bot",
[6] = "Add remaining talents-1 to selected bot",
[7] = "Add remaining talents-2 to selected bot",
[8] = "Add remaining talents-3 to selected bot",
[9] = "Reset AI of all bots in the team",
[10] = "Reset AI of selected bot",
[11] = "View bot equipment interface",
[12] = "Initialize bot to your level",
[13] = "Teleport team bots to your side",
[14] = "Teleport selected bot to your side",
[15] = "Make team bots follow you",
[16] = "Make selected bot follow you",
[17] = "Make team bots learn skills",
[18] = "Make dead team bots release spirits",
[19] = "Make selected bot release spirit",
[20] = "View team bots' quest status",
[21] = "View selected bot's quest status",
[22] = "View team bots' current status",
[23] = "View selected bot's current status",
[24] = "Make team bots loot items",
[25] = "Make team bots flee",
[26] = "Make tank bots flee",
[27] = "Make DPS bots flee",
[28] = "Make healer bots flee",
[29] = "Make melee bots flee",
[30] = "Make ranged bots flee",
[31] = "Make selected bot flee",
[32] = "Make team bots attack target",
[33] = "Make tank bots attack target",
[34] = "Make DPS bots attack target",
[35] = "Make healer bots attack target",
[36] = "Make melee bots attack target",
[37] = "Make ranged bots attack target",
[38] = "Bot formation - arrow",
[39] = "Bot formation - defensive",
[40] = "Bot formation - dense",
[41] = "Bot formation - melee",
[42] = "Bot formation - circle",
[43] = "Bot formation - phalanx",
[44] = "Bot formation - queue",
[45] = "Bot formation - scattered",
[46] = "View team bots' formation",
[47] = "Stop all bots from following",
[48] = "Make selected bot auto-target",
[49] = "Make selected bot manual-target",
[50] = "Druid spell DPS",
[51] = "Druid bear form",
[52] = "Druid cat form",
[53] = "Druid healing mode",
[54] = "Bot strategy editor",
[55] = "Paladin frost resistance aura",
[56] = "Paladin fire resistance aura",
[57] = "Paladin armor aura",
[58] = "Paladin mount aura",
[59] = "Paladin blessing of kings",
[60] = "Paladin blessing of wisdom",
[61] = "Paladin blessing of might",
[62] = "Team AI status",
[63] = "Selected bot AI status",
[64] = "View bot inventory",
[65] = "Bot discard item",
[66] = "Bot equip item",
[67] = "Bot sell item",
[68] = "Bot use item",
[69] = "Bot cast spell",
[70] = "Team leave combat",
[71] = "Disband team",
[72] = "Show all WoW icons",
[73] = "Teleport to specified player",
[74] = "Random bot online",
[75] = "View selected bot's non-combat strategy",
[76] = "Stop selected bot from following",
[77] = "Summon specified class bot",
[78] = "Make all friends online",
[79] = "Invite all friends to team",
[80] = "Ready check",
[81] = "Bot drink to recover",
[82] = "Team offline",
[83] = "Team online",
[84] = "Naxxramas",
[85] = "Reset actions",
[86] = "Bot offline",
[87] = "Bot online",
[88] = "Add all friends to team",
[89] = "Bot leveling",
};

UnBotTooltipHelp = {
[0] = "Close all open bot windows and all expanded sub-command button groups. Right-click to close the entire action bar. You can toggle the bot action bar display on and off by typing /unbot in the chat or macro.",
[1] = "Reinitialize all online bots, including their levels (random within the backend set level range), equipment, and skills. This will lag the server and requires waiting. Do not execute frequently.",
[2] = "Initialize the selected bot based on the current character's level and item level, including its level, equipment, and skills.",
[3] = "Initialize all bots in the team based on the current character's level and item level, including their levels, equipment, and skills.",
[4] = "Update random bots. When the number of online bots is less than the backend set number, supplement bots to go online. When the number is sufficient, some will go offline and then some will go online.",
[5] = "Reset the selected bot's talents, then use the command to add remaining talents to switch the bot's talents. If the bot switches talents, execute reset ai again to make the bot work with the new talents (command 9 or 10). Requires GM account.",
[6] = "Select the bot and add all remaining talent points to the first talent page. If the bot switches talents, execute reset ai again to make the bot work with the new talents (command 9 or 10).",
[7] = "Select the bot and add all remaining talent points to the second talent page. If the bot switches talents, execute reset ai again to make the bot work with the new talents (command 9 or 10).",
[8] = "Select the bot and add all remaining talent points to the third talent page. If the bot switches talents, execute reset ai again to make the bot work with the new talents (command 9 or 10).",
[9] = "Reset the AI strategy of all bots in the team. Usually needed after bots switch talents to make them start fighting with the new talents.",
[10] = "Reset the AI strategy of the selected bot. Usually needed after bots switch talents to make them start fighting with the new talents.",
[11] = "Open the bot equipment interface. Left-click on each equipment slot to change the bot's equipment, right-click to unequip the bot's equipment. (Only effective for bots in the team)",
[12] = "Initialize the selected target bot to your own level, reset its skills and equipment to this level. To reset to other levels, manually input the command with the level number at the end.",
[13] = "Teleport the bots in the team to your side, including all bots in the party and raid. If not in the team, it is invalid.",
[14] = "Teleport the selected bot to your side. If the selected target is incorrect, it is invalid.",
[15] = "Make all bots in the team follow you in the specified formation, performing their roles in combat. Also stops bots from fleeing (interrupts the flee command).",
[16] = "Make the selected bot follow you, mainly to interrupt a single bot's fleeing.",
[17] = "Make all bots in the team learn skills from the selected trainer NPC, including class and profession trainers. Invalid if the correct NPC is not selected.",
[18] = "Make all dead bots in the team release their spirits (then use the summon command to revive the bots to your side, command 13 or 14). This command is only applicable in instances.",
[19] = "Make the selected bot release its spirit if it is dead, otherwise invalid (then use the summon command to revive the bot to your side, command 13 or 14). This command is only applicable in instances.",
[20] = "Check the quest status of all bots in the team, including how many quests are completed and how many are incomplete.",
[21] = "Check the quest status of the selected bot, including how many quests are completed and how many are incomplete.",
[22] = "Check the current status of all bots in the team, including: the percentage of experience at the current level, remaining bag slots, and remaining money.",
[23] = "Check the current status of the selected bot, including: the percentage of experience at the current level, remaining bag slots, and remaining money.",
[24] = "Make all bots in the team actively loot nearby corpses.",
[25] = "Make all bots in the team flee, abandon combat, and run to your position to follow you. (Use the follow command to cancel this effect, command 15 or 16).",
[26] = "Make the tank bots in the team flee, abandon combat, and run to your position to follow you. (Use the follow command to cancel this effect, command 15 or 16).",
[27] = "Make the DPS bots in the team flee, abandon combat, and run to your position to follow you. (Use the follow command to cancel this effect, command 15 or 16).",
[28] = "Make the healer bots in the team flee, abandon combat, and run to your position to follow you. (Use the follow command to cancel this effect, command 15 or 16).",
[29] = "Make the melee bots in the team flee, abandon combat, and run to your position to follow you. (Use the follow command to cancel this effect, command 15 or 16).",
[30] = "Make the ranged bots in the team flee, abandon combat, and run to your position to follow you. (Use the follow command to cancel this effect, command 15 or 16).",
[31] = "Make the selected bot flee, abandon combat, and run to your position to follow you. (Use the follow command to cancel this effect, command 15 or 16).",
[32] = "Make all bots in the team attack the selected target.",
[33] = "Make the tank bots in the team attack the selected target.",
[34] = "Make the DPS bots in the team attack the selected target.",
[35] = "Make the healer bots in the team attack the selected target.",
[36] = "Make the melee bots in the team attack the selected target.",
[37] = "Make the ranged bots in the team attack the selected target.",
[38] = "Make all bots in the team stand in an arrow formation, with tanks at the front, melee DPS next, ranged DPS further back, and healers at the rear.",
[39] = "Make all bots in the team gather around you.",
[40] = "Make all bots in the team stand very close around you in the default formation.",
[41] = "Make all bots in the team stand in a melee formation.",
[42] = "Make all bots in the team stand in a circular formation, with tanks and melee in the center, and ranged and healers forming a large circle around them.",
[43] = "Make all bots in the team stand in a phalanx formation, like an ancient Roman battlefield phalanx.",
[44] = "Make all bots in the team follow you one by one, with the first moving, then the second, and so on, in a dispersed formation.",
[45] = "Make all bots in the team stand in a dispersed formation and follow you one by one.",
[46] = "Check the current formation of all bots in the team.",
[47] = "Make the entire team stop moving and stand in place. They will perform their roles in combat and return to standing in place after combat.",
[48] = "Make the selected bot automatically choose targets. Once in combat, the bot will automatically select attack targets. The attack command is invalid for the bot.",
[49] = "Make the selected bot manually choose targets. In combat, the bot's targets are manually selected by the player and will not switch automatically. In this combat mode, DPS and TANK strategies are invalid, and the attack command is valid for the bot.",
[50] = "Make the selected druid bot use spell DPS in combat, using moonkin form if available.",
[51] = "Make the selected druid bot use bear or dire bear form to tank in combat.",
[52] = "Make the selected druid bot use cat form to DPS in combat.",
[53] = "Make the selected druid bot enter healing mode in combat.",
[54] = "Open the strategy editor window to set detailed combat and non-combat strategies for the selected bot.",
[55] = "Make the selected paladin bot activate frost resistance aura.",
[56] = "Make the selected paladin bot activate fire resistance aura.",
[57] = "Make the selected paladin bot activate armor defense aura.",
[58] = "Make the selected paladin bot activate mount speed aura.",
[59] = "Make the selected paladin bot use blessing of kings to buff teammates.",
[60] = "Make the selected paladin bot use blessing of wisdom to buff teammates.",
[61] = "Make the selected paladin bot use blessing of might to buff teammates.",
[62] = "Check the AI status of all bots in the team.",
[63] = "Check the AI status of the selected bot.",
[64] = "Open the item view window, listing all items in the selected bot's current bag for you to view. To discard, equip, or use these items, use the following commands. (|cffbb0000The bot's bag will not sync changes due to other reasons. You need to manually click the refresh button to sync. The refresh button and all item buttons are invalid while the bot is sitting, drinking, or casting spells.|r)",
[65] = "Open the discard item window, listing all items in the selected bot's current bag for you to view. Left-click an item to make the bot discard it, right-click an item to hide it. (|cffbb0000The bot's bag will not sync changes due to other reasons. You need to manually click the refresh button to sync. The refresh button and all item buttons are invalid while the bot is sitting, drinking, or casting spells.|r)",
[66] = "Open the equip item window, listing all items in the selected bot's current bag for you to view. Left-click an item to make the bot equip it, right-click an item to hide it. (|cffbb0000The bot's bag will not sync changes due to other reasons. You need to manually click the refresh button to sync. The refresh button and all item buttons are invalid while the bot is sitting, drinking, or casting spells.|r)",
[67] = "Open the sell item window, listing all items in the selected bot's current bag for you to view. Left-click an item to make the bot sell it to the currently selected vendor, right-click an item to hide it. (|cffbb0000The bot's bag will not sync changes due to other reasons. You need to manually click the refresh button to sync. The refresh button and all item buttons are invalid while the bot is sitting, drinking, or casting spells.|r)",
[68] = "Open the use item window, listing all items in the selected bot's current bag for you to view. Left-click an item to make the bot use it on its current target, right-click an item to hide it. (|cffbb0000The bot's bag will not sync changes due to other reasons. You need to manually click the refresh button to sync. The refresh button and all item buttons are invalid while the bot is sitting, drinking, or casting spells.|r)",
[69] = "Open the skill window, listing all combat and non-combat skills the selected bot has. Left-click a skill to make the bot cast it, right-click a skill to hide it. The skill may require a target, so select the correct target before clicking. Skills that do not require a target cannot select a target. (|cffbb0000The bot's skills will not sync changes due to other reasons. You need to manually click the refresh button to sync. The refresh button and all skill buttons are invalid while the bot is sitting, drinking, or casting spells.|r)",
[70] = "Make all players in the team, including yourself, leave combat state. (Requires GM account.)",
[71] = "Make all players in the team leave the team. Bots will leave the team one by one to avoid you being unable to re-invite them after leaving.",
[72] = "Open a window listing all icons in World of Warcraft for viewing.",
[73] = "Teleport to the selected character. (Requires GM account.)",
[74] = "Open a window displaying your friend list and all players in your guild. Left-click a bot to make it go online, right-click a player to invite them to the team.",
[75] = "View the non-combat strategy of the selected bot.",
[76] = "Make the selected bot stop moving and stand in place. They will perform their roles in combat and return to standing in place after combat.",
[77] = "Open the bot summoning panel to summon a bot of the specified class.",
[78] = "Make all players in your friend list go online.",
[79] = "Invite all players in your friend list to join your team. They must be online. If the team is full during the invitation process, it will stop inviting, automatically convert to a raid, and re-execute the command to invite the remaining players.",
[80] = "Perform a ready check in the team, making bots automatically replenish food, drink, and ammunition as needed.",
[81] = "Make all bots in the team drink water to restore mana.",
[82] = "Make all bots in the team go offline.",
[83] = "Make all bots in the team go online.",
[84] = "Enable the Naxxramas module for all bots in the team.",
[85] = "Reset the current actions of all bots in the team.",
[86] = "Make the specified bot go offline.",
[87] = "Make the specified bot go offline.",
[88] = "Add all bots in the team as friends.",
[89] = "Make all bots in the team automatically attack nearby monsters that give experience.",
};

UnBotExecuteCommand = {
[1] = "",
[2] = ".playerbot bot init=auto",
[3] = ".playerbot bot init=auto *",
-- [4] = ".playerbot bot update",
[5] = ".reset talents",
-- [6] = ".playerbot bot talent=1",
-- [7] = ".playerbot bot talent=2",
-- [8] = ".playerbot bot talent=3",
[9] = "reset botAI",--/p
[10] = "reset botAI",--/w %s 
[11] = "inspect",--/w %s
-- [12] = ".playerbot bot initforlevel ",
[13] = "summon",--/p
[14] = "summon",--/w %s 
[15] = "follow",--/p
[16] = "follow",--/w %s 
[17] = "trainer learn",--/p
[18] = "release",--/p
[19] = "release",--/w %s 
[20] = "quests",--/p
[21] = "quests",--/w %s 
[22] = "stats",--/p
[23] = "stats",--/w %s 
[24] = "add all loot",--/p
[25] = "flee",--/p
[26] = "@tank flee",--/p
[27] = "@dps flee",--/p
[28] = "@heal flee",--/p
[29] = "@melee flee",--/p
[30] = "@ranged flee",--/p
[31] = "flee",--/w %s 
[32] = "attack",--/p
[33] = "@tank attack",--/p
[34] = "@dps attack",--/p
[35] = "@heal attack",--/p
[36] = "@melee attack",--/p
[37] = "@ranged attack",--/p
[38] = "formation arrow",--/p
[39] = "formation queue",--/p
[40] = "formation near",--/p
[41] = "formation melee",--/p
[42] = "formation line",--/p
[43] = "formation circle",--/p
[44] = "formation chaos",--/p
[45] = "formation shield",--/p
[46] = "formation",--/p
[47] = "stay",--/p
[48] = "",--/w %s 
[49] = "",--/w %s 
[50] = "",--/w %s 
[51] = "",--/w %s 
[52] = "",--/w %s 
[53] = "",--/w %s 
[54] = "strategy",--/w %s 
[55] = "",--/w %s 
[56] = "",--/w %s 
[57] = "",--/w %s 
[58] = "",--/w %s 
[59] = "",--/w %s 
[60] = "",--/w %s 
[61] = "",--/w %s 
[62] = "",--/p
[63] = "",--/w %s 
[64] = "c",--/w %s 
[65] = "destroy ",--/w %s 
[66] = "e ",--/w %s 
[67] = "s ",--/w %s 
[68] = "u ",--/w %s 
[69] = "cast ",--/w %s 
-- [70] = ".combatstop ",--/p
[71] = "UninviteUnit ",--/p
[72] = "ICONS",
[73] = ".appear",
[74] = "online",
[75] = "",--/w %s 
[76] = "stay",--/w %s 
[77] = ".playerbot bot addclass",
[78] = "friends online",
[79] = "friends invite",
-- [80] = "ready check",
[81] = "drink",
[82] = ".playerbot bot remove *",
[83] = ".playerbot bot add *",
[84] = "naxx",
[85] = "reset",
[86] = ".playerbot bot remove",
[87] = ".playerbot bot add",
-- [88] = "add friends"
[89] = "grind",
};

--1 = No target selection needed
--2 = Friendly target selection needed
--3 = Hostile target selection needed
--4 = Automatically targets the whole team
UnBotCommandType = {
[0] = 0,
[1] = 1,
[2] = 2,
[3] = 1,
[4] = 1,
[5] = 2,
[6] = 2,
[7] = 2,
[8] = 2,
[9] = 4,
[10] = 2,
[11] = 2,
[12] = 2,
[13] = 4,
[14] = 2,
[15] = 4,
[16] = 2,
[17] = 4,
[18] = 4,
[19] = 2,
[20] = 4,
[21] = 2,
[22] = 4,
[23] = 2,
[24] = 4,
[25] = 4,
[26] = 4,
[27] = 4,
[28] = 4,
[29] = 4,
[30] = 4,
[31] = 2,
[32] = 3,
[33] = 3,
[34] = 3,
[35] = 3,
[36] = 3,
[37] = 3,
[38] = 4,
[39] = 4,
[40] = 4,
[41] = 4,
[42] = 4,
[43] = 4,
[44] = 4,
[45] = 4,
[46] = 4,
[47] = 4,
[48] = 2,
[49] = 2,
[50] = 2,
[51] = 2,
[52] = 2,
[53] = 2,
[54] = 2,
[55] = 2,
[56] = 2,
[57] = 2,
[58] = 2,
[59] = 2,
[60] = 2,
[61] = 2,
[62] = 4,
[63] = 2,
[64] = 2,
[65] = 2,
[66] = 2,
[67] = 2,
[68] = 2,
[69] = 2,
[70] = 4,
[71] = 4,
[72] = 1,
[73] = 1,
[74] = 1,
[75] = 2,
[76] = 2,
[77] = 1,
[78] = 1,
[79] = 1,
[80] = 1,
[81] = 4,
[82] = 1,
[83] = 1,
[84] = 4,
[85] = 4,
[86] = 2,
[87] = 2,
[88] = 4,
[89] = 4,
};
