[Lua] NPC Announcer menu

User Tag List

Results 1 to 5 of 5
  1. #1
    Maven01's Avatar Active Member
    Reputation
    23
    Join Date
    Nov 2007
    Posts
    63
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Lua] NPC Announcer

    I was bored so I wrote this...
    just read the script and edit the parts that need editing.
    Oh and if you need to convert Minutes to Milliseconds to determine how long you want it...Go here CalculateMe.com - Convert Minutes to Milliseconds

    Enjoy!



    Code:
    local timebetweenannounce = 45000 --Time between messages the NPC sends. In Milliseconds
    local restarttime = 120000 --How long you want until it restarts all over again. In Milliseconds
    local npcid = 99999 --The NPC's ID
    
    --Change the folowing text to whatever you want
    local message1 = "Hello! Welcome to our server!"  
    local message2 = "Please don't PvP Here!"  
    local message3 = "Have fun! Don't Forget to vote for us!"
    local message4 = "Visit our site at [Site URL]" 
    local message5 = "This was made by Maven!" 
    
    
    function Announcer_Yell(pUnit, Event)
       pUnit:SendChatMessage(12, 0, message1)
       pUnit:RemoveEvents();
       pUnit:RegisterEvent("Announcer2_Yell", timebetweenannounce, 0) 
    end
    
    function Announcer2_Yell(pUnit, Event)
       pUnit:SendChatMessage(12 ,0, message2)
       pUnit:RemoveEvents();
       pUnit:RegisterEvent("Announcer3_Yell", timebetweenannounce, 0)
    end
    
    function Announcer3_Yell(pUnit, Event)
       pUnit:SendChatMessage(12, 0, message3)
       pUnit:RemoveEvents();
       pUnit:RegisterEvent("Announcer4_Yell", timebetweenannounce, 0)
    end
    
    function Announcer4_Yell(pUnit, Event)
       pUnit:SendChatMessage(12, 0, message4)
       pUnit:RemoveEvents();
       pUnit:RegisterEvent("Announcer5_Yell", timebetweenannounce, 0)
    end
    
    function Announcer5_Yell(pUnit, Event)
       pUnit:SendChatMessage(12, 0, message5)
       pUnit:RemoveEvents();
       pUnit:RegisterEvent("Announcer2_Yell", restarttime, 0)
    end
    
    function Announcer_Start(pUnit, Event)
       pUnit:RegisterEvent("Announcer_Yell", 1000, 0)
    end
    RegisterUnitEvent(npcid, 6, "Announcer_Start")

    [Lua] NPC Announcer
  2. #2
    Entr0py's Avatar Member
    Reputation
    35
    Join Date
    May 2007
    Posts
    396
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yea dude, this does not work, i tryed it out a lil while ago
    got some gay error

    Remember to + Rep people who help you!

  3. #3
    Nilrac's Avatar Banned
    Reputation
    360
    Join Date
    Nov 2007
    Posts
    762
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is NOT yours... DO NOT steal other peoples work...

    Stolen from AscentEmu.com • Information

    This link will not work now because the site us under constuction, But when it is all done, the link will work and you will see how he leeched this


    http://www.mmowned.com/forums/emulat...eads-more.html

  4. #4
    Maven01's Avatar Active Member
    Reputation
    23
    Join Date
    Nov 2007
    Posts
    63
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Lmao...This is mine..

    Code:
    NPC announcer
     This will announce things on your server though out time.
     Maven
     Sorry no DD
     Thread it was seen in
     


    Also found on ArcEmu Board Message

    Also found on my SVN http://mmoforge.org/svn/mavensfun/100%25%20Working/NPC%20Gossip.lua

    All posted by a person named Maven....and seeing as my name is Maven01 on here....Also notice the Avatar?

    So do not accuse me for stealing my own script...
    Last edited by Maven01; 06-19-2008 at 03:27 PM.

  5. #5
    Maisteri's Avatar That spoiler guy
    Reputation
    441
    Join Date
    Aug 2007
    Posts
    893
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this would be great for a big server

Similar Threads

  1. [LUA]NPC Talking
    By P1raten in forum WoW EMU Guides & Tutorials
    Replies: 6
    Last Post: 04-12-2009, 09:12 AM
  2. [Help][Lua] Npc Targeting Another Npc
    By Zudrik in forum WoW EMU Questions & Requests
    Replies: 6
    Last Post: 03-09-2009, 07:25 PM
  3. Lua Npc's healing each other?
    By anything in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 12-05-2008, 02:08 PM
  4. Replies: 40
    Last Post: 11-04-2008, 04:03 PM
  5. [RELEASE] NPC Announcer
    By brian1775 in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 06-12-2008, 01:44 AM
All times are GMT -5. The time now is 04:51 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