Code:
function On_Gossip(unit, event, player)
unit:GossipCreateMenu(3544, player, 0)
unit:GossipMenuAddItem(2, "Remove Rezz Sickness", 1, 0)
unit:GossipMenuAddItem(2, "Remove Deserter", 3, 0)
unit:GossipMenuAddItem(2, "Add Master Hammersmith", 4, 0)
unit:GossipMenuAddItem(2, "Add Master Swordsmith", 5, 0)
unit:GossipMenuAddItem(2, "Add Master Axesmith", 6, 0)
unit:GossipMenuAddItem(2, "Add Goblin Engineering", 7, 0)
unit:GossipMenuAddItem(2, "Add Gnomish Engineering", 8, 0 )
unit:GossipMenuAddItem(2, "Made by Furious / Armageddon of WoW-Hazzard", 999, 3)
unit:GossipSendMenu(player)
end
function Gossip_Submenus(unit, event, player, id, intid, code)
end
if(intid == 3544) then
function On_Gossip(unit, event, player)
unit:GossipCreateMenu(3544, player, 0)
unit:GossipMenuAddItem(2, "Remove Rezz Sickness", 1, 0)
unit:GossipMenuAddItem(2, "Remove Coward", 3, 0)
unit:GossipMenuAddItem(2, "Add Master Hammersmith", 4, 0)
unit:GossipMenuAddItem(2, "Add Master Swordsmith", 5, 0)
unit:GossipMenuAddItem(2, "Add Master Axesmith", 6, 0)
unit:GossipMenuAddItem(2, "Add Goblin Engineering", 7, 0)
unit:GossipMenuAddItem(2, "Add Gnomish Engineering", 8, 0)
unit:GossipSendMenu(player)
end
if(intid == 1) then
player:LearnSpell(15007)
player:UnlearnSpell(15007)
end
if(intid == 3) then
player:LearnSpell(26013)
player:UnlearnSpell(26013)
end
if(intid == 4) then
player:LearnSpell(17040)
player:UnlearnSpell(17041)
player:UnlearnSpell(17039)
end
if(intid == 5) then
player:LearnSpell(17039)
player:UnlearnSpell(17040)
player:UnlearnSpell(17041)
end
if(intid == 6) then
player:LearnSpell(17041)
player:UnlearnSpell(17040)
player:UnlearnSpell(17039)
end
if(intid == 7) then
player:LearnSpell(20221)
player:UnlearnSpell(20220)
end
if(intid == 8) then
player:LearnSpell(20220)
player:UnlearnSpell(20221)
end
end
RegisterUnitGossipEvent(555555, 1, "On_Gossip")
RegisterUnitGossipEvent(555555, 2, "Gossip_Submenus")