Sending a dialog or note
|
Darkie Minotaur
Registered User
Join date: 24 Jul 2008
Posts: 5
|
01-04-2010 15:24
Hello,
this may be a simple question, but I couldn't find an answer so far. I once worked at a sim that had a paging system. When someone on the sim needed help, there was an oject they could touch and one of the staff got a little dialog box - as usual in the to left corner with two options - Accept or Discard - no matter where the staff member was.
How can I send such a dialog to someone not in the same region as the prim holding the script?
Thanks in advance!
Chris
|
Pete Olihenge
Registered User
Join date: 9 Nov 2009
Posts: 315
|
01-04-2010 15:59
I think this would require the touched object sending an email, either directly or via a server object, to a scripted object worn by the helper, and it would be this that actually generated the dialog box.
|
Darkie Minotaur
Registered User
Join date: 24 Jul 2008
Posts: 5
|
01-04-2010 16:09
no - we didn't wear anything. The only thing was that we were in a group.
|
Pete Olihenge
Registered User
Join date: 9 Nov 2009
Posts: 315
|
01-04-2010 16:12
Umm... are we looking at a bot sending group notices? I don't think you can do that from LSL, but I've been known to be wrong.
|
DJ Earnshaw
Registered User
Join date: 10 Nov 2007
Posts: 65
|
01-04-2010 16:24
The project would be a help board capable of reaching an AV anywhere in SL, not just in one sim. I am willing to require each helper to have a HUD, rather than the dialog box, but how does the master help board signal a helper in another sim. An email would make Master sleep for 20 seconds. Have considered an http solution, but does any one have a sample mysql database with php code that an SL script can communicate with?
|
Viktoria Dovgal
…
Join date: 29 Jul 2007
Posts: 3,593
|
01-04-2010 16:34
llGiveInventory (but not llGiveInventoryList) will work all around the grid, that would be OK to send a notecard. It won't work so well if that person is in busy mode, inventory offers from scripts are discarded and not even trashed in that event.
You can also use llInstantMesssage, that will get through but without a dialog.
|
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
|
01-04-2010 16:42
It's actually not a dialog, but an inventory offer pop-up - a way to get around the limit of dialogs to a single region.
When a user clicks the help button, the button (or central server), renames itself with the name of the person who needs help, along with other useful information. It then sends a token notecard to helpers. The helpers are instructed to "decline" the notecard. An IM may also be sent, with a SLURL.
|
DJ Earnshaw
Registered User
Join date: 10 Nov 2007
Posts: 65
|
01-04-2010 17:05
Interesting. If we gave the inventory to a HUD it could trigger a changed event. don't you have to select something to allow unsolicited inventory transfers?
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-04-2010 17:24
From: DJ Earnshaw Interesting. If we gave the inventory to a HUD it could trigger a changed event. don't you have to sellect something to allow unsolicited inventory transfers? by default it's on, unless you are in busy mode. this is a quickie example of Dote's concept, just drop an empty note in it named "reject me" default{ touch_end( integer vIntNull ){ llSetObjectName( llDetectedName( 0 ) + " located at " + llGetRegionName() + (string)llGetPos() ); llGiveInventory( llGetOwner(), "reject me" ); } }
obviously simplistic, and not checked for errors, but the general idea is there.... it needs to check for who's online from a list of choices, maybe throw in an instant message wi.th a teleport link, etc...
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
Darkie Minotaur
Registered User
Join date: 24 Jul 2008
Posts: 5
|
01-04-2010 21:51
That's it - in the example, it was a LM that got sent - which is even helpfull to run to help.
Thank you.
|
Pete Olihenge
Registered User
Join date: 9 Nov 2009
Posts: 315
|
01-05-2010 02:25
From: DJ Earnshaw An email would make Master sleep for 20 seconds. You can have a seperate script do the actual sending and sleeping.
|
Laurie Stilman
Registered User
Join date: 11 Apr 2006
Posts: 45
|
01-05-2010 08:51
An inventory offer of a LM would provide a good mechanism for notifying staff that they're needed; the other half of the equation if for the notice board the customers click on to know what staff are online. I believe llGetAgentInfo() is the way to achieve that part. You could have a sign for each staff member with an online/offline indicator, or a single 'summon help' sign that just goes through a list of all staff and picks one to summon at random/round-robin/whatever.
L.
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-05-2010 10:53
From: Laurie Stilman An inventory offer of a LM would provide a good mechanism for notifying staff that they're needed ooo much better than a notecard that needs to be rejected... why'd I miss that.
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|