 |
 |
 |
HV Script Thread, Discuss your creations. Includes guidelines and infos for script creation (2020-02-28 upd) |
|
Jul 30 2017, 20:26
|
SidZBear
Group: Gold Star Club
Posts: 560
Joined: 31-May 16

|
QUOTE(sickentide @ Jul 30 2017, 11:15)  if you set stopOnFullOvercharge = true, does it still interrupt hover when oc is full?
It does not
|
|
|
|
 |
|
Jul 30 2017, 20:37
|
sickentide
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10

|
QUOTE(SidZBear @ Jul 30 2017, 21:26)  It does not
so something in either of these statements, lines 372 and 390-391, is screwing up for you: CODE if ( document.querySelector('img[src$="spirit_n.png"]') && oc.clientWidth >= 414 ) { CODE if ( document.querySelector('img[src$="spirit_n.png"]') && (vcp = document.querySelector('#vcp > div')) && vcp.clientWidth >= 190 ) { i'm not sure what could be causing this, and all i can suggest at this point is to switch between standard and utilitarian bar styles and/or replace the above statements with these to see if that fixes it: CODE if ( !document.querySelector('img[src$="spirit_a.png"]') && oc.clientWidth >= 414 ) { CODE if ( !document.querySelector('img[src$="spirit_a.png"]') && (vcp = document.querySelector('#vcp > div')) && vcp.clientWidth >= 190 ) {
|
|
|
|
 |
|
Jul 30 2017, 20:43
|
SidZBear
Group: Gold Star Club
Posts: 560
Joined: 31-May 16

|
QUOTE(sickentide @ Jul 30 2017, 11:37)  so something in either of these statements, lines 372 and 390-391, is screwing up for you: CODE if ( document.querySelector('img[src$="spirit_n.png"]') && oc.clientWidth >= 414 ) { CODE if ( document.querySelector('img[src$="spirit_n.png"]') && (vcp = document.querySelector('#vcp > div')) && vcp.clientWidth >= 190 ) { i'm not sure what could be causing this, and all i can suggest at this point is to switch between standard and utilitarian bar styles and/or replace the above statements with these to see if that fixes it: CODE if ( !document.querySelector('img[src$="spirit_a.png"]') && oc.clientWidth >= 414 ) { CODE if ( !document.querySelector('img[src$="spirit_a.png"]') && (vcp = document.querySelector('#vcp > div')) && vcp.clientWidth >= 190 ) { It did not seem to change anything. Oh well, just means I need to keep an eye on my OC after OFC (IMG:[ invalid] style_emoticons/default/smile.gif) I won't trouble you anyt further on it, thank you for your help! Oh, and can anyone point me in the direction of the night theme? not really a huge fan of the standard colors >.< This post has been edited by SidZBear: Jul 30 2017, 20:44
|
|
|
|
 |
|
Jul 30 2017, 20:49
|
Cleavs
Group: Gold Star Club
Posts: 24,313
Joined: 18-January 07

|
QUOTE(SidZBear @ Jul 30 2017, 20:43)  Oh, and can anyone point me in the direction of the night theme? not really a huge fan of the standard colors >.<
try boulay's shop.
|
|
|
|
 |
|
Jul 30 2017, 21:44
|
Maharid
Group: Catgirl Camarilla
Posts: 2,401
Joined: 27-April 10

|
@sickentide: For Riddlelimiter, i actually like how it select the names, better aligned will be even better but i like the fast visual input but is a matter of liking it or not.
Anyway, another three request (sooner or later you will gun me down O_O ).
1) I use the log but as it is now it is simply a blob of things.
Is possible to add an highlighter like the one used by HVStat?
So turn dividers, colorize attacks (phisical and magical, both for you and enemy, with bold for crit), drops (using the common colors, used also in HV - Track Drops) and proficiencies gains?
2) Letter to Numbers for monsters? Possibilly with the option of using "1 to 0" or "0 to 9" (i think Monsterbation use 0 to 9 to select targets but i don't quite like it cause my mind automatically see the 0 as a 10).
3) There is a way to use a single button to cast different spells on different targets?
Like if i left click on any monster i cast Imeril but if i click on Konata i cast Weaken and if i use it on Yggdrasil i cast Silence.
No way, right?
And... nothing, i will surely come up with another unreasonable request soon.
This post has been edited by Maharid: Jul 30 2017, 22:18
|
|
|
|
 |
|
Jul 30 2017, 23:20
|
sickentide
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10

|
QUOTE(Maharid @ Jul 30 2017, 22:44)  1) Is possible to add an highlighter like the one used by HVStat?
2) Letter to Numbers for monsters?
i put these on my list of things to look into QUOTE(Maharid @ Jul 30 2017, 22:44)  3) There is a way to use a single button to cast different spells on different targets?
Like if i left click on any monster i cast Imeril but if i click on Konata i cast Weaken and if i use it on Yggdrasil i cast Silence.
i'm afraid that would be too much of a botting feature
|
|
|
|
 |
|
Jul 30 2017, 23:28
|
Maharid
Group: Catgirl Camarilla
Posts: 2,401
Joined: 27-April 10

|
That was also my main concern for the third point, thanks for the rest. (IMG:[ invalid] style_emoticons/default/smile.gif) EDIT: Another question: there is the possibility to add a little cooldown before attacking\casting again while using a deprecating spell on an enemy\suppert spell on you? The way how it work now is innatural, is so fast that most time you cast the spell two time while using shortcuts or one time plus attack when you are using it normally (a thing that i sometime do, even to only change the rhythm a bit). I know that this can hinder the total speed of the game but making it toggable will surely satisfy both the players that want speed over all and the player that want a more casual and precise way of playing. This post has been edited by Maharid: Jul 31 2017, 01:22
|
|
|
|
 |
|
Jul 31 2017, 10:59
|
Cleavs
Group: Gold Star Club
Posts: 24,313
Joined: 18-January 07

|
Coders may be interested to know that crowdfunding to repair the damaged scripts has started.
|
|
|
|
 |
|
Jul 31 2017, 12:25
|
sickentide
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10

|
QUOTE(Maharid @ Jul 31 2017, 00:28)  The way how it work now is innatural, is so fast that most time you cast the spell two time while using shortcuts or one time plus attack when you are using it normally (a thing that i sometime do, even to only change the rhythm a bit).
there are several ways to deal with this: 1) set hoverArea to a value other than 1, select your spell and click a non-hover part of the monster 2) again with hoverArea set to a higher value, bind your deprecating spells to mouse buttons or wheel i left hoverArea = 1 as the default setting so people don't get confused about hover not working, but for my personal use i always have hoverArea = 6 3) with the following setup, hold shift or a bound key, hover for a single cast, move cursor to the next target and hit Z for another cast etc. CODE hoverShiftAction = Strongest([ToggleHover, Cast('Imperil')]), // ... Bind(KEY_A, HoverAction(Strongest([ToggleHover, Cast('Weaken')]))); Bind(KEY_Z, ToggleHover); Bind(KEY_Z, Shift, ToggleHover); for option 3) here is an expert setting for pro users that will be a proper option in the next release: replace the handleKeyup function, line 238, with this to automatically resume hover after releasing the shift/HoverAction key: CODE function handleKeyup(e) { shiftHeld = e.shiftKey; hoverAction = defaultAction; if ( true ) { interruptHover = false; if ( hoverAction && !interruptAlert && monsters[target].hasAttribute('onclick') ) { if ( shiftHeld ) hoverShiftAction(); else hoverAction(); monsters[target].click(); }}} This post has been edited by sickentide: Jul 31 2017, 18:18
|
|
|
|
 |
|
Jul 31 2017, 14:20
|
Cleavs
Group: Gold Star Club
Posts: 24,313
Joined: 18-January 07

|
QUOTE(FabulousCupcake @ Jul 29 2017, 13:13)  Updated tatarime's HV_SmartMonsterLab again: [ gist.github.com] HV_SmartMonsterLab 2.0.13c- Readjusted more selectors that got changed in HV 0.85; this fixes monster level and class display - Readjusted selectors for StateCheck and SkillCheck (they are working now) - Fixed the issue where Feed/Drug monster rows overlap QUOTE(Nanoha_Prayer @ Jul 31 2017, 03:59)  "MonsterLab BabySitter" which can feed all monsters with crystals by one key 'F'.
to be frank, i never used a Monster Lab script, so i have close to no clue about this matter. now, i ask: can i have more infos about these functions? eventually, would it be possible to merge these into one? is there someone who offers to try to do this? i thought about Fabulous since he already modified it, but it doesn't necessarily need to be only one. eventually^2, is there someone who may offer to test the script and help the coder(s)?
|
|
|
|
 |
|
|
 |
|
Jul 31 2017, 17:51
|
Noni
Group: Catgirl Camarilla
Posts: 13,384
Joined: 19-February 16

|
QUOTE(Scremaz @ Jul 31 2017, 14:20)  to be frank, i never used a Monster Lab script, so i have close to no clue about this matter.
now, i ask: can i have more infos about these functions? eventually, would it be possible to merge these into one? is there someone who offers to try to do this? i thought about Fabulous since he already modified it, but it doesn't necessarily need to be only one. eventually^2, is there someone who may offer to test the script and help the coder(s)?
Please note that the [press f] in monster babysitter used to do 2 things: 1. Feed all monsters, but never more that a whole food - no waste. If no whole food could be used anymore, just half, the feeding would stop. 2. Happy-pill all monsters, but never more than a whole happy pill, again no waste. This has become redundant: 1. TenB has solved this, if I read the release notes correctly. No waste in feeding the last bit anymore. 2. TenB has solved this too. And, Superlatanium has even made it possible to feed whole pills without the thing going yellow. Monster Helper script. So I'd say no deed for Babysitter script anymore! Or am I mistaken?
|
|
|
|
 |
|
Jul 31 2017, 17:59
|
Cleavs
Group: Gold Star Club
Posts: 24,313
Joined: 18-January 07

|
QUOTE(DJNoni @ Jul 31 2017, 17:51)  Please note that the [press f] in monster babysitter used to do 2 things: 1. Feed all monsters, but never more that a whole food - no waste. If no whole food could be used anymore, just half, the feeding would stop. 2. Happy-pill all monsters, but never more than a whole happy pill, again no waste.
This has become redundant: 1. TenB has solved this, if I read the release notes correctly. No waste in feeding the last bit anymore. 2. TenB has solved this too. And, Superlatanium has even made it possible to feed whole pills without the thing going yellow. Monster Helper script.
So I'd say no deed for Babysitter script anymore! Or am I mistaken?
i don't know. i'm asking. the user who spoke about this mentioned a crystal thing as well... also, cannot find Monster Helper in this thread... (IMG:[ invalid] style_emoticons/default/unsure.gif) This post has been edited by Scremaz: Jul 31 2017, 18:00
|
|
|
|
 |
|
Jul 31 2017, 18:28
|
sickentide
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10

|
QUOTE(Benny-boy @ Jul 31 2017, 18:45)  oh dear. try taking these parts, around lines 28 and 105: CODE colours = { default: '#EDEBDF', spark: 'magenta', lowhp: 'deeppink', lowmp: 'darkslateblue', lowsp: 'indigo', channelling: 'aquamarine', usablegem: 'mediumspringgreen', ocfull: 'lavender', expiring: 'magenta' }, CODE regexp = { gem: /\w(\w+) Gem/, defaultgem: /\w(\w+).gem/, duration: /(x(\d))*[^\(]*, (\d+)/, monsterhp: /HP=(\d+)/g, hpvalue: /(\d+)/, spellicon: /, '(\w+)'/, defaultfont: /"c\d\w"/, action: /(You hit|You crit|You use|You cast|Arcane Blow|Stance Engaged|Stance Disabled|Stance\.|Defending\.|Focusing\.|You miss|evades your attack|parries your attack)[^\<]*/, zeroturn: /You use\s*\w* (Gem|Draught|Potion|Elixir|Drink|Candy|Infusion|Scroll|Vase|Gum)/, spellname: /(cast|use) ([\w\s\-]+)/, spellinfo: /\('([\w\s\-]+)'.*, (\d+)\)/, round: /Round (\d+) \/ (\d+)/, crystal: /(\d+)x Crystal/, credit: /(\d+) Credit/, exp: /You gain (\d+) EXP/, defaultstring: /"c\d\w"/g, defaultletter: /"c\d(\w)"/ }, and changing them like so: CODE colours = { 'default': '#EDEBDF', 'spark': 'magenta', 'lowhp': 'deeppink', 'lowmp': 'darkslateblue', 'lowsp': 'indigo', 'channelling': 'aquamarine', 'usablegem': 'mediumspringgreen', 'ocfull': 'lavender', 'expiring': 'magenta' }, CODE regexp = { 'gem': /\w(\w+) Gem/, 'defaultgem': /\w(\w+).gem/, 'duration': /(x(\d))*[^\(]*, (\d+)/, 'monsterhp': /HP=(\d+)/g, 'hpvalue': /(\d+)/, 'spellicon': /, '(\w+)'/, 'defaultfont': /"c\d\w"/, 'action': /(You hit|You crit|You use|You cast|Arcane Blow|Stance Engaged|Stance Disabled|Stance\.|Defending\.|Focusing\.|You miss|evades your attack|parries your attack)[^\<]*/, 'zeroturn': /You use\s*\w* (Gem|Draught|Potion|Elixir|Drink|Candy|Infusion|Scroll|Vase|Gum)/, 'spellname': /(cast|use) ([\w\s\-]+)/, 'spellinfo': /\('([\w\s\-]+)'.*, (\d+)\)/, 'round': /Round (\d+) \/ (\d+)/, 'crystal': /(\d+)x Crystal/, 'credit': /(\d+) Credit/, 'exp': /You gain (\d+) EXP/, 'defaultstring': /"c\d\w"/g, 'defaultletter': /"c\d(\w)"/ },
|
|
|
|
 |
|
Jul 31 2017, 18:39
|
simrock87
Group: Members
Posts: 647
Joined: 12-June 11

|
QUOTE(Benny-boy @ Jul 31 2017, 16:37)  Just curious, how do you get a Microsoft JScript error? (IMG:[ invalid] style_emoticons/default/blink.gif) This post has been edited by simrock87: Jul 31 2017, 18:39
|
|
|
Jul 31 2017, 18:45
|
simrock87
Group: Members
Posts: 647
Joined: 12-June 11

|
QUOTE(Benny-boy @ Jul 31 2017, 16:43)  I just can't import zip to tampermonkey due to "impossible to disassemble" error (IMG:[ invalid] style_emoticons/default/wacko.gif) Have you tried extracting the zip and then drag'n'dropping the user.js file into tampermonkey directly? Never tried the zip thingy myself (IMG:[ invalid] style_emoticons/default/heh.gif)
|
|
|
Jul 31 2017, 18:48
|
Benny-boy
Group: Gold Star Club
Posts: 1,950
Joined: 27-December 10

|
QUOTE(simrock87 @ Jul 31 2017, 19:45)  Have you tried extracting the zip and then drag'n'dropping the user.js file into tampermonkey directly? Never tried the zip thingy myself (IMG:[ invalid] style_emoticons/default/heh.gif) Yep, tampermonkey don't care how you import, you'll get same mistake (IMG:[ invalid] style_emoticons/default/rolleyes.gif)
|
|
|
|
 |
|
Jul 31 2017, 19:13
|
Noni
Group: Catgirl Camarilla
Posts: 13,384
Joined: 19-February 16

|
QUOTE(Scremaz @ Jul 31 2017, 17:59)  i don't know. i'm asking. the user who spoke about this mentioned a crystal thing as well... also, cannot find Monster Helper in this thread... (IMG:[ invalid] style_emoticons/default/unsure.gif) from the release thread: - The "Feed" button on the monster stats page and the "Feed All" button on the monster slots page now operate in the exact same way, and neither will waste food. The feed quantity is always rounded down, and monsters will not be fed if they cannot eat at least one food. The single-food option was removed. - Added a "Drug All Monsters" button to automatically use happy pills on all monsters with yellow or worse morale. This will not waste pills, but it will use more than one if it can do so without wasting any. This specifically avoids using pills on monsters that are currently on green morale, in case you want to boost them with upgrades. Babysitter didn't do crystals. Monster Helper by Superlatanium (probably in his sig, didn't check) CODE // ==UserScript== // @name Monster Helper // @namespace E-Hentai // @version 1.1 // @author Superlatanium // @include https://hentaiverse.org/?s=Bazaar&ss=ml // ==/UserScript==
var inProgress = false; document.addEventListener('keydown', function(e){ if (e.keyCode != 70 || inProgress) return; inProgress = true; var helpCount = 0; var helpDone = 0; var results = document.getElementById('mainpane').appendChild(document.createElement('div')); [].forEach.call(document.querySelectorAll('.msl'), function(monsterDiv){ var link = monsterDiv.getAttribute('onclick').match(/'([^']+)'/)[1]; //var food = monsterDiv.children[4].children[0].children[0].style.width; //food = parseInt(morale.substr(0, morale.length - 2)); var morale = monsterDiv.children[5].children[0].children[0].style.width; morale = parseInt(morale.substr(0, morale.length - 2)); //full bar: 120px long. each pill restores 30 if (morale < 90){ helpCount++; results.textContent = 'Drugging ' + helpDone + ' / ' + helpCount + ' monsters'; post(link, {'food_action':'drugs'}, function(response){ helpDone++; results.textContent = 'Drugging ' + helpDone + ' / ' + helpCount + ' monsters'; }); } }); if (helpCount == 0) results.textContent = 'No monsters to drug'; });
function post(url, data, done){ var r = new XMLHttpRequest(); r.open('POST', url, true); r.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); r.onload = function () { if (r.status >= 200 && r.status < 400){ done(r.response); } }; var dataStr = ''; Object.keys(data).forEach(function(paramName){ if (dataStr) dataStr += '&'; dataStr += paramName + '=' + String(data[paramName]).replace(/\+/g, '%2B'); }); r.send(dataStr); }
This post has been edited by DJNoni: Jul 31 2017, 19:14
|
|
|
|
 |
|
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members:
|
 |
 |
 |
|