MichaelCrow

[trinity] Donor Refund NPC

Jul 19th, 2012
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 20.10 KB | None | 0 0
  1. #include "ScriptPCH.h"
  2.  
  3. class Donor_Refund : public CreatureScript
  4. {
  5.     public:
  6.         Donor_Refund() : CreatureScript("Donor_Refund") { }
  7.    
  8.  
  9.    
  10.  
  11.     bool OnGossipHello(Player * player, Creature * creature)
  12.     {
  13.             player->ADD_GOSSIP_ITEM( 3, "What does this npc do?",GOSSIP_SENDER_MAIN, 999);
  14.             player->ADD_GOSSIP_ITEM( 3, "Begin selling back legendaries!", GOSSIP_SENDER_MAIN, 0);
  15.             player->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE, creature->GetGUID());        
  16.         return true;
  17.     }
  18.    
  19.     bool OnGossipSelect(Player * player, Creature * creature, uint32 sender, uint32 uiAction)
  20.     {
  21.         if (sender == GOSSIP_SENDER_MAIN)
  22.         {
  23.             player->PlayerTalkClass->ClearMenus();
  24.             switch(uiAction)
  25.             {
  26.             case 999:
  27.                
  28.                  creature->MonsterWhisper("You may sell me your legendary items in exchange for Donation Tokens. This is useful if you wish to buy a different item to try or want to mail them to an alt! Thank you for your continued support!", player->GetGUID());
  29.                  OnGossipHello(player, creature);
  30.                  return true;
  31.             break;
  32.                
  33.             case 0:
  34.                 if (player->HasItemCount(18583, 1))
  35.                 {
  36.                 player->ADD_GOSSIP_ITEM(3, "Sell back Warglaive of Azzinoth (offhand 1.0 second).", GOSSIP_SENDER_MAIN, 2);
  37.                 }
  38.  
  39.                 if (player->HasItemCount(18582, 1))
  40.                 {
  41.                 player->ADD_GOSSIP_ITEM(3, "Sell back Twin Blades of Azzinoth.", GOSSIP_SENDER_MAIN, 3);
  42.                 }
  43.  
  44.                 if (player->HasItemCount(22691, 1))
  45.                 {
  46.                 player->ADD_GOSSIP_ITEM(3, "Sell back Corrupted Ashebringer.", GOSSIP_SENDER_MAIN, 4);
  47.                 }
  48.  
  49.                 if (player->HasItemCount(17142, 1))
  50.                 {
  51.                 player->ADD_GOSSIP_ITEM(3, "Sell back Shard of the Defiler.", GOSSIP_SENDER_MAIN, 5);
  52.                 }
  53.                
  54.                 if (player->HasItemCount(13262, 1))
  55.                 {
  56.                 player->ADD_GOSSIP_ITEM(3, "Sell back Ashebringer.", GOSSIP_SENDER_MAIN, 6);
  57.                 }
  58.                
  59.                 if (player->HasItemCount(32837, 1))
  60.                 {
  61.                 player->ADD_GOSSIP_ITEM(3, "Sell back Warglaive of Azzinoth (2.8 second mainhand).", GOSSIP_SENDER_MAIN, 7);
  62.                 }
  63.  
  64.                 if (player->HasItemCount(49623, 1))
  65.                 {
  66.                 player->ADD_GOSSIP_ITEM(3, "Sell back Shadowmourne.", GOSSIP_SENDER_MAIN, 8);
  67.                 }
  68.  
  69.                 if (player->HasItemCount(32838, 1))
  70.                 {
  71.                 player->ADD_GOSSIP_ITEM(3, "Sell back Warglaive of Azzinoth (offhand 1.4 second).", GOSSIP_SENDER_MAIN, 9);
  72.                 }
  73.  
  74.                 if (player->HasItemCount(19019, 1))
  75.                 {
  76.                 player->ADD_GOSSIP_ITEM(3, "Sell back Thunderfury, Blessed Blade of the Windseeker.", GOSSIP_SENDER_MAIN, 10);
  77.                 }
  78.  
  79.                 if (player->HasItemCount(17182, 1))
  80.                 {
  81.                 player->ADD_GOSSIP_ITEM(3, "Sell back Sulfuras, Hand of Ragnaros.", GOSSIP_SENDER_MAIN, 11);
  82.                 }
  83.  
  84.                 if (player->HasItemCount(51922, 1))
  85.                 {
  86.                 player->ADD_GOSSIP_ITEM(3, "Sell back Scourgelord's Baton (Critical strike).", GOSSIP_SENDER_MAIN, 12);
  87.                 }
  88.                 if (player->HasItemCount(50781, 1))
  89.                 {
  90.                 player->ADD_GOSSIP_ITEM(3, "Sell back Scourgelord's Baton (Resilience).", GOSSIP_SENDER_MAIN, 13);
  91.                 }
  92.            
  93.                 if (player->HasItemCount(30318, 1))
  94.                 {
  95.                 player->ADD_GOSSIP_ITEM(3, "Sell back Netherstrand Longbow.", GOSSIP_SENDER_MAIN, 14);
  96.                 }
  97.  
  98.                 if (player->HasItemCount(47371, 1))
  99.                 {
  100.                 player->ADD_GOSSIP_ITEM(3, "Sell back Lost Totem.", GOSSIP_SENDER_MAIN, 15);
  101.                 }
  102.  
  103.                 if (player->HasItemCount(46017, 1))
  104.                 {
  105.                 player->ADD_GOSSIP_ITEM(3, "Va'lanyr, Hammer of the Ancient Kings.", GOSSIP_SENDER_MAIN, 16);
  106.                 }
  107.  
  108.                 if (player->HasItemCount(30312, 1))
  109.                 {
  110.                 player->ADD_GOSSIP_ITEM(3, "Sell back Infinity Blade.", GOSSIP_SENDER_MAIN, 17);
  111.                 }
  112.  
  113.                 if (player->HasItemCount(30313, 1))
  114.                 {
  115.                 player->ADD_GOSSIP_ITEM(3, "Staff of Disintegration.", GOSSIP_SENDER_MAIN, 18);
  116.                 }
  117.  
  118.                 if (player->HasItemCount(18584, 1))
  119.                 {
  120.                 player->ADD_GOSSIP_ITEM(3, "Sell back Warglaive of Azzinoth (Mainhand 1.8sec).", GOSSIP_SENDER_MAIN, 19);
  121.                 }
  122.  
  123.                 if (player->HasItemCount(40497 , 1))
  124.                 {
  125.                 player->ADD_GOSSIP_ITEM(3, "Sell back Black Ice.", GOSSIP_SENDER_MAIN, 20);
  126.                 }
  127.  
  128.                 if (player->HasItemCount(30314, 1))
  129.                 {
  130.                 player->ADD_GOSSIP_ITEM(3, "Sell back Phaseshift Bulwark.", GOSSIP_SENDER_MAIN, 21);
  131.                 }
  132.  
  133.                 if (player->HasItemCount(34334, 1))
  134.                 {
  135.                 player->ADD_GOSSIP_ITEM(3, "Sell back Thori'dal, The Stars Fury.", GOSSIP_SENDER_MAIN, 22);
  136.                 }
  137.  
  138.                 if (player->HasItemCount(22736, 1))
  139.                 {
  140.                 player->ADD_GOSSIP_ITEM(3, "Sell back Adonisus, Reaper of Souls.", GOSSIP_SENDER_MAIN, 23);
  141.                 }
  142.  
  143.                 if (player->HasItemCount(1168, 1))
  144.                 {
  145.                 player->ADD_GOSSIP_ITEM(3, "Sell back Skullflame Shield.", GOSSIP_SENDER_MAIN, 24);
  146.                 }
  147.  
  148.                 if (player->HasItemCount(30316, 1))
  149.                 {
  150.                 player->ADD_GOSSIP_ITEM(3, "Sell back Devastation.", GOSSIP_SENDER_MAIN, 25);
  151.                 }
  152.  
  153.                 if (player->HasItemCount(32824, 1))
  154.                 {
  155.                 player->ADD_GOSSIP_ITEM(3, "Sell back Ashbringer 2.0.", GOSSIP_SENDER_MAIN, 26);
  156.                 }
  157.  
  158.                 if (player->HasItemCount(24044, 1))
  159.                 {
  160.                 player->ADD_GOSSIP_ITEM(3, "Sell back Hellreaver.", GOSSIP_SENDER_MAIN, 27);
  161.                 }
  162.                 if (player->HasItemCount(22589, 1))
  163.                 {
  164.                 player->ADD_GOSSIP_ITEM(3, "Sell back Atiesh, Greatstaff of the Guardian (Haste).", GOSSIP_SENDER_MAIN, 28);
  165.                 }
  166.                 if (player->HasItemCount(22630, 1))
  167.                 {
  168.                 player->ADD_GOSSIP_ITEM(3, "Sell back Atiesh, Greatstaff of the Guardian (Spell Critical Strike Rating).", GOSSIP_SENDER_MAIN, 29);
  169.                 }
  170.  
  171.                 if (player->HasItemCount(22631, 1))
  172.                 {
  173.                 player->ADD_GOSSIP_ITEM(3, "Sell back Atiesh, Greatstaff of the Guardian (Mp5).", GOSSIP_SENDER_MAIN, 30);
  174.                 }
  175.  
  176.                 if (player->HasItemCount(22632, 1))
  177.                 {
  178.                 player->ADD_GOSSIP_ITEM(3, "Sell back Atiesh, Greatstaff of the Guardian (Spell Penetration).", GOSSIP_SENDER_MAIN, 31);
  179.                 }
  180.  
  181.                 if (player->HasItemCount(30317, 1))
  182.                 {
  183.                 player->ADD_GOSSIP_ITEM(3, "Sell back Cosmic Infuser.", GOSSIP_SENDER_MAIN, 32);
  184.                 }
  185.                 if (player->HasItemCount(30311, 1))
  186.                 {
  187.                 player->ADD_GOSSIP_ITEM(3, "Sell back Warp Slicer.", GOSSIP_SENDER_MAIN, 33);
  188.                 }
  189.  
  190.                 if (player->HasItemCount(32375, 1))
  191.                 {
  192.                 player->ADD_GOSSIP_ITEM(3, "Sell back Bulwark of Azzinoth.", GOSSIP_SENDER_MAIN, 34);
  193.                 }
  194.  
  195.                 if (player->HasItemCount(37693, 1))
  196.                 {
  197.                 player->ADD_GOSSIP_ITEM(3, "Sell back Cataclysmic Ripper.", GOSSIP_SENDER_MAIN, 35);
  198.                 }
  199.  
  200.                 if (player->HasItemCount(40704, 1))
  201.                 {
  202.                 player->ADD_GOSSIP_ITEM(3, "Sell back Cataclysmic Render.", GOSSIP_SENDER_MAIN, 36);
  203.                 }
  204.  
  205.                 if (player->HasItemCount(25667, 1))
  206.                 {
  207.                 player->ADD_GOSSIP_ITEM(3, "Sell back Lost Libram.", GOSSIP_SENDER_MAIN, 37);
  208.                 }
  209.  
  210.                 if (player->HasItemCount(28165, 1))
  211.                 {
  212.                 player->ADD_GOSSIP_ITEM(3, "Sell back Goblin Tech Prototype 1.2a.", GOSSIP_SENDER_MAIN, 38);
  213.                 }
  214.                 if (player->HasItemCount(42505, 1))
  215.                 {
  216.                 player->ADD_GOSSIP_ITEM(3, "Sell back Dislodged Skeletal Arm.", GOSSIP_SENDER_MAIN, 39);
  217.                 }
  218.                 if (player->HasItemCount(45257, 1))
  219.                 {
  220.                 player->ADD_GOSSIP_ITEM(3, "Sell back Consortium Blessed Wand.", GOSSIP_SENDER_MAIN, 40);
  221.                 }
  222.  
  223.                 if (player->HasItemCount(18438, 1))
  224.                 {
  225.                 player->ADD_GOSSIP_ITEM(3, "Sell back Alliance Shirt of the Brutal Donor.", GOSSIP_SENDER_MAIN, 41);
  226.                 }
  227.  
  228.                 if (player->HasItemCount(53509, 1))
  229.                 {
  230.                 player->ADD_GOSSIP_ITEM(3, "Sell back Horde Shirt of the Brutal Donor.", GOSSIP_SENDER_MAIN, 42);
  231.                 }
  232.  
  233.                 if (player->HasItemCount(12805, 1))
  234.                 {
  235.                 player->ADD_GOSSIP_ITEM(3, "Sell back Alliance Shirt of the Tanking Donor.", GOSSIP_SENDER_MAIN, 43);
  236.                 }
  237.                 if (player->HasItemCount(47364, 1))
  238.                 {
  239.                 player->ADD_GOSSIP_ITEM(3, "Sell back Horde Shirt of the Tanking Donor.", GOSSIP_SENDER_MAIN, 44);
  240.                 }
  241.  
  242.                 if (player->HasItemCount(49675, 1))
  243.                 {
  244.                 player->ADD_GOSSIP_ITEM(3, "Sell back Lost Idol.", GOSSIP_SENDER_MAIN, 45);
  245.                 }
  246.  
  247.                 if (player->HasItemCount(11264, 1))
  248.                 {
  249.                 player->ADD_GOSSIP_ITEM(3, "Sell back Draconic Fury.", GOSSIP_SENDER_MAIN, 46);
  250.                 }
  251.  
  252.                 if (player->HasItemCount(13312, 1))
  253.                 {
  254.                 player->ADD_GOSSIP_ITEM(3, "Sell back Dragonstrike.", GOSSIP_SENDER_MAIN, 47);
  255.                 }
  256.  
  257.                 if (player->HasItemCount(24320, 1))
  258.                 {
  259.                 player->ADD_GOSSIP_ITEM(3, "Sell back Cleaver of the Frozen Wastes.", GOSSIP_SENDER_MAIN, 48);
  260.                 }
  261.  
  262.                 if (player->HasItemCount(11021, 1))
  263.                 {
  264.                 player->ADD_GOSSIP_ITEM(3, "Sell back X-Treme Hunting Rifle.", GOSSIP_SENDER_MAIN, 49);
  265.                 }
  266.                 if (player->HasItemCount(40967, 1))
  267.                 {
  268.                 player->ADD_GOSSIP_ITEM(3, "Sell back Maiev's Render.", GOSSIP_SENDER_MAIN, 50);
  269.                 }
  270.                 if (player->HasItemCount(40968, 1))
  271.                 {
  272.                 player->ADD_GOSSIP_ITEM(3, "Sell back Maiev's Ripper.", GOSSIP_SENDER_MAIN, 51);
  273.                 }
  274.  
  275.                 if (player->HasItemCount(34058, 1))
  276.                 {
  277.                 player->ADD_GOSSIP_ITEM(3, "Sell back Fury of Quel'Danas.", GOSSIP_SENDER_MAIN, 52);
  278.                 }
  279.  
  280.                 if (player->HasItemCount(42756, 1))
  281.                 {
  282.                 player->ADD_GOSSIP_ITEM(3, "Sell back Alliance Shirt of the Casting Donor.", GOSSIP_SENDER_MAIN, 53);
  283.                 }
  284.  
  285.                 if (player->HasItemCount(44801, 1))
  286.                 {
  287.                 player->ADD_GOSSIP_ITEM(3, "Sell back Horde Shirt of the Casting Donor.", GOSSIP_SENDER_MAIN, 54);
  288.                 }
  289.                 player->PlayerTalkClass->SendGossipMenu(907, creature->GetGUID());     
  290.                 return true;
  291.                     break;
  292.  
  293.                     case 2:
  294.                         player->DestroyItemCount(18583, 1, true);
  295.                         player->AddItem(41596, 2);
  296.                         OnGossipHello(player, creature);
  297.                  return true;
  298.                  
  299.                     break;
  300.                            
  301.                 case 3:
  302.  
  303.                                     player->DestroyItemCount(18582, 1, true);
  304.                                     player->AddItem(41596, 2);
  305.                                     OnGossipHello(player, creature);
  306.                  return true;  
  307.                                    
  308.                     break;
  309.                    
  310.                 case 4:
  311.                                     player->DestroyItemCount(22691, 1, true);
  312.                                     player->AddItem(41596, 4);
  313.                                     OnGossipHello(player, creature);
  314.                  return true;  
  315.  
  316.                     break;
  317.                        
  318.                        
  319.                 case 5:
  320.                                     player->DestroyItemCount(17142, 1, true);
  321.                                     player->AddItem(41596, 2);
  322.                                     OnGossipHello(player, creature);
  323.                  return true;  
  324.                                    
  325.                     break;
  326.                        
  327.                     case 6:
  328.                         player->DestroyItemCount(13262, 1, true);
  329.                         player->AddItem(41596, 4);
  330.                         OnGossipHello(player, creature);
  331.                  return true;  
  332.                                
  333.                        
  334.                     break;
  335.                    
  336.                     case 7:
  337.                     player->DestroyItemCount(32387, 1, true);
  338.                     player->AddItem(41596, 2);
  339.                     OnGossipHello(player, creature);
  340.                  return true;  
  341.                                    
  342.                     break;
  343.                        
  344.                     case 8:
  345.                     player->DestroyItemCount(49623, 1, true);
  346.                     player->AddItem(41596, 4);
  347.                     OnGossipHello(player, creature);
  348.                  return true;  
  349.                     break;
  350.  
  351.                     case 9:
  352.                     player->DestroyItemCount(32838, 1, true);
  353.                     player->AddItem(41596, 2);
  354.                     OnGossipHello(player, creature);
  355.                  return true;  
  356.  
  357.                     break;
  358.                        
  359.                     case 10:
  360.                    
  361.                                     player->DestroyItemCount(19019, 1, true);
  362.                                     player->AddItem(41596, 2);
  363.                                     OnGossipHello(player, creature);
  364.                  return true;  
  365.                                
  366.                     break;
  367.                        
  368.                     case 11:
  369.                        
  370.                                     player->DestroyItemCount(17182, 1, true);
  371.                                     player->AddItem(41596, 4);
  372.                                     OnGossipHello(player, creature);
  373.                  return true;  
  374.                                    
  375.                     break;
  376.                        
  377.                     case 12:
  378.                        
  379.                                     player->DestroyItemCount(51922, 1, true);
  380.                                     player->AddItem(41596, 2);
  381.                                     OnGossipHello(player, creature);
  382.                  return true;  
  383.                                    
  384.                        
  385.                     break;
  386.                        
  387.                     case 13:
  388.                        
  389.                        
  390.                                
  391.                                     player->DestroyItemCount(50781, 1, true);
  392.                                     player->AddItem(41596, 2);
  393.                                     OnGossipHello(player, creature);
  394.                  return true;  
  395.                                    
  396.                     break;
  397.                        
  398.  
  399.                 case 14:
  400.                    
  401.                    
  402.                                     player->DestroyItemCount(30318, 1, true);
  403.                                     player->AddItem(41596, 4);
  404.                                     OnGossipHello(player, creature);
  405.                  return true;  
  406.                                
  407.                        
  408.                     break;
  409.                    
  410.                     case 15:
  411.                        
  412.                            
  413.                                     player->DestroyItemCount(47371, 1, true);
  414.                                     player->AddItem(41596, 4);
  415.                                     OnGossipHello(player, creature);
  416.                  return true;  
  417.                                    
  418.                     break;
  419.                        
  420.                     case 16:
  421.                        
  422.                                     player->DestroyItemCount(46017, 1, true);
  423.                                     player->AddItem(41596, 2);
  424.                                     OnGossipHello(player, creature);
  425.                  return true;  
  426.                                    
  427.                        
  428.                                 break;
  429.                        
  430.                     case 17:
  431.                        
  432.                        
  433.                                     player->DestroyItemCount(30312, 1, true);
  434.                                     player->AddItem(41596, 2);
  435.                                     OnGossipHello(player, creature);
  436.                  return true;  
  437.                                    
  438.                                 break;
  439.                        
  440.                     case 18:
  441.                        
  442.                                     player->DestroyItemCount(30313, 1, true);
  443.                                     player->AddItem(41596, 4);
  444.                                     OnGossipHello(player, creature);
  445.                  return true;  
  446.                                    
  447.                                 break;
  448.                        
  449.                     case 19:
  450.                        
  451.                        
  452.                                 player->DestroyItemCount(18584, 1, true);
  453.                                     player->AddItem(41596, 2);
  454.                                     OnGossipHello(player, creature);
  455.                  return true;  
  456.                                    
  457.                        
  458.                                 break;
  459.                        
  460.                     case 20:
  461.                        
  462.                    
  463.                                     player->DestroyItemCount(40497, 1, true);
  464.                                     player->AddItem(41596, 4);
  465.                                     OnGossipHello(player, creature);
  466.                  return true;  
  467.                                    
  468.                        
  469.                                 break;
  470.                        
  471.                     case 21:
  472.                    
  473.                                     player->DestroyItemCount(30314, 1, true);
  474.                                     player->AddItem(41596, 2);
  475.                                     OnGossipHello(player, creature);
  476.                  return true;  
  477.                                    
  478.                                 break;
  479.                        
  480.                     case 22:
  481.                        
  482.                                     player->DestroyItemCount(34334, 1, true);
  483.                                     player->AddItem(41596, 4);
  484.                                     OnGossipHello(player, creature);
  485.                  return true;  
  486.                            
  487.                                 break;
  488.                        
  489.                     case 23:
  490.                    
  491.                                     player->DestroyItemCount(22736, 1, true);
  492.                                     player->AddItem(41596, 2);
  493.                                     OnGossipHello(player, creature);
  494.                  return true;  
  495.                                 break;
  496.                        
  497.                     case 24:
  498.                        
  499.                        
  500.                                     player->DestroyItemCount(1168, 1, true);
  501.                                     player->AddItem(41596, 2);
  502.                                     OnGossipHello(player, creature);
  503.                  return true;  
  504.                                    
  505.                                 break;
  506.                        
  507.                     case 25:
  508.                        
  509.                            
  510.                                    
  511.                                     player->DestroyItemCount(30316, 1, true);
  512.                                     player->AddItem(41596, 4);
  513.                                     OnGossipHello(player, creature);
  514.                  return true;  
  515.                                    
  516.                        
  517.                                 break;
  518.                        
  519.                                         case 26:
  520.                                            
  521.                                     player->DestroyItemCount(32824, 1, true);
  522.                                     player->AddItem(41596, 5);
  523.                                     OnGossipHello(player, creature);
  524.                  return true;  
  525.                                    
  526.                        
  527.                                 break;
  528.                                            
  529.                 case 27:
  530.                    
  531.                        
  532.                                     player->DestroyItemCount(24044, 1, true);
  533.                                     player->AddItem(41596, 4);
  534.                                     OnGossipHello(player, creature);
  535.                  return true;  
  536.                                    
  537.                        
  538.                                 break;
  539.                    
  540.                 case 28:
  541.                    
  542.                                     player->DestroyItemCount(22589, 1, true);
  543.                                     player->AddItem(41596, 4);
  544.                                     OnGossipHello(player, creature);
  545.                  return true;  
  546.                                     break;
  547.                    
  548.                 case 29:
  549.                                            
  550.                                     player->DestroyItemCount(22630, 1, true);
  551.                                     player->AddItem(41596, 4);
  552.                                     OnGossipHello(player, creature);
  553.                  return true;  
  554.                                    
  555.                                 break;
  556.                          
  557.                     case 30:
  558.                        
  559.                                     player->DestroyItemCount(22631, 1, true);
  560.                                     player->AddItem(41596, 4);
  561.                                     OnGossipHello(player, creature);
  562.                  return true;  
  563.                                    
  564.                                 break;
  565.                        
  566.                     case 31:
  567.                        
  568.                                     player->DestroyItemCount(22632, 1, true);
  569.                                     player->AddItem(41596, 4);
  570.                                     OnGossipHello(player, creature);
  571.                  return true;  
  572.                                     break;
  573.                        
  574.                     case 32:
  575.                        
  576.                                     player->DestroyItemCount(30317, 1, true);
  577.                                     player->AddItem(41596, 2);
  578.                                     OnGossipHello(player, creature);
  579.                  return true;  
  580.                                     break;
  581.                        
  582.  
  583.                     case 33:
  584.                        
  585.                                     player->DestroyItemCount(30311, 1, true);
  586.                                     player->AddItem(41596, 2);
  587.                                     OnGossipHello(player, creature);
  588.                  return true;  
  589.                                    
  590.                                 break;
  591.                        
  592.                     case 34:
  593.                        
  594.                                     player->DestroyItemCount(32375, 1, true);
  595.                                     player->AddItem(41596, 2);
  596.                                     OnGossipHello(player, creature);
  597.                  return true;  
  598.                                    
  599.                                 break;
  600.                        
  601.                     case 35:
  602.                        
  603.                                     player->DestroyItemCount(37693, 1, true);
  604.                                     player->AddItem(41596, 2);
  605.                                     OnGossipHello(player, creature);
  606.                  return true;  
  607.                                    
  608.                                 break;
  609.                        
  610.                     case 36:
  611.                    
  612.                                     player->DestroyItemCount(40704, 1, true);
  613.                                     player->AddItem(41596, 2);
  614.                                     OnGossipHello(player, creature);
  615.                  return true;  
  616.                                
  617.                                 break;
  618.                        
  619.                     case 37:
  620.                        
  621.                                     player->DestroyItemCount(25667, 1, true);
  622.                                     player->AddItem(41596, 4);
  623.                                     OnGossipHello(player, creature);
  624.                  return true;  
  625.                                    
  626.                                 break;
  627.                        
  628.  
  629.                 case 38:
  630.                    
  631.                                     player->DestroyItemCount(28165, 1, true);
  632.                                     player->AddItem(41596, 4);
  633.                                     OnGossipHello(player, creature);
  634.                  return true;  
  635.                                    
  636.                                 break;
  637.                    
  638.                     case 39:
  639.                        
  640.                                     player->DestroyItemCount(42505, 1, true);
  641.                                     player->AddItem(41596, 4);
  642.                                     OnGossipHello(player, creature);
  643.                  return true;  
  644.                                    
  645.                                 break;
  646.                        
  647.                     case 40:
  648.                        
  649.                                     player->DestroyItemCount(45257, 1, true);
  650.                                     player->AddItem(41596, 4);
  651.                                     OnGossipHello(player, creature);
  652.                  return true;  
  653.                                    
  654.                                 break;
  655.                        
  656.                     case 41:
  657.                        
  658.                                     player->DestroyItemCount(18438, 1, true);
  659.                                     player->AddItem(41596, 1);
  660.                                     OnGossipHello(player, creature);
  661.                  return true;  
  662.                                    
  663.                                 break;
  664.                        
  665.                     case 42:
  666.                        
  667.                                     player->DestroyItemCount(53509, 1, true);
  668.                                     player->AddItem(41596, 1);
  669.                                     OnGossipHello(player, creature);
  670.                  return true;  
  671.                                    
  672.                                 break;
  673.                        
  674.                     case 43:
  675.                        
  676.                                     player->DestroyItemCount(12805, 1, true);
  677.                                     player->AddItem(41596, 1);
  678.                                     OnGossipHello(player, creature);
  679.                  return true;  
  680.                                    
  681.                                 break;
  682.                        
  683.                     case 44:
  684.                        
  685.                                     player->DestroyItemCount(47364, 1, true);
  686.                                     player->AddItem(41596, 1);
  687.                                     OnGossipHello(player, creature);
  688.                  return true;  
  689.                                    
  690.                                 break;
  691.                        
  692.                     case 45:
  693.                        
  694.                                     player->DestroyItemCount(49675, 1, true);
  695.                                     player->AddItem(41596, 4);
  696.                                     OnGossipHello(player, creature);
  697.                  return true;  
  698.                                    
  699.                                 break;
  700.                        
  701.                     case 46:
  702.                        
  703.                                     player->DestroyItemCount(11264, 1, true);
  704.                                     player->AddItem(41596, 2);
  705.                                     OnGossipHello(player, creature);
  706.                  return true;  
  707.                                    
  708.                                 break;
  709.                        
  710.                     case 47:
  711.                        
  712.                                     player->DestroyItemCount(13312, 1, true);
  713.                                     player->AddItem(41596, 2);
  714.                                     OnGossipHello(player, creature);
  715.                  return true;  
  716.                                    
  717.                                 break;
  718.                        
  719.                     case 48:
  720.                        
  721.                                     player->DestroyItemCount(24320, 1, true);
  722.                                     player->AddItem(41596, 2);
  723.                                     OnGossipHello(player, creature);
  724.                  return true;  
  725.                                    
  726.                                 break;
  727.                        
  728.  
  729.                     case 49:
  730.                        
  731.                                     player->DestroyItemCount(11021, 1, true);
  732.                                     player->AddItem(41596, 4);
  733.                                     OnGossipHello(player, creature);
  734.                  return true;  
  735.                                    
  736.                                 break;
  737.                        
  738.                                         case 50:
  739.                                            
  740.                                     player->DestroyItemCount(40967, 1, true);
  741.                                     player->AddItem(41596, 2);
  742.                                     OnGossipHello(player, creature);
  743.                  return true;  
  744.                                    
  745.                                 break;
  746.                                        
  747.  
  748.                                         case 51:
  749.                                            
  750.                                     player->DestroyItemCount(40968, 1, true);
  751.                                     player->AddItem(41596, 2);
  752.                                     OnGossipHello(player, creature);
  753.                  return true;  
  754.                                    
  755.                                 break;
  756.                                            
  757.                                         case 52:
  758.                                            
  759.                                     player->DestroyItemCount(34058, 1, true);
  760.                                     player->AddItem(41596, 4);
  761.                                     OnGossipHello(player, creature);
  762.                  return true;  
  763.                                    
  764.                                 break;
  765.                                            
  766.  
  767.                                         case 53:
  768.                                            
  769.                                     player->DestroyItemCount(42756, 1, true);
  770.                                     player->AddItem(41596, 1);
  771.                                     OnGossipHello(player, creature);
  772.                  return true;  
  773.                                    
  774.                                 break;
  775.                                                
  776.  
  777.                                         case 54:
  778.                                            
  779.                                     player->DestroyItemCount(44801, 1, true);
  780.                                     player->AddItem(41596, 1);
  781.                                     OnGossipHello(player, creature);
  782.                  return true;  
  783.                                    
  784.                                 break;
  785.                                 }
  786.                     return true;
  787.                 }
  788.  
  789.             player->CLOSE_GOSSIP_MENU();
  790.         }
  791.        
  792. };
  793. void AddSC_Donor_Refund()
  794. {
  795.     new Donor_Refund();
  796. }
Advertisement
Add Comment
Please, Sign In to add comment