|
Udar Tenjin
Registered User
Join date: 2 Feb 2007
Posts: 5
|
06-12-2007 11:44
Hello everyone.
This might be basic, but I cannot figure it out. I have a script that has a touch_start{} section and a money{} section. They both work well, in fact my whole script works well, BUT the money{} section only works properly when I set the "When Left-clicked" option to "Pay this object". The touch_start{} section has a llDialog that has two choices: one button gives out a notecard (this works OK). The other button I would like it to trigger an event that simulates what happens when the object is set to "Pay this object" and someone clicks on it. I am using a llListen and choosing between the two button names (this works OK).
I tried using the following:
// trigger money event list paybuttons = [1,2,3,4]; llSetPayPrice(PAY_HIDE,paybuttons); llRequestPermissions(llGetOwner(), PERMISSION_DEBIT);;
but no joy. I can a dialog box, but there is no amount.
Any other approaches?
Thank you in advance.
|
|
RJ Source
Green Sky Labs
Join date: 10 Jan 2007
Posts: 272
|
06-12-2007 11:52
llSetPayPrice should enable the PAY item in the pie menu. When the user pays, then a money event is triggered after that. I don't think you can 'fake' one.
|
|
Udar Tenjin
Registered User
Join date: 2 Feb 2007
Posts: 5
|
06-12-2007 11:56
Hello - thank you for the quick reply.
Your suggestion certainly works. If the choose "Pay" from the pie menu, it works. BUT I would like the pay procedure to begin when the avatar clicks one of the two buttons from the llDialog. The other one triggers a note card successfully.
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
06-12-2007 12:50
Pretty sure you can't do that. Perhaps to avoid some sort of abuse, the pay price popup is only triggered by the pie-menu's "Pay" selection.
|
|
Udar Tenjin
Registered User
Join date: 2 Feb 2007
Posts: 5
|
sigh.....
06-24-2007 13:04
There are SO MANY holes in this language that makes building a solid commerce solutions very hard.
|