I want to transfer money, without "Pay" presses in PieMenu
|
|
Tomfox Wiranata
Registered User
Join date: 20 Dec 2006
Posts: 80
|
01-06-2007 03:42
Hi!
Right clicking on an object shows the "Pay" option to transfer money. BUT I want to transfer money without this process.
After a resident pressed a button at my dialog i want to transfer the money automatically to me....
thx for help..
|
|
ed44 Gupte
Explorer (Retired)
Join date: 7 Oct 2005
Posts: 638
|
01-06-2007 05:13
You need the money event for an object to receive money from you. That money goes straight to the owner of the object. I don't think there is any other way unless you pay the agent directly.
|
|
Tomfox Wiranata
Registered User
Join date: 20 Dec 2006
Posts: 80
|
01-06-2007 05:54
so the residents HAVE TO click pay......right?
normally, when a resident touched my object the whole process starts. is it possible to make that process start, when a resident pressed pay? or does he need to press touch again?
if this is possible...how?
thx
|
|
Soen Eber
Registered User
Join date: 3 Aug 2006
Posts: 428
|
01-06-2007 06:05
If it was possible to bypass this, some griefer or con artist would have figured it out already, and LL would have patched around it - probably by booting everyone off and performing emergency maintainance.
Why do you want to bypass this security feature?
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
01-06-2007 07:38
From: Tomfox Wiranata so the residents HAVE TO click pay......right?
normally, when a resident touched my object the whole process starts. is it possible to make that process start, when a resident pressed pay? or does he need to press touch again?
if this is possible...how?
thx Your question is a little ambiguious Tomfox. Do you mean once they have paid to use your item you want it to all start working? If so then all you need do is activate the code within the pay event, with suitiable over / under payment checks of course. i.e. Where you would have a touch event liek this touch_start(integer num_detected) { // we have been touched so show the menu if(User == NULL_KEY) { key id = llDetectedKey(0); StartGame(id); } else { llSay(0,"Sorry But a game is currently in progress."); } }
Now you would have a money event like this // Customer has paid us for a game money(key id, integer amt) { if(User == NULL_KEY) { if (amt >= iCost) { // customer has given us at least enough money amt -= iCost; StartGame(id); } } else { llSay(0,"Sorry But a game is currently in progress."); } if (amt > 0) // give back change { llGiveMoney(id, amt); } }
|
|
Dustin Widget
Script Monkey for hire
Join date: 15 Feb 2006
Posts: 101
|
01-06-2007 11:17
If I understand correctly, you want a user to just accept a charge, rather than initializing a payment. The only way to do this would be to have the user to have an attached object to which they have already granted debit rights. Then, using a hell of a sophisiticated encryption, the attachment is told to pay you.
|
|
Jacques Groshomme
Registered User
Join date: 16 Mar 2005
Posts: 355
|
01-06-2007 11:31
PERMISSION_DEBIT can only be requested of the object owner. So nobody can pay you automatically.
Your OP isn't clear. You can set the default action of an object from Touch/Grab to Pay while in Edit Mode in the General tab. That way they can click on the object and automatically trigger the money event, without having to use the pie menu.
|
|
Dustin Widget
Script Monkey for hire
Join date: 15 Feb 2006
Posts: 101
|
01-06-2007 11:38
Thats what I said, the user wears an object that has the permission granted, it the receives a payment message. Then it pays Tomfox. Read again Jacques.
|
|
Jacques Groshomme
Registered User
Join date: 16 Mar 2005
Posts: 355
|
01-06-2007 11:44
From: Dustin Widget Thats what I said, the user wears an object that has the permission granted, it the receives a payment message. Then it pays Tomfox. Read again Jacques. I misread, thinking you intended for the seller to wear the object somehow. *shrug* Any object that requests PERMISSION_DEBIT from you where you do not specifically control the sourecode behind it is a bad idea. You are just asking to get your funds wiped out.
|
|
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
|
01-06-2007 11:46
Yes, that was something that I thought too; customers could have an attachment, say, which asked for debit permission and then after that accepted payments. It would have to be very secure of course and unless that person is making multiple and frequent payments it really isn't worth it.
As far as I'm aware the only means of transferring money in SL are:
- Pay the person directly from their profile; - Use llGiveMoney from a script which has debit permission for you (meaning you must own the object it is in and have granted it); - Right-click an object with a money() event and select Pay.
I made a sort of menu-driven multi-use vendor/notecard giver/url launcher thing which, in its vendor function, ended up priming itself to deliver goods, and then as the last step saying "now pay this object and you will get your purchase". After that it was up to them. I couldn't think of a better way of doing it, but really, pretty much all vendors use that mechanism; you navigate to the desired product and then pay it and that's the final step.
_____________________
http://ordinalmalaprop.com/forum/ - visit Ordinal's Scripting Colloquium for scripting discussion with actual working BBCode!
http://ordinalmalaprop.com/engine/ - An Engine Fit For My Proceeding, my Aethernet Journal
http://www.flickr.com/groups/slgriefbuild/ - Second Life Griefbuild Digest, pictures of horrible ad griefing and land spam, and the naming of names
|
|
Edison Swain
Registered User
Join date: 7 Dec 2006
Posts: 51
|
01-06-2007 19:45
So there's no way to automatically trigger a "Pay" box from the middle of your script? You can configue what it will look like using llSetPayPrice, but you can't initiate it? The only way it will ever show up is if the user clicks "Pay" in the pie menu (or it is set to "Pay Object" as the default when left-clicked?)
That's seems rather unfortunate.
|
|
Dustin Widget
Script Monkey for hire
Join date: 15 Feb 2006
Posts: 101
|
01-06-2007 20:58
Correct. The closest you can come is to have the person wear an attachment that will have debit permissions that will ask them if they want to pay using llDialog
|