<br><div><br>
</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br><br>---------- Forwarded message ----------<br>From: "Garmin Kawaguichi" <<a href="mailto:garmin.kawaguichi@magalaxie.com">garmin.kawaguichi@magalaxie.com</a>><br>To: <<a href="mailto:opensim-users@lists.berlios.de">opensim-users@lists.berlios.de</a>><br>
Date: Wed, 12 Oct 2011 09:10:02 +0200<br>Subject: Re: [Opensim-users] Sitting an NPC<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
----- Original Message ----- From: David Burden<br>
Sent: Thursday, October 13, 2011 5:03 AM<br>
Subject: [Opensim-users] Sitting an NPC<br>
<br>
I also can't get scripts in attachments to stay working once rezzed back out of the notecard - known problem or am I doing something wrong?<br>
</blockquote>
<br>
I used a script on an object attached to an NPC:<br>
<br>
1) Don't forget to attach the object to yourself before to create the notecard :)))<br>
<br>
and 2) I've found a problem; to command an NPC we need to know its own key; I noted that, in the script attached, knpc = llGetOwner() in the state_entry returns my own key (the key of the object owner during the creation of the attachment); to have the key of the NPC, I have inserted an llSleep(2.0) before the llGetOwner()<br>

<br>
ah and 3) To debug the script attached to the NPC, we cannot use llOwnerSay(...); use llShout(0, ...debugging_message...);<br>
<br>
GCI <br>
<br></blockquote><div><br>I also have had no issues with scripted attachments  ( an AO)  working on the NPC bots.   <br>I have generated 1000's of NPC bots without a failure...<br><br>
<br>
I have filed a mantis on the GetOwner issue  <a href="http://opensimulator.org/mantis/view.php?id=5724">http://opensimulator.org/mantis/view.php?id=5724</a><br>
<br>
As described in the mantis....if you set the UUID to the root of the 
linkset in the ATTACH event  ..It will set properly for the NPC <br><br>dz<br></div></div>