[Lua] Make mobs with sound. And a trigger question. menu

User Tag List

Results 1 to 6 of 6
  1. #1
    sammiboy's Avatar Member
    Reputation
    10
    Join Date
    May 2007
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Lua] Make mobs with sound. And a trigger question.

    Okey so while being more and more intrested in LUA I ask you these questions ... How do I make Lua codes so the mobs talk with sound? Like Illiadan for an example.
    And to my other question .. How do I make a mob talk when you come like 5-10 feets away from the mob?, like a trigger. Can that be done with Lua?

    Sorry if already posted but couldn't find any matches in this ''Sub-Forum''.

    Thanks in advance. I'll +Rep if you help. If I can that is.
    Also Knowned as Samloo


    [Lua] Make mobs with sound. And a trigger question.
  2. #2
    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)
    For the sound whenever you want him to talk you add
    Code:
     pUnit:PlaySoundToSet(soundID)
    below and function like
    this one:

    Code:
     
    function Skeram_OnEnterCombat(pUnit,Event)
     pUnit:SendChatMessage(14, 0, "Are you so eager to die? I will be happy to accommodate you...")
     pUnit:PlaySoundToSet(8615)
    end
    That makes the mob say something on combat - used an AQ boss for that one

  3. #3
    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)
    Theres also a column in your database that lets u decide on how far a mob will engage in combat (Combat_reach I believe it was called, not sure.)

  4. #4
    sammiboy's Avatar Member
    Reputation
    10
    Join Date
    May 2007
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks alot guys. Just that other question now.
    +Rep for you TheZaronz
    Also Knowned as Samloo


  5. #5
    kreegoth's Avatar Contributor
    Reputation
    122
    Join Date
    Jun 2008
    Posts
    810
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could use something like this also


    Unit:SetOutOfCombatRange(combatrange) -- this sets outofcombatrange.

  6. #6
    sammiboy's Avatar Member
    Reputation
    10
    Join Date
    May 2007
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okey thanks kreegoth.
    Also Knowned as Samloo


Similar Threads

  1. [Guide] Making gold with Jewelcrafting and Enchanting
    By Fadelol in forum World of Warcraft Guides
    Replies: 24
    Last Post: 12-07-2011, 09:22 AM
  2. [Profession] How to make gold with engineering, and enjoy doing it!
    By jdom418 in forum World of Warcraft Guides
    Replies: 1
    Last Post: 04-27-2011, 02:24 AM
  3. How do i make money with leatherworking and enchanting?
    By xylon in forum World of Warcraft General
    Replies: 2
    Last Post: 12-07-2009, 09:51 AM
  4. [Lua] Make mobs channel spell then cast?
    By blah7 in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 01-18-2008, 03:24 PM
  5. giacomo's guide to making money with fihing and cooking
    By Leeroy Jenkins in forum World of Warcraft Guides
    Replies: 11
    Last Post: 07-08-2007, 01:57 AM
All times are GMT -5. The time now is 04:04 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search