Snooping Notes or Triggers output

Posted by Bad on Thu 05 Feb 2004 05:47 PM — 5 posts, 19,485 views.

#0
Hello, I'm snooping my friend but I need to see his notes, is it possible? If it's not, can I make a trigger that matches with the chat.xml?
ex: X chats to everybody, 'lalalalala'
Australia Forum Administrator #1
You cannot snoop notes because if you could, and you snooped yourself, the program would go into a big loop (as snoop output is done via a note).

What do you want to do with the trigger? Triggers match incoming text from the MUD, not chats, however in the chat plugin you should be able to do what you want. Do you want to see the chats your friend sees, or something like that?
#2
Me and my friends have a crypt plugin but i'm with some troubles with the admin, and he banned me from the MUD... SO I want to be able to read what they are saying. But i can't see the world.note command of my friend with the decrypted text.

We've made this trigger:

world.setvariable "SyaCrypt", "dciano & [Sirya] [Crypt] & %1 & : & ltrim(crypt(%2,false))"

dim SyaCrypt

SyaCrypt = world.GetVariable ("SyaCrypt")

if isempty (SyaCrypt) then
world.note "It's empty"
end if

if isnull (SyaCrypt) then
world.note "It doesn't exist"
end if

ChatEverybody SyaCrypt, 0

Everything works OK, but:

Alatar chats to everybody, 'dciano & [Sirya] [Crypt] & Alatar Anor & : & ltrim(crypt(œ’§±­,false))'

It sends the exact text, without the decrypt...

What can we do?

edit: The world.note command is:
world.note dciano & "[Sirya] [Crypt]" & "%1" & ":" & ltrim(crypt("%2",false))
But we can't use more than 2 " in the setvar...
Amended on Fri 06 Feb 2004 10:37 PM by Bad
Australia Forum Administrator #3
I'm not sure exactly what you are doing here, it sounds complicated setting variables and all that.

Anyway, if I get this correctly, you have one guy who is allowed on the MUD, and he is decrypting stuff, that you want sent, via chat, to others who are not. Is that right?

Putting aside the problems with crypt itself, which seems to be a different issue, rather than having him do a world.note and then try to pickup the note, just have his trigger do a chat directly. See this page:

http://www.gammon.com.au/scripts/doc.php?function=ChatEverybody

eg. something like:

world.ChatEverybody (ltrim(crypt("%2",false)), 0)
Australia Forum Administrator #4
Re-reading your first post, it sounds like that is what you want ...

Quote:

If it's not, can I make a trigger that matches with the chat.xml?
ex: X chats to everybody, 'lalalalala'


The answer is yes, do this:

ChatEverybody "lalalalala", 0 ' say it
ChatEverybody "sings lalalalala", 1 ' emote it

(Put that in a trigger that does "send to script")