How can I intercept dialog?
|
|
Rocco Sirnah
Registered User
Join date: 13 Jul 2008
Posts: 13
|
12-02-2008 07:15
I'm bored to answer "No" every time a vamp asks to bite me. I'm putting a script in a object weared (ring). I cannot find a function that can intercept dialog window where I can read "Bloodlines" and "Animate your avatar?". Can someone help me?
Thank you
|
|
Pedro McMillan
SLOODLE Developer
Join date: 28 Jul 2007
Posts: 231
|
12-02-2008 07:52
Are you trying to intercept the dialog before it appears on your screen, or trying to intercept the answer sent when you click a button on the dialog?
The first one is not possible, as far as I know.
The second is possible just by making your script listen to chat (using llListen) on the appropriate channel.
EDIT: actually, the "Animate your avatar" dialog is built-in to SL anyway (run-time permissions), so I don't think you can intercept responses from that one.
|
|
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
|
12-02-2008 07:57
There's a very useful gadget available (free, copy/transfer) from Bloodlines themselves; it's a garlic necklace which, if you just wear it once, renders you permanently invisible to their huds. http://www.slbloodlines.com/instructions.php?p=garlic I am assured by my vamp friends that their huds can't see me now I've used it. I think it's only available in world but I'll drop a copy on you next time I am in.
|
|
Ima Huckleberry
Registered User
Join date: 28 Nov 2008
Posts: 29
|
12-02-2008 08:00
From: Innula Zenovka There's a very useful gadget available (free, copy/transfer) from Bloodlines themselves; it's a garlic necklace which, if you just wear it once, renders you permanently invisible to their huds. http://www.slbloodlines.com/instructions.php?p=garlic I am assured by my vamp friends that their huds can't see me now I've used it. I think it's only available in world but I'll drop a copy on you next time I am in. know what I do, ignore them!
|
|
Rocco Sirnah
Registered User
Join date: 13 Jul 2008
Posts: 13
|
12-02-2008 08:16
From: Pedro McMillan Are you trying to intercept the dialog before it appears on your screen, or trying to intercept the answer sent when you click a button on the dialog?
The first one is not possible, as far as I know.
The second is possible just by making your script listen to chat (using llListen) on the appropriate channel.
EDIT: actually, the "Animate your avatar" dialog is built-in to SL anyway (run-time permissions), so I don't think you can intercept responses from that one. I'm trying to intercept the dialog before... Any way.. I can use listen... but I don't know the channel..
|
|
Tyken Hightower
Automagical
Join date: 15 Feb 2006
Posts: 472
|
12-02-2008 08:37
From: Rocco Sirnah I'm trying to intercept the dialog before... Any way.. I can use listen... but I don't know the channel.. Yes, there are two ways. One is to compile GridProxy with a modified handler for ScriptPermission packets (which I forget the exact name of), and another is to compile a modified SL viewer that removes the dialog trigger in a similar manner, which I could show you the method for, if you could manage to get a working compile from the default sources. In short, LSL == no.
|
|
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
|
12-02-2008 08:45
From: Pedro McMillan EDIT: actually, the "Animate your avatar" dialog is built-in to SL anyway (run-time permissions), so I don't think you can intercept responses from that one.
Depends how it's written, but if it's anything like most greeters I've seen, first you send a message by llDialog() asking people if you may kiss/hug/otherwise molest them and only later, and only if they've agreed to your proposition, do you request permission to animate them. If they turn you down at the llDialog stage, they don't get an unnecessary request for animation permissions.
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
12-02-2008 09:02
From: Innula Zenovka Depends how it's written, but if it's anything like most greeters I've seen, first you send a message by llDialog() asking people if you may kiss/hug/otherwise molest them and only later, and only if they've agreed to your proposition, do you request permission to animate them. If they turn you down at the llDialog stage, they don't get an unnecessary request for animation permissions. However, there is no way to intercept a llDialog() request from LSL either. You can try to intercept the ANSWER, but not the request to pop the dialog up on your screen. Mute is your best option without a custom viewer. Maybe try muting the object by name?
|
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
12-02-2008 09:54
From: Rocco Sirnah I'm bored to answer "No" every time a vamp asks to bite me I know this is not an answer to your question but why don't you let one bite you? it does not hurt and nobody will ask you again when you are once bitten. I did that 
_____________________
From Studio Dora
|
|
Rocco Sirnah
Registered User
Join date: 13 Jul 2008
Posts: 13
|
12-02-2008 11:43
I saw that when that dialog popup, it writes something in the local chat (but not on 0 channel) in green text. If I could intercept that...
|
|
Tyken Hightower
Automagical
Join date: 15 Feb 2006
Posts: 472
|
12-02-2008 12:29
From: Rocco Sirnah I saw that when that dialog popup, it writes something in the local chat (but not on 0 channel) in green text. If I could intercept that... If it's not on channel 0, it's an IM, and thus cannot be scanned via LSL scripts. Even if you could, the dialog would still pop up, and you'd still have to click it to make it go away.
|
|
Rocco Sirnah
Registered User
Join date: 13 Jul 2008
Posts: 13
|
12-02-2008 12:40
From: Tyken Hightower If it's not on channel 0, it's an IM, and thus cannot be scanned via LSL scripts. Even if you could, the dialog would still pop up, and you'd still have to click it to make it go away. it's not an IM, because i can read it on local chat but the color os green, not white... it looks like a translator... An other question... Can I mute an avatar by script?
|
|
Pedro McMillan
SLOODLE Developer
Join date: 28 Jul 2007
Posts: 231
|
12-02-2008 13:00
IMs from objects appear in your local chat window, just like chat... except it's only visible to you. It's confusing.
I don't think there is a way in the standard client to mute using a script.
|