Guest User

Untitled

a guest
Apr 11th, 2020
16
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DoUnlock(string reason)
  2. {
  3. llOwnerSay(reason + ". Sending unlock commands.");
  4. llMessageLinked(LINK_SET, 4, "var lock 0 0", NULL_KEY);
  5. llMessageLinked(LINK_SET, 5, "var lock 0 OFF", NULL_KEY);
  6. }
  7.  
  8. default
  9. {
  10. state_entry()
  11. {
  12. llListen(1, "", llGetOwner(), "unlock");
  13. DoUnlock("Locksmith script (re)starting");
  14. }
  15.  
  16. listen(integer c, string s, key k, string m)
  17. {
  18. DoUnlock("'/1 unlock' received");
  19. }
  20.  
  21. link_message(integer sn, integer n, string s, key k)
  22. {
  23. if (llGetSubString(s, 0, 9) == "var lock 1") {
  24. llSleep(1.0);
  25. DoUnlock("Attempt to lock HUD detected");
  26. }
  27. }
  28. }
RAW Paste Data