Looks great.
Is this a LUA Script? =)
Trade Feedbacks
This obviously didn't take long but I find it's a valuable asset in every repack, funserver, blizzlike realm, or mid-rate server.
Basically - It's an announcer. You control the timer and what it says. You can gain more forum members, you could remind your players to vote or you could give them sneeky tips.
The code:
NPCID = The ID of the NPC you want this script to be attatched to.Code:****************************** * * * The FrostTeam Project * * * ****************************** --FrostTeam SVN consists of the latest WotLK scripts, both Lua and C++. Some will be our own, some will be others with credits attatched. Our Svn includes all scripts that you may need to help make your server a more fun environment.-- ---------------------------//---------------------------------------------- -- These are the local configs of the script -- -- Only change this part of the script unless you want to allow extra announce messages -- local Timebetweenannounce = TIMEHERE local Npcid = NPCID local message1 = "MessageHere" local message2 = "MessageHere" local message3 = "MessageHere" local message4 = "MessageHere" -- Local config end -- function Announcer_Yell(pUnit, Event) Choice=math.random(1, 4) if Choice==1 then pUnit:SendChatMessage(12, 0, message1) if Choice==2 then pUnit:SendChatMessage(12, 0, message2) if Choice==3 then pUnit:SendChatMessage(12, 0, message3) if Choice==4 then pUnit:SendChatMessage(12, 0, message4) end end function Announcer_Start(pUnit, Event) pUnit:RegisterEvent("Announcer_Yell", Timebetweenannounce, 0) end RegisterUnitEvent(Npcid, 6, "Announcer_Start") -- End --
TIMEHERE = Time between each announce.
MessageHere = Messages you want the announcer to say.
This IS untested, so please post all feedback; positive and negative!
Thanks and enjoy.
Last edited by Nymphx; 01-17-2009 at 10:55 PM.
Proud member of The FrostTeam Project
Our SVN - subversion.assembla.com/svn/frosteam/
Trade Feedbacks
Looks great.
Is this a LUA Script? =)
Trade Feedbacks
Yes it is. It might not look like one because of the locals + the "FrostTeam" heading and maybe because it doesn't view like normal Lua scripts?. Thanks for the quick reply
.
Proud member of The FrostTeam Project
Our SVN - subversion.assembla.com/svn/frosteam/
Trade Feedbacks
Cool, i will test now : D
Will post a feedback in 5-10 minutes ;-)
Trade Feedbacks
Thanks alot. Meanwhile I will work on another small project (A boss spawner).
Proud member of The FrostTeam Project
Our SVN - subversion.assembla.com/svn/frosteam/
Trade Feedbacks
Well, i started my server, and checked my world.exe for the script to load.
Sadly it says that it failed to load.
Last edited by Tornad0z; 01-17-2009 at 11:19 PM.
Nymphx what is frost team??
Lunar Gaming - Reaching For The Stars
Trade Feedbacks
cool do they have a site where i could apply at??
Lunar Gaming - Reaching For The Stars
Trade Feedbacks
Im not sure if they have a website, but i know that they have a SVN running
If you want to apply for the team, you should send Nymphx a PM i suggest.
Trade Feedbacks
Currently we are not hiring. I am just downloading any old repack to test the scriptWill have it working within 20 minutes hopefully.
Proud member of The FrostTeam Project
Our SVN - subversion.assembla.com/svn/frosteam/
Trade Feedbacks
Thank you for working so hard on your projects Nymphx.
Let me know when you fix it =)
EDIT: I'm sorry i couldn't help that much, but im not a coder ;p
tornadoz why don't you try to learn its a great hobbie and its fun : )
Lunar Gaming - Reaching For The Stars
Trade Feedbacks
Heh Mager.
I will have to try it sometime, cause next year i will be studying computer science at school![]()
thats a fun lil subject if you ever need help just ask me alright : )
Lunar Gaming - Reaching For The Stars
Bookmarks