Advertisement
Callmephil

Welcome NPC 2.0

Sep 23rd, 2013
1,155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 74.62 KB | None | 0 0
  1. /*
  2. //Trinitycore//
  3. Author : Philippe
  4. Special Thanks for : Lea (Ac-Web) / Snyth EmuDev to adding name to spells
  5. Welcome NPC 2.0v
  6. Version : 3.3.5
  7. (Ac-Web)
  8. Original V1 Thread: http://www.ac-web.org/forums/showthread.php?152774-trinitycore-c-Welcome-NPC&highlight=
  9. (Emu-Dev)
  10. Original V2 Thread: http://emudevs.com/showthread.php/1300-Welcome-NPC-V2-0?p=8193#post8193
  11.  
  12. //Spell List % Complete//
  13. Warrior : 100 %
  14. Mage : 100 %
  15. Druid : 100 %
  16. Paladin : 100 %
  17. Warlock : 100 %
  18. Hunter : 100 %
  19. Shaman : 100 %
  20. Rogue : 100 %
  21. Priest : 100 %
  22. DK : 100 %
  23. Mount spells : 100 %
  24.  
  25. //Talent List Spell % Complete//
  26. Warrior : 100 %
  27. Mage : 100 %
  28. Druid : 100 %
  29. Paladin : 100 %
  30. Warlock : 100 %
  31. Hunter : 100 %
  32. Shaman : 100 %
  33. Rogue : 100 %
  34. Priest : 100 %
  35. DK : 100 %
  36.  
  37. //====SQL NPC====//
  38. Set
  39. @NPC_ENTRY = YOUR_ID,
  40. @NPC_MORPH = YOUR_ID,
  41. @NPC_SCRIPTNAME = "npc_welcome",
  42. @NPC_NAME = "Welcome NPC 2.0",
  43. @NPC_SUBNAME = "<Server Name>";
  44.  
  45. INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `modelid1`, `modelid2`, `modelid3`, `modelid4`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction_A`, `faction_H`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `mindmg`, `maxdmg`, `dmgschool`, `attackpower`, `dmg_multiplier`, `baseattacktime`, `rangeattacktime`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `minrangedmg`, `maxrangedmg`, `rangedattackpower`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spell5`, `spell6`, `spell7`, `spell8`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `HoverHeight`, `Health_mod`, `Mana_mod`, `Armor_mod`, `RacialLeader`, `questItem1`, `questItem2`, `questItem3`, `questItem4`, `questItem5`, `questItem6`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `WDBVerified`) VALUES
  46. (@NPC_ENTRY, 0, 0, 0, 0, 0, @NPC_MORPH, 0, 0, 0, @NPC_NAME, @NPC_SUBNAME, '', 0, 80, 80, 0, 35, 35, 129, 1, 1.14286, 1, 3, 13, 17, 0, 42, 1, 1500, 0, 1, 515, 2048, 8, 0, 0, 0, 0, 0, 9, 13, 100, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 7, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2147483647, 2, @NPC_SCRIPTNAME, 12340);
  47. */
  48.  
  49. #include "ScriptPCH.h"
  50.  
  51. enum eIcons
  52. {
  53.     CHAT_ICON               = 0,
  54.     VENDOR_ICON             = 1,
  55.     FLIGHT_ICON             = 2,
  56.     TRAINER_ICON            = 3,
  57.     GEAR_ICON               = 4,
  58.     GEAR_ICON_2             = 5,
  59.     BANK_ICON               = 6,
  60.     CHAT_DOTS_ICON          = 7,
  61.     TABARD_ICON             = 8,
  62.     SWORDS_ICON             = 9,
  63.     GOLD_DOT_ICON           = 10
  64. };
  65.  
  66. enum war_spell
  67. {
  68.     war_spell_Overpower = 7384,
  69.     war_spell_Battle_Shout = 47436,
  70.     war_spell_Heroic_Strike = 47450,
  71.     war_spell_Charge = 11578,
  72.     war_spell_Rend = 47465,
  73.     war_spell_Thunder_Clap = 47502,
  74.     war_spell_Victory_Rush = 34428,
  75.     war_spell_Hamstring = 1715,
  76.     war_spell_Bloodrage = 2687,
  77.     war_spell_Defensive_Stance = 71,
  78.     war_spell_Sunder_Armor = 7386,
  79.     war_spell_Taunt = 355,
  80.     war_spell_Shield_Bash = 72,
  81.     war_spell_Demoralizing_Shout = 47437,
  82.     war_spell_Revenge = 57823,
  83.     war_spell_Mocking_Blow = 694,
  84.     war_spell_Shield_Block = 2565,
  85.     war_spell_Disarm = 676,
  86.     war_spell_Cleave = 47520,
  87.     war_spell_Retaliation = 20230,
  88.     war_spell_Stance_Mastery = 12678,
  89.     war_spell_Execute = 47471,
  90.     war_spell_Challenging_Shout = 1161,
  91.     war_spell_Shield_Wall = 871,
  92.     war_spell_Berserker_Stance = 2458,
  93.     war_spell_Intercept = 20252,
  94.     war_spell_Slam = 47475,
  95.     war_spell_Berserker_Rage = 18499,
  96.     war_spell_Whirlwind = 1680,
  97.     war_spell_Pummel = 6552,
  98.     war_spell_Sheild_Slam = 47488,
  99.     war_spell_Recklessness = 1719,
  100.     war_spell_Spell_Reflection = 23920,
  101.     war_spell_Commanding_Shout = 47440,
  102.     war_spell_Intervene = 3411,
  103.     war_spell_Shattering_Throw = 64382,
  104.     war_spell_Enraged_Regeneration = 55694,
  105.     war_spell_Heroic_Throw = 57755,
  106.     war_spell_Dual_Wield = 42459,
  107.     war_spell_Intimidating_Shout = 5246,
  108.     war_spell_Parry = 3127,
  109.  
  110.     //Talent - War
  111.     war_spell_Devastate = 47498, // Talent - Proto
  112.     war_spell_Mortal_Strike = 47486 // Talent - Arms
  113.  
  114. };
  115.  
  116. enum pala_spell
  117. {
  118.     pala_spell_Parry = 3127,
  119.     pala_spell_Concentration_Aura = 19746,
  120.     pala_spell_Divine_Intervention = 19752,
  121.     pala_spell_Plate_Mail_skill = 750,
  122.     pala_spell_Devotion_Aura = 48942,
  123.     pala_spell_Holy_Light = 48782,
  124.     pala_spell_Blessing_of_Might = 48932,
  125.     pala_spell_Judgement_of_Light = 20271,
  126.     pala_spell_Divine_Protection = 498,
  127.     pala_spell_Hammer_of_Justice = 10308,
  128.     pala_spell_Purify = 1152,
  129.     pala_spell_Hand_of_Protection = 10278,
  130.     pala_spell_Lay_on_Hands = 48788,
  131.     pala_spell_Judgement_of_Wisdom = 53408,
  132.     pala_spell_Redemption = 48950,
  133.     pala_spell_Blessing_of_Wisdom = 48936,
  134.     pala_spell_Righteous_Defense = 31789,
  135.     pala_spell_Hand_of_Reckoning = 62124,
  136.     pala_spell_Retribution_Aura = 54043,
  137.     pala_spell_Righteous_Fury = 25780,
  138.     pala_spell_Hand_of_Freedom = 1044,
  139.     pala_spell_Blessing_of_Kings = 20217,
  140.     pala_spell_Consecration = 48819,
  141.     pala_spell_Exorcism = 48801,
  142.     pala_spell_Flash_of_Light = 48785,
  143.     pala_spell_Sense_Undead = 5502,
  144.     pala_spell_Seal_of_Justice = 20164,
  145.     pala_spell_Turn_Evil = 10326,
  146.     pala_spell_Hand_of_Salvation = 1038,
  147.     pala_spell_Judgement_of_Justice = 53407,
  148.     pala_spell_Shadow_Resistance_Aura = 48943,
  149.     pala_spell_Seal_of_Light = 20165,
  150.     pala_spell_Frost_Resistance_Aura = 48945,
  151.     pala_spell_Divine_Shield = 642,
  152.     pala_spell_Fire_Resistance_Aura = 48947,
  153.     pala_spell_Seal_of_Wisdom = 20166,
  154.     pala_spell_Cleanse = 4987,
  155.     pala_spell_Hammer_of_Wrath = 48806,
  156.     pala_spell_Hand_of_Sacrifice = 6940,
  157.     pala_spell_Holy_Wrath = 48817,
  158.     pala_spell_Greater_Blessing_of_Might = 48934,
  159.     pala_spell_Greater_Blessing_of_Wisdom = 48938,
  160.     pala_spell_Greater_Blessing_of_Kings = 25898,
  161.     pala_spell_Crusader_Aura = 32223,
  162.     pala_spell_Avenging_Wrath = 31884,
  163.     pala_spell_Divine_Plea = 54428,
  164.     pala_spell_Shield_of_Righteousness = 61411,
  165.     pala_spell_Sacred_Shield = 53601,
  166.     pala_spell_Seal_of_Vengeance = 31801, // Alliance
  167.     pala_spell_Warhorse = 13819, // Alliance
  168.     pala_spell_Charger = 23214, // Alliance
  169.     pala_spell_Seal_of_Corruption = 53736, // Horde
  170.     pala_spell_Thalassian_Warhorse = 34769, // Horde
  171.     pala_spell_Thalassian_Charger = 34767, // Horde
  172.  
  173.     //Talent - Paladin
  174.     pala_spell_Holy_Shield = 48952,  // Talent - Protection
  175.     pala_spell_Avengers_Shield = 48827,  // Talent - Protection
  176.     pala_spell_Greater_Blessing_of_Sanctuary = 25899, // Talents - Protection
  177.     pala_spell_Holy_Shock = 48825, // Talents - Holy
  178.  
  179.  
  180.  
  181. };
  182.  
  183. enum mage_spell
  184. {
  185.     mage_spell_Arcane_Explosion = 42921,
  186.     mage_spell_Frostbolt = 42842,
  187.     mage_spell_Arcane_Intellect = 42995,
  188.     mage_spell_Fireball = 42833,
  189.     mage_spell_Conjure_Water = 27090,
  190.     mage_spell_Conjure_Food = 33717,
  191.     mage_spell_Fire_Blast = 42873,
  192.     mage_spell_Arcane_Missiles = 42846,
  193.     mage_spell_Polymorph = 12826,
  194.     mage_spell_Polymorph_Turtle = 28271,
  195.     mage_spell_Polymorph_Turkey = 61780,
  196.     mage_spell_Polymorph_Rabbit = 61721,
  197.     mage_spell_Polymorph_Pig = 28272,
  198.     mage_spell_Frost_Nova = 42917,
  199.     mage_spell_Dampen_Magic = 43015,
  200.     mage_spell_Slow_Fall = 130,
  201.     mage_spell_Flamestrike = 42926,
  202.     mage_spell_Amplify_Magic = 43017,
  203.     mage_spell_Remove_Curse = 475,
  204.     mage_spell_Blink = 1953,
  205.     mage_spell_Blizzard = 42940,
  206.     mage_spell_Evocation = 12051,
  207.     mage_spell_Fire_Ward = 43010,
  208.     mage_spell_Mana_Shield = 43020,
  209.     mage_spell_Frost_Ward = 43012,
  210.     mage_spell_Scorch = 42859,
  211.     mage_spell_Counterspell = 2139,
  212.     mage_spell_Cone_of_Cold = 42931,
  213.     mage_spell_Conjure_Mana_Gem = 42985,
  214.     mage_spell_Ice_Armor = 43008,
  215.     mage_spell_Ice_Block = 45438,
  216.     mage_spell_Mage_Armor = 43024,
  217.     mage_spell_Arcane_Brilliance = 43002,
  218.     mage_spell_Molten_Armor = 43046,
  219.     mage_spell_Arcane_Blast = 42897,
  220.     mage_spell_Ice_Lance = 42914,
  221.     mage_spell_Invisibility = 66,
  222.     mage_spell_Ritual_of_Refreshment = 58659,
  223.     mage_spell_Spellsteal = 30449,
  224.     mage_spell_Conjure_Refreshment = 42956,
  225.     mage_spell_Frostfire_Bolt = 47610,
  226.     mage_spell_Dalaran_Brilliance = 61316,
  227.     mage_spell_Dalaran_Intellect = 61024,
  228.     mage_spell_Mirror_Image = 55342,
  229.     mage_spell_Portal_Dalaran = 53142,
  230.     mage_spell_Frost_Armor = 7301,
  231.  
  232.     mage_spell_Teleport_Exodar = 32271, // Alliance
  233.     mage_spell_Teleport_Theramore = 49359, // Alliance
  234.     mage_spell_Teleport_Darnassus = 3565, // Alliance
  235.     mage_spell_Teleport_Shattrath = 33690, // Alliance
  236.     mage_spell_Teleport_Ironforge = 3562, // Alliance
  237.     mage_spell_Teleport_Stromwind = 3561, // Alliance
  238.     mage_spell_Portal_Darnassus = 11419, // Alliance
  239.     mage_spell_Portal_Exodar = 32266, // Alliance
  240.     mage_spell_Portal_Ironforge = 11416, // Alliance
  241.     mage_spell_Portal_Shattrath = 33691, // Alliance
  242.     mage_spell_Portal_Theramore = 49360, // Alliance
  243.  
  244.     mage_spell_Teleport_Orgrimmar = 3567, // Horde
  245.     mage_spell_Teleport_Shattrath_H = 35715, // Horde
  246.     mage_spell_Teleport_Thunder_Bluff = 3566, // Horde
  247.     mage_spell_Teleport_Stonard = 49358, // Horde
  248.     mage_spell_Teleport_Silvermoon = 32272, // Horde
  249.     mage_spell_Teleport_Undercity = 3563, // Horde
  250.     mage_spell_Portal_Orgrimmar = 11417, // Horde
  251.     mage_spell_Portal_Shattrath_H = 35717, // Horde
  252.     mage_spell_Portal_Silvermoon = 32267, // Horde
  253.     mage_spell_Portal_Stonard = 49361, // Horde
  254.     mage_spell_Portal_Thunder_Bluff = 11420, // Horde
  255.     mage_spell_Portal_Undercity = 11418, // Horde  
  256.  
  257.  
  258.     //Talent - Mage
  259.     mage_spell_Pyroblast = 42891, // Talent - Fire
  260.     mage_spell_Ice_Barrier = 43039, // Talent - Frost
  261.     mage_spell_Living_Bomb = 55360, // Talent - Fire
  262.     mage_spell_Dragons_Breath = 42950, // Talent - Fire
  263.     mage_spell_Blast_Wave = 42945, // Talent - Fire
  264.     mage_spell_Arcane_Barrage = 44781 // Talent - Arcane
  265.  
  266. };
  267.  
  268. enum dk_spell
  269. {
  270.     dk_spell_Parry = 3127,
  271.     dk_spell_Pestilence = 50842,
  272.     dk_spell_Blood_Boil = 49941,
  273.     dk_spell_Blood_Strike = 49930,
  274.     dk_spell_Strangulate = 47476,
  275.     dk_spell_Blood_Tap = 45529,
  276.     dk_spell_Path_of_Frost = 3714,
  277.     dk_spell_Dark_Command = 56222,
  278.     dk_spell_Death_Pact = 48743,
  279.     dk_spell_Frost_Presence = 48263,
  280.     dk_spell_Icy_Touch = 49909,
  281.     dk_spell_Mind_Freeze = 47528,
  282.     dk_spell_Chains_of_Ice = 45524,
  283.     dk_spell_Icebound_Fortitude = 48792,
  284.     dk_spell_Horn_of_Winter = 57623,
  285.     dk_spell_Rune_Strike = 56815,
  286.     dk_spell_Empower_Rune_Weapon = 47568,
  287.     dk_spell_Death_Coil = 49895,
  288.     dk_spell_Death_Gate = 50977,
  289.     dk_spell_Plague_Strike = 49921,
  290.     dk_spell_Death_Grip = 49576,
  291.     dk_spell_Raise_Dead = 46584,
  292.     dk_spell_Death_and_Decay = 49938,
  293.     dk_spell_Anti_Magic_Shell = 48707,
  294.     dk_spell_Unholy_Presence = 48265,
  295.     dk_spell_Raise_Ally = 61999,
  296.     dk_spell_Army_of_the_Dead = 42650,
  297.     dk_spell_Runeforging_skill = 53428,
  298.     dk_spell_Uknowas = 53331,
  299.     dk_spell_Uknowah = 54447,
  300.     dk_spell_Uknowai = 53342,
  301.     dk_spell_Uknowaz = 54446,
  302.     dk_spell_Uknowan = 53323,
  303.     dk_spell_Uknowab = 53344,
  304.     dk_spell_Uknowav = 70164,
  305.     dk_spell_Uknowaj = 62158,
  306.     dk_spell_Uknowaq = 33391,
  307.     dk_spell_Acherus_Deathcharger = 48778,
  308.     dk_spell_Obliterate = 51425,
  309.     dk_spell_Death_Strike = 49924,
  310.  
  311.     //Talent - Deathknight
  312.     dk_spell_Heart_Strike = 55262, // Talent - Blood
  313.     dk_spell_Frost_Strike = 55268, // Talent - Frost
  314.     dk_spell_Howling_Blast = 51411, // Talent - Frost
  315.     dk_spell_Scourge_Strike = 55271, // Talent - Unholy
  316.     dk_spell_Corpse_Explosion = 51328 // Talent - Unholy
  317.  
  318. };
  319.  
  320. enum druid_spell
  321. {
  322.     druid_spell_Healing_Touch = 48378,
  323.     druid_spell_Mark_of_the_Wild = 48469,
  324.     druid_spell_Wrath = 48461,
  325.     druid_spell_Moonfire = 48463,
  326.     druid_spell_Rejuvenation = 48441,
  327.     druid_spell_Thorns = 53307,
  328.     druid_spell_Entangling_Roots = 53308,
  329.     druid_spell_Bear_Form = 5487,
  330.     druid_spell_Demoralizing_Roar = 48560,
  331.     druid_spell_Growl = 6795,
  332.     druid_spell_Maul = 48480,
  333.     druid_spell_Natures_Grasp = 53312,
  334.     druid_spell_Teleport_Moonglade = 18960,
  335.     druid_spell_Enrage = 5229,
  336.     druid_spell_Regrowth = 48443,
  337.     druid_spell_Revive = 50763,
  338.     druid_spell_Bash = 8983,
  339.     druid_spell_Cure_Poison = 8946,
  340.     druid_spell_Aquatic_Form = 1066,
  341.     druid_spell_Swipe_Bear = 48562,
  342.     druid_spell_Travel_Form = 783,
  343.     druid_spell_Faerie_Fire = 770,
  344.     druid_spell_Faerie_Fire_Feral = 16857,
  345.     druid_spell_Hibernate = 18658,
  346.     druid_spell_Cat_Form = 768,
  347.     druid_spell_Feral_Charge_Bear = 16979,
  348.     druid_spell_Feral_Charge_Cat = 49376,
  349.     druid_spell_Prowl = 5215,
  350.     druid_spell_Rebirth = 48477,
  351.     druid_spell_Rip = 49800,
  352.     druid_spell_Starfire = 48465,
  353.     druid_spell_Shred = 48572,
  354.     druid_spell_Soothe_Animal = 26995,
  355.     druid_spell_Rake = 48574,
  356.     druid_spell_Remove_Curse = 2782,
  357.     druid_spell_Tigers_Fury = 50213,
  358.     druid_spell_Abolish_Poison = 2893,
  359.     druid_spell_Dash = 33357,
  360.     druid_spell_Challenging_Roar = 5209,
  361.     druid_spell_Cower = 48575,
  362.     druid_spell_Tranquility = 48447,
  363.     druid_spell_Ferocious_Bite = 48577,
  364.     druid_spell_Ravage = 48579,
  365.     druid_spell_Track_Humanoids = 5225,
  366.     druid_spell_Frenzied_Regeneration = 22842,
  367.     druid_spell_Pounce = 49803,
  368.     druid_spell_Dire_Bear_Form = 9634,
  369.     druid_spell_Feline_Grace = 20719,
  370.     druid_spell_Hurricane = 48467,
  371.     druid_spell_Innervate = 29166,
  372.     druid_spell_Savage_Defense = 62600,
  373.     druid_spell_Barkskin = 22812,
  374.     druid_spell_Gift_of_the_Wild = 48470,
  375.     druid_spell_Mangle_Bear = 48564,
  376.     druid_spell_Mangle_Cat = 48566,
  377.     druid_spell_Flight_Form = 33943,
  378.     druid_spell_Maim = 49802,
  379.     druid_spell_Lifebloom = 48451,
  380.     druid_spell_Lacerate = 48568,
  381.     druid_spell_Cyclone = 33786,
  382.     druid_spell_Swift_Flight_Form = 40120,
  383.     druid_spell_Swipe_Cat = 62078,
  384.     druid_spell_Savage_Roar = 52610,
  385.     druid_spell_Nourish = 50464,
  386.     druid_spell_Claw_1 = 1082,
  387.     druid_spell_Claw = 48570,
  388.  
  389.     //Talent - Druid
  390.     druid_spell_Typhoon = 61384, // Talent - Balance
  391.     druid_spell_Starfall = 53201, // Talent - Balance
  392.     druid_spell_Wild_Growth = 53251, // Talent - Restoration
  393.     druid_spell_Insect_Swarm = 48468 // Talent - Balance
  394.  
  395. };
  396.  
  397. enum shaman_spell
  398. {
  399.     shaman_spell_Earth_Elemental_Totem = 2062,
  400.     shaman_spell_Healing_Wave = 49273,
  401.     shaman_spell_Lightning_Bolt = 49238,
  402.     shaman_spell_Rockbiter_Weapon = 10399,
  403.     shaman_spell_Earth_Shock = 49231,
  404.     shaman_spell_Stoneskin_Totem = 58753,
  405.     shaman_spell_Earthbind_Totem = 2484,
  406.     shaman_spell_Lightning_Shield = 49281,
  407.     shaman_spell_Stoneclaw_Totem = 58582,
  408.     shaman_spell_Flame_Shock = 49233,
  409.     shaman_spell_Flametongue_Weapon = 58790,
  410.     shaman_spell_Searing_Totem = 58704,
  411.     shaman_spell_Strength_of_Earth_Totem = 58643,
  412.     shaman_spell_Ancestral_Spirit = 49277,
  413.     shaman_spell_Fire_Nova = 61657,
  414.     shaman_spell_Purge = 8012,
  415.     shaman_spell_Cure_Toxins = 526,
  416.     shaman_spell_Ghost_Wolf = 2645,
  417.     shaman_spell_Wind_Shear = 57994,
  418.     shaman_spell_Tremor_Totem = 8143,
  419.     shaman_spell_Frost_Shock = 49236,
  420.     shaman_spell_Frostbrand_Weapon = 58796,
  421.     shaman_spell_Healing_Stream_Totem = 58757,
  422.     shaman_spell_Lesser_Healing_Wave = 49276,
  423.     shaman_spell_Water_Shield = 57960,
  424.     shaman_spell_Water_Breathing = 131,
  425.     shaman_spell_Frost_Resistance_Totem = 58745,
  426.     shaman_spell_Far_Sight = 6196,
  427.     shaman_spell_Magma_Totem = 58734,
  428.     shaman_spell_Mana_Spring_Totem = 58774,
  429.     shaman_spell_Fire_Resistance_Totem = 58739,
  430.     shaman_spell_Flametongue_Totem = 58656,
  431.     shaman_spell_Water_Walking = 546,
  432.     shaman_spell_Astral_Recall = 556,
  433.     shaman_spell_Call_of_the_Elements = 66842,
  434.     shaman_spell_Earthliving_Weapon = 51994,
  435.     shaman_spell_Grounding_Totem = 8177,
  436.     shaman_spell_Nature_Resistance_Totem = 58749,
  437.     shaman_spell_Reincarnation = 20608,
  438.     shaman_spell_Totemic_Recall = 36936,
  439.     shaman_spell_Windfury_Weapon = 58804,
  440.     shaman_spell_Chain_Lightning = 49271,
  441.     shaman_spell_Windfury_Totem = 8512,
  442.     shaman_spell_Sentry_Totem = 6495,
  443.     shaman_spell_Cleansing_Totem = 8170,
  444.     shaman_spell_Call_of_the_Ancestors = 66843,
  445.     shaman_spell_Chain_Heal = 55459,
  446.     shaman_spell_Call_of_the_Spirits = 66844,
  447.     shaman_spell_Wrath_of_Air_Totem = 3738,
  448.     shaman_spell_Fire_Elemental_Totem = 2894,
  449.     shaman_spell_Lava_Burst = 60043,
  450.     shaman_spell_Hex = 51514,
  451.     shaman_spell_Bloodlust = 2825, // Horde
  452.     shaman_spell_Heroism = 32182, // Alliance
  453.  
  454.     //Talent - Shaman
  455.     shaman_spell_Riptide = 61301, // Talent - Restoration
  456.     shaman_spell_Earth_Shield = 49284, // Talent - Restoration
  457.     shaman_spell_Totem_of_Wrath = 57722, // Talent - Elemental
  458.     shaman_spell_Thunderstorm = 59159   // Talent - Elemental
  459.  
  460. };
  461.  
  462. enum hunter_spell
  463. {
  464.     hunter_spell_Scorpid_Sting = 3043,
  465.     hunter_spell_Parry = 3127,
  466.     hunter_spell_Rapid_Fire = 3045,
  467.     hunter_spell_Viper_Sting = 3034,
  468.     hunter_spell_Track_Beasts = 1494,
  469.     hunter_spell_Aspect_of_the_Monkey = 13163,
  470.     hunter_spell_Raptor_Strike = 48996,
  471.     hunter_spell_Serpent_Sting = 49001,
  472.     hunter_spell_Arcane_Shot = 49045,
  473.     hunter_spell_Hunters_Mark = 53338,
  474.     hunter_spell_Concussive_Shot = 5116,
  475.     hunter_spell_Aspect_of_the_Hawk = 27044,
  476.     hunter_spell_Call_Pet = 883,
  477.     hunter_spell_Dismiss_Pet = 2641,
  478.     hunter_spell_Feed_Pet = 6991,
  479.     hunter_spell_Revive_Pet = 982,
  480.     hunter_spell_Tame_Beast = 1515,
  481.     hunter_spell_Track_Humanoids = 19883,
  482.     hunter_spell_Distracting_Shot = 20736,
  483.     hunter_spell_Mend_Pet = 48990,
  484.     hunter_spell_Wing_Clip = 2974,
  485.     hunter_spell_Eagle_Eye = 6197,
  486.     hunter_spell_Eyes_of_the_Beast = 1002,
  487.     hunter_spell_Scare_Beast = 14327,
  488.     hunter_spell_Aspect_of_the_Cheetah = 5118,
  489.     hunter_spell_Immolation_Trap = 49056,
  490.     hunter_spell_Mongoose_Bite = 53339,
  491.     hunter_spell_Multi_Shot = 49048,
  492.     hunter_spell_Track_Undead = 19884,
  493.     hunter_spell_Aspect_of_the_Viper = 34074,
  494.     hunter_spell_Disengage = 781,
  495.     hunter_spell_Freezing_Trap = 14311,
  496.     hunter_spell_Beast_Lore = 1462,
  497.     hunter_spell_Track_Hidden = 19885,
  498.     hunter_spell_Track_Elementals = 19880,
  499.     hunter_spell_Frost_Trap = 13809,
  500.     hunter_spell_Aspect_of_the_Beast = 13161,
  501.     hunter_spell_Feign_Death = 5384,
  502.     hunter_spell_Flare = 1543,
  503.     hunter_spell_Track_Demons = 19878,
  504.     hunter_spell_Explosive_Trap = 49067,
  505.     hunter_spell_Aspect_of_the_Pack = 13159,
  506.     hunter_spell_Track_Giants = 19882,
  507.     hunter_spell_Volley = 58434,
  508.     hunter_spell_Aspect_of_the_Wild = 49071,
  509.     hunter_spell_Steady_Shot = 49052,
  510.     hunter_spell_Track_Dragonkin = 19879,
  511.     hunter_spell_Deterrence = 19263,
  512.     hunter_spell_Tranquilizing_Shot = 19801,
  513.     hunter_spell_Kill_Command = 34026,
  514.     hunter_spell_Snake_Trap = 34600,
  515.     hunter_spell_Misdirection = 34477,
  516.     hunter_spell_Kill_Shot = 61006,
  517.     hunter_spell_Aspect_of_the_Dragonhawk = 61847,
  518.     hunter_spell_Masters_Call = 53271,
  519.     hunter_spell_Freezing_Arrow = 60192,
  520.     hunter_spell_Call_Stabled_Pet = 62757,
  521.     hunter_spell_Dual_Wield = 42459,
  522.  
  523.     //Talent - Hunter
  524.     hunter_spell_Wyvern_Sting = 49012,  // Talent - Survival
  525.     hunter_spell_Explosive_Shot = 60053, // Talent - Survival
  526.     hunter_spell_Conterattack = 48999, // Talent - Survival
  527.     hunter_spell_Aimed_Shot = 49050  // Talent - Marksmanship
  528.  
  529.  
  530. };
  531.  
  532. enum rogue_spell
  533. {
  534.     rogue_spell_Parry = 3127,
  535.     rogue_spell_Dual_Wield = 42459,
  536.     rogue_spell_Eviscerate = 48668,
  537.     rogue_spell_Sinister_Strike = 48638,
  538.     rogue_spell_Stealth = 1784,
  539.     rogue_spell_Backstab = 48657,
  540.     rogue_spell_Pick_Pocket = 921,
  541.     rogue_spell_Gouge = 1776,
  542.     rogue_spell_Evasion = 26669,
  543.     rogue_spell_Sap = 51724,
  544.     rogue_spell_Slice_and_Dice = 6774,
  545.     rogue_spell_Sprint = 11305,
  546.     rogue_spell_Kick = 1766,
  547.     rogue_spell_Garrote = 48676,
  548.     rogue_spell_Feint = 48659,
  549.     rogue_spell_Lockpicking_skill = 1804,
  550.     rogue_spell_Expose_Armor = 8647,
  551.     rogue_spell_Ambush = 48691,
  552.     rogue_spell_Dismantle = 51722,
  553.     rogue_spell_Rupture = 48672,
  554.     rogue_spell_Distract = 1725,
  555.     rogue_spell_Vanish = 26889,
  556.     rogue_spell_Detect_Traps = 2836,
  557.     rogue_spell_Cheap_Shot = 1833,
  558.     rogue_spell_Disarm_Trap = 1842,
  559.     rogue_spell_Kidney_Shot = 8643,
  560.     rogue_spell_Blind = 2094,
  561.     rogue_spell_Safe_Fall = 1860,
  562.     rogue_spell_Envenom = 57993,
  563.     rogue_spell_Deadly_Throw = 48674,
  564.     rogue_spell_Cloak_of_Shadows = 31224,
  565.     rogue_spell_Shiv = 5938,
  566.     rogue_spell_Tricks_of_the_Trade = 57934,
  567.     rogue_spell_Fan_of_Knives = 51723,
  568.  
  569.     //Talent - Rogue
  570.     rogue_spell_Hemorrhage = 48660, // Talent - Subtlety
  571.     rogue_spell_Mutilate = 48666 // Talent - Assassination
  572.  
  573.  
  574. };
  575.  
  576. enum priest_spell
  577. {
  578.     priest_spell_Cure_Disease = 528,
  579.     priest_spell_Lesser_Heal = 2053,
  580.     priest_spell_Power_Word_Fortitude = 48161,
  581.     priest_spell_Smite = 48123,
  582.     priest_spell_Shadow_Word_Pain = 48125,
  583.     priest_spell_Power_Word_Shield = 48066,
  584.     priest_spell_Fade = 586,
  585.     priest_spell_Renew = 48068,
  586.     priest_spell_Mind_Blast = 48127,
  587.     priest_spell_Resurrection = 48171,
  588.     priest_spell_Inner_Fire = 48168,
  589.     priest_spell_Psychic_Scream = 10890,
  590.     priest_spell_Heal = 6064,
  591.     priest_spell_Dispel_Magic = 988,
  592.     priest_spell_Devouring_Plague = 48300,
  593.     priest_spell_Fear_Ward = 6346,
  594.     priest_spell_Flash_Heal = 48071,
  595.     priest_spell_Holy_Fire = 48135,
  596.     priest_spell_Holy_Nova = 48078,
  597.     priest_spell_Mind_Soothe = 453,
  598.     priest_spell_Shackle_Undead = 10955,
  599.     priest_spell_Mind_Vision = 10909,
  600.     priest_spell_Mana_Burn = 8129,
  601.     priest_spell_Divine_Spirit = 48073,
  602.     priest_spell_Mind_Control = 605,
  603.     priest_spell_Prayer_of_Healing = 48072,
  604.     priest_spell_Shadow_Protection = 48169,
  605.     priest_spell_Abolish_Disease = 552,
  606.     priest_spell_Levitate = 1706,
  607.     priest_spell_Greater_Heal = 48063,
  608.     priest_spell_Prayer_of_Fortitude = 48162,
  609.     priest_spell_Prayer_of_Shadow_Protection = 48170,
  610.     priest_spell_Prayer_of_Spirit = 48074,
  611.     priest_spell_Shadow_Word_Death = 48158,
  612.     priest_spell_Binding_Heal = 48120,
  613.     priest_spell_Shadowfiend = 34433,
  614.     priest_spell_Prayer_of_Mending = 48113,
  615.     priest_spell_Mass_Dispel = 32375,
  616.     priest_spell_Divine_Hymn = 64843,
  617.     priest_spell_Hymn_of_Hope = 64901,
  618.     priest_spell_Mind_Sear = 53023,
  619.  
  620.     //Talent - Priest
  621.     priest_spell_Vampiric_Touch = 48160, // Talent - Shadow
  622.     priest_spell_Penance = 53007, // Talent - Discipline
  623.     priest_spell_Lightwell = 48087, // Talent - Holy
  624.     priest_spell_Desperate_Prayer = 48173, // Talent - Holy
  625.     priest_spell_Circle_of_Healing = 48089, // Talent - Holy
  626.     priest_spell_Mind_Flay = 48156 // Talent - Shadow
  627.  
  628. };
  629.  
  630. enum warlock_spell
  631. {
  632.     warlock_spell_Demon_Skin = 696,
  633.     warlock_spell_Immolate = 47811,
  634.     warlock_spell_Shadow_Bolt = 47809,
  635.     warlock_spell_Summon_Imp = 688,
  636.     warlock_spell_Corruption = 47813,
  637.     warlock_spell_Curse_of_Weakness = 50511,
  638.     warlock_spell_Life_Tap = 57946,
  639.     warlock_spell_Curse_of_Agony = 47864,
  640.     warlock_spell_Fear = 6215,
  641.     warlock_spell_Create_Healthstone = 47878,
  642.     warlock_spell_Drain_Soul = 47855,
  643.     warlock_spell_Summon_Voidwalker = 697,
  644.     warlock_spell_Health_Funnel = 47856,
  645.     warlock_spell_Drain_Life = 47857,
  646.     warlock_spell_Unending_Breath = 5697,
  647.     warlock_spell_Create_Soulstone = 47884,
  648.     warlock_spell_Searing_Pain = 47815,
  649.     warlock_spell_Demon_Armor = 47889,
  650.     warlock_spell_Rain_of_Fire = 47820,
  651.     warlock_spell_Ritual_of_Summoning = 698,
  652.     warlock_spell_Summon_Succubus = 712,
  653.     warlock_spell_Eye_of_Kilrogg = 126,
  654.     warlock_spell_Drain_Mana = 5138,
  655.     warlock_spell_Sense_Demons = 5500,
  656.     warlock_spell_Curse_of_Tongues = 11719,
  657.     warlock_spell_Detect_Invisibility = 132,
  658.     warlock_spell_Create_Firestone = 60220,
  659.     warlock_spell_Banish = 18647,
  660.     warlock_spell_Enslave_Demon = 61191,
  661.     warlock_spell_Hellfire = 47823,
  662.     warlock_spell_Summon_Felhunter = 691,
  663.     warlock_spell_Curse_of_the_Elements = 47865,
  664.     warlock_spell_Shadow_Ward = 47891,
  665.     warlock_spell_Create_Spellstone = 47888,
  666.     warlock_spell_Howl_of_Terror = 17928,
  667.     warlock_spell_Death_Coil = 47860,
  668.     warlock_spell_Soul_Fire = 47825,
  669.     warlock_spell_Inferno = 1122,
  670.     warlock_spell_Curse_of_Doom = 47867,
  671.     warlock_spell_Ritual_of_Doom = 18540,
  672.     warlock_spell_Fel_Armor = 47893,
  673.     warlock_spell_Incinerate = 47838,
  674.     warlock_spell_Soulshatter = 29858,
  675.     warlock_spell_Ritual_of_Souls = 58887,
  676.     warlock_spell_Seed_of_Corruption = 47836,
  677.     warlock_spell_Shadowflame = 61290,
  678.     warlock_spell_Demonic_Circle_Summon = 48018,
  679.     warlock_spell_Demonic_Circle_Teleport = 48020,
  680.     warlock_spell_Dreadsteed = 23161,
  681.  
  682.     //Talent - Warlock
  683.     warlock_spell_Shadowburn = 47827, // Talent - Destruction
  684.     warlock_spell_Shadowfury = 47847, // Talent - Destruction
  685.     warlock_spell_Unstable_Affliction = 47843, // Talent - Affliction
  686.     warlock_spell_Chaos_Bolt = 59172, // Talent - Destruction
  687.     warlock_spell_Haunt = 59164, // Talent - Affliction
  688.     warlock_spell_Dark_Pact = 59092 // Talent - Affliction
  689.  
  690. };
  691.  
  692.  
  693. enum mount_spell
  694. {
  695.     //mount_spell_Master_Riding = 90265, cata
  696.     mount_spell_Journeyman_Riding = 33392,
  697.     mount_spell_Cold_Weather_Flying = 54197,
  698.     mount_spell_Flight_Master_License = 90267
  699. };
  700.  
  701. enum mount_item_id
  702. {  
  703.     Mount_Invincibles_Reins = 50818,
  704. };
  705.  
  706. //////////////////////WELCOME MENU/////////////////////////////////
  707. #define Class_Skills  "I would like to learn my Class & Weapon skills"     
  708. #define Glyph_Menu    "I would like to buy somes glyphs"
  709. #define Talent_Skills "Talent Skills & Reset Talents"
  710. #define Riding_Skills "I would like to learn my Riding skills"
  711. #define nevermind     "[nevermind]"      
  712. #define back          "[back]"
  713. //SUB WELCOME MENU//
  714. #define SUB_MENU_TALENT_OPTION_1 "Maxskill my Talent"
  715. #define SUB_MENU_TALENT_OPTION_2 "Reset My Talent"
  716. /////////////////////NPC ID MENU////////////////////////////////
  717. /*You need to do 10 npc for this (Experimental)*/
  718. //Change 0 To your NPC Vendor ID
  719. enum GLYPH_NPC_ID
  720. {
  721. GLYPH_NPC_ID_WARRIOR = 0,
  722. GLYPH_NPC_ID_PALADIN = 0,
  723. GLYPH_NPC_ID_HUNTER  = 0,
  724. GLYPH_NPC_ID_MAGE    = 0,
  725. GLYPH_NPC_ID_PRIEST  = 0,
  726. GLYPH_NPC_ID_ROGUE   = 0,
  727. GLYPH_NPC_ID_DRUID   = 0,
  728. GLYPH_NPC_ID_WARLOCK = 0,
  729. GLYPH_NPC_ID_DK      = 0,
  730. GLYPH_NPC_ID_SHAMAN  = 0
  731. };
  732. enum CLASSES_MENU_ID
  733. {
  734.     MENU_WARRIOR        = 1,
  735.     MENU_PALADIN        = 2,
  736.     MENU_HUNTER         = 3,
  737.     MENU_ROGUE          = 4,
  738.     MENU_PRIEST         = 5,
  739.     MENU_DEATH_K        = 6,
  740.     MENU_SHAMAN         = 7,
  741.     MENU_MAGE           = 8,
  742.     MENU_WARLOCK        = 9,
  743.     MENU_DRUID          = 10
  744. };
  745.  
  746. enum OPTION_MENU_ID //11->50
  747. {
  748.     OPTION_MENU_ID_1    = 11,
  749.     OPTION_MENU_ID_2    = 12,
  750.     OPTION_MENU_ID_3    = 13,
  751.     OPTION_MENU_ID_4    = 14
  752. };
  753.  
  754. enum SUB_OPTION_MENU_ID //51->100
  755. {
  756.     SUB_OPTION_MENU_ID_1    = 51,
  757.     SUB_OPTION_MENU_ID_2    = 52,
  758.     SUB_OPTION_MENU_ID_3    = 53,
  759.     SUB_OPTION_MENU_ID_4    = 54
  760. };
  761.  
  762. enum BACK_OPTION //1000->
  763. {  
  764.     BACK_OPTION_MENU_1      = 1000, //Main Menu
  765.     BACK_OPTION_MENU_2      = 1001, //Other
  766. };
  767.  
  768. class npc_welcome : public CreatureScript
  769. {
  770. public:
  771.     npc_welcome() : CreatureScript("npc_welcome") { }
  772.  
  773.     bool OnGossipHello(Player* player, Creature* creature)
  774.     {
  775.         if (player->getLevel() >= 80)
  776.         {
  777.             {
  778.                 player->PrepareQuestMenu(creature->GetGUID());
  779.                 player->SendPreparedQuest(creature->GetGUID());
  780.             }
  781.             if (player->getClass() == CLASS_WARRIOR)
  782.             {
  783.                 player->ADD_GOSSIP_ITEM(TRAINER_ICON, Class_Skills, GOSSIP_SENDER_MAIN, MENU_WARRIOR);
  784.             }
  785.             if (player->getClass() == CLASS_PALADIN)
  786.             {
  787.                 player->ADD_GOSSIP_ITEM(TRAINER_ICON, Class_Skills, GOSSIP_SENDER_MAIN, MENU_PALADIN);
  788.             }
  789.             if (player->getClass() == CLASS_HUNTER)
  790.             {
  791.                 player->ADD_GOSSIP_ITEM(TRAINER_ICON, Class_Skills, GOSSIP_SENDER_MAIN, MENU_HUNTER);
  792.             }
  793.             if (player->getClass() == CLASS_ROGUE)
  794.             {
  795.                 player->ADD_GOSSIP_ITEM(TRAINER_ICON, Class_Skills, GOSSIP_SENDER_MAIN, MENU_ROGUE);
  796.             }
  797.             if (player->getClass() == CLASS_PRIEST)
  798.             {
  799.                 player->ADD_GOSSIP_ITEM(TRAINER_ICON, Class_Skills, GOSSIP_SENDER_MAIN, MENU_PRIEST);
  800.             }
  801.             if (player->getClass() == CLASS_DEATH_KNIGHT)
  802.             {
  803.                 player->ADD_GOSSIP_ITEM(TRAINER_ICON, Class_Skills, GOSSIP_SENDER_MAIN, MENU_DEATH_K);
  804.             }
  805.             if (player->getClass() == CLASS_SHAMAN)
  806.             {
  807.                 player->ADD_GOSSIP_ITEM(TRAINER_ICON, Class_Skills, GOSSIP_SENDER_MAIN, MENU_SHAMAN);
  808.             }
  809.             if (player->getClass() == CLASS_MAGE)
  810.             {
  811.                 player->ADD_GOSSIP_ITEM(TRAINER_ICON, Class_Skills, GOSSIP_SENDER_MAIN, MENU_MAGE);
  812.             }
  813.             if (player->getClass() == CLASS_WARLOCK)
  814.             {
  815.                 player->ADD_GOSSIP_ITEM(TRAINER_ICON, Class_Skills, GOSSIP_SENDER_MAIN, MENU_WARLOCK);
  816.             }
  817.             if (player->getClass() == CLASS_DRUID)
  818.             {
  819.                 player->ADD_GOSSIP_ITEM(TRAINER_ICON, Class_Skills, GOSSIP_SENDER_MAIN, MENU_DRUID);
  820.             }
  821.  
  822.             player->ADD_GOSSIP_ITEM(TRAINER_ICON, Talent_Skills, GOSSIP_SENDER_MAIN, OPTION_MENU_ID_1);
  823.             player->ADD_GOSSIP_ITEM(TRAINER_ICON, Riding_Skills, GOSSIP_SENDER_MAIN, OPTION_MENU_ID_2);
  824.             player->ADD_GOSSIP_ITEM(VENDOR_ICON, Glyph_Menu, GOSSIP_SENDER_MAIN, OPTION_MENU_ID_3);
  825.             player->SEND_GOSSIP_MENU(1, creature->GetGUID());
  826.         }
  827.         else
  828.         {
  829.             player->PlayerTalkClass->SendCloseGossip();
  830.             return false;
  831.         }
  832.         return true;
  833.     }
  834.  
  835.     bool OnGossipSelect(Player* player, Creature* creature, uint32 sender, uint32 action)
  836.     {
  837.         WorldSession * PGS = player->GetSession();
  838.  
  839.         player->PlayerTalkClass->ClearMenus();
  840.         {
  841.             //  /**DUAL SPEC*////////////////////////////////////////////////
  842.             player->CastSpell(player,63680,true,NULL,NULL,player->GetGUID());
  843.             player->CastSpell(player,63624,true,NULL,NULL,player->GetGUID());
  844.             //  /**//////////////////////////////////////////////////////////
  845.             switch(action)
  846.             {
  847.                 //=============================================WARRIOR=================================================//
  848.             case MENU_WARRIOR:
  849.                 player->learnSpell(war_spell_Overpower, false),
  850.                     player->learnSpell(war_spell_Battle_Shout, false),
  851.                     player->learnSpell(war_spell_Heroic_Strike, false),
  852.                     player->learnSpell(war_spell_Charge, false),
  853.                     player->learnSpell(war_spell_Rend, false),
  854.                     player->learnSpell(war_spell_Thunder_Clap, false),
  855.                     player->learnSpell(war_spell_Victory_Rush, false),
  856.                     player->learnSpell(war_spell_Hamstring, false),
  857.                     player->learnSpell(war_spell_Bloodrage, false),
  858.                     player->learnSpell(war_spell_Defensive_Stance, false),
  859.                     player->learnSpell(war_spell_Sunder_Armor, false),
  860.                     player->learnSpell(war_spell_Taunt, false),
  861.                     player->learnSpell(war_spell_Shield_Bash, false),
  862.                     player->learnSpell(war_spell_Demoralizing_Shout, false),
  863.                     player->learnSpell(war_spell_Revenge, false),
  864.                     player->learnSpell(war_spell_Mocking_Blow, false),
  865.                     player->learnSpell(war_spell_Shield_Block, false),
  866.                     player->learnSpell(war_spell_Disarm, false),
  867.                     player->learnSpell(war_spell_Cleave, false),
  868.                     player->learnSpell(war_spell_Retaliation, false),
  869.                     player->learnSpell(war_spell_Stance_Mastery, false),
  870.                     player->learnSpell(war_spell_Execute, false),
  871.                     player->learnSpell(war_spell_Challenging_Shout, false),
  872.                     player->learnSpell(war_spell_Shield_Wall, false),
  873.                     player->learnSpell(war_spell_Berserker_Stance, false),
  874.                     player->learnSpell(war_spell_Intercept, false),
  875.                     player->learnSpell(war_spell_Slam, false),
  876.                     player->learnSpell(war_spell_Berserker_Rage, false),
  877.                     player->learnSpell(war_spell_Whirlwind, false),
  878.                     player->learnSpell(war_spell_Pummel, false),
  879.                     player->learnSpell(war_spell_Sheild_Slam, false),
  880.                     player->learnSpell(war_spell_Recklessness, false),
  881.                     player->learnSpell(war_spell_Spell_Reflection, false),
  882.                     player->learnSpell(war_spell_Commanding_Shout, false),
  883.                     player->learnSpell(war_spell_Intervene, false),
  884.                     player->learnSpell(war_spell_Shattering_Throw, false),
  885.                     player->learnSpell(war_spell_Enraged_Regeneration, false),
  886.                     player->learnSpell(war_spell_Heroic_Throw, false),
  887.                     player->learnSpell(war_spell_Dual_Wield, false),
  888.                     player->learnSpell(war_spell_Intimidating_Shout, false);
  889.                 player->learnSpell(war_spell_Parry, false);
  890.                 player->learnSpell(54197, false); // ?
  891.                 /////////WEAPON/////////////
  892.                 player->learnSpell(750, false); // ?
  893.                 player->learnSpell(196, false); // ?
  894.                 player->learnSpell(197, false); // ?
  895.                 player->learnSpell(198, false); // ?
  896.                 player->learnSpell(199, false); // ?
  897.                 player->learnSpell(200, false); // ?
  898.                 player->learnSpell(201, false); // ?
  899.                 player->learnSpell(202, false); // ?
  900.                 player->learnSpell(264, false); // ?
  901.                 player->learnSpell(5011, false); // ?
  902.                 player->learnSpell(266, false); // ?
  903.                 player->learnSpell(2567, false); // ?
  904.                 player->UpdateSkillsToMaxSkillsForLevel();
  905.                 player->SaveToDB();
  906.                 player->PlayerTalkClass->SendCloseGossip();
  907.                 break;
  908.                 //=============================================PALADIN=================================================//
  909.             case MENU_PALADIN:
  910.                 player->learnSpell(pala_spell_Parry, false);
  911.                 player->learnSpell(pala_spell_Concentration_Aura, false);
  912.                 player->learnSpell(pala_spell_Divine_Intervention, false);
  913.                 player->learnSpell(pala_spell_Plate_Mail_skill,   false);
  914.                 player->learnSpell(pala_spell_Devotion_Aura, false);
  915.                 player->learnSpell(pala_spell_Holy_Light, false);
  916.                 player->learnSpell(pala_spell_Blessing_of_Might, false);
  917.                 player->learnSpell(pala_spell_Judgement_of_Light, false);
  918.                 player->learnSpell(pala_spell_Divine_Protection,   false);
  919.                 player->learnSpell(pala_spell_Hammer_of_Justice, false);
  920.                 player->learnSpell(pala_spell_Purify,  false);
  921.                 player->learnSpell(pala_spell_Hand_of_Protection, false);
  922.                 player->learnSpell(pala_spell_Lay_on_Hands, false);
  923.                 player->learnSpell(pala_spell_Judgement_of_Wisdom, false);
  924.                 player->learnSpell(pala_spell_Redemption, false);
  925.                 player->learnSpell(pala_spell_Blessing_of_Wisdom, false);
  926.                 player->learnSpell(pala_spell_Righteous_Defense, false);
  927.                 player->learnSpell(pala_spell_Hand_of_Reckoning, false);
  928.                 player->learnSpell(pala_spell_Retribution_Aura, false);
  929.                 player->learnSpell(pala_spell_Righteous_Fury, false);
  930.                 player->learnSpell(pala_spell_Hand_of_Freedom,  false);
  931.                 player->learnSpell(pala_spell_Blessing_of_Kings, false);
  932.                 player->learnSpell(pala_spell_Consecration, false);
  933.                 player->learnSpell(pala_spell_Exorcism, false);
  934.                 player->learnSpell(pala_spell_Flash_of_Light, false);
  935.                 player->learnSpell(pala_spell_Sense_Undead,  false);
  936.                 player->learnSpell(pala_spell_Seal_of_Justice, false);
  937.                 player->learnSpell(pala_spell_Turn_Evil, false);
  938.                 player->learnSpell(pala_spell_Hand_of_Salvation,  false);
  939.                 player->learnSpell(pala_spell_Judgement_of_Justice, false);
  940.                 player->learnSpell(pala_spell_Shadow_Resistance_Aura, false);
  941.                 player->learnSpell(pala_spell_Seal_of_Light, false);
  942.                 player->learnSpell(pala_spell_Frost_Resistance_Aura, false);
  943.                 player->learnSpell(pala_spell_Divine_Shield,   false);
  944.                 player->learnSpell(pala_spell_Fire_Resistance_Aura, false);
  945.                 player->learnSpell(pala_spell_Seal_of_Wisdom, false);
  946.                 player->learnSpell(pala_spell_Cleanse,  false);
  947.                 player->learnSpell(pala_spell_Hammer_of_Wrath, false);
  948.                 player->learnSpell(pala_spell_Hand_of_Sacrifice,  false);
  949.                 player->learnSpell(pala_spell_Holy_Wrath, false);
  950.                 player->learnSpell(pala_spell_Greater_Blessing_of_Might, false);
  951.                 player->learnSpell(pala_spell_Greater_Blessing_of_Wisdom, false);
  952.                 player->learnSpell(pala_spell_Greater_Blessing_of_Kings, false);
  953.                 player->learnSpell(pala_spell_Crusader_Aura, false);
  954.                 player->learnSpell(pala_spell_Avenging_Wrath, false);
  955.                 player->learnSpell(pala_spell_Divine_Plea, false);
  956.                 player->learnSpell(pala_spell_Shield_of_Righteousness, false);
  957.                 player->learnSpell(pala_spell_Sacred_Shield, false);
  958.                 player->learnSpell(33388, false); //?
  959.                 player->learnSpell(33391, false); //?
  960.                 /////////WEAPONS/////////////
  961.                 player->learnSpell(750, false); //?
  962.                 player->learnSpell(196, false); //?
  963.                 player->learnSpell(197, false); //?
  964.                 player->learnSpell(198, false); //?
  965.                 player->learnSpell(199, false); //?
  966.                 player->learnSpell(200, false); //?
  967.                 player->learnSpell(201, false); //?
  968.                 player->learnSpell(202, false); //?        
  969.                 //Spell Learned for different factions..
  970.                 if(player->GetTeam() == ALLIANCE){
  971.                     player->learnSpell(pala_spell_Seal_of_Vengeance, false);
  972.                     player->learnSpell(pala_spell_Warhorse, false);
  973.                     player->learnSpell(pala_spell_Charger, false);
  974.                 }
  975.                 else
  976.                 {
  977.                     player->learnSpell(pala_spell_Seal_of_Corruption, false);
  978.                     player->learnSpell(pala_spell_Thalassian_Warhorse, false);
  979.                     player->learnSpell(pala_spell_Thalassian_Charger, false);
  980.                 }
  981.                 player->UpdateSkillsToMaxSkillsForLevel();
  982.                 player->SaveToDB();
  983.                 player->PlayerTalkClass->SendCloseGossip();
  984.                 break;
  985.                 //=============================================HUNTER=================================================//
  986.             case MENU_HUNTER:
  987.                 player->learnSpell(hunter_spell_Scorpid_Sting, false);
  988.                 player->learnSpell(hunter_spell_Parry, false);
  989.                 player->learnSpell(hunter_spell_Rapid_Fire,  false);
  990.                 player->learnSpell(hunter_spell_Viper_Sting,  false);
  991.                 player->learnSpell(hunter_spell_Track_Beasts,  false);
  992.                 player->learnSpell(hunter_spell_Aspect_of_the_Monkey, false);
  993.                 player->learnSpell(hunter_spell_Raptor_Strike, false);
  994.                 player->learnSpell(hunter_spell_Serpent_Sting, false);
  995.                 player->learnSpell(hunter_spell_Arcane_Shot, false);
  996.                 player->learnSpell(hunter_spell_Hunters_Mark, false);
  997.                 player->learnSpell(hunter_spell_Concussive_Shot,  false);
  998.                 player->learnSpell(hunter_spell_Aspect_of_the_Hawk, false);
  999.                 player->learnSpell(hunter_spell_Call_Pet,   false);
  1000.                 player->learnSpell(hunter_spell_Dismiss_Pet,  false);
  1001.                 player->learnSpell(hunter_spell_Feed_Pet,  false);
  1002.                 player->learnSpell(hunter_spell_Revive_Pet,   false);
  1003.                 player->learnSpell(hunter_spell_Tame_Beast,  false);
  1004.                 player->learnSpell(hunter_spell_Track_Humanoids, false);
  1005.                 player->learnSpell(hunter_spell_Distracting_Shot, false);
  1006.                 player->learnSpell(hunter_spell_Mend_Pet, false);
  1007.                 player->learnSpell(hunter_spell_Wing_Clip,  false);
  1008.                 player->learnSpell(hunter_spell_Eagle_Eye,  false);
  1009.                 player->learnSpell(hunter_spell_Eyes_of_the_Beast,  false);
  1010.                 player->learnSpell(hunter_spell_Scare_Beast, false);
  1011.                 player->learnSpell(hunter_spell_Aspect_of_the_Cheetah,  false);
  1012.                 player->learnSpell(hunter_spell_Immolation_Trap, false);
  1013.                 player->learnSpell(hunter_spell_Mongoose_Bite, false);
  1014.                 player->learnSpell(hunter_spell_Multi_Shot, false);
  1015.                 player->learnSpell(hunter_spell_Track_Undead, false);
  1016.                 player->learnSpell(hunter_spell_Aspect_of_the_Viper, false);
  1017.                 player->learnSpell(hunter_spell_Disengage,   false);
  1018.                 player->learnSpell(hunter_spell_Freezing_Trap, false);
  1019.                 player->learnSpell(hunter_spell_Beast_Lore,  false);
  1020.                 player->learnSpell(hunter_spell_Track_Hidden, false);
  1021.                 player->learnSpell(hunter_spell_Track_Elementals, false);
  1022.                 player->learnSpell(hunter_spell_Frost_Trap, false);
  1023.                 player->learnSpell(hunter_spell_Aspect_of_the_Beast, false);
  1024.                 player->learnSpell(hunter_spell_Feign_Death,  false);
  1025.                 player->learnSpell(hunter_spell_Flare,  false);
  1026.                 player->learnSpell(hunter_spell_Track_Demons, false);
  1027.                 player->learnSpell(hunter_spell_Explosive_Trap, false);
  1028.                 player->learnSpell(hunter_spell_Aspect_of_the_Pack, false);
  1029.                 player->learnSpell(hunter_spell_Track_Giants, false);
  1030.                 player->learnSpell(hunter_spell_Volley, false);
  1031.                 player->learnSpell(hunter_spell_Aspect_of_the_Wild, false);
  1032.                 player->learnSpell(hunter_spell_Steady_Shot, false);
  1033.                 player->learnSpell(hunter_spell_Track_Dragonkin, false);
  1034.                 player->learnSpell(hunter_spell_Deterrence, false);
  1035.                 player->learnSpell(hunter_spell_Tranquilizing_Shot, false);
  1036.                 player->learnSpell(hunter_spell_Kill_Command, false);
  1037.                 player->learnSpell(hunter_spell_Snake_Trap, false);
  1038.                 player->learnSpell(hunter_spell_Misdirection, false);
  1039.                 player->learnSpell(hunter_spell_Kill_Shot, false);
  1040.                 player->learnSpell(hunter_spell_Aspect_of_the_Dragonhawk, false);
  1041.                 player->learnSpell(hunter_spell_Masters_Call, false);
  1042.                 player->learnSpell(hunter_spell_Freezing_Arrow, false);
  1043.                 player->learnSpell(hunter_spell_Call_Stabled_Pet, false);
  1044.                 player->learnSpell(hunter_spell_Dual_Wield, false);
  1045.                 player->learnSpell(8737,  false); //?
  1046.                 /////////ARRMES/////////////
  1047.                 player->learnSpell(15590, false); //?
  1048.                 player->learnSpell(8737, false); //?
  1049.                 player->learnSpell(196, false); //?
  1050.                 player->learnSpell(197, false); //?
  1051.                 player->learnSpell(200, false); //?
  1052.                 player->learnSpell(201, false); //?
  1053.                 player->learnSpell(202, false); //?
  1054.                 player->learnSpell(264, false); //?
  1055.                 player->learnSpell(266, false); //?
  1056.                 player->learnSpell(5011, false); //?
  1057.                 player->UpdateSkillsToMaxSkillsForLevel();
  1058.                 player->SaveToDB();
  1059.                 player->PlayerTalkClass->SendCloseGossip();
  1060.                 break;
  1061.                 //=============================================ROGUE=================================================//
  1062.             case MENU_ROGUE:
  1063.                 player->learnSpell(rogue_spell_Parry, false);
  1064.                 player->learnSpell(rogue_spell_Dual_Wield, false); //  ambi
  1065.                 player->learnSpell(rogue_spell_Eviscerate, false);
  1066.                 player->learnSpell(rogue_spell_Sinister_Strike, false);
  1067.                 player->learnSpell(rogue_spell_Stealth, false);
  1068.                 player->learnSpell(rogue_spell_Backstab, false);
  1069.                 player->learnSpell(rogue_spell_Pick_Pocket, false);
  1070.                 player->learnSpell(rogue_spell_Gouge, false);
  1071.                 player->learnSpell(rogue_spell_Evasion, false);
  1072.                 player->learnSpell(rogue_spell_Sap, false);
  1073.                 player->learnSpell(rogue_spell_Slice_and_Dice, false);
  1074.                 player->learnSpell(rogue_spell_Sprint, false);
  1075.                 player->learnSpell(rogue_spell_Kick, false);
  1076.                 player->learnSpell(rogue_spell_Garrote, false);
  1077.                 player->learnSpell(rogue_spell_Feint, false);
  1078.                 player->learnSpell(rogue_spell_Lockpicking_skill, false);
  1079.                 player->learnSpell(rogue_spell_Expose_Armor, false);
  1080.                 player->learnSpell(rogue_spell_Ambush, false);
  1081.                 player->learnSpell(rogue_spell_Dismantle, false);
  1082.                 player->learnSpell(rogue_spell_Rupture, false);
  1083.                 player->learnSpell(rogue_spell_Distract, false);
  1084.                 player->learnSpell(rogue_spell_Vanish, false);
  1085.                 player->learnSpell(rogue_spell_Detect_Traps, false);
  1086.                 player->learnSpell(rogue_spell_Cheap_Shot, false);
  1087.                 player->learnSpell(rogue_spell_Disarm_Trap, false);
  1088.                 player->learnSpell(rogue_spell_Kidney_Shot, false);
  1089.                 player->learnSpell(rogue_spell_Blind, false);
  1090.                 player->learnSpell(rogue_spell_Safe_Fall, false);
  1091.                 player->learnSpell(rogue_spell_Envenom, false);
  1092.                 player->learnSpell(rogue_spell_Deadly_Throw, false);
  1093.                 player->learnSpell(rogue_spell_Cloak_of_Shadows, false);
  1094.                 player->learnSpell(rogue_spell_Shiv, false);
  1095.                 player->learnSpell(rogue_spell_Tricks_of_the_Trade, false);
  1096.                 player->learnSpell(rogue_spell_Fan_of_Knives, false);
  1097.                 ///////////WEAPON/////////////
  1098.                 player->learnSpell(196, false); //?
  1099.                 player->learnSpell(198, false); //?
  1100.                 player->learnSpell(201, false); //?
  1101.                 player->learnSpell(1180, false); //?
  1102.                 player->learnSpell(2567, false); //?
  1103.                 player->learnSpell(264, false); //?
  1104.                 player->learnSpell(266, false); //?
  1105.                 player->learnSpell(5011, false); //?
  1106.                 player->learnSpell(15590, false); //?
  1107.                 //======================================//
  1108.                 player->UpdateSkillsToMaxSkillsForLevel();
  1109.                 player->SaveToDB();
  1110.                 player->PlayerTalkClass->SendCloseGossip();
  1111.                 break;
  1112.             case MENU_PRIEST:
  1113.                 player->learnSpell(priest_spell_Cure_Disease, false);
  1114.                 player->learnSpell(priest_spell_Lesser_Heal, false);
  1115.                 player->learnSpell(priest_spell_Power_Word_Fortitude, false);
  1116.                 player->learnSpell(priest_spell_Smite, false);
  1117.                 player->learnSpell(priest_spell_Shadow_Word_Pain, false);
  1118.                 player->learnSpell(priest_spell_Power_Word_Shield, false);
  1119.                 player->learnSpell(priest_spell_Fade, false);
  1120.                 player->learnSpell(priest_spell_Renew, false);
  1121.                 player->learnSpell(priest_spell_Mind_Blast, false);
  1122.                 player->learnSpell(priest_spell_Resurrection, false);
  1123.                 player->learnSpell(priest_spell_Inner_Fire, false);
  1124.                 player->learnSpell(priest_spell_Psychic_Scream, false);
  1125.                 player->learnSpell(priest_spell_Heal, false);
  1126.                 player->learnSpell(priest_spell_Dispel_Magic, false);
  1127.                 player->learnSpell(priest_spell_Devouring_Plague, false);
  1128.                 player->learnSpell(priest_spell_Fear_Ward, false);
  1129.                 player->learnSpell(priest_spell_Flash_Heal, false);
  1130.                 player->learnSpell(priest_spell_Holy_Fire, false);
  1131.                 player->learnSpell(priest_spell_Holy_Nova, false);
  1132.                 player->learnSpell(priest_spell_Mind_Soothe, false);
  1133.                 player->learnSpell(priest_spell_Shackle_Undead, false);
  1134.                 player->learnSpell(priest_spell_Mind_Vision, false);
  1135.                 player->learnSpell(priest_spell_Mana_Burn, false);
  1136.                 player->learnSpell(priest_spell_Divine_Spirit, false);
  1137.                 player->learnSpell(priest_spell_Mind_Control, false);
  1138.                 player->learnSpell(priest_spell_Prayer_of_Healing, false);
  1139.                 player->learnSpell(priest_spell_Shadow_Protection, false);
  1140.                 player->learnSpell(priest_spell_Abolish_Disease, false);
  1141.                 player->learnSpell(priest_spell_Levitate, false);
  1142.                 player->learnSpell(priest_spell_Greater_Heal, false);
  1143.                 player->learnSpell(priest_spell_Prayer_of_Fortitude, false);
  1144.                 player->learnSpell(priest_spell_Prayer_of_Shadow_Protection, false);
  1145.                 player->learnSpell(priest_spell_Prayer_of_Spirit, false);
  1146.                 player->learnSpell(priest_spell_Shadow_Word_Death, false);
  1147.                 player->learnSpell(priest_spell_Binding_Heal, false);
  1148.                 player->learnSpell(priest_spell_Shadowfiend, false);
  1149.                 player->learnSpell(priest_spell_Prayer_of_Mending, false);
  1150.                 player->learnSpell(priest_spell_Mass_Dispel, false);
  1151.                 player->learnSpell(priest_spell_Divine_Hymn, false);
  1152.                 player->learnSpell(priest_spell_Hymn_of_Hope, false);
  1153.                 player->learnSpell(priest_spell_Mind_Sear, false);
  1154.                 ///////////WEAPON/////////////
  1155.                 player->learnSpell(196, false); //?
  1156.                 player->learnSpell(198, false); //?
  1157.                 player->learnSpell(227, false); //?
  1158.                 player->learnSpell(1180, false); //?
  1159.                 player->UpdateSkillsToMaxSkillsForLevel();
  1160.                 player->SaveToDB();
  1161.                 player->PlayerTalkClass->SendCloseGossip();
  1162.                 break;
  1163.                 //=============================================DEATH KNGIHTS=================================================//
  1164.             case MENU_DEATH_K:
  1165.                 player->learnSpell(dk_spell_Parry, false);
  1166.                 player->learnSpell(dk_spell_Pestilence, false);
  1167.                 player->learnSpell(dk_spell_Blood_Boil, false);
  1168.                 player->learnSpell(dk_spell_Blood_Strike, false);
  1169.                 player->learnSpell(dk_spell_Strangulate, false);
  1170.                 player->learnSpell(dk_spell_Blood_Tap, false);
  1171.                 player->learnSpell(dk_spell_Path_of_Frost, false);
  1172.                 player->learnSpell(dk_spell_Dark_Command, false);
  1173.                 player->learnSpell(dk_spell_Death_Pact, false);
  1174.                 player->learnSpell(dk_spell_Frost_Presence, false);
  1175.                 player->learnSpell(dk_spell_Icy_Touch, false);
  1176.                 player->learnSpell(dk_spell_Mind_Freeze, false);
  1177.                 player->learnSpell(dk_spell_Chains_of_Ice, false);
  1178.                 player->learnSpell(dk_spell_Icebound_Fortitude, false);
  1179.                 player->learnSpell(dk_spell_Horn_of_Winter, false);
  1180.                 player->learnSpell(dk_spell_Rune_Strike, false);
  1181.                 player->learnSpell(dk_spell_Empower_Rune_Weapon, false);
  1182.                 player->learnSpell(dk_spell_Death_Coil, false);
  1183.                 player->learnSpell(dk_spell_Death_Gate, false);
  1184.                 player->learnSpell(dk_spell_Plague_Strike, false);
  1185.                 player->learnSpell(dk_spell_Death_Grip, false);
  1186.                 player->learnSpell(dk_spell_Raise_Dead, false);
  1187.                 player->learnSpell(dk_spell_Death_and_Decay, false);
  1188.                 player->learnSpell(dk_spell_Anti_Magic_Shell, false);
  1189.                 player->learnSpell(dk_spell_Unholy_Presence, false);
  1190.                 player->learnSpell(dk_spell_Raise_Ally, false);
  1191.                 player->learnSpell(dk_spell_Army_of_the_Dead, false);
  1192.                 player->learnSpell(dk_spell_Runeforging_skill, false);
  1193.                 player->learnSpell(dk_spell_Acherus_Deathcharger, false);
  1194.                 player->learnSpell(dk_spell_Obliterate, false);
  1195.                 player->learnSpell(dk_spell_Death_Strike, false);
  1196.                 player->learnSpell(war_spell_Dual_Wield, false);
  1197.                 //================RuneForge================//
  1198.                 player->learnSpell(dk_spell_Uknowas, false);
  1199.                 player->learnSpell(dk_spell_Uknowah, false);
  1200.                 player->learnSpell(dk_spell_Uknowai, false);
  1201.                 player->learnSpell(dk_spell_Uknowaz, false);
  1202.                 player->learnSpell(dk_spell_Uknowan, false);
  1203.                 player->learnSpell(dk_spell_Uknowab, false);
  1204.                 player->learnSpell(dk_spell_Uknowav, false);
  1205.                 player->learnSpell(dk_spell_Uknowaj, false);
  1206.                 player->learnSpell(dk_spell_Uknowaq, false);
  1207.                 ///////////WEAPON/////////////
  1208.                 player->learnSpell(750, false);
  1209.                 player->learnSpell(196, false);
  1210.                 player->learnSpell(197, false);
  1211.                 player->learnSpell(198, false);
  1212.                 player->learnSpell(199, false);
  1213.                 player->learnSpell(200, false);
  1214.                 player->learnSpell(201, false);
  1215.                 player->learnSpell(202, false);
  1216.                 player->UpdateSkillsToMaxSkillsForLevel();
  1217.                 player->SaveToDB();
  1218.                 player->PlayerTalkClass->SendCloseGossip();
  1219.                 break;
  1220.                 //=============================================SHAMAN=================================================//
  1221.             case MENU_SHAMAN:
  1222.                 player->learnSpell(8737, false);//?
  1223.                 player->learnSpell(shaman_spell_Earth_Elemental_Totem, false);
  1224.                 player->learnSpell(shaman_spell_Healing_Wave, false);
  1225.                 player->learnSpell(shaman_spell_Lightning_Bolt, false);
  1226.                 player->learnSpell(shaman_spell_Rockbiter_Weapon, false);
  1227.                 player->learnSpell(shaman_spell_Earth_Shock, false);
  1228.                 player->learnSpell(shaman_spell_Stoneskin_Totem, false);
  1229.                 player->learnSpell(shaman_spell_Earthbind_Totem, false);
  1230.                 player->learnSpell(shaman_spell_Lightning_Shield, false);
  1231.                 player->learnSpell(shaman_spell_Stoneclaw_Totem, false);
  1232.                 player->learnSpell(shaman_spell_Flame_Shock, false);
  1233.                 player->learnSpell(shaman_spell_Flametongue_Weapon, false);
  1234.                 player->learnSpell(shaman_spell_Searing_Totem, false);
  1235.                 player->learnSpell(shaman_spell_Strength_of_Earth_Totem, false);
  1236.                 player->learnSpell(shaman_spell_Ancestral_Spirit, false);
  1237.                 player->learnSpell(shaman_spell_Fire_Nova, false);
  1238.                 player->learnSpell(shaman_spell_Purge, false);
  1239.                 player->learnSpell(shaman_spell_Cure_Toxins, false);
  1240.                 player->learnSpell(shaman_spell_Ghost_Wolf, false);
  1241.                 player->learnSpell(shaman_spell_Wind_Shear, false);
  1242.                 player->learnSpell(shaman_spell_Tremor_Totem, false);
  1243.                 player->learnSpell(shaman_spell_Frost_Shock, false);
  1244.                 player->learnSpell(shaman_spell_Frostbrand_Weapon, false);
  1245.                 player->learnSpell(shaman_spell_Healing_Stream_Totem, false);
  1246.                 player->learnSpell(shaman_spell_Lesser_Healing_Wave, false);
  1247.                 player->learnSpell(shaman_spell_Water_Shield, false);
  1248.                 player->learnSpell(shaman_spell_Water_Breathing, false);
  1249.                 player->learnSpell(shaman_spell_Frost_Resistance_Totem, false);
  1250.                 player->learnSpell(shaman_spell_Far_Sight, false);
  1251.                 player->learnSpell(shaman_spell_Magma_Totem, false);
  1252.                 player->learnSpell(shaman_spell_Mana_Spring_Totem, false);
  1253.                 player->learnSpell(shaman_spell_Fire_Resistance_Totem, false);
  1254.                 player->learnSpell(shaman_spell_Flametongue_Totem, false);
  1255.                 player->learnSpell(shaman_spell_Water_Walking, false);
  1256.                 player->learnSpell(shaman_spell_Astral_Recall, false);
  1257.                 player->learnSpell(shaman_spell_Call_of_the_Elements, false);
  1258.                 player->learnSpell(shaman_spell_Earthliving_Weapon, false);
  1259.                 player->learnSpell(shaman_spell_Grounding_Totem, false);
  1260.                 player->learnSpell(shaman_spell_Nature_Resistance_Totem, false);
  1261.                 player->learnSpell(shaman_spell_Reincarnation, false);
  1262.                 player->learnSpell(shaman_spell_Totemic_Recall, false);
  1263.                 player->learnSpell(shaman_spell_Windfury_Weapon, false);
  1264.                 player->learnSpell(shaman_spell_Chain_Lightning, false);
  1265.                 player->learnSpell(shaman_spell_Windfury_Totem, false);
  1266.                 player->learnSpell(shaman_spell_Sentry_Totem, false);
  1267.                 player->learnSpell(shaman_spell_Cleansing_Totem, false);
  1268.                 player->learnSpell(shaman_spell_Call_of_the_Ancestors, false);
  1269.                 player->learnSpell(shaman_spell_Chain_Heal, false);
  1270.                 player->learnSpell(shaman_spell_Call_of_the_Spirits, false);
  1271.                 player->learnSpell(shaman_spell_Wrath_of_Air_Totem, false);
  1272.                 player->learnSpell(shaman_spell_Fire_Elemental_Totem, false);
  1273.                 player->learnSpell(shaman_spell_Lava_Burst, false);
  1274.                 player->learnSpell(shaman_spell_Hex, false);
  1275.                 ///////////WEAPONS/////////////
  1276.                 player->learnSpell(8737, false);
  1277.                 player->learnSpell(196, false);
  1278.                 player->learnSpell(197, false);
  1279.                 player->learnSpell(198, false);
  1280.                 player->learnSpell(199, false);
  1281.                 player->learnSpell(227, false);
  1282.                 player->learnSpell(1180, false);
  1283.                 player->learnSpell(15590, false);
  1284.                 //Faction
  1285.                 if(player->GetTeam() == ALLIANCE){
  1286.                     player->learnSpell(shaman_spell_Heroism, false);
  1287.                 }
  1288.                 else
  1289.                 {
  1290.                     player->learnSpell(shaman_spell_Bloodlust, false);
  1291.                 }
  1292.                 player->UpdateSkillsToMaxSkillsForLevel();
  1293.                 player->SaveToDB();
  1294.                 player->PlayerTalkClass->SendCloseGossip();
  1295.                 break;
  1296.                 //=============================================MAGE=================================================//
  1297.             case MENU_MAGE:
  1298.                 player->learnSpell(mage_spell_Arcane_Explosion, false);
  1299.                 player->learnSpell(mage_spell_Frostbolt, false);
  1300.                 player->learnSpell(mage_spell_Arcane_Intellect, false);
  1301.                 player->learnSpell(mage_spell_Fireball, false);
  1302.                 player->learnSpell(mage_spell_Conjure_Water, false);
  1303.                 player->learnSpell(mage_spell_Conjure_Food, false);
  1304.                 player->learnSpell(mage_spell_Fire_Blast, false);
  1305.                 player->learnSpell(mage_spell_Arcane_Missiles, false);
  1306.                 player->learnSpell(mage_spell_Polymorph, false);
  1307.                 player->learnSpell(mage_spell_Polymorph_Turtle, false);
  1308.                 player->learnSpell(mage_spell_Polymorph_Turkey, false);
  1309.                 player->learnSpell(mage_spell_Polymorph_Rabbit, false);
  1310.                 player->learnSpell(mage_spell_Polymorph_Pig, false);
  1311.                 player->learnSpell(mage_spell_Frost_Nova, false);
  1312.                 player->learnSpell(mage_spell_Dampen_Magic, false);
  1313.                 player->learnSpell(mage_spell_Slow_Fall,      false);
  1314.                 player->learnSpell(mage_spell_Flamestrike, false);
  1315.                 player->learnSpell(mage_spell_Amplify_Magic, false);
  1316.                 player->learnSpell(mage_spell_Remove_Curse,   false);
  1317.                 player->learnSpell(mage_spell_Blink,  false);
  1318.                 player->learnSpell(mage_spell_Blizzard, false);
  1319.                 player->learnSpell(mage_spell_Evocation, false);
  1320.                 player->learnSpell(mage_spell_Fire_Ward, false);
  1321.                 player->learnSpell(mage_spell_Mana_Shield, false);
  1322.                 player->learnSpell(mage_spell_Frost_Ward, false);
  1323.                 player->learnSpell(mage_spell_Scorch, false);
  1324.                 player->learnSpell(mage_spell_Counterspell,  false);
  1325.                 player->learnSpell(mage_spell_Cone_of_Cold, false);
  1326.                 player->learnSpell(mage_spell_Conjure_Mana_Gem, false);
  1327.                 player->learnSpell(mage_spell_Ice_Armor, false);
  1328.                 player->learnSpell(mage_spell_Ice_Block, false);
  1329.                 player->learnSpell(mage_spell_Mage_Armor, false);
  1330.                 player->learnSpell(mage_spell_Arcane_Brilliance, false);
  1331.                 player->learnSpell(mage_spell_Molten_Armor, false);
  1332.                 player->learnSpell(mage_spell_Arcane_Blast, false);
  1333.                 player->learnSpell(mage_spell_Ice_Lance, false);
  1334.                 player->learnSpell(mage_spell_Invisibility,    false);
  1335.                 player->learnSpell(mage_spell_Ritual_of_Refreshment, false);
  1336.                 player->learnSpell(mage_spell_Spellsteal, false);
  1337.                 player->learnSpell(mage_spell_Conjure_Refreshment, false);
  1338.                 player->learnSpell(mage_spell_Frostfire_Bolt, false);
  1339.                 player->learnSpell(mage_spell_Dalaran_Brilliance, false);
  1340.                 player->learnSpell(mage_spell_Dalaran_Intellect, false);
  1341.                 player->learnSpell(mage_spell_Mirror_Image, false);
  1342.                 player->learnSpell(mage_spell_Portal_Dalaran, false);
  1343.                 player->learnSpell(mage_spell_Frost_Armor,  false);
  1344.                 player->learnSpell(61305, false);//?
  1345.                 player->SaveToDB();
  1346.                 /////////WEAPON/////////////
  1347.                 player->learnSpell(201,  false); //?
  1348.                 player->learnSpell(196,  false); //?
  1349.                 player->learnSpell(227,  false); //?
  1350.                 player->learnSpell(1180, false); //?
  1351.                 player->SaveToDB();
  1352.                 /////////RESTRICTION/////////////
  1353.                 if(player->GetTeam() == ALLIANCE){
  1354.                     player->learnSpell(mage_spell_Teleport_Exodar, false);
  1355.                     player->learnSpell(mage_spell_Teleport_Theramore, false);
  1356.                     player->learnSpell(mage_spell_Teleport_Darnassus,  false);
  1357.                     player->learnSpell(mage_spell_Teleport_Shattrath, false);
  1358.                     player->learnSpell(mage_spell_Teleport_Ironforge,  false);
  1359.                     player->learnSpell(mage_spell_Teleport_Stromwind,  false);
  1360.                     player->learnSpell(mage_spell_Portal_Darnassus, false);
  1361.                     player->learnSpell(mage_spell_Portal_Exodar, false);
  1362.                     player->learnSpell(mage_spell_Portal_Ironforge, false);
  1363.                     player->learnSpell(mage_spell_Portal_Shattrath, false);
  1364.                     player->learnSpell(mage_spell_Portal_Theramore, false);
  1365.                 }else{
  1366.                     player->learnSpell(mage_spell_Teleport_Orgrimmar,  false);
  1367.                     player->learnSpell(mage_spell_Teleport_Shattrath_H, false);
  1368.                     player->learnSpell(mage_spell_Teleport_Thunder_Bluff,  false);
  1369.                     player->learnSpell(mage_spell_Teleport_Stonard, false);
  1370.                     player->learnSpell(mage_spell_Teleport_Silvermoon, false);
  1371.                     player->learnSpell(mage_spell_Teleport_Undercity,  false);
  1372.                     player->learnSpell(mage_spell_Portal_Orgrimmar, false);
  1373.                     player->learnSpell(mage_spell_Portal_Shattrath_H, false);
  1374.                     player->learnSpell(mage_spell_Portal_Silvermoon, false);
  1375.                     player->learnSpell(mage_spell_Portal_Stonard, false);
  1376.                     player->learnSpell(mage_spell_Portal_Thunder_Bluff, false);
  1377.                     player->learnSpell(mage_spell_Portal_Undercity, false);
  1378.                 }
  1379.                 player->UpdateSkillsToMaxSkillsForLevel();
  1380.                 player->SaveToDB();
  1381.                 player->PlayerTalkClass->SendCloseGossip();
  1382.                 break;
  1383.                 //=============================================WARLOCK=================================================//
  1384.             case MENU_WARLOCK:
  1385.                 player->learnSpell(warlock_spell_Demon_Skin, false);
  1386.                 player->learnSpell(warlock_spell_Immolate, false);
  1387.                 player->learnSpell(warlock_spell_Shadow_Bolt, false);
  1388.                 player->learnSpell(warlock_spell_Summon_Imp, false);
  1389.                 player->learnSpell(warlock_spell_Corruption, false);
  1390.                 player->learnSpell(warlock_spell_Curse_of_Weakness, false);
  1391.                 player->learnSpell(warlock_spell_Life_Tap, false);
  1392.                 player->learnSpell(warlock_spell_Curse_of_Agony, false);
  1393.                 player->learnSpell(warlock_spell_Fear, false);
  1394.                 player->learnSpell(warlock_spell_Create_Healthstone, false);
  1395.                 player->learnSpell(warlock_spell_Drain_Soul, false);
  1396.                 player->learnSpell(warlock_spell_Summon_Voidwalker, false);
  1397.                 player->learnSpell(warlock_spell_Health_Funnel, false);
  1398.                 player->learnSpell(warlock_spell_Drain_Life, false);
  1399.                 player->learnSpell(warlock_spell_Unending_Breath, false);
  1400.                 player->learnSpell(warlock_spell_Create_Soulstone, false);
  1401.                 player->learnSpell(warlock_spell_Searing_Pain, false);
  1402.                 player->learnSpell(warlock_spell_Demon_Armor, false);
  1403.                 player->learnSpell(warlock_spell_Rain_of_Fire, false);
  1404.                 player->learnSpell(warlock_spell_Ritual_of_Summoning, false);
  1405.                 player->learnSpell(warlock_spell_Summon_Succubus, false);
  1406.                 player->learnSpell(warlock_spell_Eye_of_Kilrogg, false);
  1407.                 player->learnSpell(warlock_spell_Drain_Mana, false);
  1408.                 player->learnSpell(warlock_spell_Sense_Demons, false);
  1409.                 player->learnSpell(warlock_spell_Curse_of_Tongues, false);
  1410.                 player->learnSpell(warlock_spell_Detect_Invisibility, false);
  1411.                 player->learnSpell(warlock_spell_Create_Firestone, false);
  1412.                 player->learnSpell(warlock_spell_Banish, false);
  1413.                 player->learnSpell(warlock_spell_Enslave_Demon, false);
  1414.                 player->learnSpell(warlock_spell_Hellfire, false);
  1415.                 player->learnSpell(warlock_spell_Summon_Felhunter, false);
  1416.                 player->learnSpell(warlock_spell_Curse_of_the_Elements, false);
  1417.                 player->learnSpell(warlock_spell_Shadow_Ward, false);
  1418.                 player->learnSpell(warlock_spell_Create_Spellstone, false);
  1419.                 player->learnSpell(warlock_spell_Howl_of_Terror, false);
  1420.                 player->learnSpell(warlock_spell_Death_Coil, false);
  1421.                 player->learnSpell(warlock_spell_Soul_Fire, false);
  1422.                 player->learnSpell(warlock_spell_Inferno, false);
  1423.                 player->learnSpell(warlock_spell_Curse_of_Doom, false);
  1424.                 player->learnSpell(warlock_spell_Ritual_of_Doom, false);
  1425.                 player->learnSpell(warlock_spell_Fel_Armor, false);
  1426.                 player->learnSpell(warlock_spell_Incinerate, false);
  1427.                 player->learnSpell(warlock_spell_Soulshatter, false);
  1428.                 player->learnSpell(warlock_spell_Ritual_of_Souls, false);
  1429.                 player->learnSpell(warlock_spell_Seed_of_Corruption, false);
  1430.                 player->learnSpell(warlock_spell_Shadowflame, false);
  1431.                 player->learnSpell(warlock_spell_Demonic_Circle_Summon, false);
  1432.                 player->learnSpell(warlock_spell_Demonic_Circle_Teleport, false);
  1433.                 player->learnSpell(warlock_spell_Dreadsteed, false);
  1434.                 player->learnSpell(33388, false); //?
  1435.                 player->learnSpell(33391, false); //?
  1436.                 ///////////ARMES/////////////
  1437.                 player->learnSpell(196, false);//?
  1438.                 player->learnSpell(227, false);//?
  1439.                 player->learnSpell(1180, false);//?
  1440.                 player->UpdateSkillsToMaxSkillsForLevel();
  1441.                 player->SaveToDB();
  1442.                 player->PlayerTalkClass->SendCloseGossip();
  1443.                 break;
  1444.                 //=============================================DRUID=================================================//
  1445.             case MENU_DRUID:
  1446.                 if (player->getClass() == CLASS_DRUID)
  1447.                 {
  1448.                     player->learnSpell(druid_spell_Healing_Touch, false);
  1449.                     player->learnSpell(druid_spell_Mark_of_the_Wild, false);
  1450.                     player->learnSpell(druid_spell_Wrath, false);
  1451.                     player->learnSpell(druid_spell_Moonfire, false);
  1452.                     player->learnSpell(druid_spell_Rejuvenation, false);
  1453.                     player->learnSpell(druid_spell_Thorns, false);
  1454.                     player->learnSpell(druid_spell_Entangling_Roots, false);
  1455.                     player->learnSpell(druid_spell_Bear_Form, false);
  1456.                     player->learnSpell(druid_spell_Demoralizing_Roar, false);
  1457.                     player->learnSpell(druid_spell_Growl, false);
  1458.                     player->learnSpell(druid_spell_Maul, false);
  1459.                     player->learnSpell(druid_spell_Natures_Grasp, false);
  1460.                     player->learnSpell(druid_spell_Teleport_Moonglade, false);
  1461.                     player->learnSpell(druid_spell_Enrage, false);
  1462.                     player->learnSpell(druid_spell_Regrowth, false);
  1463.                     player->learnSpell(druid_spell_Revive, false);
  1464.                     player->learnSpell(druid_spell_Bash, false);
  1465.                     player->learnSpell(druid_spell_Cure_Poison, false);
  1466.                     player->learnSpell(druid_spell_Aquatic_Form, false);
  1467.                     player->learnSpell(druid_spell_Swipe_Bear, false);
  1468.                     player->learnSpell(druid_spell_Travel_Form, false);
  1469.                     player->learnSpell(druid_spell_Faerie_Fire, false);
  1470.                     player->learnSpell(druid_spell_Faerie_Fire_Feral, false);
  1471.                     player->learnSpell(druid_spell_Hibernate, false);
  1472.                     player->learnSpell(druid_spell_Cat_Form, false);
  1473.                     //  player->learnSpell(druid_spell_Feral_Charge_Bear, false); // charge farouche 2
  1474.                     //  player->learnSpell(druid_spell_Feral_Charge_Cat, false); // charge farouche
  1475.                     player->learnSpell(druid_spell_Prowl, false);
  1476.                     player->learnSpell(druid_spell_Rebirth, false);
  1477.                     player->learnSpell(druid_spell_Rip, false);
  1478.                     player->learnSpell(druid_spell_Starfire, false);
  1479.                     player->learnSpell(druid_spell_Shred, false);
  1480.                     player->learnSpell(druid_spell_Soothe_Animal, false);
  1481.                     player->learnSpell(druid_spell_Rake, false);
  1482.                     player->learnSpell(druid_spell_Remove_Curse, false);
  1483.                     player->learnSpell(druid_spell_Tigers_Fury, false);
  1484.                     player->learnSpell(druid_spell_Abolish_Poison, false);
  1485.                     player->learnSpell(druid_spell_Dash, false);
  1486.                     player->learnSpell(druid_spell_Challenging_Roar, false);
  1487.                     player->learnSpell(druid_spell_Cower, false);
  1488.                     player->learnSpell(druid_spell_Tranquility, false);
  1489.                     player->learnSpell(druid_spell_Ferocious_Bite, false);
  1490.                     player->learnSpell(druid_spell_Ravage, false);
  1491.                     player->learnSpell(druid_spell_Track_Humanoids, false);
  1492.                     player->learnSpell(druid_spell_Frenzied_Regeneration, false);
  1493.                     player->learnSpell(druid_spell_Pounce, false);
  1494.                     player->learnSpell(druid_spell_Dire_Bear_Form, false);
  1495.                     player->learnSpell(druid_spell_Feline_Grace, false);
  1496.                     player->learnSpell(druid_spell_Hurricane, false);
  1497.                     player->learnSpell(druid_spell_Innervate, false);
  1498.                     player->learnSpell(druid_spell_Savage_Defense, false);
  1499.                     player->learnSpell(druid_spell_Barkskin, false);
  1500.                     player->learnSpell(druid_spell_Gift_of_the_Wild, false);
  1501.                     //  player->learnSpell(druid_spell_Mangle_Bear, false); mutilation farouche 2
  1502.                     //  player->learnSpell(druid_spell_Mangle_Cat, false); mutilation farouche
  1503.                     player->learnSpell(druid_spell_Flight_Form, false);
  1504.                     player->learnSpell(druid_spell_Maim, false);
  1505.                     player->learnSpell(druid_spell_Lifebloom, false);
  1506.                     player->learnSpell(druid_spell_Lacerate, false);
  1507.                     player->learnSpell(druid_spell_Cyclone, false);
  1508.                     player->learnSpell(druid_spell_Swift_Flight_Form, false);
  1509.                     player->learnSpell(druid_spell_Swipe_Cat, false);
  1510.                     player->learnSpell(druid_spell_Savage_Roar, false);
  1511.                     player->learnSpell(druid_spell_Nourish, false);
  1512.                     player->learnSpell(druid_spell_Claw, false);
  1513.                     player->learnSpell(druid_spell_Claw_1, false);//?
  1514.                     ///////////ARMES/////////////
  1515.                     player->learnSpell(198, false); //?
  1516.                     player->learnSpell(199, false); // ?
  1517.                     player->learnSpell(200, false); //?
  1518.                     player->learnSpell(227, false); //?
  1519.                     player->SaveToDB();
  1520.                 }
  1521.                 player->UpdateSkillsToMaxSkillsForLevel();
  1522.                 player->SaveToDB();
  1523.                 player->PlayerTalkClass->SendCloseGossip();
  1524.                 break;
  1525.  
  1526.             case OPTION_MENU_ID_1:
  1527.                 player->ADD_GOSSIP_ITEM(TRAINER_ICON, SUB_MENU_TALENT_OPTION_1, GOSSIP_SENDER_MAIN, SUB_OPTION_MENU_ID_1);
  1528.                 player->ADD_GOSSIP_ITEM(TRAINER_ICON, SUB_MENU_TALENT_OPTION_2, GOSSIP_SENDER_MAIN, SUB_OPTION_MENU_ID_2);
  1529.                 player->ADD_GOSSIP_ITEM(CHAT_ICON, back, GOSSIP_SENDER_MAIN, BACK_OPTION_MENU_1);
  1530.                 player->SEND_GOSSIP_MENU(1, creature->GetGUID());
  1531.                 break;
  1532.                
  1533.             case SUB_OPTION_MENU_ID_1:
  1534.                 //=====WARRIOR TALENT=====//
  1535.                 //Arms
  1536.                 if(player->HasSpell(12294)) //Mortal Strike Rank 1
  1537.                 {
  1538.                     player->learnSpell(war_spell_Mortal_Strike, false);
  1539.                 }
  1540.                 //Prot
  1541.                 if(player->HasSpell(20243)) //Devastate Rank 1
  1542.                 {
  1543.                     player->learnSpell(war_spell_Devastate, false);
  1544.                 }
  1545.                 //=====PALADIN TALENT=====//
  1546.                 //Holy
  1547.                 if(player->HasSpell(20925)) //Holy Shield Rank 1
  1548.                 {
  1549.                     player->learnSpell(pala_spell_Holy_Shield, false);
  1550.                 }
  1551.                 if(player->HasSpell(20473)) //Holy Shock Rank 1
  1552.                 {
  1553.                     player->learnSpell(pala_spell_Holy_Shock, false);
  1554.                 }
  1555.                 //Prot
  1556.                 if(player->HasSpell(31935)) //Avengers Shield Rank 1
  1557.                 {
  1558.                     player->learnSpell(pala_spell_Avengers_Shield, false);
  1559.                 }
  1560.                 if(player->HasSpell(20911)) //Blessing of Sanctuary Rank 1
  1561.                 {
  1562.                     player->learnSpell(pala_spell_Greater_Blessing_of_Sanctuary, false);
  1563.                 }
  1564.                 //=====HUNTER  TALENT=====//
  1565.                 //Survival
  1566.                 if(player->HasSpell(19386)) //Wyvern String Rank 1
  1567.                 {
  1568.                     player->learnSpell(hunter_spell_Wyvern_Sting, false);
  1569.                 }
  1570.                 if(player->HasSpell(53301)) //Explosive Shot Rank 1
  1571.                 {
  1572.                     player->learnSpell(hunter_spell_Explosive_Shot, false);
  1573.                 }
  1574.                 if(player->HasSpell(19306)) //Conter Attack Rank 1
  1575.                 {
  1576.                     player->learnSpell(hunter_spell_Conterattack, false);
  1577.                 }
  1578.                 //Marksmanship
  1579.                 if(player->HasSpell(19434)) //Aimed Shot Rank 1
  1580.                 {
  1581.                     player->learnSpell(hunter_spell_Aimed_Shot, false);
  1582.                 }
  1583.                 //=====ROGUE   TALENT=====//
  1584.                 //Subtlety
  1585.                 if(player->HasSpell(16511)) //Hemorrhage Rank 1
  1586.                 {
  1587.                     player->learnSpell(rogue_spell_Hemorrhage, false);
  1588.                 }
  1589.                 //Assassination
  1590.                 if(player->HasSpell(1329)) //Mutilate Rank 1
  1591.                 {
  1592.                     player->learnSpell(rogue_spell_Mutilate, false);
  1593.                 }
  1594.                 //=====PRIEST  TALENT=====//
  1595.                 //Shadow
  1596.                 if(player->HasSpell(34914)) //Vampiric Touch Rank 1
  1597.                 {
  1598.                     player->learnSpell(priest_spell_Vampiric_Touch, false);
  1599.                 }
  1600.                 //Discipline
  1601.                 if(player->HasSpell(47540)) //Penance Rank 1
  1602.                 {
  1603.                     player->learnSpell(priest_spell_Penance, false);
  1604.                 }
  1605.                 //Holy
  1606.                 if(player->HasSpell(724)) //LightWell Rank 1
  1607.                 {
  1608.                     player->learnSpell(priest_spell_Lightwell, false);
  1609.                 }
  1610.                 if(player->HasSpell(19236)) //Desperate Prayer Rank 1
  1611.                 {
  1612.                     player->learnSpell(priest_spell_Desperate_Prayer, false);
  1613.                 }
  1614.                 if(player->HasSpell(34861)) //Circle Of healing Rank 1
  1615.                 {
  1616.                     player->learnSpell(priest_spell_Circle_of_Healing, false);
  1617.                 }
  1618.                 //Shadow
  1619.                 if(player->HasSpell(15407)) //Mind Flay Rank 1
  1620.                 {
  1621.                     player->learnSpell(priest_spell_Mind_Flay, false);
  1622.                 }
  1623.                 //=====DEATH_K TALENT=====//
  1624.                 //Blood
  1625.                 if(player->HasSpell(55050)) //Heart Strike Rank 1
  1626.                 {
  1627.                     player->learnSpell(dk_spell_Heart_Strike, false);
  1628.                 }
  1629.                 //Frost
  1630.                 if(player->HasSpell(49143)) //Frost Strike Rank 1
  1631.                 {
  1632.                     player->learnSpell(dk_spell_Frost_Strike, false);
  1633.                 }
  1634.                 if(player->HasSpell(49184)) //Howling Blast Rank 1
  1635.                 {
  1636.                     player->learnSpell(dk_spell_Howling_Blast, false);
  1637.                 }
  1638.                 //UnHoly
  1639.                 if(player->HasSpell(55090)) //Scourge Strike Rank 1
  1640.                 {
  1641.                     player->learnSpell(dk_spell_Scourge_Strike, false);
  1642.                 }
  1643.                 if(player->HasSpell(49158)) //Corpse Explosion Rank 1
  1644.                 {
  1645.                     player->learnSpell(dk_spell_Corpse_Explosion, false);
  1646.                 }
  1647.                 //=====SHAMAN  TALENT=====//
  1648.                 //Restoration
  1649.                 if(player->HasSpell(61295)) //Riptide Rank 1
  1650.                 {
  1651.                     player->learnSpell(shaman_spell_Riptide, false);
  1652.                 }
  1653.                 if(player->HasSpell(974)) //Earth Shield Rank 1
  1654.                 {
  1655.                     player->learnSpell(shaman_spell_Earth_Shield, false);
  1656.                 }
  1657.                 //Elemental
  1658.                 if(player->HasSpell(30706)) //Totem of Wrath Rank 1
  1659.                 {
  1660.                     player->learnSpell(shaman_spell_Totem_of_Wrath, false);
  1661.                 }
  1662.                 if(player->HasSpell(51490)) //TunderStorm Rank 1
  1663.                 {
  1664.                     player->learnSpell(shaman_spell_Thunderstorm, false);
  1665.                 }
  1666.                 //=====MAGE    TALENT=====//
  1667.                 //Arcane
  1668.                 if(player->HasSpell(44425)) //Arcane Barrage Rank 1
  1669.                 {
  1670.                     player->learnSpell(mage_spell_Arcane_Barrage, false);
  1671.                 }
  1672.                 //Fire
  1673.                 if(player->HasSpell(11113)) //Blast Wave Rank 1
  1674.                 {
  1675.                     player->learnSpell(mage_spell_Blast_Wave, false);
  1676.                 }
  1677.                 if(player->HasSpell(31661)) //Dragon Breath  Rank 1
  1678.                 {
  1679.                     player->learnSpell(mage_spell_Dragons_Breath, false);
  1680.                 }
  1681.                 if(player->HasSpell(44457)) //Living Bomb Rank 1
  1682.                 {
  1683.                     player->learnSpell(mage_spell_Living_Bomb, false);
  1684.                 }
  1685.                 if(player->HasSpell(11366)) //Pyroblast Rank 1
  1686.                 {
  1687.                     player->learnSpell(mage_spell_Pyroblast, false);
  1688.                 }
  1689.                 //Frost
  1690.                 if(player->HasSpell(11426)) //Ice Barrier Rank 1
  1691.                 {
  1692.                     player->learnSpell(mage_spell_Ice_Barrier, false);
  1693.                 }
  1694.                 //=====WARLOCK TALENT=====//
  1695.                 //Destruction
  1696.                 if(player->HasSpell(17877)) //ShadowBurn Rank 1
  1697.                 {
  1698.                     player->learnSpell(warlock_spell_Shadowburn, false);
  1699.                 }
  1700.                 if(player->HasSpell(30283)) //ShadowFury Rank 1
  1701.                 {
  1702.                     player->learnSpell(warlock_spell_Shadowfury, false);
  1703.                 }
  1704.                 if(player->HasSpell(50796)) //Chaos Bolt Rank 1
  1705.                 {
  1706.                     player->learnSpell(warlock_spell_Chaos_Bolt, false);
  1707.                 }
  1708.                 //Affliction
  1709.                 if(player->HasSpell(30108)) //Unstable Affliction Rank 1
  1710.                 {
  1711.                     player->learnSpell(warlock_spell_Unstable_Affliction, false);
  1712.                 }
  1713.                 if(player->HasSpell(48181)) //Spell Haunt Rank 1
  1714.                 {
  1715.                     player->learnSpell(warlock_spell_Haunt, false);
  1716.                 }
  1717.                 if(player->HasSpell(18220)) //Dark Pact Rank 1
  1718.                 {
  1719.                     player->learnSpell(warlock_spell_Dark_Pact, false);
  1720.                 }
  1721.                 //=====DRUID   TALENT=====//
  1722.                 //Balance
  1723.                 if(player->HasSpell(50516)) //Typhoon Rank 1
  1724.                 {
  1725.                     player->learnSpell(druid_spell_Typhoon, false);
  1726.                 }
  1727.                 if(player->HasSpell(48505)) //Starfall Rank 1
  1728.                 {
  1729.                     player->learnSpell(druid_spell_Starfall, false);
  1730.                 }
  1731.                 if(player->HasSpell(5570)) //Insect Swarm Rank 1
  1732.                 {
  1733.                     player->learnSpell(druid_spell_Insect_Swarm, false);
  1734.                 }
  1735.                 //Restoration
  1736.                 if(player->HasSpell(48438)) //Wild Growth Rank 1
  1737.                 {
  1738.                     player->learnSpell(druid_spell_Wild_Growth, false);
  1739.                 }
  1740.                 player->SaveToDB();
  1741.                 player->PlayerTalkClass->SendCloseGossip();
  1742.                 break;
  1743.  
  1744.             case SUB_OPTION_MENU_ID_2:
  1745.                 player->resetTalents(true);
  1746.                 player->SendTalentsInfoData(false);
  1747.                 player->MonsterTextEmote("Your talents has been reset!", 0, true);
  1748.                 player->SaveToDB();
  1749.                 player->PlayerTalkClass->SendCloseGossip();
  1750.                 break;
  1751.  
  1752.             case OPTION_MENU_ID_2:
  1753.                 player->learnSpell(mount_spell_Journeyman_Riding,false);
  1754.                 player->learnSpell(mount_spell_Cold_Weather_Flying,false);
  1755.                 player->learnSpell(mount_spell_Flight_Master_License,false);
  1756.                 player->AddItem(Mount_Invincibles_Reins,1); //Flying-Ground
  1757.                 player->PlayerTalkClass->SendCloseGossip();
  1758.                 break;
  1759.  
  1760.             case OPTION_MENU_ID_3:
  1761.                 if (player->getClass() == CLASS_WARRIOR)
  1762.                 {
  1763.                 PGS->SendListInventory(creature->GetGUID(), GLYPH_NPC_ID_WARRIOR);
  1764.                 }
  1765.                 if (player->getClass() == CLASS_PALADIN)
  1766.                 {
  1767.                 PGS->SendListInventory(creature->GetGUID(), GLYPH_NPC_ID_PALADIN);
  1768.                 }
  1769.                 if (player->getClass() == CLASS_MAGE)
  1770.                 {
  1771.                  PGS->SendListInventory(creature->GetGUID(), GLYPH_NPC_ID_MAGE);
  1772.                 }
  1773.                 if (player->getClass() == CLASS_HUNTER)
  1774.                 {
  1775.                 PGS->SendListInventory(creature->GetGUID(), GLYPH_NPC_ID_HUNTER);
  1776.                 }
  1777.                 if (player->getClass() == CLASS_DRUID)
  1778.                 {
  1779.                 PGS->SendListInventory(creature->GetGUID(), GLYPH_NPC_ID_DRUID);
  1780.                 }
  1781.                 if (player->getClass() == CLASS_WARLOCK)
  1782.                 {
  1783.                 PGS->SendListInventory(creature->GetGUID(), GLYPH_NPC_ID_WARLOCK);
  1784.                 }
  1785.                 if (player->getClass() == CLASS_PRIEST)
  1786.                 {
  1787.                 PGS->SendListInventory(creature->GetGUID(), GLYPH_NPC_ID_PRIEST);
  1788.                 }
  1789.                 if (player->getClass() == CLASS_ROGUE)
  1790.                 {
  1791.                 PGS->SendListInventory(creature->GetGUID(), GLYPH_NPC_ID_ROGUE);
  1792.                 }
  1793.                 if (player->getClass() == CLASS_DEATH_KNIGHT)
  1794.                 {
  1795.                 PGS->SendListInventory(creature->GetGUID(), GLYPH_NPC_ID_DK);
  1796.                 }
  1797.                 if (player->getClass() == CLASS_SHAMAN)
  1798.                 {
  1799.                 PGS->SendListInventory(creature->GetGUID(), GLYPH_NPC_ID_SHAMAN);
  1800.                 }
  1801.                 break;
  1802.  
  1803.  
  1804.         case BACK_OPTION_MENU_1://Main Menu
  1805.         if (player->getLevel() >= 80)
  1806.         {
  1807.             {
  1808.                 player->PrepareQuestMenu(creature->GetGUID());
  1809.                 player->SendPreparedQuest(creature->GetGUID());
  1810.             }
  1811.             if (player->getClass() == CLASS_WARRIOR)
  1812.             {
  1813.                 player->ADD_GOSSIP_ITEM(TRAINER_ICON, Class_Skills, GOSSIP_SENDER_MAIN, MENU_WARRIOR);
  1814.             }
  1815.             if (player->getClass() == CLASS_PALADIN)
  1816.             {
  1817.                 player->ADD_GOSSIP_ITEM(TRAINER_ICON, Class_Skills, GOSSIP_SENDER_MAIN, MENU_PALADIN);
  1818.             }
  1819.             if (player->getClass() == CLASS_HUNTER)
  1820.             {
  1821.                 player->ADD_GOSSIP_ITEM(TRAINER_ICON, Class_Skills, GOSSIP_SENDER_MAIN, MENU_HUNTER);
  1822.             }
  1823.             if (player->getClass() == CLASS_ROGUE)
  1824.             {
  1825.                 player->ADD_GOSSIP_ITEM(TRAINER_ICON, Class_Skills, GOSSIP_SENDER_MAIN, MENU_ROGUE);
  1826.             }
  1827.             if (player->getClass() == CLASS_PRIEST)
  1828.             {
  1829.                 player->ADD_GOSSIP_ITEM(TRAINER_ICON, Class_Skills, GOSSIP_SENDER_MAIN, MENU_PRIEST);
  1830.             }
  1831.             if (player->getClass() == CLASS_DEATH_KNIGHT)
  1832.             {
  1833.                 player->ADD_GOSSIP_ITEM(TRAINER_ICON, Class_Skills, GOSSIP_SENDER_MAIN, MENU_DEATH_K);
  1834.             }
  1835.             if (player->getClass() == CLASS_SHAMAN)
  1836.             {
  1837.                 player->ADD_GOSSIP_ITEM(TRAINER_ICON, Class_Skills, GOSSIP_SENDER_MAIN, MENU_SHAMAN);
  1838.             }
  1839.             if (player->getClass() == CLASS_MAGE)
  1840.             {
  1841.                 player->ADD_GOSSIP_ITEM(TRAINER_ICON, Class_Skills, GOSSIP_SENDER_MAIN, MENU_MAGE);
  1842.             }
  1843.             if (player->getClass() == CLASS_WARLOCK)
  1844.             {
  1845.                 player->ADD_GOSSIP_ITEM(TRAINER_ICON, Class_Skills, GOSSIP_SENDER_MAIN, MENU_WARLOCK);
  1846.             }
  1847.             if (player->getClass() == CLASS_DRUID)
  1848.             {
  1849.                 player->ADD_GOSSIP_ITEM(TRAINER_ICON, Class_Skills, GOSSIP_SENDER_MAIN, MENU_DRUID);
  1850.             }
  1851.  
  1852.             player->ADD_GOSSIP_ITEM(TRAINER_ICON, Talent_Skills, GOSSIP_SENDER_MAIN, OPTION_MENU_ID_1);
  1853.             player->ADD_GOSSIP_ITEM(TRAINER_ICON, Riding_Skills, GOSSIP_SENDER_MAIN, OPTION_MENU_ID_2);
  1854.             player->ADD_GOSSIP_ITEM(VENDOR_ICON, Glyph_Menu, GOSSIP_SENDER_MAIN, OPTION_MENU_ID_3);
  1855.             player->SEND_GOSSIP_MENU(1, creature->GetGUID());
  1856.         }
  1857.         else
  1858.         {
  1859.             player->PlayerTalkClass->SendCloseGossip();
  1860.             return false;
  1861.         }
  1862.                 break;
  1863.  
  1864.             }
  1865.         }
  1866.         return true;
  1867.     }
  1868. };
  1869.  
  1870.  
  1871.  
  1872. void AddSC_npc_welcome()
  1873. {
  1874.     new npc_welcome();
  1875. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement