Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- - Developer(s): Ghostcrawler336
- - Complete: %15
- - ScriptName: 'Profession Trainer'
- - Comment: N/A
- ]]--
- local NPC_Entry = 600000
- function On_Gossip(event, player, unit)
- --Menu
- player:GossipMenuAddItem(0, "Alchemy", 2, 0)
- player:GossipMenuAddItem(0, "Blacksmithing", 3, 0)
- player:GossipMenuAddItem(0, "Enchanting", 4, 0)
- player:GossipMenuAddItem(0, "Engineering", 5, 0)
- player:GossipMenuAddItem(0, "Herbalism", 6, 0)
- player:GossipMenuAddItem(0, "Inscription", 7, 0)
- player:GossipMenuAddItem(0, "Jewelcrafting", 8, 0)
- player:GossipMenuAddItem(0, "Leatherworking", 9, 0)
- player:GossipMenuAddItem(0, "Mining", 10, 0)
- player:GossipMenuAddItem(0, "Skinning", 11, 0)
- player:GossipMenuAddItem(0, "Cooking", 12, 0)
- plauer:GossipMenuAddItem(0, "First Aid", 13, 0)
- player:GossipMenuAddItem(0, "Fishing", 14, 0)
- player:GossipMenuAddItem(0, "Tailoring", 15, 0)
- player:GossipSendMenu(1, unit)
- end
- function On_Select(unit, event, player, id, intid, code)
- -- Functions to learn professions
- -- Alchemy
- if(intid == 2) then
- player:LearnSpell(50301, player)
- SendBroadcastMessage("I have trained you Alchemy, enjoy.")
- end
- -- Blacksmithing
- if(intid == 3) then
- player:LearnSpell(51298, player)
- SendBroadcastMessage("I have trained you Blacksmithing, enjoy.")
- end
- if(intid == 4) then
- player:LearnSpell(51312, player)
- SendBroadcastMessage("I have trained you Enchanting, enjoy.")
- end
- RegisterCreatureGossipEvent(NPC_ID, 1, On_Gossip)
- RegisterCreatureGossipEvent(NPC_ID, 2, On_Select)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement