innula

Untitled

Aug 25th, 2012
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. key notecard = "dc3b6cec-adf4-24ec-d1b1-1cf0b59a820d";
  2. key query;
  3. integer counter;
  4. default
  5. {
  6.     state_entry()
  7.     {
  8.         query = llGetNotecardLine(notecard,counter);
  9.     }
  10.  
  11.  
  12.     dataserver(key q, string data){
  13.         if(q == query){
  14.             if(data!=EOF){
  15.                 data = llStringTrim(data,STRING_TRIM);
  16.                 if(data){
  17.                     llOwnerSay(data);
  18.                 }
  19.                 query = llGetNotecardLine(notecard,counter++);
  20.             }
  21.             else{
  22.                 llOwnerSay("Finished reading the card");
  23.             }
  24.  
  25.         }
  26.  
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment