thanks Victoria and Lazink,
For know i have a single script in each pillow. Think i make somewhere a think
error but i can't find it.
Below is part of the code maybe someone of you see what the error is.
string SitAnim; // String to hold the name of the animation
key Avi; // Key for detected avatar
integer Listen;
integer dialog_channel;
list MenuSit = ["1", "2", "3"];
// Functions
AvatarSit(vector POSITION, vector Rotdeg, integer iNrAnim)
{
if(Avi==llAvatarOnSitTarget())
{
llStopAnimation("sit"

;
llStopAnimation(SitAnim);
SitAnim=llGetInventoryName(INVENTORY_ANIMATION,iNrAnim);
llSetLinkPrimitiveParams(iPrimsDefault +1, [PRIM_POSITION,llGetLocalPos()+
POSITION, PRIM_ROTATION, llEuler2Rot(Rotdeg*= DEG_TO_RAD)]);
llStartAnimation(SitAnim);
}
}
// STATES
default
{
state_entry()
{
dialog_channel = (integer)llRound(llFrand (1000000));
SitAnim=llGetInventoryName(INVENTORY_ANIMATION,0); //Load default animation
llSetClickAction(CLICK_ACTION_SIT);
llPassTouches(FALSE);
}
touch_start(integer num_detected)
{
Avi=llDetectedKey(0);
Listen=llListen (dialog_channel, "",Avi1, ""

;
llSetTimerEvent(60);
llDialog (Avi1, "Make a choice ?", MenuSit, dialog_channel);
}
changed(integer change)
{
if (change & CHANGED_LINK)
{
if (llAvatarOnSitTarget() != NULL_KEY)
{
llRequestPermissions(llAvatarOnSitTarget(), PERMISSION_TRIGGER_ANIMATION);
Avi=llAvatarOnSitTarget();
}
else
{
integer perm=llGetPermissions();
if ((perm & PERMISSION_TRIGGER_ANIMATION))
{
llStopAnimation("sit"

;
llStopAnimation(SitAnim);
}
}
}
}
run_time_permissions(integer perm)
{
if (perm & PERMISSION_TRIGGER_ANIMATION)
{
AvatarSit( <0.25, 1.15, 0.0>, <0,180,180>, 0);
}
}
the listen event use also the AvatarSit function and the timer event only close the listen handle. Both pillow have the same script.