NPC Movement and yells menu

User Tag List

Results 1 to 6 of 6
  1. #1
    willkill's Avatar Member
    Reputation
    4
    Join Date
    May 2008
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    NPC Movement and yells

    Ive played on a server when the boss was engaged, it yelled (red letter came into chat window) and audio was heard as well. How is that possible? Whats the lua command for the red text and the audio? How can you also program a NPC to move with lua? Such as Illidan patrolling.

    NPC Movement and yells
  2. #2
    *~Descending~*'s Avatar Member
    Reputation
    25
    Join Date
    Sep 2008
    Posts
    71
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There are two ways to do this:
    C++:
    void OnCombatStart(Unit * mKiller) {
    _unit->SendChatMessage(CHAT_MSG_MONSTER_YELL, LANG_UNIVERSAL, "TEXT IN HERE");
    //Here you can put a sound in here ID Number of sound
    _unit->PlaySoundToSet(SOUND_ID); }

    LUA:
    pUnit:SendChatMessage(14, 0, "text in here") //I think its 14
    pUnit:PlaySoundToSet(SOUND_ID)




  3. #3
    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)
    Originally Posted by *~Descending~* View Post
    There are two ways to do this:
    C++:
    void OnCombatStart(Unit * mKiller) {
    _unit->SendChatMessage(CHAT_MSG_MONSTER_YELL, LANG_UNIVERSAL, "TEXT IN HERE");
    //Here you can put a sound in here ID Number of sound
    _unit->PlaySoundToSet(SOUND_ID); }

    LUA:
    pUnit:SendChatMessage(14, 0, "text in here") //I think its 14
    pUnit:PlaySoundToSet(SOUND_ID)


    Exactly as he said but the "pUnit" is whatever you have set the function to. In pheory it could even be "Football:PlaySoundToSet(id)" as long as you change the function to. Also to make a mob patroll just target them and do .waypoint add, this will make the unit come to you as it's first point of movement, now walk somewhere else and add another waypoint, they will now walk between those 2 points with a default setting of 5 second gaps. Good luck!

  4. #4
    willkill's Avatar Member
    Reputation
    4
    Join Date
    May 2008
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok cool! Is it possible to make an NPC do a certain animation w/ lua or do I need to do it w/ C++?

  5. #5
    TheZaronz's Avatar Active Member
    Reputation
    97
    Join Date
    Dec 2007
    Posts
    567
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    that can be done by both aswell

  6. #6
    Aznex's Avatar Contributor
    Reputation
    128
    Join Date
    Feb 2008
    Posts
    770
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    :Emote(emoteid) -- Use this to get the unit to do a certain emote.

    ^Lua

Similar Threads

  1. [info] npc faction and type list
    By project anthrax in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 07-23-2008, 09:18 PM
  2. NPCs Gone and Unknown School 0
    By y2kss66 in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 06-01-2008, 11:04 AM
  3. [HELP] Custom NPC's and Weapons
    By Andrew_ in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 03-25-2008, 06:42 AM
  4. [Guide] NPC factions and commands
    By Denelly in forum WoW EMU Guides & Tutorials
    Replies: 4
    Last Post: 11-02-2007, 09:03 PM
  5. Question: NPC creator and Working stv arena?
    By grond in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 10-20-2007, 11:58 AM
All times are GMT -5. The time now is 03:34 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