Code:
function warp_on_gossip_talk3(unit, event, player)
if (unit:GetHealthPct() > 100)then
if(unit:GetFaction()) = ally faction 1 or 2 or 3 or 4 or 5 then
unit:GossipCreateMenu(3543, player)
unit:GossipMenuAddItem(player, 5, "Remove Resurrection Sickness", 1, 0)
unit:GossipMenuAddItem(player, 5, "Mall", 2, 0)
unit:GossipSendMenu(player)
else
unit:SendChatMessage(12,0, "You are below 100% health, regenerate back to 100% to continue.")
end
end
function warp_on_gossip_select3(unit, event, player, id, intid, code)
if(intid == 1) then
player:LearnSpell(15007)
player:UnlearnSpell(15007)
unit:SendChatMessage(12,0, "Resurrection Sickness has been removed from you.")
end
if(intid == 2) then
unit:GetClosestPlayer()
unit:CastSpellOnTarget(player, 29562)
end
intid = 0
end
RegisterGossipEvent(45403 , 1, "warp_on_gossip_talk3")
RegisterGossipEvent(45403 , 2, "warp_on_gossip_select3")
Edit: What would it be if I just wanted a certain class to see it? GetClass = 2?