Author Topic: SendToOps problem.  (Read 1854 times)

0 Members and 1 Guest are viewing this topic.

Offline Shurlock

  • Fulll Member
  • ****
  • Posts: 56
  • Karma: +1/-0
SendToOps problem.
« 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.
If it's raining and your roof leaks, fix the roof. DON'T try to stop the rain!!

PtokaX forum

SendToOps problem.
« on: 05 June, 2004, 02:44:32 »

Herodes

  • Guest
(No subject)
« Reply #1 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 ...
Code: [Select]
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]
« Last Edit: 05 June, 2004, 05:03:51 by Herodes »

Offline Shurlock

  • Fulll Member
  • ****
  • Posts: 56
  • Karma: +1/-0
(No subject)
« Reply #2 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)  ??
If it's raining and your roof leaks, fix the roof. DON'T try to stop the rain!!

Herodes

  • Guest
(No subject)
« Reply #3 on: 05 June, 2004, 05:03:23 »
Yes,...true
Sorry bout that, ...
I've edited my post. .. ;D

PtokaX forum

(No subject)
« Reply #3 on: 05 June, 2004, 05:03:23 »