Advertisement
cyber_Ahn

SL_Profile_Plugin_inworld

Mar 30th, 2015
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. string URL = "http://caworks-sl.de/sl-profil-plugin/sl-profil.php";
  2. key reqid;
  3. default
  4. {
  5.     state_entry()
  6.     {
  7.     }
  8.     touch_start(integer total_number)
  9.     {
  10.         string name_search = llDetectedName(0); // name from avatar
  11.         // search options .. set to 'no' wehn not need this data
  12.         string options = "&birth=yes";      //Born date
  13.         options +="&dsname=yes";            //Display Name
  14.         options +="&key=yes";               //Avatar Key
  15.         options +="&img_uuid=yes";          //Profile Image UUID
  16.        
  17.         string build_url = URL+"?name="+llEscapeURL(name_search);
  18.         build_url += options;
  19.         reqid = llHTTPRequest(build_url,[],"");
  20.     }
  21.     http_response(key id, integer status, list meta, string body)
  22.     {
  23.         if ( id != reqid )
  24.         {
  25.             return;
  26.         }
  27.         if ( status == 499 )
  28.         {
  29.             llOwnerSay("timed out");
  30.         }
  31.         else if ( status != 200 )
  32.         {
  33.             llOwnerSay("Server Offline");
  34.         }
  35.         else
  36.         {
  37.             //returns at all options are 'yes'
  38.             //name|av uuid|displayname|Age|profil image uuid
  39.             llSay(0,body);
  40.         }
  41.     }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement