Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Auto die tip jar

grumble Loudon
A Little bit a lion
Join date: 30 Nov 2005
Posts: 612
06-21-2006 18:48
I've found people leaving tip jars at clubs and it's a hassle to keep cleaning them up.
This script adds less sim loading than the popular 3 script tip jar since each script adds sim load.

This script is designed to be used in the one prim tip jar, however it can be used in more complex ones.

The big differance is that the script dies if you are not in the sim.


//Free open soure Auto die tip jar by grumble Loudon and LaserFur Leonov
//Released into the public domain, no rights reserved.
//Created after vewing scripts from Keknehv Psaltery, jean cook, ama omega, nada epoch, YadNi Monde
string m_ownerName;
key m_ownerKey;

integer m_money;
integer m_DieTimer;

//set the floating text,
SetText(string PayeText){
string Text;
Text = m_ownerName + "'s Tip Jar.\n$";
Text += (string)m_money + "L Donated so far\n";
if (llStringLength(PayeText) >= 0){
Text += PayeText;
}//set Text
m_ownerKey = llGetOwner();
m_ownerName = llKey2Name(m_ownerKey);

// llTargetOmega(<0,0,0.075>,PI,0.05); //rotate if desired
llSetTimerEvent(53); //use odd numbers to prevent all scripts in sim from triggering at the same time
on_rez(integer RezNumber){
money(key id, integer amount)
m_money += amount;
SetText("$" + (string)amount + "L Was donated by "+(string)llKey2Name(id)+" last.");

llInstantMessage(id,"Thanks for the tip. :)");
llInstantMessage(m_ownerKey,(string)llKey2Name(id)+" payed $" + (string)amount + "L");
if (llKey2Name(m_ownerKey) == ""){ //he's not in this sim
if (m_DieTimer > 2 ) { //give him some time, just in case he crashed.
llDie();//he hasn't came back yet
m_DieTimer =0; //he's back
};//in sim
Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
Discussion Thread
06-28-2006 08:30
i've got nothing. ;)
Kane Kent
Registered User
Join date: 2 Jan 2005
Posts: 185
06-28-2006 14:39
nice :) thanks
Barrie, Ontario, Canada!
Check Out my Blog!
Make Comments :)
Jimmy Meek
Registered User
Join date: 22 Sep 2006
Posts: 1
10-12-2006 12:02
Very nice! but could u make me a script so that when the tip jar is payed it automatically dies? PPLLEAASSE!
Jimmy Meek :);)