|
Tomfox Wiranata
Registered User
Join date: 20 Dec 2006
Posts: 80
|
02-18-2007 12:25
Hello everybody... ....I will make it quick  I want to inform some residents via llGiveInventory with a notecard. To make sure that this info will reach them certainly. I tried it with myself and a buddy who was offline. We both got it, but some other customers did not. Is there anything else we could try? Or do u know why it worked some time and not always? IM does not work, if residents did not activate a receive while offline. And Group notice does not too, because not everyone is in our group. thx
|
|
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
|
02-18-2007 19:00
a bit late now.. but if all these people have a product in common, you could consider buyign an update server. These systems sometimes allow you to upload a notecard to each person, as they rez their object.
Frankly, there's not too much you can do. the asset system is a bit flaky these days. IMs are capped and routinely lost... notecards sent offline can dissappear..
You could "put up a sign" in a common area... and use the groups you have. Since you seem to have keys for everyone, you could make a scanner.. that checks to see if the person is online. if they are, it sends them a notecard, and makes a note that they've received it.
_____________________
 ● Inworld Store: http://slurl.eclectic-randomness.com ● Website: http://www.eclectic-randomness.com ● Twitter: @WinterVentura
|
|
Tomfox Wiranata
Registered User
Join date: 20 Dec 2006
Posts: 80
|
02-19-2007 03:03
ok thanks for those important information. i will try that scanning thing  thx winter
|
|
Hutton Richez
Registered User
Join date: 4 Dec 2006
Posts: 11
|
02-19-2007 23:39
list agentList = ["INSERT AGENT KEYS HERE", "INSERT AGENT KEYS HERE"];
list queryIdList; list queryAgentList;
CheckOnline(key id) { queryAgentList += id; queryIdList += llRequestAgentData(id, DATA_ONLINE); }
default { state_entry() { llSetTimerEvent(30); } timer() { integer i = 0; integer len = llGetListLength(agentList); for(; i < len; ++i) { CheckOnline(llList2Key(agentList, i)); } dataserver(key queryid, string data) { if((integer)data = TRUE) { key agent = llList2Key(queryAgentList, index); llGiveInventory(agent, "INSERT INVENTORY ITEM NAME HERE"); integer index = llListFindList(queryIdList, [queryid]); integer index2 = llListFindList(agentList, [agent]); queryIdList = llDeleteSubList(queryIdList, index, index); queryAgentList = llDeleteSubList(queryAgentList, index, index); agentList = llDeleteSubList(agentList, index, index); } } }
I just wrote this and I have no clue if it works, but it should at least give you a general idea on how you might go about doing this using llRequestAgentData() and the dataserver event.
|
|
Archanox Underthorn
Registered User
Join date: 20 May 2003
Posts: 168
|
02-20-2007 10:41
Just thought I'd mention, I've been having tons of problems with llGiveInventory failing over the past few months. I was using it in my vendors and it seems whenever I was online and nearby(in the same sim or a neighboring sim) there was a very good chance of the delivery failing(around 50%). Now I'm not sure if this has to do with what you're seeing, I still haven't heard anything from a Linden about this in the 3 or 4 times I've mentioned it to lindens and bug reported it so I dunno if it's something localized or wide spread.
_____________________
Archatek
Home to some of the highest quality katanas and other blades available in SL. Co-creator of the Samurai Island Combat System, one of the best melee combat systems available, come check it out!
___________________
|
|
Eva Tiramisu
Registered User
Join date: 20 Sep 2005
Posts: 176
|
02-20-2007 11:28
I have a related problem. I am trying to get a box to give whoever clicks it a notecard. I could have sworn this script used to do just that. From: someone default { touch(integer param) { llGiveInventory(llGetKey(), "Name of notecard"  ; } } Any ideas what i am doing wrong? Or is there something wrong with llGiveInventory? Any help would be appricated. Thanks Eva
|
|
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
|
02-20-2007 13:40
try llDetectedKey(0) instead of llGetKey()
_____________________
 ● Inworld Store: http://slurl.eclectic-randomness.com ● Website: http://www.eclectic-randomness.com ● Twitter: @WinterVentura
|
|
Eva Tiramisu
Registered User
Join date: 20 Sep 2005
Posts: 176
|
02-20-2007 14:24
Thanks Winter  Worked 
|