Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- #################################################################################################
- # .P" .gbsdP gJYp Q .gp. .P" .Q .!, gJYp Q .gp Q.gp #
- # dP .aT" Y$P' ' $ I.aF" "Tb. dP T .giP" $ ' $ I.aF""Tb..aF""Tb. #
- # $ $ I $=I" $b. $ .=$P" I .$ $=I" Y!"I Y! fsc #
- # $ $ I $ I .$$: $ $ I===""$ $ I=="""==$ I-^"^-$ #
- # $ $ I $ IFa..sFYP" $ $ I $ $ I $ I $ #
- # Tb J I $ I" "Tb Tb J I===..P $ I==...==$ I=.,.=$ #
- # Y$. ' I ! $ I Yb Y$. ' I .P !$!I !$!I $ #
- # "Yp. I .' $ I $!. "Yp. I g' !$!I ! !$!I .s!$! #
- # "^T$$TP" .J^RpjF !P" "^T$$TP" .J^RpjF""^J^RpjF" ^$$b. #
- # _ _ #
- # /.) <<Lua Enchanter NPC>> (.\ #
- # /)\| Made by: Runemaster/Thebigman/Crow |/(\ #
- # //)/ Crow's Unique Content Developement \(\\ #
- # /'"^" "^"`\ #
- # Anyone may freely use this script as long as they give the rightful #
- # writer, Crow, Known on forum boards as Runemaster or Thebigman, #
- # credit for writing it. Overall I hope you enjoy it and don't criticize #
- # too harshly. #
- # #
- # Thanks guys! Enjoy! #
- # #
- #################################################################################################
- -- ]]
- local npcid = 85001 --Set the NPC's entry id here!
- function enchanter(pUnit, event, player)
- pUnit:GossipCreateMenu(300, player, 0)
- pUnit:GossipMenuAddItem(10, "|cFF008000Enchant my items, please.|R", 1, 0)
- pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
- pUnit:GossipSendMenu()
- end
- function enchanterselect(pUnit, event, player, id, intid, code)
- if (intid == 1) then
- if (player:GetItemCount(2858) ~= nil) then
- if (player:GetItemCount(2858) < 20) then
- pUnit:SendChatMessageToPlayer(15, 0, "You haven't enough \124cffa335ee\124Hitem:2858:0:0:0:0:0:0:0:0\124h[Blood]\124h\124r to feed me to fuel any enchants. Be gone or it shall be YOUR blood.", player)
- else
- pUnit:GossipCreateMenu(301, player, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Headpiece.|R", 2, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Shoulders.|R", 3, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Cloak.|R", 4, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Chest.|R", 5, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Wrists.|R", 6, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Gloves.|R", 7, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Boots.|R", 8, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Legs.|R", 9, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weaponry/Shields|R", 10, 0)
- pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
- pUnit:GossipSendMenu()
- end
- end
- end
- if (intid == 2) then
- pUnit:GossipCreateMenu(302, player, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Arcanum of Burning Mysteries|R", 11, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Arcanum of Blissful mending|R", 12, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Arcanum of The Stalward Protector", 13, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Arcanum of Torment|R", 14, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Arcanum of the Savage Gladiator|R", 15, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Arcanum of Triumph|R", 16, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Arcanum of Dominance|R", 17, 0)
- pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
- pUnit:GossipSendMenu()
- end
- if (intid == 11) then
- local pItem = player:GetEquippedItemBySlot(0)
- if pItem ~= nil then
- pItem:AddEnchantment(3820, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no dpiece equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 12) then
- local pItem = player:GetEquippedItemBySlot(0)
- if pItem ~= nil then
- pItem:AddEnchantment(3819, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no headpiece equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 13) then
- local pItem = player:GetEquippedItemBySlot(0)
- if pItem ~= nil then
- pItem:AddEnchantment(3818, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no headpiece equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 14) then
- local pItem = player:GetEquippedItemBySlot(0)
- if pItem ~= nil then
- pItem:AddEnchantment(3817, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no headpiece equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 15) then
- local pItem = player:GetEquippedItemBySlot(0)
- if pItem ~= nil then
- pItem:AddEnchantment(3842, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no headpiece equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 16) then
- local pItem = player:GetEquippedItemBySlot(0)
- if pItem ~= nil then
- pItem:AddEnchantment(3795, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no headpiece equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 17) then
- local pItem = player:GetEquippedItemBySlot(0)
- if pItem ~= nil then
- pItem:AddEnchantment(3797, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no headpiece equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 3) then
- pUnit:GossipCreateMenu(303, player, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Greater Inscription of the Gladiator|R", 18, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Inscription of Triumph|R", 19, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Inscription of Dominance", 20, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Greater Inscription of the Axe|R", 21, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Greater Inscription of the Crag|R", 22, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Greater Inscription of the Pinnacle|R", 23, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Greater Inscription of the Storm|R", 24, 0)
- pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
- pUnit:GossipSendMenu(player)
- end
- if (intid == 18) then
- local pItem = player:GetEquippedItemBySlot(2)
- if pItem ~= nil then
- pItem:AddEnchantment(3852, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shoulders equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 19) then
- local pItem = player:GetEquippedItemBySlot(2)
- if pItem ~= nil then
- pItem:AddEnchantment(3793, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shoulders equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 20) then
- local pItem = player:GetEquippedItemBySlot(2)
- if pItem ~= nil then
- pItem:AddEnchantment(3794, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shoulders equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 21) then
- local pItem = player:GetEquippedItemBySlot(2)
- if pItem ~= nil then
- pItem:AddEnchantment(3808, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shoulders equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 22) then
- local pItem = player:GetEquippedItemBySlot(2)
- if pItem ~= nil then
- pItem:AddEnchantment(3809, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shoulders equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 23) then
- local pItem = player:GetEquippedItemBySlot(2)
- if pItem ~= nil then
- pItem:AddEnchantment(3811, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shoulder equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 24) then
- local pItem = player:GetEquippedItemBySlot(2)
- if pItem ~= nil then
- pItem:AddEnchantment(3810, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shoulders equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 4) then
- pUnit:GossipCreateMenu(303, player, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Cloak - Shadow Armor|R", 18, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Cloak - Wisdom|R", 19, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Cloak - Titan Weave", 20, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Cloak - Greater Speed|R", 21, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Cloak - Mighty Armor|R", 22, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Cloak - Major Agility|R", 23, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Cloak - Spell Piercing|R", 24, 0)
- pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
- pUnit:GossipSendMenu(player)
- end
- if (intid == 18) then
- local pItem = player:GetEquippedItemBySlot(14)
- if pItem ~= nil then
- pItem:AddEnchantment(3256, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no cloak equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 19) then
- local pItem = player:GetEquippedItemBySlot(14)
- if pItem ~= nil then
- pItem:AddEnchantment(3296, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no cloak equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 20) then
- local pItem = player:GetEquippedItemBySlot(14)
- if pItem ~= nil then
- pItem:AddEnchantment(1951, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no cloak equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 21) then
- local pItem = player:GetEquippedItemBySlot(14)
- if pItem ~= nil then
- pItem:AddEnchantment(3831, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no cloak equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 22) then
- local pItem = player:GetEquippedItemBySlot(14)
- if pItem ~= nil then
- pItem:AddEnchantment(3294, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no cloak equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 23) then
- local pItem = player:GetEquippedItemBySlot(14)
- if pItem ~= nil then
- pItem:AddEnchantment(1099, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no cloak equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 24) then
- local pItem = player:GetEquippedItemBySlot(14)
- if pItem ~= nil then
- pItem:AddEnchantment(1262, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no cloak equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 5) then
- pUnit:GossipCreateMenu(304, player, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Chest - Powerful Stats|R", 25, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Chest - Super Health|R", 26, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Chest - Greater Mana Restoration|R", 27, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Chest - Exceptional Resilience|R", 28, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Chest - Greater Defense|R", 29, 0)
- pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
- pUnit:GossipSendMenu(player)
- end
- if (intid == 25) then
- local pItem = player:GetEquippedItemBySlot(4)
- if pItem ~= nil then
- pItem:AddEnchantment(3832, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no chest equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 26) then
- local pItem = player:GetEquippedItemBySlot(4)
- if pItem ~= nil then
- pItem:AddEnchantment(3297, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no chest equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 27) then
- local pItem = player:GetEquippedItemBySlot(4)
- if pItem ~= nil then
- pItem:AddEnchantment(2381, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no chest equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 28) then
- local pItem = player:GetEquippedItemBySlot(4)
- if pItem ~= nil then
- pItem:AddEnchantment(3245, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no chest equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 29) then
- local pItem = player:GetEquippedItemBySlot(4)
- if pItem ~= nil then
- pItem:AddEnchantment(1953, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no chest equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 6) then
- pUnit:GossipCreateMenu(305, player, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Bracer - Major Stamina|R", 25, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Bracer - Superior Spellpower|R", 26, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Bracer - Greater Assault|R", 27, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Bracer - Major Spirit|R", 28, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Bracer - Expertise|R", 29, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Bracer - Greater Stats|R", 30, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Bracer - Exceptional Intellect|R", 31, 0)
- pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
- pUnit:GossipSendMenu(player)
- end
- if (intid == 25) then
- local pItem = player:GetEquippedItemBySlot(8)
- if pItem ~= nil then
- pItem:AddEnchantment(3850, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no bracers equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 26) then
- local pItem = player:GetEquippedItemBySlot(8)
- if pItem ~= nil then
- pItem:AddEnchantment(2332, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no bracers equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 27) then
- local pItem = player:GetEquippedItemBySlot(8)
- if pItem ~= nil then
- pItem:AddEnchantment(3845, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no bracers equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 28) then
- local pItem = player:GetEquippedItemBySlot(8)
- if pItem ~= nil then
- pItem:AddEnchantment(1147, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no bracers equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 29) then
- local pItem = player:GetEquippedItemBySlot(8)
- if pItem ~= nil then
- pItem:AddEnchantment(3231, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no bracers equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 30) then
- local pItem = player:GetEquippedItemBySlot(8)
- if pItem ~= nil then
- pItem:AddEnchantment(2661, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no bracers equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 31) then
- local pItem = player:GetEquippedItemBySlot(8)
- if pItem ~= nil then
- pItem:AddEnchantment(1119, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no bracers equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 7) then
- pUnit:GossipCreateMenu(306, player, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Gloves - Greater Blasting|R", 32, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Gloves - Armsman|R", 33, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Gloves - Crusher|R", 34, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Gloves - Agility|R", 35, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Gloves - Precision|R", 36, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Gloves - Expertise|R", 37, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Gloves - Exceptional Spellpower|R", 38, 0)
- pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
- pUnit:GossipSendMenu(player)
- end
- if (intid == 32) then
- local pItem = player:GetEquippedItemBySlot(9)
- if pItem ~= nil then
- pItem:AddEnchantment(3249, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no gloves equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 33) then
- local pItem = player:GetEquippedItemBySlot(9)
- if pItem ~= nil then
- pItem:AddEnchantment(3253, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no gloves equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 34) then
- local pItem = player:GetEquippedItemBySlot(9)
- if pItem ~= nil then
- pItem:AddEnchantment(1603, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no gloves equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 35) then
- local pItem = player:GetEquippedItemBySlot(9)
- if pItem ~= nil then
- pItem:AddEnchantment(3222, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no gloves equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 36) then
- local pItem = player:GetEquippedItemBySlot(9)
- if pItem ~= nil then
- pItem:AddEnchantment(3234, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no gloves equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 37) then
- local pItem = player:GetEquippedItemBySlot(9)
- if pItem ~= nil then
- pItem:AddEnchantment(3231, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no gloves equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 38) then
- local pItem = player:GetEquippedItemBySlot(9)
- if pItem ~= nil then
- pItem:AddEnchantment(3246, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no gloves equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 8) then
- pUnit:GossipCreateMenu(307, player, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Boots - Greater Assault|R", 39, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Boots - Tuskars Vitality|R", 40, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Boots - Superior Agility|R", 41, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Boots - Greater Spirit|R", 42, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Boots - Greater Vitality|R", 43, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Boots - Icewalker|R", 44, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Boots - Greater Fortitude|R", 45, 0)
- pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
- pUnit:GossipSendMenu(player)
- end
- if (intid == 39) then
- local pItem = player:GetEquippedItemBySlot(7)
- if pItem ~= nil then
- pItem:AddEnchantment(1597, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no boots equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 40) then
- local pItem = player:GetEquippedItemBySlot(7)
- if pItem ~= nil then
- pItem:AddEnchantment(3232, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no boots equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 41) then
- local pItem = player:GetEquippedItemBySlot(7)
- if pItem ~= nil then
- pItem:AddEnchantment(983, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no boots equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 42) then
- local pItem = player:GetEquippedItemBySlot(7)
- if pItem ~= nil then
- pItem:AddEnchantment(1147, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no boots equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 43) then
- local pItem = player:GetEquippedItemBySlot(7)
- if pItem ~= nil then
- pItem:AddEnchantment(3244, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no boots equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 44) then
- local pItem = player:GetEquippedItemBySlot(7)
- if pItem ~= nil then
- pItem:AddEnchantment(3826, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no boots equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 45) then
- local pItem = player:GetEquippedItemBySlot(7)
- if pItem ~= nil then
- pItem:AddEnchantment(1075, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no boots equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 9) then
- pUnit:GossipCreateMenu(308, player, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Earthen Leg Armor|R", 46, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Frosthide Leg Armor|R", 47, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Icescale Leg Armor|R", 48, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Brilliant Spellthread|R", 49, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Sapphire Spellthread|R", 50, 0)
- pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
- pUnit:GossipSendMenu(player)
- end
- if (intid == 46) then
- local pItem = player:GetEquippedItemBySlot(6)
- if pItem ~= nil then
- pItem:AddEnchantment(3853, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no legs equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 47) then
- local pItem = player:GetEquippedItemBySlot(6)
- if pItem ~= nil then
- pItem:AddEnchantment(3822, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no legs equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 48) then
- local pItem = player:GetEquippedItemBySlot(6)
- if pItem ~= nil then
- pItem:AddEnchantment(3823, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no legs equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 49) then
- local pItem = player:GetEquippedItemBySlot(6)
- if pItem ~= nil then
- pItem:AddEnchantment(3719, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no legs equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 50) then
- local pItem = player:GetEquippedItemBySlot(6)
- if pItem ~= nil then
- pItem:AddEnchantment(3721, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no legs equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 10) then
- pUnit:GossipCreateMenu(309, player, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Main-Hand Weapon|R", 110, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Off-Hand Weapon|R", 120, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Two-Handed Weapon|R", 130, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Shield|R", 140, 0)
- pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
- pUnit:GossipSendMenu(player)
- end
- if (intid == 110) then
- pUnit:GossipCreateMenu(310, player, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Titan Guard|R", 51, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Accuracy|R", 52, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Berserking|R", 53, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Black Magic|R", 54, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Mighty Spellpower|R", 55, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Superior Potency|R", 56, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Ice Breaker|R", 57, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Lifeward|R", 58, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Blood Draining|R", 59, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Blade Ward|R", 60, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Exceptional Agility|R", 61, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Exceptional Spirit|R", 62, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Executioner|R", 63, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Mongoose|R", 64, 0)
- pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
- pUnit:GossipSendMenu(player)
- end
- if (intid == 51) then
- local pItem = player:GetEquippedItemBySlot(15)
- if pItem ~= nil then
- pItem:AddEnchantment(3851, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 52) then
- local pItem = player:GetEquippedItemBySlot(15)
- if pItem ~= nil then
- pItem:AddEnchantment(3788, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 53) then
- local pItem = player:GetEquippedItemBySlot(15)
- if pItem ~= nil then
- pItem:AddEnchantment(3789, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 54) then
- local pItem = player:GetEquippedItemBySlot(15)
- if pItem ~= nil then
- pItem:AddEnchantment(3790, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 55) then
- local pItem = player:GetEquippedItemBySlot(15)
- if pItem ~= nil then
- pItem:AddEnchantment(3834, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 56) then
- local pItem = player:GetEquippedItemBySlot(15)
- if pItem ~= nil then
- pItem:AddEnchantment(3833, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 57) then
- local pItem = player:GetEquippedItemBySlot(15)
- if pItem ~= nil then
- pItem:AddEnchantment(3239, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 58) then
- local pItem = player:GetEquippedItemBySlot(15)
- if pItem ~= nil then
- pItem:AddEnchantment(3241, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 59) then
- local pItem = player:GetEquippedItemBySlot(15)
- if pItem ~= nil then
- pItem:AddEnchantment(3870, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 60) then
- local pItem = player:GetEquippedItemBySlot(15)
- if pItem ~= nil then
- pItem:AddEnchantment(3869, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 61) then
- local pItem = player:GetEquippedItemBySlot(15)
- if pItem ~= nil then
- pItem:AddEnchantment(1103, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 62) then
- local pItem = player:GetEquippedItemBySlot(15)
- if pItem ~= nil then
- pItem:AddEnchantment(3844, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 63) then
- local pItem = player:GetEquippedItemBySlot(15)
- if pItem ~= nil then
- pItem:AddEnchantment(3225, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 64) then
- local pItem = player:GetEquippedItemBySlot(15)
- if pItem ~= nil then
- pItem:AddEnchantment(2673, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 120) then
- pUnit:GossipCreateMenu(311, player, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Titan Guard|R", 65, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Accuracy|R", 66, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Berserking|R", 67, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Black Magic|R", 68, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Mighty Spellpower|R", 69, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Superior Potency|R", 70, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Ice Breaker|R", 71, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Lifeward|R", 72, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Blood Draining|R", 73, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Blade Ward|R", 74, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Exceptional Agility|R", 75, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Exceptional Spirit|R", 76, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Executioner|R", 77, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Mongoose|R", 78, 0)
- pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
- pUnit:GossipSendMenu(player)
- end
- if (intid == 65) then
- local pItem = player:GetEquippedItemBySlot(16)
- if pItem ~= nil then
- pItem:AddEnchantment(3851, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 66) then
- local pItem = player:GetEquippedItemBySlot(16)
- if pItem ~= nil then
- pItem:AddEnchantment(3788, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 67) then
- local pItem = player:GetEquippedItemBySlot(16)
- if pItem ~= nil then
- pItem:AddEnchantment(3789, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 68) then
- local pItem = player:GetEquippedItemBySlot(16)
- if pItem ~= nil then
- pItem:AddEnchantment(3790, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 69) then
- local pItem = player:GetEquippedItemBySlot(16)
- if pItem ~= nil then
- pItem:AddEnchantment(3834, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 70) then
- local pItem = player:GetEquippedItemBySlot(16)
- if pItem ~= nil then
- pItem:AddEnchantment(3833, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 71) then
- local pItem = player:GetEquippedItemBySlot(16)
- if pItem ~= nil then
- pItem:AddEnchantment(3239, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 72) then
- local pItem = player:GetEquippedItemBySlot(16)
- if pItem ~= nil then
- pItem:AddEnchantment(3241, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 73) then
- local pItem = player:GetEquippedItemBySlot(16)
- if pItem ~= nil then
- pItem:AddEnchantment(3870, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 74) then
- local pItem = player:GetEquippedItemBySlot(16)
- if pItem ~= nil then
- pItem:AddEnchantment(3869, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 75) then
- local pItem = player:GetEquippedItemBySlot(16)
- if pItem ~= nil then
- pItem:AddEnchantment(1103, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 76) then
- local pItem = player:GetEquippedItemBySlot(16)
- if pItem ~= nil then
- pItem:AddEnchantment(3844, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 77) then
- local pItem = player:GetEquippedItemBySlot(16)
- if pItem ~= nil then
- pItem:AddEnchantment(3225, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 78) then
- local pItem = player:GetEquippedItemBySlot(16)
- if pItem ~= nil then
- pItem:AddEnchantment(2673, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
- pUnit:GossipComplete()
- end
- end
- if (intid == 140) then
- pUnit:GossipCreateMenu(312, player, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Shield - Defense|R", 79, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Shield - Greater Intellect|R", 80, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Shield - Shield Block|R", 81, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Shield - Resilience|R", 82, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Shield - Major Stamina|R", 83, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Shield - Tough Shield|R", 84, 0)
- pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
- pUnit:GossipSendMenu(player)
- end
- if (intid == 79) then
- local pItem = player:GetEquippedItemBySlot(16)
- local sql = WorldDBQuery("SELECT subclass FROM items WHERE entry = '"..pItem:GetEntryId().."';"):GetColumn(0):GetString()
- if pItem ~= nil then
- if (sql == "6") then
- pItem:AddEnchantment(1952, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shield equipped!")
- pUnit:GossipComplete()
- end
- end
- end
- if (intid == 80) then
- local pItem = player:GetEquippedItemBySlot(16)
- local sql = WorldDBQuery("SELECT subclass FROM items WHERE entry = '"..pItem:GetEntryId().."';"):GetColumn(0):GetString()
- if pItem ~= nil then
- if (sql == "6") then
- pItem:AddEnchantment(1128, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shield equipped!")
- pUnit:GossipComplete()
- end
- end
- end
- if (intid == 81) then
- local pItem = player:GetEquippedItemBySlot(16)
- local sql = WorldDBQuery("SELECT subclass FROM items WHERE entry = '"..pItem:GetEntryId().."';"):GetColumn(0):GetString()
- if pItem ~= nil then
- if (sql == "6") then
- pItem:AddEnchantment(2655, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shield equipped!")
- pUnit:GossipComplete()
- end
- end
- end
- if (intid == 82) then
- local pItem = player:GetEquippedItemBySlot(16)
- local sql = WorldDBQuery("SELECT subclass FROM items WHERE entry = '"..pItem:GetEntryId().."';"):GetColumn(0):GetString()
- if pItem ~= nil then
- if (sql == "6") then
- pItem:AddEnchantment(3229, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shield equipped!")
- pUnit:GossipComplete()
- end
- end
- end
- if (intid == 83) then
- local pItem = player:GetEquippedItemBySlot(16)
- local sql = WorldDBQuery("SELECT subclass FROM items WHERE entry = '"..pItem:GetEntryId().."';"):GetColumn(0):GetString()
- if pItem ~= nil then
- if (sql == "6") then
- pItem:AddEnchantment(1071, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shield equipped!")
- pUnit:GossipComplete()
- end
- end
- end
- if (intid == 84) then
- local pItem = player:GetEquippedItemBySlot(16)
- local sql = WorldDBQuery("SELECT subclass FROM items WHERE entry = '"..pItem:GetEntryId().."';"):GetColumn(0):GetString()
- if pItem ~= nil then
- if (sql == "6") then
- pItem:AddEnchantment(2653, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shield equipped!")
- pUnit:GossipComplete()
- end
- end
- end
- if (intid == 130) then
- pUnit:GossipCreateMenu(313, player, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant 2H Weapon - Massacre|R", 85, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant 2H Weapon - Scourgebane|R", 86, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant 2H Weapon - Giant Slayer|R", 87, 0)
- pUnit:GossipMenuAddItem(3, "|cFF008000Enchant 2H Weapon - Greater Spellpower|R", 88, 0)
- pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
- pUnit:GossipSendMenu(player)
- end
- if (intid == 85) then
- local pItem = player:GetEquippedItemBySlot(15)
- local sql = WorldDBQuery("SELECT subclass FROM items WHERE entry = '"..pItem:GetEntryId().."';"):GetColumn(0):GetString()
- if pItem ~= nil then
- if (sql == "1" or sql == "5" or sql == "6" or sql == "8" or sql == "10") then
- pItem:AddEnchantment(3827, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no two-hander equipped!")
- pUnit:GossipComplete()
- end
- end
- end
- if (intid == 86) then
- local pItem = player:GetEquippedItemBySlot(15)
- local sql = WorldDBQuery("SELECT subclass FROM items WHERE entry = '"..pItem:GetEntryId().."';"):GetColumn(0):GetString()
- if pItem ~= nil then
- if (sql == "1" or sql == "5" or sql == "6" or sql == "8" or sql == "10") then
- pItem:AddEnchantment(3247, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no two-hander equipped!")
- pUnit:GossipComplete()
- end
- end
- end
- if (intid == 87) then
- local pItem = player:GetEquippedItemBySlot(15)
- local sql = WorldDBQuery("SELECT subclass FROM items WHERE entry = '"..pItem:GetEntryId().."';"):GetColumn(0):GetString()
- if pItem ~= nil then
- if (sql == "1" or sql == "5" or sql == "6" or sql == "8" or sql == "10") then
- pItem:AddEnchantment(3251, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no two-hander equipped!")
- pUnit:GossipComplete()
- end
- end
- end
- if (intid == 88) then
- local pItem = player:GetEquippedItemBySlot(15)
- local sql = WorldDBQuery("SELECT subclass FROM items WHERE entry = '"..pItem:GetEntryId().."';"):GetColumn(0):GetString()
- if pItem ~= nil then
- if (sql == "1" or sql == "5" or sql == "6" or sql == "8" or sql == "10") then
- pItem:AddEnchantment(3854, 0, 0)
- pUnit:GossipComplete()
- else
- player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no two-hander equipped!")
- pUnit:GossipComplete()
- end
- end
- end
- if (intid == 100) then
- pUnit:GossipComplete()
- end
- end
- RegisterUnitGossipEvent(npcid, 1, "enchanter")
- RegisterUnitGossipEvent(npcid, 2, "enchanterselect")
Advertisement
Add Comment
Please, Sign In to add comment