Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- SkillNPC
- Scripted by Psykko @ Ms-Crew.net - Bloodhorn Reloaded
- ]]--
- local T =
- {
- -- Aufbau: [Klasse] = {SpellID}
- ["Paladin"] = {20773,13819,34767},
- ["Warrior"] = {355,25275,30330,71,2458},
- ["Hunter"] = {1515,883,5149,982,6991},
- ["Druid"] = {6795,26996,5487,9634,1066,33943,40120},
- ["Mage"] = {45438},
- ["Warlock"] = {688,697,712,691,5784,23161},
- ["NPCID"] = 70012,
- }
- function Spell_OnGossipTalk(unit, event, pPlayer)
- unit:GossipCreateMenu(3000, pPlayer, 0)
- unit:GossipMenuAddItem(2, "Klassen Skills", 1, 0)
- unit:GossipMenuAddItem(0, "Auf Wiedersehn", 2, 0)
- unit:GossipSendMenu(pPlayer)
- end
- function Spell_OnGossipSelect(unit, event, pPlayer, id, intid, code)
- if (intid == 1) then
- local Class = pPlayer:GetPlayerClass()
- if(Class and T[Class]) then
- for _, SpellID in ipairs(T[Class]) do
- pPlayer:LearnSpell(SpellID)
- end
- end
- end
- pPlayer:GossipComplete()
- end
- RegisterUnitGossipEvent(T.NPCID, 1, Spell_OnGossipTalk)
- RegisterUnitGossipEvent(T.NPCID, 2, Spell_OnGossipSelect)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement