Code:
function On_Gossip(unit, event, player)
unit:GossipCreateMenu(3544, player, 0)
unit:GossipMenuAddItem(2, "Resurrect Now?", 1, 0)
unit:GossipMenuAddItem(2, "Nevermind", 2, 0)
unit:GossipSendMenu(player)
end
function Gossip_Submenus(unit, event, player, id, intid, code)
if(intid == 999) then
unit:GossipCreateMenu(3543, player, 0)
unit:GossipMenuAddItem(2, "Resurrect Now?", 1, 0)
unit:GossipSendMenu(player)
end
if(intid == 2) then
player:GossipComplete()
if(intid == 1) then
unit:RessurectPlayer() -- if this doesn't work do player: instead of unit:
player:GossipComplete()
end
end
RegisterUnitGossipEvent(6491, 1, "On_Gossip")
RegisterUnitGossipEvent(6491, 2, "Gossip_Submenus")