How to fix this LUA Script??? menu

User Tag List

Results 1 to 1 of 1
  1. #1
    marcosgue's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    18
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to fix this LUA Script???

    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

    How to fix this LUA Script???

Similar Threads

  1. How can i revert this Lua script ?
    By Wheeze201 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 08-11-2009, 03:04 PM
  2. [FIX] This Lua. Script plzzzZ?
    By cello1993 in forum WoW EMU Questions & Requests
    Replies: 6
    Last Post: 05-03-2009, 11:09 AM
  3. [Guide] How To: Fix A Lua Script
    By Arthas117 in forum Programming
    Replies: 1
    Last Post: 09-28-2008, 01:01 AM
  4. + 2 REP if you could tell me how to fix this for my server
    By mafiaboy in forum World of Warcraft Emulator Servers
    Replies: 21
    Last Post: 12-23-2007, 03:07 PM
  5. How i fix this Model editing of mounts
    By raptornl in forum World of Warcraft General
    Replies: 0
    Last Post: 01-26-2007, 01:00 PM
All times are GMT -5. The time now is 02:37 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search