Thread: Clock NPC
View Single Post
  #9  
Old 12-31-2001, 11:39 PM
WoRlaNN2k WoRlaNN2k is offline
Registered User
Join Date: Oct 2001
Location: Ontario, Canada
Posts: 266
WoRlaNN2k is on a distinguished road
Send a message via ICQ to WoRlaNN2k Send a message via AIM to WoRlaNN2k Send a message via Yahoo to WoRlaNN2k
okies i have another question... how do i split the text into different parts?

for example: setclock #1 #2:#3#4 #6
#1=days, #2=hours, #3+4=minutes, and #6=AM/PM...

So when I say "seclock Sunday 12:00 AM" it will set the clock to Sunday 12:00:00 AM (yes i am aware there is another :00 in there, those are seconds and I want those to reset to 00 each time I change the clock).

In the script I have made, these are the different parts:

server.wd=Days
server.wh=Hours
server.wm1=Minutes1
server.wm2=Minutes2
server.ws1=Seconds1
server.ws2=Seconds2
server.wampm=AM/PM

Here's the code I've given the clock itself.

if (created) {
timereverywhere;
timeout=0.05;
}
if (timeout) {
message #s(server.wd) #v(server.wh) #v(server.wm1)#v(server.wm2) #v(server.ws1)#v(server.ws2) #s(server.wampm)
sleep 0.5;
message #s(server.wd) #v(server.wh):#v(server.wm1)#v(server.wm2):#v(serv er.ws1)#v(server.ws2) #s(server.wampm)
timeout=0.5;
}

I hope the information i have given you will help you to help me
Reply With Quote