First sorry for my english.
Well i have a problem, in my lua scripts is this file. QUEST - Moonglade.lua and this is the code
Code:
--[[ QUEST - Moonglade
********************************
* *
* The NCDB Project *
* *
********************************
This software is provided as free and open source by the
staff of The NCDB Project, in accordance with
the GPL license. This means we provide the software we have
created freely and it has been thoroughly tested to work for
the developers, but NO GUARANTEE is made it will work for you
as well. Please give credit where credit is due, if modifying,
redistributing and/or using this software. Thank you.
Staff of NCDB Project, December 2007
~~End of License Agreement
All credits for the files in this folder that are GameMonkey scripts
go to the GMScripts project, for all their hard work for the Ascent
community.
-- NCDB Project,December 2007 ]]
function Moonglade_Quest_onAccept (pUnit, Event)
player = pUnit:getClosestPlayer ()
pUnit:CastSpellOnTarget (19027, player)
end
RegisterQuestEvent (5921, 2, "Moonglade_Quest_onAccept")
RegisterQuestEvent (5922, 2, "Moonglade_Quest_onAccept")
But when i take the quest ascent tell me that scripts\QUEST - Moonglade.lua:27: attempt to call method 'getClossestPlayer' <a nil vallue>
But don't give me the spell "teleport to moonglade"
anybody can fix it?
Thanx