Advertisement
Jym_Nova

2 Person Memory On Attach

Oct 30th, 2016
423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Written By: Ĵyм Ѡҩℓƒ (Jym Resident)
  2. /*
  3. LICENCE:
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. any later version.
  8.  
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. GNU General Public License for more details.
  13.  
  14. You should have received a copy of the GNU General Public License
  15. along with this program.  If not, see <http://www.gnu.org/licenses/>.
  16. or you may visit - http://license.idjhost.com/
  17. */
  18. // DESCRIPTION
  19. // Not sure why I wrote this or if it even works, try it out
  20.  
  21. list owners = ["Kyle's UUID"];
  22. string owner;
  23. integer owned;
  24.  
  25. default {
  26.     state_entry() {
  27.         owner = llGetOwner();
  28.         owned = llGetListLength(owners);
  29.     }
  30.     attach(key id)
  31.     {
  32.         if(id) {
  33.             if(owned == 1) {
  34.                 owners += owner;
  35.             }
  36.             else if(owned == 2) {
  37.                 if(owner != llList2String(owners, 1) {
  38.                     llResetScript();
  39.                 }
  40.             }
  41.         }
  42.     }
  43.     // Do all your other stuff here
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement