RE: [REQUEST] Blocker with message.
Hey there
Here's what I did in the last half hour.
There are two limitations I was not in the mood of making a very user-friendly script so someone can pick this up and do the configuration thing. I just demonstrated how to do it with a simple and far from efficient script.
One of the limitations is you have to edit a txt file to add the contacts you want to block with a message. I'm sure someone can make the /block <person> <message> thing for you.
The other limitation is that you can't use "nicknames" for people in your contact list (and from this one you can't really escape..I might be able to do this with sniffing packets.. I'll give you a heads up tomorrow).
So if contacts don't have nicknames and if you have them in the text file.. it'll send them the message and close the window very quickly. I dont think you can actually stop the window from opening with only scripting. Maybe a plugin.
Make a file in c: named contacts.txt with the following structure:
[email]
Msg=[Msg you want sent to the person].
ex:
[bob@hotmail.com]
Msg=You're blocked because you're not SpunkyLoveMuff.
[John@msn.com]
Msg=You're blocked because you are a moron!!!. Please die.
The script with read that file and check if the person has any message set to him/her.
The path for the file has to be "c:\contacts.txt" . If you want you can change that in the script to something you prefer.
Hope this helps
Good luck!
Attachment: BlockingMessage.plsc (1.34 KB)
This file has been downloaded 166 time(s).
This post was edited on 12-06-2006 at 11:46 PM by Deco.
|