AnaZofia Posted October 8, 2012 Share Posted October 8, 2012 How do i set pay amount in a scripti want the pay buttons to be 25, 100, 250, 500 Link to comment Share on other sites More sharing options...
Darkie Minotaur Posted October 8, 2012 Share Posted October 8, 2012 Check here llSetPayPrice Link to comment Share on other sites More sharing options...
Freya Mokusei Posted October 8, 2012 Share Posted October 8, 2012 llSetPayPrice(PAY_DEFAULT,[25,100,200,500]); PAY_DEFAULT shows the 'text entry' box for custom values (PAY_HIDE to hide it). The list can contain up to four items, all integers. PAY_HIDE can be used in place of an integer to 'hide' the button (rather than using '0'). 1 1 Link to comment Share on other sites More sharing options...
AnaZofia Posted October 8, 2012 Author Share Posted October 8, 2012 I cant get it to work... can you please help me? integer CHANNEL = 55;integer total;generalParticleEmitterOn() (xxx cutted long script)default{ on_rez(integer s) {// llResetScript(); } state_entry() { updateText();// {generalParticleEmitterOn(); llListen(CHANNEL, "", llGetOwner(), ""); } money (key giver, integer amount) { llSay(0, "Thanks for the " + (string)amount + "L$, " + llKey2Name(giver)); total+=amount; updateText(); generalParticleEmitterOn(); } touch_start(integer count) { if(llDetectedKey(0)==llGetOwner()) { llDialog(llDetectedKey(0), "Clear total amount?", ["Yes","No"], CHANNEL); } } listen(integer channel, string name, key id, string message) { if( message=="Yes" && id==llGetOwner() ) { total = 0; updateText(); } }} Link to comment Share on other sites More sharing options...
Darkie Minotaur Posted October 8, 2012 Share Posted October 8, 2012 That should do the trick: integer CHANNEL = 55;integer total;generalParticleEmitterOn() (xxx cutted long script)default{ on_rez(integer s) {// llResetScript(); } state_entry() { updateText();// {generalParticleEmitterOn(); llListen(CHANNEL, "", llGetOwner(), ""); llSetPayPrice(PAY_HIDE,[25,100,200,500]); } money (key giver, integer amount) { llSay(0, "Thanks for the " + (string)amount + "L$, " + llKey2Name(giver)); total+=amount; updateText(); generalParticleEmitterOn(); } touch_start(integer count) { if(llDetectedKey(0)==llGetOwner()) { llDialog(llDetectedKey(0), "Clear total amount?", ["Yes","No"], CHANNEL); } } listen(integer channel, string name, key id, string message) { if( message=="Yes" && id==llGetOwner() ) { total = 0; updateText(); } }} 1 Link to comment Share on other sites More sharing options...
AnaZofia Posted October 8, 2012 Author Share Posted October 8, 2012 didnt work the pay button did not show up on "right click" Link to comment Share on other sites More sharing options...
AnaZofia Posted October 8, 2012 Author Share Posted October 8, 2012 sorry! it worked now! haha i did not set the script to running thanks so mutch for help i have given Cudos points Link to comment Share on other sites More sharing options...
AnaZofia Posted October 8, 2012 Author Share Posted October 8, 2012 hmmm.. how can i get the free amount box to show up in the same payment ? Link to comment Share on other sites More sharing options...
Darkie Minotaur Posted October 8, 2012 Share Posted October 8, 2012 As Freya mentioned earlier, replace PAY_HIDE by PAY_DEFAULT. Link to comment Share on other sites More sharing options...
AnaZofia Posted October 8, 2012 Author Share Posted October 8, 2012 thanks! Worked! (sy for beeing newbie) Topic solved Link to comment Share on other sites More sharing options...
Ela Talaj Posted October 9, 2012 Share Posted October 9, 2012 If you set your listening filter like this: llListen(CHANNEL, "", llGetOwner(), ""); why do you need this check: listen(integer channel, string name, key id, string message) { if( message=="Yes" && id==llGetOwner() ) { . . . } } Who else is it going to listen to except for the owner? Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now