Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------------------------
- -- Aspire Projects© --
- ------------------------
- function TalentGenerator_OnGossip(pUnit,event,player)
- if (player:GetPlayerClass() == "Warrior") then
- pUnit:GossipCreateMenu(100, player, 0)
- pUnit:GossipMenuAddItem(3,"|cFF00FFFF------- Talent Path Chooser -------", 99,0)
- pUnit:GossipMenuAddItem(3, "Arms |cFF8B0000(Bladestorm)",1,0)
- pUnit:GossipMenuAddItem(3, "Fury |cFF8B0000(Heroic Fury)",2,0)
- pUnit:GossipMenuAddItem(3, "Protection |cFF8B0000(Devastate)",3,0)
- pUnit:GossipSendMenu(player)
- elseif (player:GetPlayerClass() == "Paladin") then
- pUnit:GossipCreateMenu(100, player, 0)
- pUnit:GossipMenuAddItem(3,"|cFF00FFFF------- Talent Path Chooser -------", 99,0)
- pUnit:GossipMenuAddItem(3, "Holy |cFF8B0000(Divine Illumination)",4,0)
- pUnit:GossipMenuAddItem(3, "Protection |cFF8B0000(Avengers Shield)",5,0)
- pUnit:GossipMenuAddItem(3, "Retribution |cFF8B0000(Crusader Strike)",6,0)
- pUnit:GossipSendMenu(player)
- elseif (player:GetPlayerClass() == "Hunter") then
- pUnit:GossipCreateMenu(100, player, 0)
- pUnit:GossipMenuAddItem(3,"|cFF00FFFF------- Talent Path Chooser -------", 99,0)
- pUnit:GossipMenuAddItem(3, "Beast Mastery",7,0)
- pUnit:GossipMenuAddItem(3, "Marksmanship |cFF8B0000(Silencing Shot)",8,0)
- pUnit:GossipMenuAddItem(3, "Survival |cFF8B0000(Black Arrow)",9,0)
- pUnit:GossipSendMenu(player)
- elseif (player:GetPlayerClass() == "Rogue") then
- pUnit:GossipCreateMenu(100, player, 0)
- pUnit:GossipMenuAddItem(3,"|cFF00FFFF------- Talent Path Chooser -------", 99,0)
- pUnit:GossipMenuAddItem(3, "Asassination |cFF8B0000(Mutilate)",10,0)
- pUnit:GossipMenuAddItem(3, "Combat |cFF8B0000(Surprise Attacks)",11,0)
- pUnit:GossipMenuAddItem(3, "Subtlety |cFF8B0000(Shadowstep)",12,0)
- pUnit:GossipSendMenu(player)
- elseif (player:GetPlayerClass() == "Priest") then
- pUnit:GossipCreateMenu(100, player, 0)
- pUnit:GossipMenuAddItem(3,"|cFF00FFFF------- Talent Path Chooser -------", 99,0)
- pUnit:GossipMenuAddItem(3, "Discipline |cFF8B0000(Pain Supression)",13,0)
- pUnit:GossipMenuAddItem(3, "Holy |cFF8B0000(Circle of Healing)",14,0)
- pUnit:GossipMenuAddItem(3, "Shadow |cFF8B0000(Vampiric Touch)",15,0)
- pUnit:GossipSendMenu(player)
- elseif (player:GetPlayerClass() == "Shaman") then
- pUnit:GossipCreateMenu(100, player, 0)
- pUnit:GossipMenuAddItem(3,"|cFF00FFFF------- Talent Path Chooser -------", 99,0)
- pUnit:GossipMenuAddItem(3, "Elemental |cFF8B0000(Totem of Wrath)",16,0)
- pUnit:GossipMenuAddItem(3, "Enhancement |cFF8B0000(Shamanistic Rage)",17,0)
- pUnit:GossipMenuAddItem(3, "Restoration |cFF8B0000(Earth Shield)",18,0)
- pUnit:GossipSendMenu(player)
- elseif (player:GetPlayerClass() == "Mage") then
- pUnit:GossipCreateMenu(100, player, 0)
- pUnit:GossipMenuAddItem(3,"|cFF00FFFF------- Talent Path Chooser -------", 99,0)
- pUnit:GossipMenuAddItem(3, "Frost |cFF8B0000(Summon Water Elemental)",19,0)
- pUnit:GossipMenuAddItem(3, "Fire |cFF8B0000(Dragon's Breath)",20,0)
- pUnit:GossipMenuAddItem(3, "Arcane |cFF8B0000(Slow)",21,0)
- pUnit:GossipSendMenu(player)
- elseif (player:GetPlayerClass() == "Warlock") then
- pUnit:GossipCreateMenu(100, player, 0)
- pUnit:GossipMenuAddItem(3,"|cFF00FFFF------- Talent Path Chooser -------", 99,0)
- pUnit:GossipMenuAddItem(3,"Affliction",22,0)
- pUnit:GossipMenuAddItem(3,"Demonology",23,0)
- pUnit:GossipMenuAddItem(3,"Destruction",24,0)
- pUnit:GossipSendMenu(player)
- elseif (player:GetPlayerClass() == "Druid") then
- pUnit:GossipCreateMenu(100, player, 0)
- pUnit:GossipMenuAddItem(3,"|cFF00FFFF------- Talent Path Chooser -------", 99,0)
- pUnit:GossipMenuAddItem(3,"Balance |cFF8B0000(Typhoon)",25,0)
- pUnit:GossipMenuAddItem(3,"Feral Combat |cFF8B0000(Mangle)",26,0)
- pUnit:GossipMenuAddItem(3,"Restoration |cFF8B0000(Tree of Life",27,0)
- pUnit:GossipSendMenu(player)
- end
- end
- function TalentGenerator_OnSelect(pUnit,event,player,id,intid,code)
- if (intid == 1) then ---- Warrior starts here ----
- player:LearnSpell(46924)
- player:UnlearnSpell(60970)
- player:UnlearnSpell(20243)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Arms!")
- end
- if (intid == 2) then
- player:LearnSpell(60970)
- player:UnlearnSpell(29623)
- player:UnlearnSpell(20243)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Fury!")
- end
- if (intid == 3) then
- player:LearnSpell(20243)
- player:UnlearnSpell(60970)
- player:UnlearnSpell(29623)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Protection!")
- end ---- Paladin Starts Here ----
- if (intid == 4) then
- player:LearnSpell(31842)
- player:UnlearnSpell(31935)
- player:UnlearnSpell(35395)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Holy!")
- end
- if (intid == 5) then
- player:LearnSpell(31935)
- player:UnlearnSpell(31842)
- player:UnlearnSpell(35395)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Protection!")
- end
- if (intid == 6) then
- player:LearnSpell(35395)
- player:UnlearnSpell(31935)
- player:UnlearnSpell(31842)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Retribution!")
- end ---- Hunter Starts Here! ----
- if (intid == 7) then
- player:LearnSpell(34692)
- player:UnlearnSpell(34490)
- player:UnlearnSpell(3674)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Beast Mastery!")
- end
- if (intid == 8) then
- player:LearnSpell(34490)
- player:UnlearnSpell(3674)
- player:UnlearnSpell(34692)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Marksmanship!")
- end
- if (intid == 9) then
- player:LearnSpell(3674)
- player:UnlearnSpell(34490)
- player:UnlearnSpell(34692)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Survival!")
- end ---- Rogue Starts Here! ----
- if (intid == 10) then
- player:LearnSpell(1329)
- player:UnlearnSpell(32601)
- player:UnlearnSpell(36554)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Asassination!")
- end
- if (intid == 11) then
- player:LearnSpell(32601)
- player:UnlearnSpell(36554)
- player:UnlearnSpell(1329)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Combat!")
- end
- if (intid == 12) then
- player:LearnSpell(36554)
- player:UnlearnSpell(1329)
- player:UnlearnSpell(32601)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Subtlety!")
- end ---- Priest Starts Here! ----
- if (intid == 13) then
- player:LearnSpell(33206)
- player:UnlearnSpell(34861)
- player:UnlearnSpell(34914)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Discipline!")
- end
- if (intid == 14) then
- player:LearnSpell(34861)
- player:UnlearnSpell(33206)
- player:UnlearnSpell(34914)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Holy!")
- end
- if (intid == 15) then
- player:LearnSpell(34914)
- player:UnlearnSpell(33206)
- player:UnlearnSpell(34861)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Shadow!")
- end ---- Shaman Starts Here! ----
- if (intid == 16) then
- player:LearnSpell(63283)
- player:UnlearnSpell(30823)
- player:UnlearnSpell(974)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Elemental!")
- end
- if (intid == 17) then
- player:LearnSpell(30823)
- player:UnlearnSpell(63283)
- player:UnlearnSpell(974)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Enhancement!")
- end
- if (intid == 18) then
- player:LearnSpell(974)
- player:UnlearnSpell(30823)
- player:UnlearnSpell(63283)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Restoration!")
- end ---- Mage Starts Here! ----
- if (intid == 19) then
- player:LearnSpell(31687)
- player:UnlearnSpell(31661)
- player:UnlearnSpell(31589)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Frost!")
- end
- if (intid == 20) then
- player:LearnSpell(31661)
- player:UnlearnSpell(31589)
- player:UnlearnSpell(31687)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Fire!")
- end
- if (intid == 21) then
- player:LearnSpell(31589)
- player:UnlearnSpell(31661)
- player:UnlearnSpell(31687)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Arcane!")
- end ---- Warlock Starts Here! ----
- if (intid == 22) then
- player:LearnSpell(30108)
- player:UnlearnSpell(30146)
- player:UnlearnSpell(30283)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Affliction!")
- end
- if (intid == 23) then
- player:LearnSpell(30146)
- player:UnlearnSpell(30283)
- player:UnlearnSpell(30108)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Demonology!")
- end
- if (intid == 24) then
- player:LearnSpell(30283)
- player:UnlearnSpell(30108)
- player:UnlearnSpell(30146)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Destruction!")
- end ---- Druid Starts Here! ----
- if (intid == 25) then
- player:LearnSpell(50516)
- player:UnlearnSpell(33917)
- player:UnlearnSpell(33891)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Balance!")
- end
- if (intid == 26) then
- player:LearnSpell(33917)
- player:UnlearnSpell(33891)
- player:UnlearnSpell(50516)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Feral Combat!")
- end
- if (intid == 27) then
- player:LearnSpell(33891)
- player:UnlearnSPell(33917)
- player:UnlearnSpell(50516)
- player:SendAreaTriggerMessage("|cFF8B0000You have chosen the Talent Path Restoration!")
- end
- if (intid == 99) then
- player:GossipComplete()
- end
- end
- RegisterUnitGossipEvent(82004, 1, "TalentGenerator_OnGossip")
- RegisterUnitGossipEvent(82004, 2, "TalentGenerator_OnSelect")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement