Lua Script Error menu

Shout-Out

User Tag List

Results 1 to 5 of 5
  1. #1
    jAy?'s Avatar Active Member
    Reputation
    19
    Join Date
    Sep 2007
    Posts
    75
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua Script Error

    Hello Guys, and thank you for taking your time to help me

    I just started to mess around with lua... taking tut and what not. Everything is goin well but then when I try to use my teleporter, it does not work.

    Here is a picture of what it looks like

    Here is my script

    Code:
    -- Variables
    local NPC_ID = 900001
    
    -- On Triggers
    function exampleGossipOnTalk(Unit, Event, player)
        Unit:GossipCreateMenu(100, player, 0)
        Unit:GossipMenuAddItem(0, "Teleport me to the mall.", 1, 0)
        Unit:GossipMenuAddItem(0, "Remove Resurrection Sickness.", 2, 0)
        Unit:GossipMenuAddItem(0, "Never mind.", 3, 0)
        Unit:GossipSendMenu(player)
    end
    
    function exampleGossipOnSelect(Unit, Event, player, id, intid, code, pMisc)
        if (intid == 1) then
            player:Teleport(1, -9101.980469, 1612.902832, 21)
            player:GossipComplete()
        end
        if (intid == 2) then
            if (player:HasAura(15007) == true) then
                player:SendBroadcastMessage("Resurrection Sickness has been removed. Be careful next time!")
                player:RemoveAura(15007)
                player:GossipComplete()
            else
                player:SendBroadcastMessage("You do not have Resurrection Sickness!")
                player:GossipComplete()
            end
        end
        if (intid == 3) then
            player:GossipComplete()
        end
    end
    
    -- RegisterUnitEvents
    RegisterUnitGossipEvent(900001, 1, "exampleGossipOnTalk")
    RegisterUnitGossipEvent(900001, 2, "exampleGossipOnSelect")
    Thanks for the help..

    Lua Script Error
  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)
    Looks correct from a quick glance, guess it could be with the new 'LuaBridge' engine where everything has changed. Compile the LuaHypArc engine instead and then it should work (read ArcEmu wiki/forums to find out how).

  3. #3
    jAy?'s Avatar Active Member
    Reputation
    19
    Join Date
    Sep 2007
    Posts
    75
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can't seem to find it anywhere but ill keep looking and thanks for helping me

  4. #4
    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)
    /trunk/src/scripts/projects <-- These are all different extra projects you can compile, most compile by default.

    You want to not compile the LuaBridge one (default) and compile the LuaScripting one instead.

  5. #5
    jAy?'s Avatar Active Member
    Reputation
    19
    Join Date
    Sep 2007
    Posts
    75
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks alot stoneharry. Btw keep up your great work.. I loved the Jail Break Single Player RPG

Similar Threads

  1. Lua script error
    By rygarok in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 02-09-2010, 11:35 AM
  2. LUA script error
    By flameworker in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 04-13-2009, 05:16 AM
  3. LUA script error :(
    By lilbdiablo12 in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 10-29-2008, 07:45 PM
  4. LUA Script Error, Help would be appreciated!
    By pachuco55 in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 06-20-2008, 06:03 PM
  5. [Help me] Lua script error? please help.
    By Szharz in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 03-22-2008, 12:20 PM
All times are GMT -5. The time now is 12:02 AM. 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