|
Espresso Saarinen
old geek
Join date: 22 Jan 2006
Posts: 93
|
07-23-2006 11:14
[ warning: old programmer overwhelmed by llLib (and not impressed by lsl as a language, but that's another matter) ]
say i publish a free newsletter. i want it to be available in multiple locations, but only want to edit/maintain one copy of the notecard, i.e. not have to maintain a copy in each vendor object.
so i kinda want to just keep it in my inventory and use the oid in the vendors. clue bat, please?
|
|
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
|
07-23-2006 12:44
The best way to do this would be to use llEmail to send a message from each dispenser in world to a central dispenser on land you own somewhere. It would contain the only copies of the item you wanted to give out, and upon recieving an email, would llGiveInventory a copy to whomever was specified.
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
07-23-2006 18:36
last time i messed with it i did it sorta backwards
altho this was only a little paytest i had it setup where ...
(at first) when the object rezed it saved its key .. later on if they were re-rezed (on the ground) it would compare the old key and the new key (just incase) anyway the objects old key and new key was e-mailed to me
gathered all that info up in my inbox and copied it to a notecard, from there out, one just has to do basic 1 liner maintance, altho ive moved into using php bots
once the dispenser keys are in the "server" object you make up a notecard reader using a while loop to pass out the notecard you also put in the contents via dispenser key and llGiveInventory (vs asking one object to handle the load of all dispensers)
THIS IS SLOW, but its only when you update and boradcast, it takes 3 seconds of delay for each item/notecard you send, but once its been done the user experiance is just dealing with that one dispenser object, and no email echos cross the map (and those 20 second delays + 3 seconds to actually send the notecard to the person)
you could do all kinds of magic tricks, like deleting old notecards, saving a few old articles, making "new stuff" flags ect
in the end these are just some ideas ive been playing with but maby it will point you twards what your looking for
|