Wearable Tip Jar Script?
|
Morgan Underwood
Registered User
Join date: 24 Oct 2007
Posts: 13
|
04-15-2008 00:50
Hi- brand-new poster here: I'm trying to make a wearable object that will accept tips, but not having any luck so far. I've got a simple tip jar script that I've placed into an object- a garter belt- and it works fine when it's rezzed on the ground. As soon as I wear it, though, I get nothing. How can I make this work? I know there has to some command to make the pay option come on up touch (left click) which is what I want- I got it to do that on the ground, but not when it's worn! ANY help would be greatly appreciated! The script I am using is this one: default { state_entry() { llSetText("Donation box.", <1,1,1>, 1); } money(key benefactor, integer payment) { llSay(0, "Thanks for the donation, " + llKey2Name(benefactor) + " !"  ; llSetText("Last donation was " + (string)payment + "L.", <1,1,1>, 1); } }
|
Beezle Warburton
=o.O=
Join date: 10 Nov 2006
Posts: 1,169
|
04-15-2008 01:05
Worn tip jars won't work. Attachments will just bring up the regular "pay avatar" menu, so you'll just get the money directly.
_____________________
Though this be madness, yet there is method in't. -- William Shakespeare Warburton's Whimsies: In SLApez.biz
|
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
|
04-15-2008 01:17
attachments also don't receive the "money" event.
Try making a follower.
_____________________
 ● Inworld Store: http://slurl.eclectic-randomness.com ● Website: http://www.eclectic-randomness.com ● Twitter: @WinterVentura
|
Ollj Oh
Registered User
Join date: 28 Aug 2007
Posts: 522
|
04-15-2008 04:36
worn items have different "touch" behaviour, rendering some interactions useless
|
Boreal Latte
Registered User
Join date: 15 Nov 2007
Posts: 104
|
04-15-2008 05:38
Perhaps you can make a floating tipjar follow you around. Look at one of the "follower" scripts. But it need to be a place where you can rez stuff.
|
Morgan Underwood
Registered User
Join date: 24 Oct 2007
Posts: 13
|
04-15-2008 10:56
Thank you! I was about to reach the same conclusion- that worn items can't do that  I have, though, seen an item on the SL Exchange - a tip garter from (  ) WhoreWear- and in the description it says it can accept tips. However, it's a no-mod item so I wouldn't be able to reverse-engineer that part of the script anyway if it's for real. As I've found in my own experiments- as well as confirmation here- I'm wondering just what it DOES do in that respect.
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
04-15-2008 11:41
It possibly rezzes an object around or near you (or your attachment) that can accept payments. As stated, attachments can NOT accept payments, by design.
|
Yumi Murakami
DoIt!AttachTheEarOfACat!
Join date: 27 Sep 2005
Posts: 6,860
|
04-15-2008 11:43
From: Morgan Underwood Thank you! I was about to reach the same conclusion- that worn items can't do that  I have, though, seen an item on the SL Exchange - a tip garter from (  ) WhoreWear- and in the description it says it can accept tips. As others have mentioned, clicking on an attachment acts as if you've clicked on the avatar, so you can "pay" and give the avatar money. It's probably just clever sales wording. 
|
Viktoria Dovgal
…
Join date: 29 Jul 2007
Posts: 3,593
|
04-15-2008 12:35
From: Morgan Underwood Thank you! I was about to reach the same conclusion- that worn items can't do that  I have, though, seen an item on the SL Exchange - a tip garter from (  ) WhoreWear- and in the description it says it can accept tips. However, it's a no-mod item so I wouldn't be able to reverse-engineer that part of the script anyway if it's for real. As I've found in my own experiments- as well as confirmation here- I'm wondering just what it DOES do in that respect. Looking at the product description, the garter doesn't act on money events by itself, instead you can optionally rez a transparent cage to make that part work.
|