[LUA] Teleporter (Making Several Menus inside one menu) menu

User Tag List

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

    [LUA] Teleporter (Making Several Menus inside one menu)

    Hello Guys. I'm experienced with LUA scripting, but I've never actually tried to do what I'm going to explain bellow.

    I want to add an menu inside one menu, but at the same time have some areas inside the first menu:


    if(intid == 14) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "Market Area", 888, 0)
    pUnit:GossipMenuAddItem(1, "The War Room", 889, 0)
    pUnit:GossipMenuAddItem(1, "Battle Room", 890, 0)
    pUnit:GossipMenuAddItem(1, "Training Room", 891, 0)
    pUnit:GossipMenuAddItem(1, "Guild Hall", 892, 0)
    pUnit:GossipMenuAddItem(1, "Outer Token Area", 893, 0)

    pUnit:GossipMenuAddItem(
    pUnit:GossipMenuAddItem(
    pUnit:GossipMenuAddItem(
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end
    What I want to do, is to get all the RED areas inside a new menu, inside the pUnit:GossipCreateMenu(3543, player, 0) in the intid 14, but at the same time have some other areas inside the pUnit:GossipCreateMenu(3543, player, 0).

    Is this possible, and if so, could someone show me how to do it? I will +Rep if someone helps me out here.

    - Buffy

    [LUA] Teleporter (Making Several Menus inside one menu)
  2. #2
    Death_Master's Avatar Member
    Reputation
    4
    Join Date
    Mar 2009
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what is it you mean
    but at the same time have some other areas inside the pUnit:GossipCreateMenu(3543, player, 0).

  3. #3
    Jotox's Avatar Contributor
    Reputation
    250
    Join Date
    Mar 2008
    Posts
    282
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Change "Custom Areas" to change the submenu label, and if 950 (intid) is already taken then change it to somethin else.

    if(intid == 14) then
    pUnit:GossipCreateMenu(3543, player, 0)
    pUnit:GossipMenuAddItem(1, "Custom Areas", 950);
    pUnit:GossipMenuAddItem(
    pUnit:GossipMenuAddItem(
    pUnit:GossipMenuAddItem(
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0)
    pUnit:GossipSendMenu(player)
    end

    if intid==950 then
    pUnit:GossipCreateMenu(3543, player, 0);
    pUnit:GossipMenuAddItem(1, "Market Area", 888, 0);
    pUnit:GossipMenuAddItem(1, "The War Room", 889, 0);
    pUnit:GossipMenuAddItem(1, "Battle Room", 890, 0);
    pUnit:GossipMenuAddItem(1, "Training Room", 891, 0);
    pUnit:GossipMenuAddItem(1, "Guild Hall", 892, 0);
    pUnit:GossipMenuAddItem(1, "Outer Token Area", 893, 0);
    pUnit:GossipMenuAddItem(0, "[Back]", 999, 0);
    pUnit:GossipSendMenu(player);
    end

Similar Threads

  1. [QUESTION] Is it possible to make several MPQ files into one?
    By Herbalism in forum WoW ME Questions and Requests
    Replies: 8
    Last Post: 06-16-2010, 09:11 AM
  2. [Guide] How to make a lua teleporter
    By Djfrederick in forum WoW EMU Guides & Tutorials
    Replies: 59
    Last Post: 04-22-2009, 09:53 PM
  3. [LUA] Teleport on spell use
    By Eponyx in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 05-24-2008, 10:10 AM
  4. LUA scripting -- Making game objects cast spells.
    By Jotox in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 05-08-2008, 03:44 PM
  5. How do i make an item with a menu
    By NoSuperStar in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 02-27-2008, 02:23 PM
All times are GMT -5. The time now is 10:59 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