Pop-up input. menu

User Tag List

Results 1 to 4 of 4
  1. #1
    Rock Lee's Avatar Banned
    Reputation
    41
    Join Date
    Jul 2010
    Posts
    155
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Pop-up input.

    I want a window to pop up when clicking the "Create a new body" option.

    This is what i want:



    When i press the option nothing happens and i dont get any errors in world.exe

    Code:
    BODY = {}
    
    function Menu_OnTrigger(item, event, player)
    	MailMenu(item, player)
    end
    
    function Menu(item, player)
    	item:GossipCreateMenu(57003, player, 0)
    	item:GossipMenuAddItem(0, "Create a new body.", 1, 0)
    	item:GossipSendMenu(player)
    end
    
    function Menu_OnSelect(item, event, player, id, intid, Code)
    	if (intid == 1) then
    		Body(item, event, player, Code)
    	end
    end
    	
    RegisterItemGossipEvent(57100, 1, "Menu_OnTrigger")
    RegisterItemGossipEvent(57100, 2, "Menu_OnSelect")
    
    function Body(item, event, player, Code)
    	BODY[player] = Code
    	item:GossipCreateMenu(57003, player, 0)
    	item:GossipMenuAddItem(0, "Save Body.", 1, 0)	
    	item:GossipSendMenu(player)
    end

    Pop-up input.
  2. #2
    Dynashock's Avatar Contributor

    Reputation
    176
    Join Date
    Nov 2007
    Posts
    203
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Change
    Code:
    item:GossipMenuAddItem(0, "Create a new body.", 1, 0)
    to
    Code:
    item:GossipMenuAddItem(0, "Create a new body.", 1, 1)
    The last value determines whether you want a codebox to pop up or not.
    Ignorance is bliss.

  3. #3
    Rock Lee's Avatar Banned
    Reputation
    41
    Join Date
    Jul 2010
    Posts
    155
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Dynashock View Post
    Change
    Code:
    item:GossipMenuAddItem(0, "Create a new body.", 1, 0)
    to
    Code:
    item:GossipMenuAddItem(0, "Create a new body.", 1, 1)
    The last value determines whether you want a codebox to pop up or not.
    Thank you.

  4. #4
    riizu's Avatar Active Member
    Reputation
    16
    Join Date
    Oct 2007
    Posts
    263
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sombero,

    Also, you can refer to the value in the code box as "code" I believe. You will also have to state that its a number if you wanted to use a number input, otherwise the script will bug out. Theres an excellent guide over on WoW-V for advanced Gossip Scipt options.

Similar Threads

  1. Pop culture references.
    By holllyywood in forum World of Warcraft General
    Replies: 31
    Last Post: 09-23-2007, 04:10 AM
  2. My 1st Pop out Sig
    By Phase228 in forum Art & Graphic Design
    Replies: 13
    Last Post: 06-08-2007, 11:03 AM
  3. dagger rogues builds? input PLZ
    By former in forum World of Warcraft General
    Replies: 2
    Last Post: 03-08-2007, 07:21 PM
  4. TBC "pop a mob at will" repeatable exploit
    By Grass in forum World of Warcraft Exploits
    Replies: 4
    Last Post: 01-22-2007, 08:45 PM
  5. The dead scar instant pop *with map*
    By Ark in forum World of Warcraft Exploits
    Replies: 6
    Last Post: 01-22-2007, 02:28 AM
All times are GMT -5. The time now is 04:56 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