Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Woud I be wasting my time...

Sydney Alexander
Registered User
Join date: 19 Feb 2005
Posts: 69
04-28-2005 18:01
I have a group deeded item that I want to be able to offer a note card. As far as I knw group owned items will not do llGiveInventory. I was thinking of the group prim sending the request to a non grouped prim that could hand out the note card. Am I wasting time looking or is this possible? Any other suggestions?

Thanks
Brian Mifflin
Scripting Addict
Join date: 15 Dec 2004
Posts: 182
04-28-2005 18:11
It's possible.....I, and others, have done it to setup vendor systems that deliver from a central object, so you don't have to update all the vendors.

You can use llEmail alone, a llEmail and XML/RPC combo, or if within range, an llShout on a random (and changing) channel.
_____________________
Sydney Alexander
Registered User
Join date: 19 Feb 2005
Posts: 69
04-28-2005 19:24
Hi Brian,

I plan to have the 2nd prim on top of and as close to the group owned prim as possible. distance is not an issue. Do I simply tell it to send a command on a private channel and have the 2nd prim "listen" on that channel to receive the command to give the card?

Thanks for the help.
Brian Mifflin
Scripting Addict
Join date: 15 Dec 2004
Posts: 182
04-28-2005 19:40
Yea, I'd say send a command like

CODE

touch_start(integer num) {
llSay(0, "give," + (string)llDetectedKey(0) + ",Notecard Name");
}


and in the 'server'
CODE

listen(integer channel, string name, key id, string message) {
list lParsedCommand = llCSV2List(message);
if(llList2String(lParsedCommand, 0) == "give") {
llGiveInventory(llList2Key(lParsedCommand, 1), llList2String(lParsedCommand, 2));
}
}
_____________________