Advertisement
cyber_Ahn

gate_probe_server

Apr 10th, 2015
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. integer on = 0;
  2. default
  3. {
  4.     state_entry()
  5.     {
  6.         llListen(-905000, "", "", "");
  7.         llListen(-805000, "", "", "");
  8.         llListen(-505000, "", "", "");
  9.         llListen(-605000, "", "", "");
  10.     }
  11.     listen(integer c, string n, key id, string message)
  12.     {
  13.         integer a = llSubStringIndex(message, "destination");
  14.         if (a != -1)
  15.         {
  16.             llWhisper(0,"Send Probe Command");
  17.             on = 1;
  18.             llSleep(5);
  19.             llShout(-804000,"stargate probe");
  20.             llShout(-904000,"stargate probe");
  21.             llShout(-604000,"stargate probe");
  22.             llShout(-504000,"stargate probe");
  23.         }
  24.         integer f = llSubStringIndex(message, "probe");
  25.         if (f != -1 && on == 1)
  26.         {
  27.                 on = 0;
  28.                 list probeL = llParseString2List(message,["|"],["|"]);
  29.                 string parcel = llList2String(probeL,4);
  30.                 string desc = llList2String(probeL,5);
  31.                 string fps = llList2String(probeL,2);
  32.                 string time = llList2String(probeL,3);
  33.                 string dam = llList2String(probeL,7);
  34.                 string scr = llList2String(probeL,8);
  35.                 string ava = llList2String(probeL,6);
  36.                 string probe_chat = "Parcel Name: "+parcel+" Parcel Desc: "+desc+" FPS: "+fps+" Sim Time: "+time+" Damage: "+dam+" Sripts: "+scr+" Avatare: "+ava;
  37.                 llSay(0,probe_chat);
  38.         }
  39.     }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement