Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How to know who posted them?

Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
10-16-2005 03:46
I created a box which everybody could post their own notecard on. I used llArrowInventoryDrop. And I'd like to know who posted them. Although I thought I would get the owner key of the notecard, I realized it would be replaced by the owner of the inventory, that is, mine. :( Can anyone tell me another good way to know who posted his notecard?
_____________________
:) Seagel Neville :)
Zapoteth Zaius
Is back
Join date: 14 Feb 2004
Posts: 5,634
10-16-2005 03:54
From: Seagel Neville
I created a box which everybody could post their own notecard on. I used llArrowInventoryDrop. And I'd like to know who posted them. Although I thought I would get the owner key of the notecard, I realized it would be replaced by the owner of the inventory, that is, mine. :( Can anyone tell me another good way to know who posted his notecard?


Look at the creator of the notecard, ask them to include their name in the notecard.

Is'all I can think of..
_____________________
I have the right to remain silent. Anything I say will be misquoted and used against me.
---------------
Zapoteth Designs, Temotu (100,50)
---------------
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
10-16-2005 04:00
Thanks Zapoteth,

But I forgot to tell in more detail. The notecard's creator is me. They are no mod and no copy. I deal out them to everybody and they post them as appropriate.
_____________________
:) Seagel Neville :)
Zapoteth Zaius
Is back
Join date: 14 Feb 2004
Posts: 5,634
10-16-2005 04:14
From: Seagel Neville
Thanks Zapoteth,

But I forgot to tell in more detail. The notecard's creator is me. They are no mod and no copy. I deal out them to everybody and they post them as appropriate.


Hmm, difficult..

Only thing I can think of is using sensors for when it recieves a notecard.. If you can do that.. But I'm not a scripter (couldn't ya just tell?) ;)

--Zap
_____________________
I have the right to remain silent. Anything I say will be misquoted and used against me.
---------------
Zapoteth Designs, Temotu (100,50)
---------------
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
10-16-2005 04:22
Ahhh
What you do:

CODE

string user_name;
key user_key;

default
{
state_entry()
{
llSetTimerEvent(0.1);
}
touch_start(integer a)
{
user_name = llDetectedName(0);
user_key = llDetectedKey(0);
llAllowInventoryDrop(1);
llSetTimerEvent(20);
llSetText("Please drop inventory "+user_name,<1.0,1.0,1.0>,1.0);
}
changed(integer a)
{
if(a & CHANGED_ALLOWED_DROP)
{
//was "user"
}
else if(a & CHANGED_INVENTORY)
{
//was the owner or another user with mod rights to your objects
}
llSetTimerEvent(1.0);//this is so they can drop multiple items without it loosing the setting.
}
timer()
{
llSetText("Please click object first before dropping inventory",<1.0,1.0,1.0>,1.0);
llAllowInventoryDrop(0);
llSetTimerEvent(0.0);
user_key = user_name = "";
}
}


You could do this with states. That would be better.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
10-16-2005 05:07
Thanks Strife. I'll use your idea. :)
_____________________
:) Seagel Neville :)