The error is telling you it is at line 10. So if we go to line 10 we can see that this is a function, so it must be somewhere in this part. Now it tells you it's expected near an end, if we have a look you can see you need one end for the function, and there are no if statements or anything so you can thats all you need. The problem is that you have three end's, and you don't need three, only one.
Now the next function, same thing:
Code:
function OnSelect(item, event, player, id, intid, code)
if (intid == 2) then
item:GossipCreateMenu(3543, player, 0)
item:GossipMenuAddItem(2, "Go To The Final Battle", 40, 0)
item:GossipSendMenu(player)
end
if (intid == 40) then
player:Teleport(0, -8913, 555, 95)
end
should be:
Code:
function OnSelect(item, event, player, id, intid, code)
if (intid == 2) then
item:GossipCreateMenu(3543, player, 0)
item:GossipMenuAddItem(2, "Go To The Final Battle", 40, 0)
item:GossipSendMenu(player)
end
if (intid == 40) then
player:Teleport(0, -8913, 555, 95)
end
end
Because you need to end the function and the if statements.
Edit: Xendro beat me to it.