LUA item gossip help menu

Shout-Out

User Tag List

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

    LUA item gossip help

    I need some help with a LUA script
    I want to make an item that can open me a vendor tab when I click on it.For example when i click on the item a new ,,window'' appears and when I choose ,,I want to buy food"-a vendor window will appear.
    Can someone help me?
    Sorry for bad english.

    LUA item gossip help
  2. #2
    Kaidos's Avatar Contributor
    Reputation
    148
    Join Date
    Jun 2008
    Posts
    324
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Heya, wait a moment i think there is a command in LuaHypArc for opening the vendor window...

    anyway here is the structure of an item with gossip:


    Code:
    local LuaVendorItem = ITEMID
    
    
    function LuaVendor_OnUse(item, event, player)
        LuaVendor_Menu(item, player)
    end
    
    
    function LuaVendor_Menu(item, player)                   
        item:GossipCreateMenu(1000, player, 0)
        item:GossipMenuAddItem(9, "I want to buy food.", 300, 0)
        item:GossipMenuAddItem(0, "Nevermind.", 301, 0)
        item:GossipSendMenu(player)
    end
    
    function LuaVendor_OnSelect(item, event, player, id, intid, code)
    if (intid == 300) then
      --[[ Lua Command for VendorWindow here ]]--
    end
    
    
    if (intid == 301) then
        player:GossipComplete()
    end
    
    end
     
    RegisterItemGossipEvent(LuaVendorItem, 1, "LuaVendor_OnUse")
    RegisterItemGossipEvent(LuaVendorItem, 2, "LuaVendor_OnSelect")
    You only need to add your item id in ITEMID.

  3. #3
    naturaunglosar's Avatar Member
    Reputation
    9
    Join Date
    Mar 2009
    Posts
    22
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks! +Rep

Similar Threads

  1. [Request or Help] Simple LUA Item
    By freeride474 in forum WoW EMU Questions & Requests
    Replies: 9
    Last Post: 04-11-2010, 10:06 AM
  2. How to buy An Item with an Item...Please Help
    By Biden in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 05-23-2008, 06:35 AM
  3. LUA Boss Script Help
    By neurothymia in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 02-05-2008, 02:57 PM
  4. Removing Items , need help
    By entrepid in forum World of Warcraft Emulator Servers
    Replies: 18
    Last Post: 11-10-2007, 11:38 AM
  5. Custom Item Creation HELP
    By noodels in forum World of Warcraft General
    Replies: 5
    Last Post: 11-09-2007, 03:03 AM
All times are GMT -5. The time now is 02:00 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