Gossip - Advanced Help Question menu

User Tag List

Results 1 to 3 of 3
  1. #1
    choweyiii's Avatar Contributor
    Reputation
    91
    Join Date
    Aug 2010
    Posts
    127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Gossip - Advanced Help Question

    I was learning all about lua the last few weeks and i was wondering if it's possible for a gossip npc to ask for a password, and if it's correct, it will do a certain thing, cast/teach a spell, if at all possible, tell me how it's done, or where I can read about it, all this is so new, and exiteing, I want to learn anything Anyone can teach me, I will +rep

    Gossip - Advanced Help Question
  2. #2
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    When adding a gossip menu this is the syntex:

    pUnit:GossipMenuAddItem(button display, "message", intid, extra)

    Now extra is set to 0 by default, but if you set it to 1 then it makes a message box pop up. Then on the on button click function you can check for the code:
    Code:
    function zWolly_Gossip_Submenus(pUnit, event, player, id, intid, code)
    if(intid == 246) then
        local code = string.lower(code) -- makes the message all lower case letters so we can check better
        if code == "message typed into box" then
        player:GossipComplete()
        end
    end
    end

  3. #3
    choweyiii's Avatar Contributor
    Reputation
    91
    Join Date
    Aug 2010
    Posts
    127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks alot +rep

Similar Threads

  1. [HELP] Question on SQL Areas
    By DrkAngl in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 06-14-2008, 02:31 PM
  2. [Question and Help] Questions . give +rep x1
    By LiiM in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 03-10-2008, 09:31 AM
  3. [HELP/QUESTION] Is this possible?
    By King Shaun in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 03-02-2008, 02:37 PM
  4. [help/question] Firework show rep for help
    By ion564 in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 02-24-2008, 04:09 AM
  5. Cheezeit's Help/Questions thread
    By Cheezeit117 in forum World of Warcraft General
    Replies: 37
    Last Post: 08-14-2007, 10:04 PM
All times are GMT -5. The time now is 05:29 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