Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Simple coffee giver script needed

Evangeline Arcadia
Registered User
Join date: 2 Dec 2006
Posts: 87
03-31-2008 07:54
Hi

I'm looking for a script that I can put in coffee cups that will give anyone a free cup of coffee (with drinking animation if possible) when they touch it. I know they are around, but I've not been able to find one! Any help is much appreciated:)
Escort DeFarge
Together
Join date: 18 Nov 2004
Posts: 681
03-31-2008 10:11
You may have more success by asking in "products wanted"
_____________________
http://slurl.com/secondlife/Together
Keira Wells
Blender Sculptor
Join date: 16 Mar 2008
Posts: 2,371
03-31-2008 10:15
CODE

default
{
touch_start(integer total number)
{
llGiveInventory(llDetectedKey(0),"nameofobject");
}
}



Replace 'nameofobject' with the name of the coffee object, and shove that into the 'giver object' and place the coffee cup object that yu want it to give inside that 'giver' object as well. (NOTE: Make sure you have copy and transfer permission for the coffee item).
_____________________
Tutorials for Sculpties using Blender!
Http://www.youtube.com/user/BlenderSL
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
03-31-2008 10:23
For holding and drinking from the cup, you might want to try the built-in "hold_r_handgun" and "drink" animations. They aren't great, but they'll do the basic job if you don't have custom animations ready. See http://www.lslwiki.net/lslwiki/wakka.php?wakka=animation
Marianne McCann
Feted Inner Child
Join date: 23 Feb 2006
Posts: 7,145
03-31-2008 13:12
From: Hewee Zetkin
For holding and drinking from the cup, you might want to try the built-in "hold_r_handgun" and "drink" animations. They aren't great, but they'll do the basic job if you don't have custom animations ready. See http://www.lslwiki.net/lslwiki/wakka.php?wakka=animation


There's also a free sipping animation and script at the Script Shack on Livingtree

Mari
_____________________


"There's nothing objectionable nor illegal in having a child-like avatar in itself and we must assume innocence until proof of the contrary." - Lewis PR Linden
"If you find children offensive, you're gonna have trouble in this world :)" - Prospero Linden
Evangeline Arcadia
Registered User
Join date: 2 Dec 2006
Posts: 87
04-01-2008 07:33
Thank you everybody:) I'll give those a try:)
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
04-01-2008 11:34
From: Marianne McCann
There's also a free sipping animation and script at the Script Shack on Livingtree

Cool. If I recall correctly the "salute" animation can also work well for some applications.