Hi all,
Is there a probable cause for the instruction 'SendToOps' not to do what it is intended to?
Somehow, I just can't get it to send the desired info to the OpChat. The same data will send using SendToAll, so the parameters must be correct.
Thanks for any suggestions.
Syntax
SendToOPs(from, data)
SendPmToOps(from, data)
SendToAll(from, data)
I don't see a way to sent a pm to "someone" in the Hub from those ....
If u want to sent a msg to OpChat u would use something like this ...
OpChatName = "YourOpChat'sNameHere"
Bot = "YourBotsNameHere"
(your code)...
SendPmToNick (OpChatName, Bot, data)
...(your code)
[Note] From the Scripting.txt found in docs folder in the PtokaX folder, ...
SendPmToNick(to,from, data) - Sends a private message to given nick
to - nickname you want to send the PM to
from - who's sending the message ?
data - string to send[/I]
Quote[code]OpChatName = "YourOpChat'sNameHere"
Bot = "YourBotsNameHere"
(your code)...
SendPmToNick (OpChat, Bot, data)
Thanks Herodes,
But.... if I define 'OpChatName', should I not be using:
SendPmToNick(OpChat
Name, Bot , data) ??
Yes,...true
Sorry bout that, ...
I've edited my post. .. ;D