1
/*jslint indent: 4, maxlen: 120, maxerr: 50, white: true, es5: true, undef: true, bitwise: true, regexp: true,
3
/*jshint es5: true, undef: true, bitwise: true, eqnull: true, noempty: true, eqeqeq: true, boss: true, loopfunc: true,
4
laxbreak: true, strict: true, curly: true */
5
/*global worldScripts */
7
/* jaguar_company_blackbox.js
9
* Copyright © 2012 Richard Thomas Harrison (Tricky)
11
* This work is licensed under the Creative Commons
12
* Attribution-Noncommercial-Share Alike 3.0 Unported License.
14
* To view a copy of this license, visit
15
* http://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter
16
* to Creative Commons, 171 Second Street, Suite 300, San Francisco,
17
* California, 94105, USA.
19
* Jaguar Company Black Box equipment activation script.
25
/* Standard public variables for OXP scripts. */
26
this.name = "jaguar_company_blackbox.js";
27
this.author = "Tricky";
28
this.copyright = "© 2012 Richard Thomas Harrison (Tricky)";
29
this.license = "CC BY-NC-SA 3.0";
30
this.description = "Jaguar Company Black Box equipment activation script.";
33
this.activated = function() {
34
var p_mainScript = worldScripts["Jaguar Company"];
36
if (!p_mainScript.$tracker || !p_mainScript.$tracker.isValid) {
37
this.$jaguar_company_blackbox_activated = false;
40
if (!this.$jaguar_company_blackbox_activated) {
41
this.$jaguar_company_blackbox_activated = p_mainScript.$activateJaguarCompanyBlackbox();
43
this.$jaguar_company_blackbox_activated = p_mainScript.$deactivateJaguarCompanyBlackbox();