Advertisement
Guest User

Untitled

a guest
Aug 7th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //This script is a collaborated works by Haku Akula and (mostly) Melchoir Tokhes
  2. //Feel free to distribute this script in all it's terrible glory
  3. integer     touchable;                                                                                              //Global Variables - start
  4. key     owner;
  5. key     touched;                                                                                                    //Global Variables - end
  6. default
  7. {
  8.     state_entry()
  9.     {
  10.         llSetTimerEvent(600);                                                                                       //Duration between payouts (seconds)
  11.         llRequestPermissions(llGetOwner(), PERMISSION_DEBIT );                                                      //Do you want to pay out on true events?
  12.     }
  13.  
  14.     timer()
  15.     {
  16.         touchable = TRUE;                                                                                           //Set Status to touchable
  17.     }
  18.     touch_start(integer total_num)
  19.     {
  20.         touched=llDetectedKey(0);                                                                                   //Name of the person who touched
  21.         owner=llGetOwner();                                                                                         //Name of the person who owns the prim
  22.         if(touchable )                                                                                              //Am I touchable check
  23.         {
  24.             llInstantMessage(touched, llDetectedName(0) + " kissed " + llKey2Name(owner) + "'s nose and got L$1!"); //Message to the person who touched
  25.             llInstantMessage(owner, llDetectedName(0) + " kissed your nose and got L$1!");                          //Message to the owner
  26.             touchable = FALSE;
  27.             llGiveMoney(llDetectedKey(0), 1);                                                                       //How much to pay out
  28.         }
  29.         else
  30.         {
  31.             llInstantMessage(touched, llDetectedName(0) + " kissed " + llKey2Name(owner) + "'s nose!" );            //Message for no payout who touched
  32.             llInstantMessage(owner, llDetectedName(0) + " kissed your nose!");                                      //Message to the owner
  33.         }
  34.     }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement