ZenMondo's fancy note giver

From ZenMondo Wormser, 1 Year ago, written in Linden Scripting, viewed 422 times.
URL http://flynnos.org/flynnbin/view/b34015fb Embed
Download Paste or View Raw
  1. ///////////////////////
  2. // ZenMondo's fancy note giver by ZenMondo Worsmer
  3. //
  4. //  On touch, will say a message, give a noteacard,
  5. //  if there is a sound in the object's inventory, play it
  6. //  and IM the owner that it has been touched and by whom.
  7. //////////////////////
  8.  
  9.  
  10. // This is the message that will be spoken when touched.
  11. string say_this  = "Thank you for touching me.\n Enjoy your noteacard.";
  12.  
  13. {
  14.    
  15.  
  16.     touch_start(integer total_number)
  17.     {
  18.         llSay(0, say_this);
  19.         llGiveInventory(llDetectedKey(0), llGetInventoryName(INVENTORY_NOTECARD, 0));
  20.        
  21.         if(llGetInventoryNumber(INVENTORY_SOUND))
  22.         {
  23.             llPlaySound(llGetInventoryName(INVENTORY_SOUND, 0), 1.0);
  24.         }
  25.        
  26.         llInstantMessage(llGetOwner(), llDetectedName(0) + " has touhced me.");
  27.        
  28.     }
  29. }
  30.  

Reply to "ZenMondo's fancy note giver"

Here you can reply to the paste above

captcha