Code:
function On_Gossip (pUnit, event, player)
pUnit:GossipCreateMenu(3543, player)
pUnit:GossipMenuAddItem(player, 0, "Buffs", 1, 0)
pUnit:GossipMenuAddItem(player, 0, "Heals", 2, 0)
pUnit:GossipSendMenu(player)
end
function Gossip_HealandBuff (pUnit, event, player, id, intid, code)
if(intid == 1) then
pUnit:GossipCreateMenu(3542, player)
pUnit:GossipMenuAddItem(player, 5, "Blessing of Might", 3, 0)
pUnit:GossipMenuAddItem(player, 5, "Blessing of Wisdom", 4, 0)
pUnit:GossipMenuAddItem(player, 5, "Gift of the Wild", 5, 0)
pUnit:GossipMenuAddItem(player, 5, "Greater Blessing of Might", 6, 0)
pUnit:GossipMenuAddItem(player, 5, "Mark of the Wild", 7, 0)
pUnit:GossipMenuAddItem(player, 5, "Power Word: Shield", 8, 0)
pUnit:GossipMenuAddItem(player, 5, "Power Word: Fortitude", 9, 0)
pUnit:GossipMenuAddItem(player, 5, "Prayer of Fortitude", 10, 0)
pUnit:GossipMenuAddItem(player, 5, "Prayer of Spirit", 11, 0)
pUnit:GossipMenuAddItem(player, 5, "Thorns", 12, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 2) then
pUnit:GossipCreateMenu(3542, player)
pUnit:GossipMenuAddItem(player, 5, "Circle of Healing", 13, 0)
pUnit:GossipMenuAddItem(player, 5, "Flash of Light", 14, 0)
pUnit:GossipMenuAddItem(player, 5, "Greater Heal", 15, 0)
pUnit:GossipMenuAddItem(player, 5, "Healing Touch", 16, 0)
pUnit:GossipMenuAddItem(player, 5, "Holy Light", 17, 0)
pUnit:GossipMenuAddItem(player, 5, "Lay on Hands", 18, 0)
pUnit:GossipMenuAddItem(player, 5, "Lifebloom", 19, 0)
pUnit:GossipMenuAddItem(player, 5, "Rejuvenation", 20, 0)
pUnit:GossipMenuAddItem(player, 5, "Tranquility", 21, 0)
pUnit:GossipSendMenu(player)
end
if(intid == 3) then
player:CastSpell(27140)
end
if(intid == 4) then
player:CastSpell(27142)
end
if(intid == 5) then
player:CastSpell(26991)
end
if(intid == 6) then
player:CastSpell(27141)
end
if(intid == 7) then
player:CastSpell(26990)
end
if(intid == 8) then
player:CastSpell(25218)
end
if(intid == 9) then
player:CastSpell(25389)
end
if(intid == 10) then
player:CastSpell(25392)
end
if(intid == 11) then
player:CastSpell(32999)
end
if(intid == 12) then
player:CastSpell(26992)
end
if(intid == 13) then
player:CastSpell(34866)
end
if(intid == 14) then
player:CastSpell(27137)
end
if(intid == 15) then
player:CastSpell(25213)
end
if(intid == 16) then
player:CastSpell(26979)
end
if(intid == 17) then
player:CastSpell(27136)
end
if(intid == 18) then
player:CastSpell(27154)
end
if(intid == 19) then
player:CastSpell(33763)
end
if(intid == 20) then
player:CastSpell(26982)
end
if(intid == 21) then
player:CastSpell(9862)
end
intid = 0
end
end
RegisterGossipEvent(35000 , 1, "On_Gossip")(35000 , 2,"Gossip_HealandBuff")
Its on line 94 which is underlined, any idea why?