Lua script error menu

User Tag List

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

    Lua script error

    Hi there, im starting into Lua scripting for make npc gossip, mob, etc. I would like to know what is my error in this script (Teleporter)

    When im starting world.exe, i got an error like Expected symbol "=" near On_Gossip or something like that.

    There is the script:
    ____________________________________
    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(3544, player, 1)
    unit:GossipMenuAddItem(2, "Capital Cities", 1, 1)
    unit:GossipSendMenu(player)
    end

    function Gossip_Submenus(unit, event, player, id, intid, code)

    if(intid == 999) then
    unit:GossipCreateMenu(3543, player, 1)
    unit:GossipMenuAddItem(2, "Main Cities", 1, 1)
    unit:GossipSendMenu(player)
    end

    if(intid == 1) then
    unit:GossipCreateMenu(3543, player, 1)
    unit:GossipMenuAddItem(1, "Stormwind", 300, 1)
    unit: Gossipmenuadditem(1, "Darnassus", 200, 1)
    unit:GossipSendMenu(player)
    end


    if(intid == 300) then
    player:Teleport(0, -8870.773438, 586.072815, 92.664047)
    unit:GossipComplete(player)
    end

    elseif

    if (intid == 200) then
    player:Teleport(0, -3039.23891, 293.93482, 70.3295)
    Unit: GossipCompolete(Player)
    end

    RegisterUnitGossipEvent(43214, 1, "On_Gossip")
    RegisterUnitGossipEvent(43214, 1, "Gossip_Submenus")

    ____________________________________________________

    So, i dont know where is my error, and if you can give me a link or something like that, for learn lua scripting (world of warcraft), I would apréciate.

    Thanks

    Lua script error

Similar Threads

  1. [Lua] lua script errors - HELP
    By singoe in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 04-28-2010, 07:42 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 01:38 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