Difference between revisions of "User:Troylaurin"
Jump to navigation
Jump to search
Troylaurin (talk | contribs) |
Troylaurin (talk | contribs) |
||
| Line 247: | Line 247: | ||
|- | |- | ||
|craft output up | |craft output up | ||
| − | | | + | | |
| − | |||
*key 3 | *key 3 | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| | | | ||
*not busy crafting | *not busy crafting | ||
| Line 288: | Line 281: | ||
|- | |- | ||
|craft count up | |craft count up | ||
| − | | | + | | |
| − | |||
*key 9 | *key 9 | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| | | | ||
*not busy crafting | *not busy crafting | ||
| Line 337: | Line 323: | ||
|- | |- | ||
|craft count down | |craft count down | ||
| − | | | + | | |
| − | |||
*key 8 | *key 8 | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| | | | ||
*not busy crafting | *not busy crafting | ||
| Line 570: | Line 549: | ||
|craft output machine | |craft output machine | ||
| | | | ||
| − | *key 4 | + | *key 4 (in factory) |
<br /> | <br /> | ||
Revision as of 08:01, 19 January 2021
A bunch of scripts to craft stuff.
| Click to copy (tamperscript) |
|---|
// ==UserScript==
// @name Click to copy on <pre> tags
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Add click to copy buttons to <pre> tags
// @author Troy.Laurin@gmail.com
// @match https://www.perfecttower2.com/wiki/*
// @grant GM_addStyle
// @require https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js
// @require http://code.jquery.com/jquery-3.5.1.slim.min.js
// ==/UserScript==
(function() {
'use strict';
// ------------------------------------------
// CSS part injected in the page
GM_addStyle(" \
.precontainer { \
position: relative; \
} \
.copy-btn { \
background: #DDD; \
font-family: monospace; \
font-weight: bolder; \
margin: 0; \
opacity: 0; \
padding: 4px; \
position: absolute; \
right: 1px; \
top: 1px; \
cursor: pointer; \
-webkit-transition: opacity 0.3s ease-in-out; \
-o-transition: opacity 0.3s ease-in-out; \
transition: opacity 0.3s ease-in-out; \
} \
.precontainer:hover >.copy-btn { \
opacity: 1; \
} \
table { width: 100% } \
");
$('pre').wrap('<div class="precontainer"></div>');
$('pre').before($('<span class="copy-btn"></></span>'));
new ClipboardJS('.copy-btn', {
text: function(trigger) {
return $(trigger.nextElementSibling).text();
}
})
.on('success',function (e) {
$(e.trigger).html("<copied/>")
setTimeout(function() {
$(e.trigger).html("</>");
}, 3000);
})
.on('error',function (e) {
$(e.trigger).html("Error!")
setTimeout(function() {
$(e.trigger).html("</>");
}, 3000);
});
})();
|
IN DEVELOPMENT. USE AT YOUR OWN RISK.
General scripts
| Script | Impulses | Conditions | Lines | Source | |||
|---|---|---|---|---|---|---|---|
| craft init |
|
9 |
| ||||
| craft GO |
|
|
12 |
| |||
| craft tier up |
|
|
1 |
| |||
| craft mode up |
|
|
2 |
| |||
| craft output up |
|
|
2 |
| |||
| craft count up |
|
|
5 |
| |||
| craft count down |
|
|
5 |
| |||
| craft inventory use |
|
|
1 |
| |||
| craft script check | 3 |
| |||||
| craft producer set (pg1) |
|
|
14 |
| |||
| craft producer set (pg2) |
|
|
13 |
| |||
| craft output machine |
|
|
4 |
| |||
| craft ingot | 12 |
|
Parts scripts
| Output | Part | Scripts | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | chips |
| |||||||||||||||||||||||||||
| 2 | plates |
| |||||||||||||||||||||||||||
| 3 | dense plates |
| |||||||||||||||||||||||||||
| 4 | blocks |
| |||||||||||||||||||||||||||
| 5 | cables |
| |||||||||||||||||||||||||||
| 6 | insulated cables |
| |||||||||||||||||||||||||||
| 7 | rods |
| |||||||||||||||||||||||||||
| 8 | motors |
| |||||||||||||||||||||||||||
| 9 | pumps |
|
Producer scripts
Machine scripts
| Name | Lines | Code | |||
|---|---|---|---|---|---|
| x | x |
|