Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Pay on Pie Menu Payable Object

Under Thirty
Registered User
Join date: 9 May 2005
Posts: 29
06-07-2005 08:51
how do i get Pay on the Pie Menu to make a Payable Object?
April Firefly
Idiosyncratic Poster
Join date: 3 Aug 2004
Posts: 1,253
06-07-2005 09:04
From: Under Thirty
how do i get Pay on the Pie Menu to make a Payable Object?

Set your object for sale in the General box. If that's what you mean. Or do you want to be able to give money to an object? Such as a donation? I think you could still do it that way, just check content and put a simple notecard in it?

I could be wrong though.
_____________________
From: Billybob Goodliffe
the truth is overrated :D

From: Argent Stonecutter
The most successful software company in the world does a piss-poor job on all these points. Particularly the first three. Why do you expect Linden Labs to do any better?
Yes, it's true, I have a blog now!
Damanios Thetan
looking in
Join date: 6 Mar 2004
Posts: 992
06-07-2005 09:31
Add a new script to the contents of the object.
In this script add a money event.

Now the pay option will be enabled. Every time someone pays the object (or effectively the owner of the object), this event is triggered. So put your code here to check amounts paid and act on the payments.
_____________________
Under Thirty
Registered User
Join date: 9 May 2005
Posts: 29
06-07-2005 18:16
From: Damanios Thetan
Add a new script to the contents of the object.
In this script add a money event.

Now the pay option will be enabled. Every time someone pays the object (or effectively the owner of the object), this event is triggered. So put your code here to check amounts paid and act on the payments.

i was at the money event page while looking for this. i should read more carefully, but "No results for "pay". :-(". thanks for the answer!
_____________________
http://underthirty.blogspot.com/
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
06-07-2005 18:39
Inserting a money(key giver, integer amount) event within your scripts enables the pie menu "Pay" option. Just like inserting a touch_start(integer num_detected) event enables the object to be clicked/touched (changes the mouse pointer to a hand pointer).

So, if you create a cube and start a "New Script" within it, you can modify the script to:
CODE

default {
state_entry() {
llSay(0, "Hello!");
}
touch_start(integer num_detected) {
llSay(0, "Right-click the cube and choose 'Pay' to donate money to " + llGetOwner());
}
money(key giver, integer amount) {
llSay(0, "Thanks, " + llKey2Name(giver) + "! You paid me L$" + (string)amount);
}
}