Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Snooping Notes or Triggers output

Snooping Notes or Triggers output

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Bad   (2 posts)  Bio
Date Thu 05 Feb 2004 05:47 PM (UTC)
Message
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'
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Fri 06 Feb 2004 09:25 PM (UTC)
Message
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?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Bad   (2 posts)  Bio
Date Reply #2 on Fri 06 Feb 2004 10:33 PM (UTC)

Amended on Fri 06 Feb 2004 10:37 PM (UTC) by Bad

Message
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...
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #3 on Sat 07 Feb 2004 07:45 PM (UTC)
Message
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)

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #4 on Sat 07 Feb 2004 07:48 PM (UTC)
Message
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")

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


18,502 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.