LUA script problem, teleporter. menu

User Tag List

Results 1 to 5 of 5
  1. #1
    Romis's Avatar Contributor
    Reputation
    155
    Join Date
    Dec 2006
    Posts
    359
    Thanks G/R
    8/2
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LUA script problem, teleporter.

    Ello!

    I have made a little LUA script, and I'm a total noob, so bare with me.
    This is how it looks?

    Code:
    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(50, player, 0)
    unit:GossipMenuAddItem(0, "Fun Places!", 1, 0)
    unit:GossipSendMenu(player)
    end
    
    function Gossip_Submenus(unit, event, player, id, intid, code)
    if(intid == 1) then
    unit:GossipCreateMenu(51, player, 0)
    unit:GossipMenuAddItem(1, "Shopping Mall", 10, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 10) then
    player:Teleport(1, 7444, -1692, 2)
    end
    
    RegisterUnitGossipEvent(60008, 1, "On_GossipMenu")
    RegisterUnitGossipEvent(60008, 2, "On_GossipSelect")
    Does anyone know what's wrong? :P



    LUA script problem, teleporter.
  2. #2
    Romis's Avatar Contributor
    Reputation
    155
    Join Date
    Dec 2006
    Posts
    359
    Thanks G/R
    8/2
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anyone? ( fill0r )



  3. #3
    Edude's Avatar Member
    Reputation
    98
    Join Date
    Jul 2008
    Posts
    406
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(50, player, 0)
    unit:GossipMenuAddItem(0, "Fun Places!", 1, 0)
    unit:GossipSendMenu(player)
    end
    
    function Gossip_Submenus(unit, event, player, id, intid, code)
    if(intid == 1) then
    unit:GossipCreateMenu(51, player, 0)
    unit:GossipMenuAddItem(1, "Shopping Mall", 10, 0)
    unit:GossipSendMenu(player)
    end
    end
    
    if(intid == 10) then
    player:Teleport(1, 7444, -1692, 2)
    end
    
    RegisterUnitGossipEvent(60008, 1, "On_GossipMenu")
    RegisterUnitGossipEvent(60008, 2, "On_GossipSelect")
    You had to put 2 "ends" to close the function and the "if" :P

  4. #4
    Romis's Avatar Contributor
    Reputation
    155
    Join Date
    Dec 2006
    Posts
    359
    Thanks G/R
    8/2
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh! I'm so stupid! Thanks ^^

    Edit:

    Sorry I have to spread some rep before I can rep you AGAIN :P
    Last edited by Romis; 12-02-2008 at 01:56 PM.



  5. #5
    Edude's Avatar Member
    Reputation
    98
    Join Date
    Jul 2008
    Posts
    406
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No problem lawl

Similar Threads

  1. Lua script problem
    By robinelitenn in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 10-22-2009, 11:27 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 09:14 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