Help with tip jar script! Total amount when logging out of jar in Technical Posted June 12, 2020 Hello everyone, I am using a basic tip jar script i purchased from MP. I would like to make it tell me the total amount made after I log out of the jar if possible. Can someone help me modify it. I have include it below. Tyia! integer amount = 0; default { state_entry() { llSetText("TIPS HERE", <1,1,1>, 1); llSetPayPrice(amount, [100,200, 300, 400]); } money(key avaname, integer payment) { llSay(0, "Thank you for the tip, " + llKey2Name(avaname) + " !"); llSetText("Last tip was " + (string)payment + "L$ by" + llKey2Name(avaname), <1,1,1>, 1); } }
Help with tip jar script! Total amount when logging out of jar
in Technical
Posted
Hello everyone, I am using a basic tip jar script i purchased from MP. I would like to make it tell me the total amount made after I log out of the jar if possible. Can someone help me modify it. I have include it below. Tyia!
integer amount = 0;
default
{
state_entry()
{
llSetText("TIPS HERE", <1,1,1>, 1);
llSetPayPrice(amount, [100,200, 300, 400]);
}
money(key avaname, integer payment)
{
llSay(0, "Thank you for the tip, " + llKey2Name(avaname) + " !");
llSetText("Last tip was " + (string)payment + "L$ by" + llKey2Name(avaname), <1,1,1>, 1);
}
}