Help with LUA menu

Shout-Out

User Tag List

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

    Help with LUA

    Yeah i justed finished LUA but I put it to a Mob, but it wont let me see the Teleporters.

    Here

    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(3544, player, 0)
    unit:GossipMenuAddItem(2, "Ally Mall",1,0)

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

    if(intid == 999) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(2, "Dark Level",1,0)
    unit:GossipMenuAddItem(2, "High Level",2,0)

    if(intid ==1) then
    player:Teleport(0,-7909.974609,-454.915710,170.517166)
    unit:GossipComplete(player)
    end
    player:Teleport(1,3986.837646,-1294.251831,250.215576)
    unit:GossipComplete(player)
    end

    RegisterUnitGossipEvent(50,1,On_Gossip)
    RegisterUnitGossipEvent(50,2,Gossip_Submenus)




    Can someone help??

    Help with LUA
  2. #2
    iday's Avatar Member
    Reputation
    10
    Join Date
    Jan 2009
    Posts
    21
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It should rather look like this:

    Code:
    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(3544, player, 0)
    unit:GossipMenuAddItem(2, "Ally Mall",1,0)
    unit:GossipMenuAddItem(2, "Dark Level",2,0)
    unit:GossipMenuAddItem(2, "High Level",3,0)
    end
    
    function Gossip_Submenus(unit, event, player, id, intid, code)
    
    if(intid == 999) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(2, "Ally mall",1,0)
    unit:GossipMenuAddItem(2, "Dark Level",2,0)
    unit:GossipMenuAddItem(2, "High Level",3,0)
    end
    
    if(intid == 1) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(5, "Ally mall", 1, 0)
    end
    
    if(intid ==1) then
    player:Teleport(0,-7909.974609,-454.915710,170.517166)
    unit:GossipComplete(player)
    end
    
    if(intid ==2) then
    player:Teleport(0,-7909.974609,-454.915710,170.517166)
    unit:GossipComplete(player)
    end
    
    
    if(intid ==3) then
    player:Teleport(0,-7909.974609,-454.915710,170.517166)
    unit:GossipComplete(player)
    end
    
    
    RegisterUnitGossipEvent(50,1,On_Gossip)
    RegisterUnitGossipEvent(50,2,Gossip_Submenus)
    Just Remember to edit the Coords:Þ
    But i guess you´ll be adding more stuff to it so:Þ

Similar Threads

  1. help with LUA
    By controlsx2 in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 05-07-2008, 02:20 PM
  2. Anyone willing to help with LUA scripting
    By nickeg in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 03-09-2008, 05:53 PM
  3. [Request] I need some help with lua script (boss on death)
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 03-03-2008, 03:47 PM
  4. Need help with LUA
    By Arugos in forum World of Warcraft Emulator Servers
    Replies: 18
    Last Post: 02-28-2008, 12:54 PM
  5. [Help] With Lua ...(where to attach it?)
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 13
    Last Post: 02-15-2008, 05:50 PM
All times are GMT -5. The time now is 06:29 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