 |
 |
 |
[Script] Monsterbation 1.4.1.2, A comprehensive hovering script for HentaiVerse and ISK. Including CrunkJuice 1.3.0, an out-of-battle script |
|
Jan 30 2022, 10:53
|
Srac
Group: Gold Star Club
Posts: 1,122
Joined: 18-November 13

|
QUOTE(sssss2 @ Jan 29 2022, 22:03)  I made a new function to replace a clickableRiddlemaster.
Thank you for a good function! I also made a style to replace riddleRight and condenseLeft of RiddleMaster.  Modify the entire 'function Riddlemaster'. CODE // combat helper functions function Riddlemaster() { if ( !document.getElementById('riddlemaster') ) return; if ( cfg.trackSpeed ) { timelog.horse = (timelog.horse ? timelog.horse : 0) + 1;} if ( !document.getElementById('buttsex') ) { var style = document.createElement('style'); style.id = 'buttsex'; document.head.appendChild(style); if ( cfg.condenseLeft || cfg.riddleRight ) { var miniRiddle = '#riddlemaster { width: 606px; position: absolute; left: ' + (cfg.riddleRight ? '618' : '0') + 'px; margin: unset; }' + '#riddleimage { position: absolute; }' + '#riddleimage > img { width: 698px; transform: rotate(-90deg) translate(-150px, -157px); }' + '#riddlemid { width: 226px; position: absolute; left: 388px; margin: 120px 0; }' + '#riddler1 { justify-content: left; flex-flow: column; width: auto; }' + '#riddler1 > div { margin: 10px 0; }'; style.innerHTML = miniRiddle; document.querySelector('#riddleimage > img').addEventListener('click', function() { style.innerHTML == '' ? style.innerHTML = miniRiddle : style.innerHTML = '' }); } if ( cfg.clickableRiddlemaster ) { function riddle_keydown(e) { if ( !document.getElementById('riddlemaster') ) return; var k = e.which, p = {84:0,82:1,70:2,66:3,68:3,80:4,81:4,65:5}[k]; if ( p !== undefined ) { document.querySelectorAll('input[name="riddleanswer[]"]')[p].click(); } else if ( k === 13 ) { if ( !document.getElementById('riddlesubmit').disabled ) { document.getElementById('riddlesubmit').click(); } } else if ( k === 32 ) { if ( cfg.condenseLeft || cfg.riddleRight ) { document.querySelector('#riddleimage > img').click(); }}} document.addEventListener('keydown',riddle_keydown); }}}
function Gems() {
It contains sssss2's riddle_keydown function. By clicking the pony image or pressing the Space, can switch between original and condensed image.
|
|
|
|
 |
|
Jan 30 2022, 15:59
|
monk31
Newcomer
 Group: Members
Posts: 33
Joined: 14-March 12

|
i start isekai & every 2 round script stop work? (round hover stop work & auto advance stop & battle log go back to original look). In persistant is be work ok everything (IMG:[invalid] style_emoticons/default/sad.gif)
Any idea why? My guess is some settings from persistant be cause trouble maybe, but not sure how to fix? Maybe I should copy-paste default monsterbation settings under isekai settings brackets, { }?
Also refresh fix but only for 2 round againProblem be monsterbar. I turn off now in isekai custom settings. My guess is try load spell icons I not unlock yet in isekai (was getting document.getelementbyid error). Sorry change post many time This post has been edited by monk31: Jan 30 2022, 16:36
|
|
|
|
 |
|
Feb 4 2022, 16:24
|
raraha
Group: Gold Star Club
Posts: 270
Joined: 4-January 18

|
According to #122 reply https://forums.e-hentai.org/index.php?showt...p;#entry6041708"You can use a CSS add-on to change any visual thing to whatever you want on the browser-side." QUOTE(sssss2 @ Jan 30 2022, 00:03)  I made a new function to replace a clickableRiddlemaster.
Derived from the code provided by sssss2, added some features for rotation, loading preset filters, as well as adjusting brightness & contrast by key pressing Basically it loads a Preset filter as default, and have hotkeys as follows: - 1: load Preset filter 1 - 2: load Preset filter 2 - 3: load Preset filter 3 - E: rotate 45 degree clockwise - W: rotate 45 degree anti-clockwise - G: rotate 180 degree - C: + Contrast - X: - Contrast - B: + Brightness - V: - Brightness - Z: Reset filter and position Note: - Replace original hotkey B for + Brightness - Remove original hotkey P for consistency (all the hotkeys are on the left hand side) CODE // combat helper functions function Riddlemaster() { var bot; if ( !cfg.clickableRiddlemaster || !(bot = document.getElementById('riddlemaster')) ) return; if ( cfg.trackSpeed ) { timelog.horse = (timelog.horse ? timelog.horse : 0) + 1;} if ( !document.getElementById('buttsex') ) { var style = document.createElement('style'); style.id = 'buttsex'; style.innerHTML = '#riddlemaster { width:1004px; ' + (cfg.condenseLeft?'margin-left:0; ' : cfg.riddleRight?'margin-right:0; ' : '' ) + '}'; document.head.appendChild(style);
// Preset Filter Value var rotateAngle = 0; var brightnessVal = 1; // 1 is default and represents the original image. var contrastVal = 1.35; // 1 is default, and represents the original image. var hueRotateVal = 0; // 0deg is default, and represents the original image. var invertVal = 0; // 0 is default and represents the original image. var saturateVal = 1.5; // 1 is default and represents the original image. style.innerHTML += '#riddleimage > img {filter: brightness(' + brightnessVal + ') contrast(' + contrastVal + ') hue-rotate(' + hueRotateVal + 'deg) invert(' + invertVal + ') saturate(' + saturateVal + ')}'; function riddle_keydown(e) { if(!document.getElementById('riddlemaster')) return; var isStyleChanged = false; var k = e.which, p = {84:0,82:1,70:2,68:3,81:4,65:5}[k]; // T:0,R:1,F:2,D:3,Q:4,A:5 if(p !== undefined) { document.querySelectorAll('input[name="riddleanswer[]"]')[p].click(); } else if(k === 13) { if(!document.getElementById('riddlesubmit').disabled) { document.getElementById('riddlesubmit').click(); } } else if(k === 49) { // 1 Preset brightnessVal = 1; contrastVal = 1.35; hueRotateVal = 0; invertVal = 0; saturateVal = 1; isStyleChanged = true; } else if(k === 50) { // 2 Preset brightnessVal = 0.7; contrastVal = 3; hueRotateVal = 0; invertVal = 0; saturateVal = 1.5; isStyleChanged = true; } else if(k === 51) { // 3 Preset brightnessVal = 0.8; contrastVal = 1.8; hueRotateVal = 0; invertVal = 0; saturateVal = 2; isStyleChanged = true; } else if(k === 69) { // E rotateAngle += 45; if (rotateAngle == 360) { rotateAngle = 0; } isStyleChanged = true; } else if(k === 87) { // W rotateAngle -= 45; if (rotateAngle < 0) { rotateAngle += 360; } isStyleChanged = true; } else if(k === 71) { // G rotateAngle += 180; if (rotateAngle >= 360) { rotateAngle -= 360; } isStyleChanged = true; } else if(k === 67) { // C contrastVal += 0.1; if (contrastVal > 3) { contrastVal = 3; } isStyleChanged = true; } else if(k === 88) { // X contrastVal -= 0.1; if (contrastVal < 0.3) { contrastVal = 0.3; } isStyleChanged = true; } else if(k === 66) { // B brightnessVal += 0.05; if (brightnessVal > 1.5) { brightnessVal = 1.5; } isStyleChanged = true; } else if(k === 86) { // V brightnessVal -= 0.05; if (brightnessVal < 0.3) { brightnessVal = 0.3; } isStyleChanged = true; } else if (k === 90) { // Z - Reset rotateAngle = 0; brightnessVal = 1; contrastVal = 1; hueRotateVal = 0; invertVal = 0; saturateVal = 1; style.innerHTML = '#riddlemaster { width:1004px; ' + (cfg.condenseLeft?'margin-left:0; ' : cfg.riddleRight?'margin-right:0; ' : '' ) + '}'; } if (isStyleChanged) { var filterCssString = '#riddleimage > img {filter: brightness(' + brightnessVal + ') contrast(' + contrastVal + ') hue-rotate(' + hueRotateVal + 'deg) invert(' + invertVal + ') saturate(' + saturateVal + ')}'; if (rotateAngle == 0 || rotateAngle == 180) { style.innerHTML = '#riddlemaster { width:1004px; ' + (cfg.condenseLeft?'margin-left:0; ' : cfg.riddleRight?'margin-right:0; ' : '' ) + '}' + '#riddleimage > img {transform: rotate(' + rotateAngle + 'deg)} ' + filterCssString; } else if (rotateAngle == 90 || rotateAngle == 270) { style.innerHTML = '#riddlemaster { width:1004px; ' + (cfg.condenseLeft?'margin-left:0; ' : cfg.riddleRight?'margin-right:0; ' : '' ) + '}' + '#riddleimage > img {transform: translate(0px, 220px) rotate(' + rotateAngle + 'deg)} ' + '#riddlemid {position: relative; top: 450px} ' + '#csp{overflow:scroll; overflow-x: hidden} ' + '#mainpane{overflow:visible} ' + filterCssString; } else { // 45deg if (cfg.condenseLeft) { style.innerHTML = '#riddlemaster { width:1004px; margin-left:0; }' + '#riddleimage > img {transform: translate(42px, 266px) rotate(' + rotateAngle + 'deg)} ' + '#riddlemid {position: relative; top: 538px} ' + '#csp{overflow:scroll; overflow-x: hidden} ' + '#mainpane{overflow:visible} ' + filterCssString; } else if (cfg.riddleRight) { style.innerHTML = '#riddlemaster { width:1004px; margin-right:0; }' + '#riddleimage > img {transform: translate(-50px, 266px) rotate(' + rotateAngle + 'deg)} ' + '#riddlemid {position: relative; top: 538px} ' + '#csp{overflow:scroll; overflow-x: hidden; direction:rtl} ' + '#mainpane{overflow:visible} ' + filterCssString;
} else { style.innerHTML = '#riddlemaster { width:1004px; }' + '#riddleimage > img {transform: translate(0px, 266px) rotate(' + rotateAngle + 'deg)} ' + '#riddlemid {position: relative; top: 538px} ' + '#csp{overflow:scroll; overflow-x: hidden} ' + '#mainpane{overflow:visible} ' + filterCssString; } } } } document.addEventListener('keydown',riddle_keydown); } } // END
function Gems() {
|
|
|
|
 |
|
Feb 5 2022, 21:50
|
monk31
Newcomer
 Group: Members
Posts: 33
Joined: 14-March 12

|
if i want to change key binding when change personas, I need paste all bindings in persona settings, or is way I can put just binding i want change?
This post has been edited by monk31: Feb 5 2022, 22:19
|
|
|
Mar 25 2022, 17:14
|
peter723pan
Group: Gold Star Club
Posts: 656
Joined: 16-June 11

|
Is it possible to show cooldown counting on potions ?
|
|
|
Mar 25 2022, 19:14
|
OnceForAll
Group: Catgirl Camarilla
Posts: 1,624
Joined: 3-January 21

|
QUOTE(peter723pan @ Mar 25 2022, 23:14)  Is it possible to show cooldown counting on potions ? It is on the "Requested Feature" list: QUOTE(OnceForAll @ May 20 2021, 23:46)  Another feature request:
Is it possible for items to show cooldowns?
|
|
|
Mar 27 2022, 03:22
|
mathl33t
Group: Gold Star Club
Posts: 1,077
Joined: 9-April 19

|
I found a very minor bug: if I get dawn of a new day during battle, the proficiency gets mistakenly added twice, in two consecutive rounds. This does not apply for random encounters.
HVMarket being down is a big loss, but HV would be unplayable without Monsterbation, so thanks again for making, updating, and sharing it.
This post has been edited by mathl33t: Jan 8 2023, 02:03
|
|
|
Apr 11 2022, 19:53
|
IchQuote
Newcomer
 Group: Members
Posts: 45
Joined: 17-March 17

|
Alternatively go to Tools -> Extension and drop the script directly into that screen (chrome://extensions).
this method doesn't work anymore?
|
|
|
Apr 12 2022, 07:16
|
Noni
Group: Catgirl Camarilla
Posts: 13,158
Joined: 19-February 16

|
QUOTE(IchQuote @ Apr 11 2022, 19:53)  Alternatively go to Tools -> Extension and drop the script directly into that screen (chrome://extensions).
this method doesn't work anymore?
I think most modern browsers have made that impossible. You need to install tampermonkey or something similar
|
|
|
Apr 21 2022, 23:20
|
paladinefizban
Newcomer
  Group: Members
Posts: 75
Joined: 23-April 11

|
Hey there. I am trying to get Monsterbation and whatever other scripts I need running on my Chrome. I D/Led Tampermonkey already. But, like, yeah, any like step by step instructions? I dont wanna do it wrong.
Thankies!
|
|
|
Apr 22 2022, 10:09
|
OnceForAll
Group: Catgirl Camarilla
Posts: 1,624
Joined: 3-January 21

|
QUOTE(paladinefizban @ Apr 22 2022, 05:20)  Hey there. I am trying to get Monsterbation and whatever other scripts I need running on my Chrome. I D/Led Tampermonkey already. But, like, yeah, any like step by step instructions? I dont wanna do it wrong.
Thankies! Click the `user.js.text`, it should open a new tab (or in your current tab) in your browser. Select all, copy. Leave the tab opened, then open TamperMonkey, and click New Script, paste in the editor, hit save. And it's done.
|
|
|
Apr 24 2022, 15:32
|
nek
Group: Members
Posts: 441
Joined: 22-June 08

|
hi, can i stop the launching of imperil when i am sparked or low vitals ?: in the beginning of a round i always cast imperil with 1 , 2 , 3 keys and sometimes i pressed keys so fast i lost the round ( mostly in the ending levels of grindfest )
|
|
|
Apr 26 2022, 05:54
|
OnceForAll
Group: Catgirl Camarilla
Posts: 1,624
Joined: 3-January 21

|
QUOTE(nek @ Apr 24 2022, 21:32)  hi, can i stop the launching of imperil when i am sparked or low vitals ?: in the beginning of a round i always cast imperil with 1 , 2 , 3 keys and sometimes i pressed keys so fast i lost the round ( mostly in the ending levels of grindfest ) IIRC it is strictly forbidden?
|
|
|
Apr 26 2022, 12:26
|
nek
Group: Members
Posts: 441
Joined: 22-June 08

|
QUOTE(OnceForAll @ Apr 26 2022, 05:54)  IIRC it is strictly forbidden?
thanks for the answer but what do you mean ?
|
|
|
|
 |
|
Apr 26 2022, 12:38
|
Shank
Group: Global Mods
Posts: 9,089
Joined: 19-May 12

|
The game pausing hover rotation on low vitals is the sole exception allowed, and then it is only allowed for this script. It is not allowed to pause or prevent you doing anything otherwise. If you do anything manually (this includes keybinds set in monsterbation) to attack a target, eg: pressing a key that loads imperil and hits a target monster, no script is allowed to prevent that action from occurring based on your vitals or anything else. https://ehwiki.org/wiki/Scripts_%26_Tools#Forbidden_Actionshttps://forums.e-hentai.org/index.php?showtopic=243549As a general rule of thumb, if monsterbation doesn't let you do it, it's probably not allowed. tl;dr : If it's an action outside of hover rotation, monsterbation (or any script) is not allowed to stop you from performing it, based on any metric or otherwise.
|
|
|
|
 |
|
Apr 26 2022, 13:11
|
nek
Group: Members
Posts: 441
Joined: 22-June 08

|
thank you for your explanation
|
|
|
May 17 2022, 21:21
|
zwei7
Lurker
Group: Recruits
Posts: 9
Joined: 29-July 13

|
Using Chrome and newest Tampermonkey I downloaded today HentaiverseMonsterbation.1.4.1.2.user.js.txt
When there is a riddleaster pony identification popup I identify the ponies shown by clicking on the appropriate boxes BUT, the "submit answer" button is greyed out and the timer counter is gone. I pressed "enter" and still nothing happens and I am locked in this identify all the ponies screen I cannot submit my pony answer at all.
I found a fix though, press f5 to refresh the page
This post has been edited by zwei7: May 17 2022, 21:30
|
|
|
May 18 2022, 01:24
|
lygarx
Group: Gold Star Club
Posts: 364
Joined: 15-May 10

|
thanks for the update
|
|
|
May 19 2022, 20:42
|
AnonDarkMage7
Group: Gold Star Club
Posts: 925
Joined: 1-June 12

|
how do i set up the script so that a input uses skills in a certain order? For example i want it to use Cure first, then full Cure if Cure is on cooldown. Also is there anyway to disable an input if all skills associated with it are on cooldown or is that too far, the amount of times i put myself at 1 hp or killed myself because i double tapped an input, ironically trying to use cure, is a lot higher than I'd like.
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
|
 |
 |
 |
|