Hi I need a simple script that PM's a message (in a .txt file) to every connecting operator. I feel kinda stupid that I can't make it myself, but it just wont work :( (and I cant find it on the board anywhere).
A script that pm's a message that is in the script to connecting operators will also do(, but its a message of 12 lines) :)
thx in advance!
Why don't you post the script you have been working on here. Then we can help you complete it and you learn some more scripting... ;-)
Hint nr1:
-----------
SendToOps(from, data) - Sends data to main chat of all operators
from - nick of sending user or bot or anything
data - string to send
Ex.: SendToOps("Banner", "User XX has been banned.")
Shows in mainchat of every operator User XX has been banned.
SendPmToOps(from, data) - Sends private message to all operators from specified nick
from - nick of user or bot who's sending the PM
data - string to send
-- From Scripting.txt
Hint nr2:
-----------
NewUserConnected()
Hint nr3:
-----------
readfrom(filename)
local line = read("*a'')
readfrom()
Thx!
The reading from a file I already have, I'll give it a try with the other hints added :)
Please give me a day, I will post the script here, working or not :)
Great! :-)