Code:
local npcid = 5000003
function Buff_OnGossipTalk(pUnit, event, player, pMisc)
pUnit:GossipCreateMenu(100, player, 0)
pUnit:GossipMenuAddItem(5, "Buff's.", 1, 0)
pUnit:GossipMenuAddItem(9, "Remove Rez Sickness", 2, 0)
pUnit:GossipMenuAddItem(4, "Heal", 90, 0)
pUnit:GossipSendMenu(player)
end
function Buff_OnGossipSelect(pUnit, event, player, id, intid, code, pMisc)
if (intid == 1) then
pUnit:GossipCreateMenu(99, player, 0)
pUnit:GossipMenuAddItem(3, "Agility", 3, 0)
pUnit:GossipMenuAddItem(3, "Intellect", 4, 0)
pUnit:GossipMenuAddItem(3, "Protection", 5, 0)
pUnit:GossipMenuAddItem(3, "Spirit", 6, 0)
pUnit:GossipMenuAddItem(3, "Stamina", 7, 0)
pUnit:GossipMenuAddItem(3, "Strength", 8, 0)
pUnit:GossipSendMenu(player)
end
if (intid == 2) then
player:UnlearnSpell(15007)
pUnit:GossipComplete(player)
end
if (intid == 3) then
pUnit:CastSpellOnTarget(33077, player)
pUnit:GossipComplete(player)
end
if (intid == 4) then
pUnit:CastSpellOnTarget(33078, player)
pUnit:GossipComplete(player)
end
if (intid == 5) then
pUnit:CastSpellOnTarget(33079, player)
pUnit:GossipComplete(player)
end
if (intid == 6) then
pUnit:CastSpellOnTarget(33080, player)
pUnit:GossipComplete(player)
end
if (intid == 7) then
pUnit:CastSpellOnTarget(33081, player)
pUnit:GossipComplete(player)
end
if (intid == 8) then
pUnit:CastSpellOnTarget(33082, player)
pUnit:GossipComplete(player)
end
if (intid == 90) then
pUnit:GossipCreateMenu(3543, player, 0)
pUnit:GossipMenuAddItem(4, "Health", 91, 0)
pUnit:GossipSendMenu(player)
end
if (intid == 91) then
pUnit:CastSpellOnTarget(25213,player)
pUnit:GossipComplete()
end
end
RegisterUnitGossipEvent(npcid, 1, "Buff_OnGossipTalk")
RegisterUnitGossipEvent(npcid, 2, "Buff_OnGossipSelect")
Bookmarks