LUA Scripting - NPC Emote when Yelling menu

User Tag List

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

    LUA Scripting - NPC Emote when Yelling

    Hey All,
    Have been searching for 2 days now for a solution to this but everywhere seems to be devoid of emote guides.

    Quick backstory, I am making an area in my server that is very RP oriented and I want to have my main dude yelling a sort of story... I have the yelling working, my issue is, when he yells he doesnt do the yelling emote as well and I cant figure out why I am unable to get it to work.

    It yells fine but doesnt move which looks funny... I have tried adding
    Unit.Emote(5)
    directly underneath the SendChatMessage even but it doesnt wanna work.

    Any help would be greatly appreciated!

    This is my condensed script for testing (I realise the random is uneccesary at the moment).

    Code:
    function Name(Unit, Event)
    Unit:RegisterEvent("Ellzed_Say", 40000, 0)
    end
    
    function Ellzed_Say(Unit, Event)
    local chance = math.random(1,1)
    if(chance == 1) then
    Unit:SendChatMessage(14, 0, "Hello Is This Working")
    end
    end
    
    function Ellzed_Died(Unit, Event)
    Unit:RemoveEvents()
    end 
    
    RegisterUnitEvent(50000, 18, "Name")
    RegisterUnitEvent(50000, 4, "Ellzed_Died")
    Core: ArcEmu (Latest, compiled 2 Nights Ago)
    Core Revision: Latest
    Database: Hmm... WhyDB again latest
    Database Revision:
    Repack you used (if any): Hells no.... self compile ftl
    Last edited by adambeale; 09-11-2009 at 10:49 PM.

    LUA Scripting - NPC Emote when Yelling
  2. #2
    Sounddead's Avatar Contributor
    Reputation
    160
    Join Date
    Sep 2007
    Posts
    1,126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You tried Unit:Emote(emoter number)?

    You said you tried Unit.Emote so idk if you meant : or not.

    I live in a shoe

  3. #3
    adambeale's Avatar Member
    Reputation
    1
    Join Date
    Aug 2008
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Sounddead View Post
    You tried Unit:Emote(emoter number)?

    You said you tried Unit.Emote so idk if you meant : or not.
    Yeah, sorry, my bad.... The one i tried was Unit:Emote..... Have been looking at the emotes in game using .npc emote so had the fullstop in my head

    Thanks for trying though!

  4. #4
    Sounddead's Avatar Contributor
    Reputation
    160
    Join Date
    Sep 2007
    Posts
    1,126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not at home right now, so I don't really have the resources to look into the issue for you, BUT my advice would be to try some other emotes and see if the emote function is broken, or if its just the emote your trying to use.

    I live in a shoe

  5. #5
    adambeale's Avatar Member
    Reputation
    1
    Join Date
    Aug 2008
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Sounddead View Post
    I'm not at home right now, so I don't really have the resources to look into the issue for you, BUT my advice would be to try some other emotes and see if the emote function is broken, or if its just the emote your trying to use.
    All good thank you for trying... And it seems to be the whole command that isnt working... The core is loading the script okay and it knows when I use the command incorrectly as I get errors showing in the core but when it seems all right it loads fine and no errors show so im stumped. Can you think of any other way to do it?

  6. #6
    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)
    :Emote(emote id, how long to do it for) is how to do an emote, for example if I wanted somone to do the talk emote for 5 seconds:
    :Emote(1, 5000)
    If this isn't working your probably using the default Lua engine which 90% of the time is screwed up and most of the commands are broken. I advise you get the GuaEngine or have a look around the forums of the emulater you use for a better engine.

Similar Threads

  1. Replies: 2
    Last Post: 06-01-2010, 05:29 AM
  2. LUA scripting Quest NPC
    By Dz The Rage in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 04-05-2009, 01:36 PM
  3. [Release] Buff NPC (my first LUA script)
    By TheNacho in forum WoW EMU General Releases
    Replies: 3
    Last Post: 01-31-2009, 06:33 PM
  4. Will this teleporter npc lua script work?
    By Bapes in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 05-22-2008, 11:50 AM
  5. Making NPC`s talk without LUA scripting.
    By Mr FlySquirrel in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 02-27-2008, 10:13 AM
All times are GMT -5. The time now is 01:21 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