Advertisement
Kodos

LSL Troll Tip Jar

Jun 23rd, 2014
350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // "Life is really simple, but we insist on making it complicated." -Confucius
  2.  
  3. integer Price = 25;
  4.  
  5. default
  6. {
  7.     state_entry()
  8.     {
  9.         llSetText("Just TRY to pay the incorrect amount, I dare you!", <1,1,1>, 1);
  10.         llSetPayPrice(PAY_HIDE, [Price, PAY_HIDE, PAY_HIDE, PAY_HIDE]);
  11.         llSetClickAction(CLICK_ACTION_PAY);
  12.     }
  13.  
  14.     money(key giver, integer amount)
  15.     {
  16.         if(amount == Price)
  17.         {
  18.             llSay(0, "Thank you, enjoy your item!");
  19.             llGiveInventory(giver, "Adeon Doll");
  20.         }
  21.         else if(amount > Price)
  22.         {
  23.             llSay(0, "Thanks for the extra tip. Here's your item.");
  24.             llGiveInventory(giver, "Adeon Doll");
  25.         }
  26.         else if(amount < Price)
  27.         {
  28.             llSay(0, "Thanks for the tip.");
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement