Advertisement
Jym_Nova

8 hour timer

Oct 28th, 2016
413
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. // An 8 hour timer, maybe wrote this for a project for Demo attachments
  20.  
  21. integer count;
  22.  
  23. default {
  24.     on_rez(integer r) {
  25.         llSetTimerEvent(1);
  26.     }
  27.     changed(integer change) {
  28.         if(change & CHANGED_OWNER) {
  29.             count == 0;
  30.         }
  31.     }
  32.     timer() {
  33.         ++count;
  34.         if(count == 28800) {
  35.             llSay(0,"Has been worn for 8 hours"):
  36.         }
  37.     }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement