MichaelCrow

EnchanterNPC

May 11th, 2012
1,930
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[
  2. #################################################################################################
  3. #          .P"  .gbsdP     gJYp Q   .gp.        .P"    .Q .!,     gJYp Q  .gp    Q.gp           #        
  4. #        dP .aT" Y$P'     '  $ I.aF" "Tb.     dP   T .giP"  $    '  $ I.aF""Tb..aF""Tb.     #
  5. #        $    $   I          $=I"      $b.    $  .=$P" I    .$      $=I"     Y!"I    Y!   fsc   #
  6. #        $    $   I          $ I      .$$:    $    $   I===""$      $ I=="""==$ I-^"^-$         #
  7. #        $    $   I          $ IFa..sFYP"     $    $   I     $      $ I       $ I     $         #
  8. #        Tb   J   I          $ I"     "Tb     Tb   J   I===..P      $ I==...==$ I=.,.=$         #
  9. #         Y$. '   I   !      $ I        Yb     Y$. '   I   .P      !$!I      !$!I     $         #
  10. #          "Yp.   I  .'      $ I         $!.    "Yp.   I  g'       !$!I  !   !$!I  .s!$!        #
  11. #            "^T$$TP"      .J^RpjF       !P"      "^T$$TP"        .J^RpjF""^J^RpjF"  ^$$b.      #
  12. #                            _                                              _               #
  13. #                           /.)           <<Lua Enchanter NPC>>            (.\              #
  14. #                          /)\|      Made by: Runemaster/Thebigman/Crow    |/(\                 #
  15. #                         //)/       Crow's Unique Content Developement     \(\\                #
  16. #                        /'"^"                                  "^"`\               #
  17. #           Anyone may freely use this script as long as they give the rightful     #
  18. #           writer, Crow, Known on forum boards as Runemaster or Thebigman,         #
  19. #           credit for writing it. Overall I hope you enjoy it and don't criticize  #
  20. #           too harshly.                                                            #
  21. #                                                                                               #
  22. #                   Thanks guys! Enjoy!                                         #    
  23. #                                                       #
  24. #################################################################################################
  25. -- ]]
  26. local npcid = 85001 --Set the NPC's entry id here!
  27.  
  28.  
  29. function enchanter(pUnit, event, player)
  30.                 pUnit:GossipCreateMenu(300, player, 0)
  31.                 pUnit:GossipMenuAddItem(10, "|cFF008000Enchant my items, please.|R", 1, 0)
  32.                 pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
  33.                 pUnit:GossipSendMenu()
  34.                 end
  35.                
  36. function enchanterselect(pUnit, event, player, id, intid, code)
  37.             if (intid == 1) then
  38.                 if (player:GetItemCount(2858) ~= nil) then
  39.                     if (player:GetItemCount(2858) < 20) then
  40.                         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)
  41.                         else
  42.                         pUnit:GossipCreateMenu(301, player, 0)
  43.                         pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Headpiece.|R", 2, 0)
  44.                         pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Shoulders.|R", 3, 0)
  45.                         pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Cloak.|R", 4, 0)
  46.                         pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Chest.|R", 5, 0)
  47.                         pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Wrists.|R", 6, 0)
  48.                         pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Gloves.|R", 7, 0)
  49.                         pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Boots.|R", 8, 0)
  50.                         pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Legs.|R", 9, 0)
  51.                         pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weaponry/Shields|R", 10, 0)
  52.                         pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
  53.                         pUnit:GossipSendMenu()
  54.                     end
  55.                 end
  56.             end
  57.  
  58.        
  59.            
  60.             if (intid == 2) then
  61.             pUnit:GossipCreateMenu(302, player, 0)
  62.             pUnit:GossipMenuAddItem(3, "|cFF008000Arcanum of Burning Mysteries|R", 11, 0)
  63.             pUnit:GossipMenuAddItem(3, "|cFF008000Arcanum of Blissful mending|R", 12, 0)
  64.             pUnit:GossipMenuAddItem(3, "|cFF008000Arcanum of The Stalward Protector", 13, 0)
  65.             pUnit:GossipMenuAddItem(3, "|cFF008000Arcanum of Torment|R", 14, 0)
  66.             pUnit:GossipMenuAddItem(3, "|cFF008000Arcanum of the Savage Gladiator|R", 15, 0)
  67.             pUnit:GossipMenuAddItem(3, "|cFF008000Arcanum of Triumph|R", 16, 0)
  68.             pUnit:GossipMenuAddItem(3, "|cFF008000Arcanum of Dominance|R", 17, 0)
  69.             pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
  70.             pUnit:GossipSendMenu()
  71.             end
  72.  
  73.             if (intid == 11) then        
  74.             local pItem = player:GetEquippedItemBySlot(0)
  75.                     if pItem ~= nil then
  76.                     pItem:AddEnchantment(3820, 0, 0)
  77.                     pUnit:GossipComplete()
  78.                     else
  79.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no dpiece equipped!")
  80.                     pUnit:GossipComplete()
  81.                     end
  82.             end
  83.            
  84.            
  85.             if (intid == 12) then        
  86.             local pItem = player:GetEquippedItemBySlot(0)
  87.                     if pItem ~= nil then
  88.                     pItem:AddEnchantment(3819, 0, 0)
  89.                     pUnit:GossipComplete()
  90.                     else
  91.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no headpiece equipped!")
  92.                     pUnit:GossipComplete()
  93.                     end
  94.             end
  95.            
  96.             if (intid == 13) then        
  97.                 local pItem = player:GetEquippedItemBySlot(0)
  98.                     if pItem ~= nil then
  99.                     pItem:AddEnchantment(3818, 0, 0)
  100.                     pUnit:GossipComplete()
  101.                     else
  102.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no headpiece equipped!")
  103.                     pUnit:GossipComplete()
  104.                     end
  105.             end
  106.                    
  107.             if (intid == 14) then        
  108.                 local pItem = player:GetEquippedItemBySlot(0)
  109.                     if pItem ~= nil then
  110.                     pItem:AddEnchantment(3817, 0, 0)
  111.                     pUnit:GossipComplete()
  112.                     else
  113.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no headpiece equipped!")
  114.                     pUnit:GossipComplete()
  115.                     end
  116.             end
  117.                    
  118.             if (intid == 15) then        
  119.                 local pItem = player:GetEquippedItemBySlot(0)
  120.                     if pItem ~= nil then
  121.                     pItem:AddEnchantment(3842, 0, 0)
  122.                     pUnit:GossipComplete()                 
  123.                     else
  124.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no headpiece equipped!")
  125.                     pUnit:GossipComplete()
  126.                     end
  127.             end
  128.                    
  129.             if (intid == 16) then        
  130.                 local pItem = player:GetEquippedItemBySlot(0)
  131.                     if pItem ~= nil then
  132.                     pItem:AddEnchantment(3795, 0, 0)
  133.                     pUnit:GossipComplete()
  134.                     else
  135.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no headpiece equipped!")
  136.                     pUnit:GossipComplete()
  137.                     end
  138.             end
  139.                    
  140.             if (intid == 17) then        
  141.                 local pItem = player:GetEquippedItemBySlot(0)
  142.                     if pItem ~= nil then
  143.                     pItem:AddEnchantment(3797, 0, 0)
  144.                     pUnit:GossipComplete()
  145.                     else
  146.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no headpiece equipped!")
  147.                     pUnit:GossipComplete()
  148.                     end
  149.             end
  150.                    
  151.             if (intid == 3) then
  152.             pUnit:GossipCreateMenu(303, player, 0)
  153.             pUnit:GossipMenuAddItem(3, "|cFF008000Greater Inscription of the Gladiator|R", 18, 0)
  154.             pUnit:GossipMenuAddItem(3, "|cFF008000Inscription of Triumph|R", 19, 0)
  155.             pUnit:GossipMenuAddItem(3, "|cFF008000Inscription of Dominance", 20, 0)
  156.             pUnit:GossipMenuAddItem(3, "|cFF008000Greater Inscription of the Axe|R", 21, 0)
  157.             pUnit:GossipMenuAddItem(3, "|cFF008000Greater Inscription of the Crag|R", 22, 0)
  158.             pUnit:GossipMenuAddItem(3, "|cFF008000Greater Inscription of the Pinnacle|R", 23, 0)
  159.             pUnit:GossipMenuAddItem(3, "|cFF008000Greater Inscription of the Storm|R", 24, 0)
  160.             pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
  161.             pUnit:GossipSendMenu(player)
  162.             end
  163.  
  164.             if (intid == 18) then        
  165.             local pItem = player:GetEquippedItemBySlot(2)
  166.                     if pItem ~= nil then
  167.                     pItem:AddEnchantment(3852, 0, 0)
  168.                     pUnit:GossipComplete()
  169.                     else
  170.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shoulders equipped!")
  171.                     pUnit:GossipComplete()
  172.                     end
  173.             end
  174.            
  175.            
  176.             if (intid == 19) then        
  177.             local pItem = player:GetEquippedItemBySlot(2)
  178.                     if pItem ~= nil then
  179.                     pItem:AddEnchantment(3793, 0, 0)
  180.                     pUnit:GossipComplete()
  181.                     else
  182.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shoulders equipped!")
  183.                     pUnit:GossipComplete()
  184.                     end
  185.             end
  186.            
  187.             if (intid == 20) then        
  188.                 local pItem = player:GetEquippedItemBySlot(2)
  189.                     if pItem ~= nil then
  190.                     pItem:AddEnchantment(3794, 0, 0)
  191.                     pUnit:GossipComplete()
  192.                     else
  193.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shoulders equipped!")
  194.                     pUnit:GossipComplete()
  195.                     end
  196.             end
  197.                    
  198.             if (intid == 21) then        
  199.                 local pItem = player:GetEquippedItemBySlot(2)
  200.                     if pItem ~= nil then
  201.                     pItem:AddEnchantment(3808, 0, 0)
  202.                     pUnit:GossipComplete()
  203.                     else
  204.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shoulders equipped!")
  205.                     pUnit:GossipComplete()
  206.                     end
  207.             end
  208.                    
  209.             if (intid == 22) then        
  210.                 local pItem = player:GetEquippedItemBySlot(2)
  211.                     if pItem ~= nil then
  212.                     pItem:AddEnchantment(3809, 0, 0)
  213.                     pUnit:GossipComplete()                 
  214.                     else
  215.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shoulders equipped!")
  216.                     pUnit:GossipComplete()
  217.                     end
  218.             end
  219.                    
  220.             if (intid == 23) then        
  221.                 local pItem = player:GetEquippedItemBySlot(2)
  222.                     if pItem ~= nil then
  223.                     pItem:AddEnchantment(3811, 0, 0)
  224.                     pUnit:GossipComplete()
  225.                     else
  226.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shoulder equipped!")
  227.                     pUnit:GossipComplete()
  228.                     end
  229.             end
  230.                    
  231.             if (intid == 24) then        
  232.                 local pItem = player:GetEquippedItemBySlot(2)
  233.                     if pItem ~= nil then
  234.                     pItem:AddEnchantment(3810, 0, 0)
  235.                     pUnit:GossipComplete()
  236.                     else
  237.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shoulders equipped!")
  238.                     pUnit:GossipComplete()
  239.                     end
  240.             end
  241.            
  242.             if (intid == 4) then
  243.             pUnit:GossipCreateMenu(303, player, 0)
  244.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Cloak - Shadow Armor|R", 18, 0)
  245.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Cloak - Wisdom|R", 19, 0)
  246.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Cloak - Titan Weave", 20, 0)
  247.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Cloak - Greater Speed|R", 21, 0)
  248.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Cloak - Mighty Armor|R", 22, 0)
  249.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Cloak - Major Agility|R", 23, 0)
  250.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Cloak - Spell Piercing|R", 24, 0)
  251.             pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
  252.             pUnit:GossipSendMenu(player)
  253.             end
  254.            
  255.             if (intid == 18) then        
  256.             local pItem = player:GetEquippedItemBySlot(14)
  257.                     if pItem ~= nil then
  258.                     pItem:AddEnchantment(3256, 0, 0)
  259.                     pUnit:GossipComplete()
  260.                     else
  261.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no cloak equipped!")
  262.                     pUnit:GossipComplete()
  263.                     end
  264.             end
  265.                    
  266.             if (intid == 19) then        
  267.             local pItem = player:GetEquippedItemBySlot(14)
  268.                     if pItem ~= nil then
  269.                     pItem:AddEnchantment(3296, 0, 0)
  270.                     pUnit:GossipComplete()
  271.                     else
  272.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no cloak equipped!")
  273.                     pUnit:GossipComplete()
  274.                     end
  275.             end
  276.            
  277.             if (intid == 20) then        
  278.                 local pItem = player:GetEquippedItemBySlot(14)
  279.                     if pItem ~= nil then
  280.                     pItem:AddEnchantment(1951, 0, 0)
  281.                     pUnit:GossipComplete()
  282.                     else
  283.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no cloak equipped!")
  284.                     pUnit:GossipComplete()
  285.                     end
  286.             end
  287.                    
  288.             if (intid == 21) then        
  289.                 local pItem = player:GetEquippedItemBySlot(14)
  290.                     if pItem ~= nil then
  291.                     pItem:AddEnchantment(3831, 0, 0)
  292.                     pUnit:GossipComplete()
  293.                     else
  294.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no cloak equipped!")
  295.                     pUnit:GossipComplete()
  296.                     end
  297.             end
  298.                    
  299.             if (intid == 22) then        
  300.                 local pItem = player:GetEquippedItemBySlot(14)
  301.                     if pItem ~= nil then
  302.                     pItem:AddEnchantment(3294, 0, 0)
  303.                     pUnit:GossipComplete()
  304.                     else
  305.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no cloak equipped!")
  306.                     pUnit:GossipComplete()
  307.                     end
  308.             end
  309.                    
  310.             if (intid == 23) then        
  311.                 local pItem = player:GetEquippedItemBySlot(14)
  312.                     if pItem ~= nil then
  313.                     pItem:AddEnchantment(1099, 0, 0)
  314.                     pUnit:GossipComplete()
  315.                     else
  316.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no cloak equipped!")
  317.                     pUnit:GossipComplete()
  318.                     end
  319.             end
  320.                    
  321.             if (intid == 24) then        
  322.                 local pItem = player:GetEquippedItemBySlot(14)
  323.                     if pItem ~= nil then
  324.                     pItem:AddEnchantment(1262, 0, 0)
  325.                     pUnit:GossipComplete()
  326.                     else
  327.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no cloak equipped!")
  328.                     pUnit:GossipComplete()
  329.                     end
  330.             end
  331.        
  332.             if (intid == 5) then
  333.             pUnit:GossipCreateMenu(304, player, 0)
  334.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Chest - Powerful Stats|R", 25, 0)
  335.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Chest - Super Health|R", 26, 0)
  336.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Chest - Greater Mana Restoration|R", 27, 0)
  337.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Chest - Exceptional Resilience|R", 28, 0)
  338.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Chest - Greater Defense|R", 29, 0)
  339.             pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
  340.             pUnit:GossipSendMenu(player)
  341.             end
  342.            
  343.                        
  344.             if (intid == 25) then        
  345.                 local pItem = player:GetEquippedItemBySlot(4)
  346.                     if pItem ~= nil then
  347.                     pItem:AddEnchantment(3832, 0, 0)
  348.                     pUnit:GossipComplete()
  349.                     else
  350.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no chest equipped!")
  351.                     pUnit:GossipComplete()
  352.                     end
  353.             end
  354.            
  355.             if (intid == 26) then        
  356.                 local pItem = player:GetEquippedItemBySlot(4)
  357.                     if pItem ~= nil then
  358.                     pItem:AddEnchantment(3297, 0, 0)
  359.                     pUnit:GossipComplete()
  360.                     else
  361.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no chest equipped!")
  362.                     pUnit:GossipComplete()
  363.                     end
  364.             end
  365.                    
  366.             if (intid == 27) then        
  367.                 local pItem = player:GetEquippedItemBySlot(4)
  368.                     if pItem ~= nil then
  369.                     pItem:AddEnchantment(2381, 0, 0)
  370.                     pUnit:GossipComplete()
  371.                     else
  372.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no chest equipped!")
  373.                     pUnit:GossipComplete()
  374.                     end
  375.             end
  376.                    
  377.             if (intid == 28) then        
  378.                 local pItem = player:GetEquippedItemBySlot(4)
  379.                     if pItem ~= nil then
  380.                     pItem:AddEnchantment(3245, 0, 0)
  381.                     pUnit:GossipComplete()
  382.                     else
  383.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no chest equipped!")
  384.                     pUnit:GossipComplete()
  385.                     end
  386.             end
  387.                    
  388.             if (intid == 29) then        
  389.                 local pItem = player:GetEquippedItemBySlot(4)
  390.                     if pItem ~= nil then
  391.                     pItem:AddEnchantment(1953, 0, 0)
  392.                     pUnit:GossipComplete()
  393.                     else
  394.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no chest equipped!")
  395.                     pUnit:GossipComplete()
  396.                     end
  397.             end
  398.    
  399.             if (intid == 6) then
  400.             pUnit:GossipCreateMenu(305, player, 0)
  401.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Bracer - Major Stamina|R", 25, 0)
  402.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Bracer - Superior Spellpower|R", 26, 0)
  403.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Bracer - Greater Assault|R", 27, 0)
  404.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Bracer - Major Spirit|R", 28, 0)
  405.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Bracer - Expertise|R", 29, 0)
  406.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Bracer - Greater Stats|R", 30, 0)
  407.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Bracer - Exceptional Intellect|R", 31, 0)
  408.             pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
  409.             pUnit:GossipSendMenu(player)
  410.             end
  411.            
  412.             if (intid == 25) then        
  413.                 local pItem = player:GetEquippedItemBySlot(8)
  414.                     if pItem ~= nil then
  415.                     pItem:AddEnchantment(3850, 0, 0)
  416.                     pUnit:GossipComplete()
  417.                     else
  418.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no bracers equipped!")
  419.                     pUnit:GossipComplete()
  420.                     end
  421.             end
  422.                    
  423.             if (intid == 26) then        
  424.                 local pItem = player:GetEquippedItemBySlot(8)
  425.                     if pItem ~= nil then
  426.                     pItem:AddEnchantment(2332, 0, 0)
  427.                     pUnit:GossipComplete()
  428.                     else
  429.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no bracers equipped!")
  430.                     pUnit:GossipComplete()
  431.                     end
  432.             end
  433.                    
  434.             if (intid == 27) then        
  435.                 local pItem = player:GetEquippedItemBySlot(8)
  436.                     if pItem ~= nil then
  437.                     pItem:AddEnchantment(3845, 0, 0)
  438.                     pUnit:GossipComplete()
  439.                     else
  440.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no bracers equipped!")
  441.                     pUnit:GossipComplete()
  442.                     end
  443.             end
  444.                    
  445.             if (intid == 28) then        
  446.                 local pItem = player:GetEquippedItemBySlot(8)
  447.                     if pItem ~= nil then
  448.                     pItem:AddEnchantment(1147, 0, 0)
  449.                     pUnit:GossipComplete()
  450.                     else
  451.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no bracers equipped!")
  452.                     pUnit:GossipComplete()
  453.                     end
  454.             end
  455.                    
  456.             if (intid == 29) then        
  457.                 local pItem = player:GetEquippedItemBySlot(8)
  458.                     if pItem ~= nil then
  459.                     pItem:AddEnchantment(3231, 0, 0)
  460.                     pUnit:GossipComplete()
  461.                     else
  462.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no bracers equipped!")
  463.                     pUnit:GossipComplete()
  464.                     end
  465.             end
  466.            
  467.             if (intid == 30) then        
  468.                 local pItem = player:GetEquippedItemBySlot(8)
  469.                     if pItem ~= nil then
  470.                     pItem:AddEnchantment(2661, 0, 0)
  471.                     pUnit:GossipComplete()
  472.                     else
  473.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no bracers equipped!")
  474.                     pUnit:GossipComplete()
  475.                     end
  476.             end
  477.                    
  478.             if (intid == 31) then        
  479.                 local pItem = player:GetEquippedItemBySlot(8)
  480.                     if pItem ~= nil then
  481.                     pItem:AddEnchantment(1119, 0, 0)
  482.                     pUnit:GossipComplete()
  483.                     else
  484.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no bracers equipped!")
  485.                     pUnit:GossipComplete()
  486.                     end
  487.             end
  488.    
  489.             if (intid == 7) then
  490.             pUnit:GossipCreateMenu(306, player, 0)
  491.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Gloves - Greater Blasting|R", 32, 0)
  492.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Gloves - Armsman|R", 33, 0)
  493.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Gloves - Crusher|R", 34, 0)
  494.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Gloves - Agility|R", 35, 0)
  495.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Gloves - Precision|R", 36, 0)
  496.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Gloves - Expertise|R", 37, 0)
  497.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Gloves - Exceptional Spellpower|R", 38, 0)
  498.             pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
  499.             pUnit:GossipSendMenu(player)
  500.             end
  501.            
  502.             if (intid == 32) then        
  503.                 local pItem = player:GetEquippedItemBySlot(9)
  504.                     if pItem ~= nil then
  505.                     pItem:AddEnchantment(3249, 0, 0)
  506.                     pUnit:GossipComplete()
  507.                     else
  508.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no gloves equipped!")
  509.                     pUnit:GossipComplete()
  510.                     end
  511.             end
  512.                    
  513.             if (intid == 33) then        
  514.                 local pItem = player:GetEquippedItemBySlot(9)
  515.                     if pItem ~= nil then
  516.                     pItem:AddEnchantment(3253, 0, 0)
  517.                     pUnit:GossipComplete()
  518.                     else
  519.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no gloves equipped!")
  520.                     pUnit:GossipComplete()
  521.                     end
  522.             end
  523.                    
  524.             if (intid == 34) then        
  525.                 local pItem = player:GetEquippedItemBySlot(9)
  526.                     if pItem ~= nil then
  527.                     pItem:AddEnchantment(1603, 0, 0)
  528.                     pUnit:GossipComplete()
  529.                     else
  530.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no gloves equipped!")
  531.                     pUnit:GossipComplete()
  532.                     end
  533.             end
  534.                    
  535.             if (intid == 35) then        
  536.                 local pItem = player:GetEquippedItemBySlot(9)
  537.                     if pItem ~= nil then
  538.                     pItem:AddEnchantment(3222, 0, 0)
  539.                     pUnit:GossipComplete()
  540.                     else
  541.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no gloves equipped!")
  542.                     pUnit:GossipComplete()
  543.                     end
  544.             end
  545.                    
  546.             if (intid == 36) then        
  547.                 local pItem = player:GetEquippedItemBySlot(9)
  548.                     if pItem ~= nil then
  549.                     pItem:AddEnchantment(3234, 0, 0)
  550.                     pUnit:GossipComplete()
  551.                     else
  552.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no gloves equipped!")
  553.                     pUnit:GossipComplete()
  554.                     end
  555.             end
  556.            
  557.             if (intid == 37) then        
  558.                 local pItem = player:GetEquippedItemBySlot(9)
  559.                     if pItem ~= nil then
  560.                     pItem:AddEnchantment(3231, 0, 0)
  561.                     pUnit:GossipComplete()
  562.                     else
  563.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no gloves equipped!")
  564.                     pUnit:GossipComplete()
  565.                     end
  566.             end
  567.                    
  568.             if (intid == 38) then        
  569.                 local pItem = player:GetEquippedItemBySlot(9)
  570.                     if pItem ~= nil then
  571.                     pItem:AddEnchantment(3246, 0, 0)
  572.                     pUnit:GossipComplete()
  573.                     else
  574.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no gloves equipped!")
  575.                     pUnit:GossipComplete()
  576.                     end
  577.             end
  578.            
  579.             if (intid == 8) then
  580.             pUnit:GossipCreateMenu(307, player, 0)
  581.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Boots - Greater Assault|R", 39, 0)
  582.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Boots - Tuskars Vitality|R", 40, 0)
  583.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Boots - Superior Agility|R", 41, 0)
  584.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Boots - Greater Spirit|R", 42, 0)
  585.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Boots - Greater Vitality|R", 43, 0)
  586.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Boots - Icewalker|R", 44, 0)
  587.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Boots - Greater Fortitude|R", 45, 0)
  588.             pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
  589.             pUnit:GossipSendMenu(player)
  590.             end
  591.            
  592.             if (intid == 39) then        
  593.                 local pItem = player:GetEquippedItemBySlot(7)
  594.                     if pItem ~= nil then
  595.                     pItem:AddEnchantment(1597, 0, 0)
  596.                     pUnit:GossipComplete()
  597.                     else
  598.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no boots equipped!")
  599.                     pUnit:GossipComplete()
  600.                     end
  601.             end
  602.                    
  603.             if (intid == 40) then        
  604.                 local pItem = player:GetEquippedItemBySlot(7)
  605.                     if pItem ~= nil then
  606.                     pItem:AddEnchantment(3232, 0, 0)
  607.                     pUnit:GossipComplete()
  608.                     else
  609.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no boots equipped!")
  610.                     pUnit:GossipComplete()
  611.                     end
  612.             end
  613.                    
  614.             if (intid == 41) then        
  615.                 local pItem = player:GetEquippedItemBySlot(7)
  616.                     if pItem ~= nil then
  617.                     pItem:AddEnchantment(983, 0, 0)
  618.                     pUnit:GossipComplete()
  619.                     else
  620.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no boots equipped!")
  621.                     pUnit:GossipComplete()
  622.                     end
  623.             end
  624.                    
  625.             if (intid == 42) then        
  626.                 local pItem = player:GetEquippedItemBySlot(7)
  627.                     if pItem ~= nil then
  628.                     pItem:AddEnchantment(1147, 0, 0)
  629.                     pUnit:GossipComplete()
  630.                     else
  631.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no boots equipped!")
  632.                     pUnit:GossipComplete()
  633.                     end
  634.             end
  635.                    
  636.             if (intid == 43) then        
  637.                 local pItem = player:GetEquippedItemBySlot(7)
  638.                     if pItem ~= nil then
  639.                     pItem:AddEnchantment(3244, 0, 0)
  640.                     pUnit:GossipComplete()
  641.                     else
  642.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no boots equipped!")
  643.                     pUnit:GossipComplete()
  644.                     end
  645.             end
  646.            
  647.             if (intid == 44) then        
  648.                 local pItem = player:GetEquippedItemBySlot(7)
  649.                     if pItem ~= nil then
  650.                     pItem:AddEnchantment(3826, 0, 0)
  651.                     pUnit:GossipComplete()
  652.                     else
  653.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no boots equipped!")
  654.                     pUnit:GossipComplete()
  655.                     end
  656.             end
  657.                    
  658.             if (intid == 45) then        
  659.                 local pItem = player:GetEquippedItemBySlot(7)
  660.                     if pItem ~= nil then
  661.                     pItem:AddEnchantment(1075, 0, 0)
  662.                     pUnit:GossipComplete()
  663.                     else
  664.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no boots equipped!")
  665.                     pUnit:GossipComplete()
  666.                     end
  667.             end
  668.            
  669.             if (intid == 9) then
  670.             pUnit:GossipCreateMenu(308, player, 0)
  671.             pUnit:GossipMenuAddItem(3, "|cFF008000Earthen Leg Armor|R", 46, 0)
  672.             pUnit:GossipMenuAddItem(3, "|cFF008000Frosthide Leg Armor|R", 47, 0)
  673.             pUnit:GossipMenuAddItem(3, "|cFF008000Icescale Leg Armor|R", 48, 0)
  674.             pUnit:GossipMenuAddItem(3, "|cFF008000Brilliant Spellthread|R", 49, 0)
  675.             pUnit:GossipMenuAddItem(3, "|cFF008000Sapphire Spellthread|R", 50, 0)
  676.             pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
  677.             pUnit:GossipSendMenu(player)
  678.             end
  679.            
  680.             if (intid == 46) then        
  681.                 local pItem = player:GetEquippedItemBySlot(6)
  682.                     if pItem ~= nil then
  683.                     pItem:AddEnchantment(3853, 0, 0)
  684.                     pUnit:GossipComplete()
  685.                     else
  686.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no legs equipped!")
  687.                     pUnit:GossipComplete()
  688.                     end
  689.             end
  690.                    
  691.             if (intid == 47) then        
  692.                 local pItem = player:GetEquippedItemBySlot(6)
  693.                     if pItem ~= nil then
  694.                     pItem:AddEnchantment(3822, 0, 0)
  695.                     pUnit:GossipComplete()
  696.                     else
  697.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no legs equipped!")
  698.                     pUnit:GossipComplete()
  699.                     end
  700.             end
  701.                    
  702.             if (intid == 48) then        
  703.                 local pItem = player:GetEquippedItemBySlot(6)
  704.                     if pItem ~= nil then
  705.                     pItem:AddEnchantment(3823, 0, 0)
  706.                     pUnit:GossipComplete()
  707.                     else
  708.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no legs equipped!")
  709.                     pUnit:GossipComplete()
  710.                     end
  711.             end
  712.            
  713.             if (intid == 49) then        
  714.                 local pItem = player:GetEquippedItemBySlot(6)
  715.                     if pItem ~= nil then
  716.                     pItem:AddEnchantment(3719, 0, 0)
  717.                     pUnit:GossipComplete()
  718.                     else
  719.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no legs equipped!")
  720.                     pUnit:GossipComplete()
  721.                     end
  722.             end
  723.                    
  724.             if (intid == 50) then        
  725.                 local pItem = player:GetEquippedItemBySlot(6)
  726.                     if pItem ~= nil then
  727.                     pItem:AddEnchantment(3721, 0, 0)
  728.                     pUnit:GossipComplete()
  729.                     else
  730.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no legs equipped!")
  731.                     pUnit:GossipComplete()
  732.                     end
  733.             end
  734.            
  735.             if (intid == 10) then
  736.             pUnit:GossipCreateMenu(309, player, 0)
  737.             pUnit:GossipMenuAddItem(3, "|cFF008000Main-Hand Weapon|R", 110, 0)
  738.             pUnit:GossipMenuAddItem(3, "|cFF008000Off-Hand Weapon|R", 120, 0)
  739.             pUnit:GossipMenuAddItem(3, "|cFF008000Two-Handed Weapon|R", 130, 0)
  740.             pUnit:GossipMenuAddItem(3, "|cFF008000Shield|R", 140, 0)
  741.             pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
  742.             pUnit:GossipSendMenu(player)
  743.             end
  744.    
  745.             if (intid == 110) then
  746.             pUnit:GossipCreateMenu(310, player, 0)
  747.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Titan Guard|R", 51, 0)
  748.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Accuracy|R", 52, 0)
  749.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Berserking|R", 53, 0)
  750.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Black Magic|R", 54, 0)
  751.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Mighty Spellpower|R", 55, 0)
  752.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Superior Potency|R", 56, 0)
  753.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Ice Breaker|R", 57, 0)
  754.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Lifeward|R", 58, 0)
  755.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Blood Draining|R", 59, 0)
  756.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Blade Ward|R", 60, 0)
  757.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Exceptional Agility|R", 61, 0)
  758.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Exceptional Spirit|R", 62, 0)
  759.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Executioner|R", 63, 0)
  760.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Mongoose|R", 64, 0)
  761.             pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
  762.             pUnit:GossipSendMenu(player)
  763.             end
  764.            
  765.             if (intid == 51) then        
  766.                 local pItem = player:GetEquippedItemBySlot(15)
  767.                     if pItem ~= nil then
  768.                     pItem:AddEnchantment(3851, 0, 0)
  769.                     pUnit:GossipComplete()
  770.                     else
  771.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
  772.                     pUnit:GossipComplete()
  773.                     end
  774.             end
  775.                    
  776.             if (intid == 52) then        
  777.                 local pItem = player:GetEquippedItemBySlot(15)
  778.                     if pItem ~= nil then
  779.                     pItem:AddEnchantment(3788, 0, 0)
  780.                     pUnit:GossipComplete()
  781.                     else
  782.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
  783.                     pUnit:GossipComplete()
  784.                     end
  785.             end
  786.                    
  787.             if (intid == 53) then        
  788.                 local pItem = player:GetEquippedItemBySlot(15)
  789.                     if pItem ~= nil then
  790.                     pItem:AddEnchantment(3789, 0, 0)
  791.                     pUnit:GossipComplete()
  792.                     else
  793.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
  794.                     pUnit:GossipComplete()
  795.                     end
  796.             end
  797.            
  798.             if (intid == 54) then        
  799.                 local pItem = player:GetEquippedItemBySlot(15)
  800.                     if pItem ~= nil then
  801.                     pItem:AddEnchantment(3790, 0, 0)
  802.                     pUnit:GossipComplete()
  803.                     else
  804.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
  805.                     pUnit:GossipComplete()
  806.                     end
  807.             end
  808.                    
  809.             if (intid == 55) then        
  810.                 local pItem = player:GetEquippedItemBySlot(15)
  811.                     if pItem ~= nil then
  812.                     pItem:AddEnchantment(3834, 0, 0)
  813.                     pUnit:GossipComplete()
  814.                     else
  815.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
  816.                     pUnit:GossipComplete()
  817.                     end
  818.             end
  819.        
  820.             if (intid == 56) then        
  821.                 local pItem = player:GetEquippedItemBySlot(15)
  822.                     if pItem ~= nil then
  823.                     pItem:AddEnchantment(3833, 0, 0)
  824.                     pUnit:GossipComplete()
  825.                     else
  826.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
  827.                     pUnit:GossipComplete()
  828.                     end
  829.             end
  830.                    
  831.             if (intid == 57) then        
  832.                 local pItem = player:GetEquippedItemBySlot(15)
  833.                     if pItem ~= nil then
  834.                     pItem:AddEnchantment(3239, 0, 0)
  835.                     pUnit:GossipComplete()
  836.                     else
  837.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
  838.                     pUnit:GossipComplete()
  839.                     end
  840.             end
  841.                    
  842.             if (intid == 58) then        
  843.                 local pItem = player:GetEquippedItemBySlot(15)
  844.                     if pItem ~= nil then
  845.                     pItem:AddEnchantment(3241, 0, 0)
  846.                     pUnit:GossipComplete()
  847.                     else
  848.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
  849.                     pUnit:GossipComplete()
  850.                     end
  851.             end
  852.            
  853.             if (intid == 59) then        
  854.                 local pItem = player:GetEquippedItemBySlot(15)
  855.                     if pItem ~= nil then
  856.                     pItem:AddEnchantment(3870, 0, 0)
  857.  
  858.                     pUnit:GossipComplete()
  859.                     else
  860.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
  861.                     pUnit:GossipComplete()
  862.                     end
  863.             end
  864.                    
  865.             if (intid == 60) then        
  866.                 local pItem = player:GetEquippedItemBySlot(15)
  867.                     if pItem ~= nil then
  868.                     pItem:AddEnchantment(3869, 0, 0)
  869.                     pUnit:GossipComplete()
  870.                     else
  871.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
  872.                     pUnit:GossipComplete()
  873.                     end
  874.             end
  875.        
  876.             if (intid == 61) then        
  877.                 local pItem = player:GetEquippedItemBySlot(15)
  878.                     if pItem ~= nil then
  879.                     pItem:AddEnchantment(1103, 0, 0)
  880.                     pUnit:GossipComplete()
  881.                     else
  882.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
  883.                     pUnit:GossipComplete()
  884.                     end
  885.             end
  886.                    
  887.             if (intid == 62) then        
  888.                 local pItem = player:GetEquippedItemBySlot(15)
  889.                     if pItem ~= nil then
  890.                     pItem:AddEnchantment(3844, 0, 0)
  891.                     pUnit:GossipComplete()
  892.                     else
  893.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
  894.                     pUnit:GossipComplete()
  895.                     end
  896.             end
  897.                    
  898.             if (intid == 63) then        
  899.                 local pItem = player:GetEquippedItemBySlot(15)
  900.                     if pItem ~= nil then
  901.                     pItem:AddEnchantment(3225, 0, 0)
  902.                     pUnit:GossipComplete()
  903.                     else
  904.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
  905.                     pUnit:GossipComplete()
  906.                     end
  907.             end
  908.            
  909.             if (intid == 64) then        
  910.                 local pItem = player:GetEquippedItemBySlot(15)
  911.                     if pItem ~= nil then
  912.                     pItem:AddEnchantment(2673, 0, 0)
  913.                     pUnit:GossipComplete()
  914.                     else
  915.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no main-hand weapon equipped!")
  916.                     pUnit:GossipComplete()
  917.                     end
  918.             end
  919.            
  920.             if (intid == 120) then
  921.             pUnit:GossipCreateMenu(311, player, 0)
  922.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Titan Guard|R", 65, 0)
  923.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Accuracy|R", 66, 0)
  924.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Berserking|R", 67, 0)
  925.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Black Magic|R", 68, 0)
  926.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Mighty Spellpower|R", 69, 0)
  927.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Superior Potency|R", 70, 0)
  928.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Ice Breaker|R", 71, 0)
  929.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Lifeward|R", 72, 0)
  930.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Blood Draining|R", 73, 0)
  931.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Blade Ward|R", 74, 0)
  932.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Exceptional Agility|R", 75, 0)
  933.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Exceptional Spirit|R", 76, 0)
  934.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Executioner|R", 77, 0)
  935.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Weapon - Mongoose|R", 78, 0)
  936.             pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
  937.             pUnit:GossipSendMenu(player)
  938.             end
  939.            
  940.             if (intid == 65) then        
  941.                 local pItem = player:GetEquippedItemBySlot(16)
  942.                     if pItem ~= nil then
  943.                     pItem:AddEnchantment(3851, 0, 0)
  944.                     pUnit:GossipComplete()
  945.                     else
  946.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
  947.                     pUnit:GossipComplete()
  948.                     end
  949.             end
  950.                    
  951.             if (intid == 66) then        
  952.                 local pItem = player:GetEquippedItemBySlot(16)
  953.                     if pItem ~= nil then
  954.                     pItem:AddEnchantment(3788, 0, 0)
  955.                     pUnit:GossipComplete()
  956.                     else
  957.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
  958.                     pUnit:GossipComplete()
  959.                     end
  960.             end
  961.                    
  962.             if (intid == 67) then        
  963.                 local pItem = player:GetEquippedItemBySlot(16)
  964.                     if pItem ~= nil then
  965.                     pItem:AddEnchantment(3789, 0, 0)
  966.                     pUnit:GossipComplete()
  967.                     else
  968.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
  969.                     pUnit:GossipComplete()
  970.                     end
  971.             end
  972.            
  973.             if (intid == 68) then        
  974.                 local pItem = player:GetEquippedItemBySlot(16)
  975.                     if pItem ~= nil then
  976.                     pItem:AddEnchantment(3790, 0, 0)
  977.                     pUnit:GossipComplete()
  978.                     else
  979.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
  980.                     pUnit:GossipComplete()
  981.                     end
  982.             end
  983.                    
  984.             if (intid == 69) then        
  985.                 local pItem = player:GetEquippedItemBySlot(16)
  986.                     if pItem ~= nil then
  987.                     pItem:AddEnchantment(3834, 0, 0)
  988.                     pUnit:GossipComplete()
  989.                     else
  990.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
  991.                     pUnit:GossipComplete()
  992.                     end
  993.             end
  994.        
  995.             if (intid == 70) then        
  996.                 local pItem = player:GetEquippedItemBySlot(16)
  997.                     if pItem ~= nil then
  998.                     pItem:AddEnchantment(3833, 0, 0)
  999.                     pUnit:GossipComplete()
  1000.                     else
  1001.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
  1002.                     pUnit:GossipComplete()
  1003.                     end
  1004.             end
  1005.                    
  1006.             if (intid == 71) then        
  1007.                 local pItem = player:GetEquippedItemBySlot(16)
  1008.                     if pItem ~= nil then
  1009.                     pItem:AddEnchantment(3239, 0, 0)
  1010.                     pUnit:GossipComplete()
  1011.                     else
  1012.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
  1013.                     pUnit:GossipComplete()
  1014.                     end
  1015.             end
  1016.                    
  1017.             if (intid == 72) then        
  1018.                 local pItem = player:GetEquippedItemBySlot(16)
  1019.                     if pItem ~= nil then
  1020.                     pItem:AddEnchantment(3241, 0, 0)
  1021.                     pUnit:GossipComplete()
  1022.                     else
  1023.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
  1024.                     pUnit:GossipComplete()
  1025.                     end
  1026.             end
  1027.            
  1028.             if (intid == 73) then        
  1029.                 local pItem = player:GetEquippedItemBySlot(16)
  1030.                     if pItem ~= nil then
  1031.                     pItem:AddEnchantment(3870, 0, 0)
  1032.                     pUnit:GossipComplete()
  1033.                     else
  1034.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
  1035.                     pUnit:GossipComplete()
  1036.                     end
  1037.             end
  1038.                    
  1039.             if (intid == 74) then        
  1040.                 local pItem = player:GetEquippedItemBySlot(16)
  1041.                     if pItem ~= nil then
  1042.                     pItem:AddEnchantment(3869, 0, 0)
  1043.                     pUnit:GossipComplete()
  1044.                     else
  1045.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
  1046.                     pUnit:GossipComplete()
  1047.                     end
  1048.             end
  1049.        
  1050.             if (intid == 75) then        
  1051.                 local pItem = player:GetEquippedItemBySlot(16)
  1052.                     if pItem ~= nil then
  1053.                     pItem:AddEnchantment(1103, 0, 0)
  1054.                     pUnit:GossipComplete()
  1055.                     else
  1056.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
  1057.                     pUnit:GossipComplete()
  1058.                     end
  1059.             end
  1060.                    
  1061.             if (intid == 76) then        
  1062.                 local pItem = player:GetEquippedItemBySlot(16)
  1063.                     if pItem ~= nil then
  1064.                     pItem:AddEnchantment(3844, 0, 0)
  1065.                     pUnit:GossipComplete()
  1066.                     else
  1067.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
  1068.                     pUnit:GossipComplete()
  1069.                     end
  1070.             end
  1071.                    
  1072.             if (intid == 77) then        
  1073.                 local pItem = player:GetEquippedItemBySlot(16)
  1074.                     if pItem ~= nil then
  1075.                     pItem:AddEnchantment(3225, 0, 0)
  1076.                     pUnit:GossipComplete()
  1077.                     else
  1078.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
  1079.                     pUnit:GossipComplete()
  1080.                     end
  1081.             end
  1082.            
  1083.             if (intid == 78) then        
  1084.                 local pItem = player:GetEquippedItemBySlot(16)
  1085.                     if pItem ~= nil then
  1086.                     pItem:AddEnchantment(2673, 0, 0)
  1087.                     pUnit:GossipComplete()
  1088.                     else
  1089.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no off-hand weapon equipped!")
  1090.                     pUnit:GossipComplete()
  1091.                     end
  1092.             end
  1093.            
  1094.             if (intid == 140) then
  1095.             pUnit:GossipCreateMenu(312, player, 0)
  1096.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Shield - Defense|R", 79, 0)
  1097.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Shield - Greater Intellect|R", 80, 0)
  1098.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Shield - Shield Block|R", 81, 0)
  1099.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Shield - Resilience|R", 82, 0)
  1100.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Shield - Major Stamina|R", 83, 0)
  1101.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant Shield - Tough Shield|R", 84, 0)
  1102.             pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
  1103.             pUnit:GossipSendMenu(player)
  1104.             end
  1105.                
  1106.             if (intid == 79) then
  1107.                 local pItem = player:GetEquippedItemBySlot(16)
  1108.                 local sql = WorldDBQuery("SELECT subclass FROM items WHERE entry = '"..pItem:GetEntryId().."';"):GetColumn(0):GetString()
  1109.                 if pItem ~= nil then
  1110.                     if (sql == "6") then
  1111.                     pItem:AddEnchantment(1952, 0, 0)
  1112.                     pUnit:GossipComplete()
  1113.                     else
  1114.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shield equipped!")
  1115.                     pUnit:GossipComplete()
  1116.                     end
  1117.                 end
  1118.             end
  1119.            
  1120.             if (intid == 80) then        
  1121.                 local pItem = player:GetEquippedItemBySlot(16)
  1122.                 local sql = WorldDBQuery("SELECT subclass FROM items WHERE entry = '"..pItem:GetEntryId().."';"):GetColumn(0):GetString()
  1123.                 if pItem ~= nil then
  1124.                     if (sql == "6") then
  1125.                     pItem:AddEnchantment(1128, 0, 0)
  1126.                     pUnit:GossipComplete()
  1127.                     else
  1128.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shield equipped!")
  1129.                     pUnit:GossipComplete()
  1130.                     end
  1131.                 end
  1132.             end
  1133.        
  1134.             if (intid == 81) then        
  1135.                 local pItem = player:GetEquippedItemBySlot(16)
  1136.                 local sql = WorldDBQuery("SELECT subclass FROM items WHERE entry = '"..pItem:GetEntryId().."';"):GetColumn(0):GetString()
  1137.                 if pItem ~= nil then
  1138.                     if (sql == "6") then
  1139.                     pItem:AddEnchantment(2655, 0, 0)
  1140.                     pUnit:GossipComplete()
  1141.                     else
  1142.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shield equipped!")
  1143.                     pUnit:GossipComplete()
  1144.                     end
  1145.                 end
  1146.             end
  1147.                    
  1148.             if (intid == 82) then        
  1149.                 local pItem = player:GetEquippedItemBySlot(16)
  1150.                 local sql = WorldDBQuery("SELECT subclass FROM items WHERE entry = '"..pItem:GetEntryId().."';"):GetColumn(0):GetString()
  1151.                 if pItem ~= nil then
  1152.                     if (sql == "6") then
  1153.                     pItem:AddEnchantment(3229, 0, 0)
  1154.                     pUnit:GossipComplete()
  1155.                     else
  1156.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shield equipped!")
  1157.                     pUnit:GossipComplete()
  1158.                     end
  1159.                 end
  1160.             end
  1161.                    
  1162.             if (intid == 83) then        
  1163.                 local pItem = player:GetEquippedItemBySlot(16)
  1164.                 local sql = WorldDBQuery("SELECT subclass FROM items WHERE entry = '"..pItem:GetEntryId().."';"):GetColumn(0):GetString()
  1165.                 if pItem ~= nil then
  1166.                     if (sql == "6") then
  1167.                     pItem:AddEnchantment(1071, 0, 0)
  1168.                     pUnit:GossipComplete()
  1169.                     else
  1170.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shield equipped!")
  1171.                     pUnit:GossipComplete()
  1172.                     end
  1173.                 end
  1174.             end
  1175.            
  1176.             if (intid == 84) then        
  1177.                 local pItem = player:GetEquippedItemBySlot(16)
  1178.                 local sql = WorldDBQuery("SELECT subclass FROM items WHERE entry = '"..pItem:GetEntryId().."';"):GetColumn(0):GetString()
  1179.                 if pItem ~= nil then
  1180.                     if (sql == "6") then
  1181.                     pItem:AddEnchantment(2653, 0, 0)
  1182.                     pUnit:GossipComplete()
  1183.                     else
  1184.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no shield equipped!")
  1185.                     pUnit:GossipComplete()
  1186.                     end
  1187.                 end
  1188.             end
  1189.            
  1190.             if (intid == 130) then
  1191.             pUnit:GossipCreateMenu(313, player, 0)
  1192.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant 2H Weapon - Massacre|R", 85, 0)
  1193.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant 2H Weapon - Scourgebane|R", 86, 0)
  1194.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant 2H Weapon - Giant Slayer|R", 87, 0)
  1195.             pUnit:GossipMenuAddItem(3, "|cFF008000Enchant 2H Weapon - Greater Spellpower|R", 88, 0)
  1196.             pUnit:GossipMenuAddItem(5, "Nevermind.", 100, 0)
  1197.             pUnit:GossipSendMenu(player)
  1198.             end
  1199.    
  1200.             if (intid == 85) then        
  1201.                 local pItem = player:GetEquippedItemBySlot(15)
  1202.                 local sql = WorldDBQuery("SELECT subclass FROM items WHERE entry = '"..pItem:GetEntryId().."';"):GetColumn(0):GetString()
  1203.                 if pItem ~= nil then
  1204.                     if (sql == "1" or sql == "5" or sql == "6" or sql == "8" or sql == "10") then
  1205.                     pItem:AddEnchantment(3827, 0, 0)
  1206.                     pUnit:GossipComplete()
  1207.                     else
  1208.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no two-hander equipped!")
  1209.                     pUnit:GossipComplete()
  1210.                     end
  1211.                 end
  1212.             end
  1213.  
  1214.            
  1215.                
  1216.             if (intid == 86) then        
  1217.                 local pItem = player:GetEquippedItemBySlot(15)
  1218.                 local sql = WorldDBQuery("SELECT subclass FROM items WHERE entry = '"..pItem:GetEntryId().."';"):GetColumn(0):GetString()
  1219.                 if pItem ~= nil then
  1220.                     if (sql == "1" or sql == "5" or sql == "6" or sql == "8" or sql == "10") then
  1221.                     pItem:AddEnchantment(3247, 0, 0)
  1222.                     pUnit:GossipComplete()
  1223.                     else
  1224.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no two-hander equipped!")
  1225.                     pUnit:GossipComplete()
  1226.                     end
  1227.                 end
  1228.             end
  1229.  
  1230.                
  1231.             if (intid == 87) then        
  1232.                 local pItem = player:GetEquippedItemBySlot(15)
  1233.                 local sql = WorldDBQuery("SELECT subclass FROM items WHERE entry = '"..pItem:GetEntryId().."';"):GetColumn(0):GetString()
  1234.                 if pItem ~= nil then
  1235.                     if (sql == "1" or sql == "5" or sql == "6" or sql == "8" or sql == "10") then
  1236.                     pItem:AddEnchantment(3251, 0, 0)
  1237.  
  1238.                     pUnit:GossipComplete()
  1239.                     else
  1240.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no two-hander equipped!")
  1241.                     pUnit:GossipComplete()
  1242.                     end
  1243.                 end
  1244.             end
  1245.  
  1246.                
  1247.             if (intid == 88) then        
  1248.                 local pItem = player:GetEquippedItemBySlot(15)
  1249.                 local sql = WorldDBQuery("SELECT subclass FROM items WHERE entry = '"..pItem:GetEntryId().."';"):GetColumn(0):GetString()
  1250.                 if pItem ~= nil then
  1251.                     if (sql == "1" or sql == "5" or sql == "6" or sql == "8" or sql == "10") then
  1252.                     pItem:AddEnchantment(3854, 0, 0)
  1253.                     pUnit:GossipComplete()
  1254.                     else
  1255.                     player:SendAreaTriggerMessage("|cFF00FFFF[WoWGalore]: |cFFFFA500You have no two-hander equipped!")
  1256.                     pUnit:GossipComplete()
  1257.                     end
  1258.                 end
  1259.             end
  1260.            
  1261.             if (intid == 100) then
  1262.             pUnit:GossipComplete()
  1263.             end
  1264. end
  1265.  
  1266.    
  1267. RegisterUnitGossipEvent(npcid, 1, "enchanter")
  1268. RegisterUnitGossipEvent(npcid, 2, "enchanterselect")
Advertisement
Add Comment
Please, Sign In to add comment