- 0
What is this? Also, what does it mean?
You are about to reply to a thread that has been inactive for 1359 days.
Please take a moment to consider if this thread is worth bumping.
Please take a moment to consider if this thread is worth bumping.
Question
DaphneF4L
I wanted to know what this exactly is because I was working trying to get a script that will help with my business. I want customer to be able to click pay on an item and get the one set price and pay for it then get the item to go to that person then they open it and it is given to them. (I hope that makes sense). I tried this script and it brought up that box. I just want the Lindens to go straight to me after purchase, but taken from me...so I am highly confused on this pop up message. Please help me and I thank those in advance for any help
Forgot to add the script:
integer price = 10;
default
{
state_entry()
{
llSetPayPrice(PAY_HIDE, [PAY_HIDE ,PAY_HIDE, PAY_HIDE, PAY_HIDE]);
llRequestPermissions(llGetOwner(), PERMISSION_DEBIT);
}
run_time_permissions(integer perm)
{
if(perm & PERMISSION_DEBIT)
state cash;
}
}
state cash
{
state_entry()
{
llSetPayPrice(price, [price ,PAY_HIDE, PAY_HIDE, PAY_HIDE]);
}
money(key id, integer amount)
{
if(amount != price)
{
llGiveMoney(id, amount);
llInstantMessage(id, "You paid "+(string)amount+", which is the wrong price, the price is: "+(string)price);
}
else
{
//insert your give code here.
llInstantMessage(id, "Thank you ! Enjoy :)");
}
}
}
Link to comment
Share on other sites
6 answers to this question
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