Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // "Life is really simple, but we insist on making it complicated." -Confucius
- integer Price = 25;
- default
- {
- state_entry()
- {
- llSetText("Just TRY to pay the incorrect amount, I dare you!", <1,1,1>, 1);
- llSetPayPrice(PAY_HIDE, [Price, PAY_HIDE, PAY_HIDE, PAY_HIDE]);
- llSetClickAction(CLICK_ACTION_PAY);
- }
- money(key giver, integer amount)
- {
- if(amount == Price)
- {
- llSay(0, "Thank you, enjoy your item!");
- llGiveInventory(giver, "Adeon Doll");
- }
- else if(amount > Price)
- {
- llSay(0, "Thanks for the extra tip. Here's your item.");
- llGiveInventory(giver, "Adeon Doll");
- }
- else if(amount < Price)
- {
- llSay(0, "Thanks for the tip.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement