Make an NPC whisper Correctly menu

User Tag List

Results 1 to 4 of 4
  1. #1
    AngelSandy's Avatar Member
    Reputation
    19
    Join Date
    Jan 2009
    Posts
    330
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Make an NPC whisper Correctly

    Code:
    if(intid == 5) then
    pUnit:SendChatMessage(15,0,"Message!")
    end
    Lets imagine I got the above piece of Code.
    Will this Whisper all in range?
    Or will it only whisper the one choosing Option 5?

    Because if it whispers all in the area, then I would like to know, how I make it whisper only the person who choosed the option.

    Make an NPC whisper Correctly
  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)
    SendChatMessages effect all within range.
    Try this (not sure if it will work):

    Code:
    local Target = pUnit:GetTarget()
    Target:SendChatMessage(15,0,"Test, may not work!")

    Or this will work:


    Code:
    player:SendBroadcastMessage("I'm a weener") -- Send yellow text to chat bawx
    player:SendAreaTriggerMessage("I'm on your screen!") -- flashes to screen
    Last edited by stoneharry; 05-19-2009 at 01:43 PM.

  3. #3
    AngelSandy's Avatar Member
    Reputation
    19
    Join Date
    Jan 2009
    Posts
    330
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I need it as a whisper, so that only the player who asked for it, will get what he asked for...the rest of the server doesn't have to know :b

  4. #4
    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)
    The code i showed you should only effect the player, 1st one havn't tested but 2nd one I know only effects player.

Similar Threads

  1. [trinitycore2]Make an npc whisper
    By diantonio in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 11-19-2009, 12:03 PM
  2. [Help] Making a NPC Teach you spells
    By Haza in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 12-18-2007, 11:45 AM
  3. [GM Scripting] Making a npc Talk at a % of Health Points
    By Illidan1 in forum WoW EMU Guides & Tutorials
    Replies: 10
    Last Post: 11-10-2007, 06:34 PM
  4. Replies: 14
    Last Post: 10-31-2007, 01:17 PM
  5. Make Alliance NPCs kill Alliance in IF
    By Cloud in forum World of Warcraft Exploits
    Replies: 27
    Last Post: 08-23-2006, 11:52 AM
All times are GMT -5. The time now is 01:45 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