LUA scripting problem menu

User Tag List

Results 1 to 3 of 3
  1. #1
    nick0091's Avatar Private
    Reputation
    11
    Join Date
    Jun 2010
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LUA scripting problem

    I can't seem to get my script to work, the world.exe always says theres an error inside the first line. I made sure LUA was enabled on configs. Heres what it looks like, feel free to correct errors (hopefully I learn from it):

    function Aman'Thul_Player_Enters_Range (Unit, Event)
    Unit:SendChatMessage (0, 10, "At last you have arrived,Sargeras. We have a mission for you. You are to eradicate the Nathrezim race. We have discovered they are the source of corruption to much of the beings of the Twisting Nether")
    end

    RegisterUnitEvent(98018, 10, Aman'Thul_OnPlayerEntersRange)

    LUA scripting problem
  2. #2
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Please post in the correct section next time (Questions & Requests).

    Regarding your question, when registering the event you need to put the name in ". So it should be:

    Code:
    function Aman'Thul_Player_Enters_Range (Unit, Event)
    Unit:SendChatMessage (0, 10, "At last you have arrived,Sargeras. We have  a mission for you. You are to eradicate the Nathrezim race. We have  discovered they are the source of corruption to much of the beings of  the Twisting Nether")
    end
    
    RegisterUnitEvent(98018, 10, "Aman'Thul_OnPlayerEntersRange")

  3. #3
    nick0091's Avatar Private
    Reputation
    11
    Join Date
    Jun 2010
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Stoneharry and sorry for posting in the wrong section

Similar Threads

  1. LUA script problem, teleporter.
    By Romis in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 12-02-2008, 04:32 PM
  2. LUA script problem
    By uberhak3r in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 07-09-2008, 06:32 PM
  3. [Help] Fairly large Lua script problem
    By Muruk in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 03-16-2008, 09:03 PM
  4. LUA Scripting Problem
    By Knife in forum World of Warcraft Emulator Servers
    Replies: 18
    Last Post: 03-10-2008, 02:00 PM
  5. Lua scripts problem
    By Mr.Ice.Cold in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 02-02-2008, 11:44 AM
All times are GMT -5. The time now is 02:51 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search