PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: QuikThinker on 18 November, 2004, 18:25:07

Title: Timed info script
Post by: QuikThinker on 18 November, 2004, 18:25:07
Hey guys, I'm after a timed message script with a difference. I use one already that basically shows info every hour or so but I want one that will show DIFFERENT info depending on the time of day and the actual day.

So basically 4 example on Monday at 19:00 it will say blah blah blah every 15 mins for an hour then it will change at 20:00 & post different info 4 the next 15 mins. I wanna be able 2 edit the script so I can post radio stream info displaying who's show is on radio at that particular time.

It's a big script needed I think. Good luck.
Thanx in advance,
Quik.
Title:
Post by: bastya_elvtars on 18 November, 2004, 22:11:13
QuoteOriginally posted by QuikThinker
Hey guys, I'm after a timed message script with a difference. I use one already that basically shows info every hour or so but I want one that will show DIFFERENT info depending on the time of day and the actual day.

So basically 4 example on Monday at 19:00 it will say blah blah blah every 15 mins for an hour then it will change at 20:00 & post different info 4 the next 15 mins. I wanna be able 2 edit the script so I can post radio stream info displaying who's show is on radio at that particular time.

It's a big script needed I think. Good luck.
Thanx in advance,
Quik.


not that hard 2 solve, i just wanna know what it should do exactly. If there should be a pretybed text in the script, or txtfiles, it can be solved.
Title:
Post by: QuikThinker on 18 November, 2004, 22:59:54
For instance the basic template would be suttin like:

********************************
         LIVE STREAMING RADIO
---------------------------------------------------
LIVE ON "Stream Name" NOW: "name of DJ/crew"
---------------------------------------------------
Time of set: "e.g. 19:00 - 20:00"
*********************************

Suttin LIKE that would be the basic template then I wanna be able 2 manually config it so dependin on the time/date of the host PC it will display the relevant info.

Any good?
Title:
Post by: QuikThinker on 19 November, 2004, 21:42:38
Any help Bastya lol?
Title:
Post by: QuikThinker on 22 November, 2004, 14:35:30
Can no-one help me then?  ;(
Title:
Post by: enema on 22 November, 2004, 17:13:02
I could create a script that shows txt in certain time! If you know in whitch time, whitch text should be posted exactlly, then tell me... for example Time1 =text1, Time2 = text2 ect... Do you need something like that?
Title:
Post by: bastya_elvtars on 22 November, 2004, 17:34:03
QuoteOriginally posted by QuikThinker
Any help Bastya lol?

seems you need shoutstats from mutor. i thought hub-ad r something.
Title:
Post by: QuikThinker on 22 November, 2004, 18:43:47
QuoteOriginally posted by enema
I could create a script that shows txt in certain time! If you know in whitch time, whitch text should be posted exactlly, then tell me... for example Time1 =text1, Time2 = text2 ect... Do you need something like that?

Exactly like that! But it'd need 2 be date and time. So on Monday at 19:00 it would be different 2 Tuesday etc. And I need it so it's editable by me as the shows change etc..
Title:
Post by: enema on 22 November, 2004, 20:30:09
I've just finished.. tested it a little bit, works fine! If thereis any bug or modification needed, just give me a shout! --- enema timed info bot, thanks to plop
--- Date - 22.10.2004
--- time format - ["x:y:z"] x = days, y = hours, z = minutes
--------------------------------------------------------
--- Sunday = 0  -*- Wednesday = 3 -*- Saturday = 6
--- Monday = 1  -*- Thuresday = 4 -*-
--- Tuesday = 2 -*- Friday = 5    -*-
--------------------------------------------------------


iMin = 1000*60
tTime = {
--["timestring"] = "show this string"
["1:21:10"] = "Your_TEXT_HERE!!!",
["1:21:23"] = "Your_TEXT_goes_HERE!!!",
["6:9:00"] = "Your_TEXT_HERE!!!"
}

--------------------------------------------------------
bot = "whatever"

function Main()
current = date("%w:%H:%M")
if tTime[current] then
SendToAll(bot, tTime[current] )
end

SetTimer(iMin)
StartTimer()
end
--------------------------------------------------------
function OnTimer()
current = date("%w:%H:%M")
if tTime[current] then
SendToAll(bot, tTime[current] )
end

end
Title:
Post by: QuikThinker on 22 November, 2004, 20:50:35
I'm not sure if this is exactly wat I want man. lol I'm tryin hard 2 explain. I'll try breakin it down.

1) e.g. the clock strikes 18:00 on Monday nite. The script kicks in and displays
*******************************
LIVE NOW ON http://wateva.com
*****************************
DJ EXAMPLE PLAYIN HIPHOP
*******************************
18:00 TIL 19:00
****************************

2) It will then display that message every 15 mins until his set is finished i.e. at 19:00

3) At 19:00 it will then change the display message to wateva DJ is on next and on wat stream address

4) If no-one DJ is playin at that time it will jus stop until the script reads that it's time 4 another DJ whether it's later that day or the next.

5) I want it 2 read from a txt file so I can edit the DJs, music genre, timeslot, stream addy and any other relevant info 4 each individual timeslot.

I hope this is of more help? lol but probably quite a bit harder?

Thanx in advance,
Quik.