PtokaX forum

PtokaX => FAQ section => Topic started by: Shurlock on 05 June, 2004, 02:44:32

Title: SendToOps problem.
Post by: Shurlock on 05 June, 2004, 02:44:32
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.
Title:
Post by: Herodes on 05 June, 2004, 03:01:29
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]
Title:
Post by: Shurlock on 05 June, 2004, 03:19:55
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(OpChatName, Bot , data)  ??
Title:
Post by: Herodes on 05 June, 2004, 05:03:23
Yes,...true
Sorry bout that, ...
I've edited my post. .. ;D