Help with script menu

User Tag List

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

    Help with script

    How do i make it So this Script Works and repeats i cant seem to get it to work

    Will +Rep if you help me

    Code:
    local timebetweenannounce = 45000 --Time between messeges the NPC sends
    local restarttime = 45000 --How long you want until it restarts all over again.
    local npcid = 55555 --The NPC's ID
    
    
    local message1 = "Hello! Welcome to WoWSnap! The staff here at WoWSnap hopes you enjoy your Stay! Please Have Fun!" 
    local message2 = "Dont Forget To Vote! Voting Reward System Is in the Process of Being made!" 
    
    
    
    function Announcer_Yell(pUnit, Event)
    pUnit:SendChatMessage(12, 0, message1)
    pUnit:RemoveEvents();
    pUnit:RegisterEvent("Announcer2_Yell", timebetweenannounce, 45000)
    end
    
    function Announcer2_Yell(pUnit, Event)
    pUnit:SendChatMessage(12 ,0, message2)
    pUnit:RemoveEvents();
    pUnit:RegisterEvent("Announcer3_Yell", timebetweenannounce, 45000)
    end
    
    
    function Announcer_Start(pUnit, Event)
    pUnit:RegisterEvent("Announcer_Yell", 1000, 0)
    end
    RegisterUnitEvent(55555, 6, "Announcer_Start")
    Last edited by Silentnvd; 08-06-2008 at 08:12 PM.

    Help with script
  2. #2
    Silentnvd's Avatar Member
    Reputation
    49
    Join Date
    Jan 2008
    Posts
    295
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    anyone at all >.<

  3. #3
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    local timebetweenannounce = 45000 --Time between messeges the NPC sends
    local restarttime = 45000 --How long you want until it restarts all over again.
    local npcid = 55555 --The NPC's ID
    
    
    local message1 = "Hello! Welcome to WoWSnap! The staff here at WoWSnap hopes you enjoy your Stay! Please Have Fun!" 
    local message2 = "Dont Forget To Vote! Voting Reward System Is in the Process of Being made!" 
    
    
    
    function Announcer_Yell(pUnit, Event)
    pUnit:SendChatMessage(12, 0, message1)
    pUnit:RemoveEvents();
    pUnit:RegisterEvent("Announcer2_Yell", timebetweenannounce, 45000)
    end
    
    function Announcer2_Yell(pUnit, Event)
    pUnit:SendChatMessage(12 ,0, message2)
    pUnit:RemoveEvents();
    pUnit:RegisterEvent("Announcer_Yell", timebetweenannounce, 45000)
    end
    
        
    function Announcer_Start(pUnit, Event)
    pUnit:RegisterEvent("Announcer_Yell", 1000, 0)
    end
    RegisterUnitEvent(55555, 6, "Announcer_Start")
    The repeat problem should be fixed now, does you get any error on load?

Similar Threads

  1. New Private Server - Need Help with Scripting Please
    By Xerxe in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 04-14-2008, 09:02 AM
  2. [Help] New to LUA, Need help with script.
    By nickelo in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 03-14-2008, 11:23 PM
  3. [Help] I need help with Script's
    By PsycoDisciples in forum World of Warcraft Emulator Servers
    Replies: 11
    Last Post: 01-24-2008, 05:20 PM
  4. i need help with script, im a noob
    By orangegold in forum WoW UI, Macros and Talent Specs
    Replies: 2
    Last Post: 10-27-2007, 05:47 PM
  5. help with scripts
    By orangegold in forum World of Warcraft General
    Replies: 0
    Last Post: 03-28-2007, 05:50 PM
All times are GMT -5. The time now is 05:18 AM. 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