Difference between revisions of "User:Troylaurin"
Jump to navigation
Jump to search
Troylaurin (talk | contribs) (oven and assembler scripts) |
Troylaurin (talk | contribs) |
||
| Line 2,277: | Line 2,277: | ||
| | | | ||
| | | | ||
| − | {| class="wikitable | + | {| class="wikitable" |
!Name | !Name | ||
!Lines | !Lines | ||
| Line 2,328: | Line 2,328: | ||
(pic) | (pic) | ||
| | | | ||
| − | {| class="wikitable | + | {| class="wikitable" |
!Name | !Name | ||
!Lines | !Lines | ||
| Line 2,584: | Line 2,584: | ||
(pic) | (pic) | ||
| | | | ||
| − | {| class="wikitable | + | {| class="wikitable" |
!Name | !Name | ||
!Lines | !Lines | ||
| Line 2,862: | Line 2,862: | ||
(pic) | (pic) | ||
| | | | ||
| + | {| class="wikitable" | ||
| + | !Name | ||
| + | !Lines | ||
| + | !Code | ||
| + | |- | ||
| + | |craft 2:3 | ||
| + | | | ||
| + | | | ||
| + | {| class="wikitable mw-collapsible mw-collapsed" | ||
| + | ! | ||
| + | |- | ||
| + | |<syntaxhighlight lang="actionscript"> | ||
| + | x | ||
| + | </syntaxhighlight> | ||
| + | |- | ||
| + | |<syntaxhighlight lang="text"> | ||
| + | x | ||
| + | </syntaxhighlight> | ||
| + | |} | ||
| + | |- | ||
| + | | | ||
| + | | | ||
| + | | | ||
| + | |- | ||
| + | | | ||
| + | | | ||
| + | | | ||
| + | |} | ||
|- | |- | ||
|4 | |4 | ||
Revision as of 16:22, 20 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 |
|
|
13 |
| |||
| 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 | 13 |
|
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
| Output | Producer | Scripts | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||
Machine scripts
| Output | Machine | Scripts | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | oven
(pic) |
| |||||||||||||||||||||
| 2 | assembler
(pic) |
| |||||||||||||||||||||
| 3 | refiner
(pic) |
| |||||||||||||||||||||
| 4 | crusher
(pic) |
||||||||||||||||||||||
| 5 | cutter
(pic) |
||||||||||||||||||||||
| 6 | presser
(pic) |
||||||||||||||||||||||
| 7 | mixer
(pic) |
||||||||||||||||||||||
| 8 | belt
(pic) |
||||||||||||||||||||||
| 9 | shaper
(pic) |
||||||||||||||||||||||
| 10 | boiler
(pic) |
