Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Help with a simple scritp

Shaden Sura
Registered User
Join date: 10 Oct 2006
Posts: 68
11-19-2009 13:03
Hey can someone help me a simple script that when someone sit in determined prim whisper a messange to the avatar
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
11-19-2009 13:10
Here ya go..

default
{
state_entry()
{
// or whereever you want the person to sit vs the prim
llSitTarget(<0.0, 0.0, 0.1>, ZERO_ROTATION);
}

changed (integer mask)
{
if (mask & CHANGED_LINK)
{
key sitter = llAvatarOnSitTarget();
if (sitter != NULL_KEY)
{
llInstantMessage(sitter, "stop sitting on me, Mr Big Butt!!";);

// throw them off!
llUnSit(sitter);
}
}
}
}
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Shaden Sura
Registered User
Join date: 10 Oct 2006
Posts: 68
11-19-2009 15:26
=D thx for the help