This script gives me error
('<eof>' expected near 'end')
Code:
function Jaquina_OnGossipTalk(pUnit, Event, player)
pUnit:CreateGossipMenuForPlayer(100, player)
pUnit:MenuAddItem(0, "I want to challenge The Invincible One", 1, 0)
pUnit:MenuSendToPlayer(player)
end
function Jaquina_OnGossipSelect(pUnit, Event, player, id, intid, code)
if (intid == 1) then
pUnit:SendChatMessage(14, 0, "You will regret your choice!")
pUnit:Despawn(1, 0)
pUnit:SpawnCreature(253690, -10986.725586, -1317.362061, 52.131664, 1.288844, 14, 360000)
pUnit:GossipComplete(player)
end
end
RegisterUnitGossipEvent(244050, 1, "Jaquina_OnGossipTalk")
RegisterUnitGossipEvent(244050, 2, "Jaquina_OnGossipSelect")
end
+Rep to the one who knows the answer ^^