PDA

View Full Version : Scripting Help :P



Uranium
20-03-2002, 18:11
Right I got this code here:


alias talkingclock {


/timer1 17:00 1 1 /sound Wizbit.mp3 | /say [Talking Clock]It's now 17:00
/timer2 18:00 1 1 /sound Wizbit.mp3 | /say [Talking Clock]It's now 18:00
/timer3 19:00 1 1 /sound Wizbit.mp3 | /say [Talking Clock]It's now 19:00
/timer4 20:00 1 1 /sound Wizbit.mp3 | /say [Talking Clock]It's now 20:00
}

I want to be able to type /talkingclock and then loads the timers, but when I type /talkingclock it spams all the say part of the script in the channel :(

Would be even better if the timers were loaded every time IRC ran so I don't have to load em manually :D

Thanks.

GameGuru
20-03-2002, 19:42
Not 100% sure how well this'll work, but here goes:


ON *:START: {
timer1 17:00 1 1 sound wavfile.wav
timer2 17:00 1 1 say The time is now 17:00
timer3 18:00 1 1 sound wavfile.wav
timer4 18:00 1 1 say The time is now 18:00
}

etc.

Note that this should go into your Remotes section of mIRC scripts (Alt + R)

HTH

Uranium
20-03-2002, 20:06
Thanks, seems to have done the trick :)

Uranium
20-03-2002, 20:13
I added the name of the room in so it only plays in one channel.


timer1 17:00 1 1 sound #room wavfile.wav
timer2 17:00 1 1 say #room The time is now 17:00

That should work fine hopefully :)

GameGuru
20-03-2002, 20:34
Use /msg #channel instead of /say since /say uses the current channel.

(Didn't realise, but u can't use /say outside of use in aliases so u must use /msg #chan instead)

/sound #chan is fine tho

Strembles
24-03-2002, 18:13
LOL, why would anyone want anything like that??
IMO it'd be the most annoying thing in the world:P
.......
/me goes off to make one that says the time every 5 minutes
MWHUAHAHAHAHAHAHAHAHAHAHAHAHA:E