Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local npcid = 55555 -- "55555" is your Entry ID, you can change it at any time!
- function Vendor_OnGossip(pUnit,event,player)
- pUnit:GossipCreateMenu(100, player, 0)
- pUnit:GossipMenuAddItem(3,"Professions", 100, 0)
- pUnit:GossipMenuAddItem(2,"All Done",999,0)
- pUnit:GossipSendMenu(player)
- end
- function Vendor_OnSelect(pUnit,event,player,id,intid,code)
- if(intid == 100) then
- pUnit:GossipCreateMenu(50, player, 0)
- pUnit:GossipMenuAddItem(0, "Alchemy", 400, 0)
- pUnit:GossipMenuAddItem(0, "Blacksmithing", 401, 0)
- pUnit:GossipMenuAddItem(0, "Enchanting", 402, 0)
- pUnit:GossipMenuAddItem(0, "Engineering", 403, 0)
- pUnit:GossipMenuAddItem(0, "Herbalism", 404, 0)
- pUnit:GossipMenuAddItem(0, "Inscription", 405, 0)
- pUnit:GossipMenuAddItem(0, "Jewelcrafting", 406, 0)
- pUnit:GossipMenuAddItem(0, "Leatherworking", 407, 0)
- pUnit:GossipMenuAddItem(0, "Mining", 408, 0)
- pUnit:GossipMenuAddItem(0, "Skinning", 409, 0)
- pUnit:GossipMenuAddItem(0, "Cooking", 410, 0)
- pUnit:GossipMenuAddItem(0, "First Aid", 411, 0)
- pUnit:GossipMenuAddItem(0, "Fishing", 412, 0)
- pUnit:GossipMenuAddItem(0, "Tailoring", 413, 0)
- pUnit:GossipMenuAddItem(5, "Set my profession skills to 450", 450,0)
- pUnit:GossipMenuAddItem(2,"All Done",999,0)
- pUnit:GossipSendMenu(player)
- end
- --Alchemy
- if(intid == 400) then
- pUnit:GossipCreateMenu(3543, player, 0)
- pUnit:GossipMenuAddItem(3, "Unlearn Grand Master Alchemy", 415, 0)
- pUnit:GossipMenuAddItem(3, "Grand Master Alchemy", 416, 0)
- pUnit:GossipSendMenu(player)
- end
- --BlackSmithing
- if(intid == 401) then
- pUnit:GossipCreateMenu(3543, player, 0)
- pUnit:GossipMenuAddItem(3, "Unlearn Grand Master Blacksmithing", 417, 0)
- pUnit:GossipMenuAddItem(3, "Grand Master Blacksmithing", 418, 0)
- pUnit:GossipSendMenu(player)
- end
- --Enchanting
- if(intid == 402) then
- pUnit:GossipCreateMenu(3543, player, 0)
- pUnit:GossipMenuAddItem(3, "UnlearnGrand Master Enchanting", 419, 0)
- pUnit:GossipMenuAddItem(3, "Grand Master Enchanting", 420, 0)
- pUnit:GossipSendMenu(player)
- end
- --Engineering
- if(intid == 403) then
- pUnit:GossipCreateMenu(3543, player, 0)
- pUnit:GossipMenuAddItem(3, "Unlearn Grand Master Engineering", 421, 0)
- pUnit:GossipMenuAddItem(3, "Grand Master Engineering", 422, 0)
- pUnit:GossipSendMenu(player)
- end
- --Herbalism
- if(intid == 404) then
- pUnit:GossipCreateMenu(3543, player, 0)
- pUnit:GossipMenuAddItem(3, "Unlearn Grand Master Herbalism", 423, 0)
- pUnit:GossipMenuAddItem(3, "Grand Master Herbalism", 424, 0)
- pUnit:GossipSendMenu(player)
- end
- --Inscription
- if(intid == 405) then
- pUnit:GossipCreateMenu(3543, player, 0)
- pUnit:GossipMenuAddItem(3, "Unlearn Grand Master Inscription", 425, 0)
- pUnit:GossipMenuAddItem(3, "Grand Master Inscription", 426, 0)
- pUnit:GossipSendMenu(player)
- end
- --Jewelcrafting
- if(intid == 406) then
- pUnit:GossipCreateMenu(3543, player, 0)
- pUnit:GossipMenuAddItem(3, "Unlearn Grand Master Jewelcrafting", 427, 0)
- pUnit:GossipMenuAddItem(3, "Grand Master Jewelcrafting", 428, 0)
- pUnit:GossipSendMenu(player)
- end
- --Leatherworking
- if(intid == 407) then
- pUnit:GossipCreateMenu(3543, player, 0)
- pUnit:GossipMenuAddItem(3, "Unlearn Grand Master Leatherworking", 429, 0)
- pUnit:GossipMenuAddItem(3, "Grand Master Leatherworking", 430, 0)
- pUnit:GossipSendMenu(player)
- end
- --Mining
- if(intid == 408) then
- pUnit:GossipCreateMenu(3543, player, 0)
- pUnit:GossipMenuAddItem(3, "Unlearn Grand Master Mining", 431, 0)
- pUnit:GossipMenuAddItem(3, "Grand Master Mining", 432, 0)
- pUnit:GossipSendMenu(player)
- end
- --Skinning
- if(intid == 409) then
- pUnit:GossipCreateMenu(3543, player, 0)
- pUnit:GossipMenuAddItem(3, "Unlearn Grand Master Skinning", 433, 0)
- pUnit:GossipMenuAddItem(3, "Grand Master Skinning", 434, 0)
- pUnit:GossipSendMenu(player)
- end
- --Cooking
- if(intid == 410) then
- pUnit:GossipCreateMenu(3543, player, 0)
- pUnit:GossipMenuAddItem(3, "Unlearn Grand Master Cooking", 435, 0)
- pUnit:GossipMenuAddItem(3, "Grand Master Cooking", 436, 0)
- pUnit:GossipSendMenu(player)
- end
- --First Aid
- if(intid == 411) then
- pUnit:GossipCreateMenu(3543, player, 0)
- pUnit:GossipMenuAddItem(3, "Unlearn Grand Master First Aid", 437, 0)
- pUnit:GossipMenuAddItem(3, "Grand Master First Aid", 438, 0)
- pUnit:GossipSendMenu(player)
- end
- --Fishing
- if(intid == 412) then
- pUnit:GossipCreateMenu(3543, player, 0)
- pUnit:GossipMenuAddItem(3, "Unlearn Grand Master Fishing", 439, 0)
- pUnit:GossipMenuAddItem(3, "Grand Master Fishing", 440, 0)
- pUnit:GossipSendMenu(player)
- end
- --Tailor
- if(intid == 413) then
- pUnit:GossipCreateMenu(3543, player, 0)
- pUnit:GossipMenuAddItem(3, "Unlearn Grand Master Tailor", 441, 0)
- pUnit:GossipMenuAddItem(3, "Grand Master Tailor", 442, 0)
- pUnit:GossipSendMenu(player)
- end
- --This is the unlearn/learn procces
- if(intid == 415) then
- pUnit:GossipCreateMenu(3544, player, 0)
- player:UnlearnSpell(51303)
- player:GossipComplete()
- end
- if(intid == 416) then
- pUnit:GossipCreateMenu(3544, player, 0)
- pUnit:FullCastSpellOnTarget(51303, player)
- player:GossipComplete()
- end
- if(intid == 417) then
- pUnit:GossipCreateMenu(3544, player, 0)
- player:UnlearnSpell(51298)
- player:GossipComplete()
- end
- if(intid == 418) then
- pUnit:GossipCreateMenu(3544, player, 0)
- pUnit:FullCastSpellOnTarget(51298, player)
- player:GossipComplete()
- end
- if(intid == 419) then
- pUnit:GossipCreateMenu(3544, player, 0)
- player:UnlearnSpell(51312)
- player:GossipComplete()
- end
- if(intid == 420) then
- pUnit:GossipCreateMenu(3544, player, 0)
- pUnit:FullCastSpellOnTarget(51312, player)
- player:GossipComplete()
- end
- if(intid == 421) then
- pUnit:GossipCreateMenu(3544, player, 0)
- player:UnlearnSpell(51305)
- player:GossipComplete()
- end
- if(intid == 422) then
- pUnit:GossipCreateMenu(3544, player, 0)
- pUnit:FullCastSpellOnTarget(51305, player)
- player:GossipComplete()
- end
- if(intid == 423) then
- pUnit:GossipCreateMenu(3544, player, 0)
- player:UnlearnSpell(50301)
- player:GossipComplete()
- end
- if(intid == 424) then
- pUnit:GossipCreateMenu(3544, player, 0)
- pUnit:FullCastSpellOnTarget(50301, player)
- player:GossipComplete()
- end
- if(intid == 425) then
- pUnit:GossipCreateMenu(3544, player, 0)
- player:UnlearnSpell(45380)
- player:GossipComplete()
- end
- if(intid == 426) then
- pUnit:GossipCreateMenu(3544, player, 0)
- pUnit:FullCastSpellOnTarget(45380, player)
- player:GossipComplete()
- end
- if(intid == 427) then
- pUnit:GossipCreateMenu(3544, player, 0)
- player:UnlearnSpell(51310)
- player:GossipComplete()
- end
- if(intid == 428) then
- pUnit:GossipCreateMenu(3544, player, 0)
- pUnit:FullCastSpellOnTarget(51310, player)
- player:GossipComplete()
- end
- if(intid == 429) then
- pUnit:GossipCreateMenu(3544, player, 0)
- player:UnlearnSpell(51301)
- player:GossipComplete()
- end
- if(intid == 430) then
- pUnit:GossipCreateMenu(3544, player, 0)
- pUnit:FullCastSpellOnTarget(51301, player)
- player:GossipComplete()
- end
- if(intid == 431) then
- pUnit:GossipCreateMenu(3544, player, 0)
- player:UnlearnSpell(50309)
- player:GossipComplete()
- end
- if(intid == 432) then
- pUnit:GossipCreateMenu(3544, player, 0)
- pUnit:FullCastSpellOnTarget(50309, player)
- player:GossipComplete()
- end
- if(intid == 433) then
- pUnit:GossipCreateMenu(3544, player, 0)
- player:UnlearnSpell(50307)
- player:GossipComplete()
- end
- if(intid == 434) then
- pUnit:GossipCreateMenu(3544, player, 0)
- pUnit:FullCastSpellOnTarget(50307, player)
- player:GossipComplete()
- end
- if(intid == 435) then
- pUnit:GossipCreateMenu(3544, player, 0)
- player:UnlearnSpell(51295)
- player:GossipComplete()
- end
- if(intid == 436) then
- pUnit:GossipCreateMenu(3544, player, 0)
- pUnit:FullCastSpellOnTarget(51295, player)
- player:GossipComplete()
- end
- if(intid == 437) then
- pUnit:GossipCreateMenu(3544, player, 0)
- player:UnlearnSpell(50299)
- player:GossipComplete()
- end
- if(intid == 438) then
- pUnit:GossipCreateMenu(3544, player, 0)
- pUnit:FullCastSpellOnTarget(50299, player)
- player:GossipComplete()
- end
- if(intid == 439) then
- pUnit:GossipCreateMenu(3544, player, 0)
- player:UnlearnSpell(51293)
- player:GossipComplete()
- end
- if(intid == 440) then
- pUnit:GossipCreateMenu(3544, player, 0)
- pUnit:FullCastSpellOnTarget(51293, player)
- player:GossipComplete()
- end
- if(intid == 441) then
- pUnit:GossipCreateMenu(3544, player, 0)
- player:UnlearnSpell(51308)
- player:GossipComplete()
- end
- if(intid == 442) then
- pUnit:GossipCreateMenu(3544, player, 0)
- pUnit:FullCastSpellOnTarget(51308, player)
- player:GossipComplete()
- end
- if (intid == 450) then
- pUnit:GossipCreateMenu(3545, player, 0)
- player:AdvanceSkill(333, 450)
- player:AdvanceSkill(197, 450)
- player:AdvanceSkill(202, 450)
- player:AdvanceSkill(755, 450)
- player:AdvanceSkill(171, 450)
- player:AdvanceSkill(164, 450)
- player:AdvanceSkill(182, 450)
- player:AdvanceSkill(165, 450)
- player:AdvanceSkill(186, 450)
- player:AdvanceSkill(393, 450)
- player:AdvanceSkill(185, 450)
- player:AdvanceSkill(129, 450)
- player:AdvanceSkill(356, 450)
- player:AdvanceSkill(773, 450)
- pUnit:SendChatMessage(12,0,"Your Skills Are Set To 450")
- player:GossipComplete()
- end
- if (intid == 999) then
- player:GossipComplete()
- end
- end
- RegisterUnitGossipEvent(npcid, 1, "Vendor_OnGossip")
- RegisterUnitGossipEvent(npcid, 2, "Vendor_OnSelect")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement