[Help] NPC gossip menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    Stew's Avatar Member
    Reputation
    59
    Join Date
    Sep 2007
    Posts
    239
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help] NPC gossip

    Ok, working on an NPC and i'm trying to add gossip options similar to city guards and those teleport NPCs everyone seems to have,

    So far i've got the right NPC flags, and some basic text that you get when you speak, but no interactive options, can this be done in sql? and if so how, if not how else?

    Thanks
    Stew

    [Help] NPC gossip
  2. #2
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    C++ GossipMenus are what you're looking for.

  3. #3
    Stew's Avatar Member
    Reputation
    59
    Join Date
    Sep 2007
    Posts
    239
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ah ok, is there any way other than c++ like lua etc? i'm really not great with c++ :-(

  4. #4
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just to show you: Stealing some code from Five Gum
    http://www.mmowned.com/forums/emulat...ast-spell.html

    Code:
    function warp_on_gossip_talk3(unit, event, player)
    unit:GossipCreateMenu(3543, player)
    unit:GossipMenuAddItem(player, 5, "Remove Resurrection Sickness", 1, 0)
    unit:GossipMenuAddItem(player, 5, "Mall", 2, 0)
    unit:GossipSendMenu(player)
    end
    
    function warp_on_gossip_select3(unit, event, player, id, intid, code)
     
    if(intid == 1) then
    player:LearnSpell(15007)
    player:UnlearnSpell(15007)
    unit:SendChatMessage(12,0, "Resurrection Sickness has been removed from you.")
    end
    
    if(intid == 2) then
    unit:GetClosestPlayer()
    unit:CastSpellOnTarget(player, 29562)
    end
    
    intid = 0
    end
     
    RegisterGossipEvent(45403 , 1, "warp_on_gossip_talk3")
    RegisterGossipEvent(45403 , 2, "warp_on_gossip_select3")
    Work from that

Similar Threads

  1. [Question] NPC Gossip Spell Learning Script Help + Replacing All Class Resources
    By iamdudelee in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 10-09-2014, 12:15 AM
  2. [HELP] NPC ress sickness eraser
    By kaothic in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 06-28-2008, 08:06 AM
  3. [help]npcs
    By OmriMor in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 05-26-2008, 01:45 PM
  4. [Request?][Help]Npc Say
    By BrantX in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 03-21-2008, 06:11 PM
  5. [HELP] Npc whit Weapon's and Armor
    By Summer in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 02-13-2008, 03:21 PM
All times are GMT -5. The time now is 04:22 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