Welcome Guest ( Log In | Register )

291 Pages V « < 207 208 209 210 211 > »   
Reply to this topicStart new topic
> HV Script Thread, Discuss your creations. Includes guidelines and infos for script creation (2020-02-28 upd)

 
post Jun 26 2017, 05:34
Post #4161
karyl123



Hey Tayo !!!
*******
Group: Gold Star Club
Posts: 1,659
Joined: 9-January 11
Level 452 (Godslayer)


I am using mousemagelee. every cosmetics works, but the hover only for 1 attack ??

i am using iron and tampermonkey. without tampermonkey rightclick and hover not even work
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 26 2017, 06:50
Post #4162
aided



Fragile DW Shader
******
Group: Gold Star Club
Posts: 773
Joined: 1-September 12
Level 500 (Godslayer)


I am using Chrome 31 for HV, and directly applied MouseMagelee. I tested it on Chrome 58 wich is latest version.
1. Rightclick doesn't work (same on Chrome 58)
2. Once hover on enemy, vbh background immediately turns into red - so it does not attack anymore (this works properly on Chrome 58)

This post has been edited by aided: Jun 26 2017, 07:33
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 26 2017, 06:57
Post #4163
marutora



Casual Poster
****
Group: Gold Star Club
Posts: 386
Joined: 16-May 10
Level 500 (Ponyslayer)


QUOTE(FabulousCupcake @ Jun 24 2017, 23:23) *

Attached Image

Actually working now with some aesthetic fixes (removed the strange vertical bar on the right side)

(code snipped)


Thank you for your great work. (IMG:[invalid] style_emoticons/default/smile.gif)

But it looks a litte buggy:
- "id" attribute of monster J (10th) is not "mkey_10" but "mkey_0".
- Length of HP bars are reverse order.
- There is room for performance tuning.

So I tired to fix above issues -- by way of suggestion.
CODE
// ==UserScript==
// @name         HV | Relative HP Bar
// @namespace    http://fabulous.cupcake.jp.net
// @version      0.2
// @description  Visual feedback for monster hp compared to the other monsters'
// @author       FabulousCupcake
// @match        *://*.hentaiverse.org/*
// @grant        none
// @run-at       document-end
// ==/UserScript==


let stylesheet = "";
stylesheet += `
    .chbd > img:last-child {
        transform: scaleX(1.01);
        transform-origin: 0;
    }
`;

function injectStylesheet(stylesheet) {
    var stylesheetEl = document.createElement('style');
    stylesheetEl.innerHTML = stylesheet;
    document.body.appendChild(stylesheetEl);
}

(function() {
    'use strict';

    const logs = document.querySelectorAll("#textlog td"); // Older logs first.
    const pattern =
        /Spawned Monster (\w): MID=(\d+) \((.+)\) LV=(\d+) HP=(\d+)/;
    let hpList = [];

    Array.prototype.forEach.call( logs, log => {
        const match = log.textContent.match(pattern);
        if (match) {
            hpList.unshift(match[5]); // HP
        }
    } );

    const maxHp = hpList.reduce((a,b) => Math.max(a,b));

    hpList.forEach( (hp, i) => {
        const ratio = hp/maxHp;
        stylesheet += `
            #mkey_${ i==9 ? 0 : i+1 } .chbd {
                transform-origin: 0;
                transform: scaleX(${ratio});
            }`;
    } );

    injectStylesheet(stylesheet);

})();


This post has been edited by marutora: Jun 26 2017, 07:43
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 26 2017, 07:21
Post #4164
Tamao Serizawa



Casual Poster
***
Group: Gold Star Club
Posts: 119
Joined: 15-February 12
Level 489 (Godslayer)


QUOTE(decondelite @ Jun 25 2017, 21:46) *

The hovering script worked for a few rounds then stopped working at all. Only the right click was still available.


Me too. I did IW my weapon and the MouseMagelee 0.85 stopped working just like you said after 4 or 8 rounds. Had to flee most of the time. (IMG:[invalid] style_emoticons/default/cry.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 26 2017, 07:34
Post #4165
hentai_fusion



Nyo
************
Group: Gold Star Club
Posts: 33,488
Joined: 14-August 09
Level 500 (Ponyslayer)


QUOTE(karyl123 @ Jun 26 2017, 11:34) *

I am using mousemagelee. every cosmetics works, but the hover only for 1 attack ??

i am using iron and tampermonkey. without tampermonkey rightclick and hover not even work


for chrome-based browsers, you have to move your mouse for it to work.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 26 2017, 08:36
Post #4166
Aardwark



Casual Poster
***
Group: Members
Posts: 223
Joined: 11-May 14
Level 381 (Dovahkiin)


Is the a script for mass salvaging equipment?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 26 2017, 09:01
Post #4167
diodo



Regular Poster
*****
Group: Catgirl Camarilla
Posts: 515
Joined: 2-September 11
Level 500 (Ponyslayer)


So far there are two must useful scripts for chrome players: MouseMagelee and Chain Attack that feature hover T3 to T1 spells, items&spells duration. thank for Sapo84 and FabulousCupcake.

Chrome players who use MouseMagelee will need to turn off the icongem option or you will stop casting every time you get a gem.
And use Chain Attack just for the hover.

MUST add this line in Chain Attack script otherwise you will hover to dead.
if(document.querySelector('#vbh img').width < 150) return;

add above line right before this line
result = ( el.id.match('mkey') ? el : false );


apologize for my poor english =p

This post has been edited by diodo: Jun 27 2017, 08:42
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 26 2017, 09:17
Post #4168
sogeth



Active Poster
*******
Group: Gold Star Club
Posts: 1,364
Joined: 2-January 13
Level 500 (Ponyslayer)


Jesus, combat sucks now with all the old scripts broken and the new UI. I've just scanned the last few pages here, and it seems there's lots of work going on to address all the changes.


I know it's early days still, but is there anything approaching an easy to consume compendium/pinned post of the current status of new/fixed scripts?

I'd be happy to chip in some credits or hath or a few dozen SG trophies or something to help incentivize someone who can follow the results better than I can. I'm sort of poor, so my contribution might not count for much, but if anyone is already updating/collecting this, MM me, and I'll be glad to offer my support and spread the word.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 26 2017, 09:24
Post #4169
Slobber



On a Bounty Mission
**********
Group: Gold Star Club
Posts: 7,794
Joined: 4-February 11
Level 489 (Godslayer)


QUOTE(karyl123 @ Jun 25 2017, 21:34) *

I am using mousemagelee. every cosmetics works, but the hover only for 1 attack ??

i am using iron and tampermonkey. without tampermonkey rightclick and hover not even work

how'd u get tampermonkey for iron? i couldn't get tampermonkey on their site. it just links me to the chrome store where the download link was faded out =(
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 26 2017, 09:26
Post #4170
friggo



~Snug as a bug in a rug~
*******
Group: Gold Star Club
Posts: 2,134
Joined: 9-October 14
Level 500 (Ponyslayer)


QUOTE(sogeth @ Jun 26 2017, 10:17) *
I'm sort of poor, so my contribution might not count for much, but if anyone is already updating/collecting this, MM me, and I'll be glad to offer my support and spread the word.


Yup, a new comprehensive script is being crowdfunded. Thread here: https://forums.e-hentai.org/index.php?showtopic=207088

Feel free to contribute (IMG:[invalid] style_emoticons/default/happy.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 26 2017, 09:37
Post #4171
Sapo84



Deus lo vult
********
Group: Gold Star Club
Posts: 3,332
Joined: 14-June 09
Level 500 (Ponyslayer)


Note that even if I had time to take a look at the chrome issues (which I don't in the weekdays) I couldn't post new versions since Tenboro's guidelines explained here bans the spell rotation as it was always implemented.

tl;dr, if anyone has fix to improve chrome support or fix bugs just post them (or even post full script/derived work if you don't care about guidelines, since server-side no one can check how spell rotation is handled it's not like you risk ban using it).
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 26 2017, 09:55
Post #4172
simrock87



<('.'<) (>'.')> (^'.')>
*****
Group: Members
Posts: 647
Joined: 12-June 11
Level 399 (Godslayer)


QUOTE(Sapo84 @ Jun 26 2017, 07:37) *

Note that even if I had time to take a look at the chrome issues (which I don't in the weekdays) I couldn't post new versions since Tenboro's guidelines explained here bans the spell rotation as it was always implemented.

tl;dr, if anyone has fix to improve chrome support or fix bugs just post them (or even post full script/derived work if you don't care about guidelines, since server-side no one can check how spell rotation is handled it's not like you risk ban using it).


Drive by comment:
There are actually two problems that pretty much break the whole thing as it stood before:

QUOTE
As long as it uses internal timers, it would technically satisfy the requirement.

That could technically be worked around ... you'd just have to replace all the battle stuff with customized stuff just to keep the state in line to be able to count (note: you can't check at the start or in between, so if you make a mistake your state is going to be messed up for a while). Still doable but a metric crapton of work.
Edit: Just to make this so much worse ... this would apply to buffs too, right? And those don't run on player_turns but real_turns, so ... i'll just go hang myself.

QUOTE
- Things that parse the game state in order to, in any way, trigger or selectively present an action. (For example, a generic "use the potion that would fix my current threshold trigger" button would not be allowed.)

Depending on how one interprets this (see boldened part) ... this just forbids all the gem, heal, rebuff, buff, potion and so forth things. So far it was assumed that presentation of multiple actions and letting the user choose was skirting the rules but still within. This comment, to my mind, more or less shows that we've been operating on the false side of the line for the last year(s?).

This post has been edited by simrock87: Jun 26 2017, 10:02
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 26 2017, 10:07
Post #4173
lololo16




********
Group: Gold Star Club
Posts: 2,836
Joined: 5-March 12
Level 500 (Ponyslayer)


QUOTE(sickentide @ Jun 25 2017, 22:41) *

here is a mystic gem on the right end of the quickbar

(IMG:[i.imgur.com] http://i.imgur.com/Hc40pRQ.png)



mine looks like this, but no gem on the right end

(IMG:[i.imgur.com] http://i.imgur.com/ccZpe9r.png)


QUOTE(Gambit126 @ Jun 24 2017, 05:29) *

Potions extender disappears. No Gem Icon appears. No background change even when Gem is able to be used to full extent.



The same is happening to me. Is there a way to delete the gem thing while keeping the others? (IMG:[invalid] style_emoticons/default/cry.gif)



This post has been edited by lololo16: Jun 26 2017, 10:16
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 26 2017, 10:15
Post #4174
Sapo84



Deus lo vult
********
Group: Gold Star Club
Posts: 3,332
Joined: 14-June 09
Level 500 (Ponyslayer)


QUOTE(simrock87 @ Jun 26 2017, 09:55) *

Depending on how one interprets this (see boldened part) ... this just forbids all the gem, heal, rebuff, buff, potion and so forth things. So far it was assumed that presentation of multiple actions and letting the user choose was skirting the rules but still within. This comment, to my mind, more or less shows that we've been operating on the false side of the line for the last year(s?).

Well, if you just go for the example gems may still be considered ok (since it's more like "present if there is one" and not "present the correct action that would fix the current situation").
All the rest is more or less explicitly forbidden I guess. (and let's read between the lines and assume that by allowing hovering he also agrees on not injecting hovering when hover would kill yourself (IMG:[invalid] style_emoticons/default/rolleyes.gif))

User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 26 2017, 10:31
Post #4175
simrock87



<('.'<) (>'.')> (^'.')>
*****
Group: Members
Posts: 647
Joined: 12-June 11
Level 399 (Godslayer)


QUOTE(Sapo84 @ Jun 26 2017, 08:15) *

Well, if you just go for the example gems may still be considered ok (since it's more like "present if there is one" and not "present the correct action that would fix the current situation").

Agreed, showing gems for example is non-conditional in a sense. You sort of always show gems, but if there isn't one, you still show the gem you have (read as: you just show nothing (IMG:[invalid] style_emoticons/default/biggrin.gif)).
Same could be considered for heal, assuming internal cd tracking stuff, to just show a heal-button that uses the usabel spell/potion (which seems to be okay in itself), although you'd always need to display that button in this case. The same would again apply for MP or SP potions imho.

That just leaves (re)buffs i guess? (and displaying the spell icon all the time is kinda redundant, that's what the spell bar is for)

QUOTE(Sapo84 @ Jun 26 2017, 08:15) *

All the rest is more or less explicitly forbidden I guess. (and let's read between the lines and assume that by allowing hovering he also agrees on not injecting hovering when hover would kill yourself (IMG:[invalid] style_emoticons/default/rolleyes.gif))

I believe stopping on HP/MP/SP was explicitly allowed (like 20 years back in time (IMG:[invalid] style_emoticons/default/heh.gif))
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 26 2017, 10:40
Post #4176
karyl123



Hey Tayo !!!
*******
Group: Gold Star Club
Posts: 1,659
Joined: 9-January 11
Level 452 (Godslayer)


QUOTE(hentai_fusion @ Jun 26 2017, 12:34) *

for chrome-based browsers, you have to move your mouse for it to work.


moved left right up down. still only do 1 attack.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 26 2017, 10:42
Post #4177
karyl123



Hey Tayo !!!
*******
Group: Gold Star Club
Posts: 1,659
Joined: 9-January 11
Level 452 (Godslayer)


QUOTE(Slobber @ Jun 26 2017, 14:24) *

how'd u get tampermonkey for iron? i couldn't get tampermonkey on their site. it just links me to the chrome store where the download link was faded out =(


sorry for double post, but I just download it from the chrome store
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 26 2017, 11:02
Post #4178
Ms.Bunny



Casual Poster
****
Group: Gold Star Club
Posts: 257
Joined: 6-February 14
Level 452 (Godslayer)


CODE
// ==UserScript==
// @name        MouseMagelee 0.85
// @namespace   hentaiverse.org
// @version     0.1
// @description Something something hoverplay
// @match       *://*.hentaiverse.org/*
// @run-at      document-end
// @grant       none
// ==/UserScript==

// ***THANKS***
// sickentide (HV No Popup)
// sigo8 (Reloader Shim)
// dmyers59 (@version and #description

// SETTINGS
var hideLog = false; // hide battle log
var defaultAction = [0]; //0 for melee, array of spell id for mage (check Crackling Cast for the list of spells id)
var minHP = 0.35; // lower than fullHP X this value hover stops
var minMP = 0.2; // lower than fullMP X this value hover stops
var minSP = 0.3; // lower than fullSP X this value hover stops
var rightClick = [311,313]; // spell to cast on right click
var iconGem = true; // show gem above Focus button
var showDuration = true; // show the duration of the applied effects
var leftHp = true; //align HP bar left
function canCast(id){
    var el = document.getElementById(id);
    return !!el && el.hasAttribute('onclick');
}
function setSpellAttack(id) {
    var caller = document.getElementById(id);
    window.battle.lock_action(caller, 1, 'magic', id);
    window.battle.set_hostile_skill(id);
}

function castSupport(id) {
    var caller = document.getElementById(id);
    window.battle.lock_action(caller, 1, 'magic', id);
    window.battle.set_friendly_skill(id);
    window.battle.touch_and_go();
}

function runRightClickSpell() {
    for (var i = 0; i < rightClick.length; i++) {
        if (canCast(rightClick[i])) {
            castSupport(rightClick[i]);
            return;
        }
    }
}

function applyDuration() {
    var targets = document.querySelectorAll('img[onmouseover^="battle.set_infopane_effect"]'),
        i = targets.length;
    while (i--) {
        var duration = targets[i].getAttribute('onmouseover').match(/, ([-\d]+)\)/);
        if (!duration || duration < 0) duration = '-';
        else duration = duration[1];
        var div = targets[i].parentNode.insertBefore(document.createElement('div'), targets[i].nextSibling);
        div.appendChild(document.createElement('div')).innerHTML = duration;
        div.className = 'duration';
    }}

function showGem() {
    var gem = document.getElementById('ikey_p');
    var gem_icon = document.getElementById('gem_icon');
    if (gem && !gem_icon) {
        var icon;
        switch (document.querySelector('#ikey_p > div > div').innerHTML.match(/([^\s]+) Gem/)[1]) {
            case 'Mystic':
                icon = 'channeling.png';
                break;
            case 'Health':
                icon = 'healthpot.png';
                break;
            case 'Mana':
                icon = 'manapot.png';
                break;
            case 'Spirit':
                icon = 'spiritpot.png';
                break;
        }

        gem_icon = document.getElementById('pane_effects').appendChild(document.createElement('img'));
        gem_icon.src = '/y/e/' + icon;
        gem_icon.style.cssText = 'float: right;margin-right: 565px;';

        var useGem = function() {
            window.battle.lock_action(gem, 1, 'items', 'ikey_p');
            window.battle.set_friendly_skill('999');
            window.battle.touch_and_go();
            gem.remove();
            gem_icon.remove();
        };

        gem_icon.onclick = useGem;
        gem_icon.onmouseover = useGem;
        gem_icon.id = "gem_icon";
    } else if (!gem && gem_icon) {
        gem_icon.remove();
    }
}

function reloadedEvent() {
    if(iconGem)
        showGem();
    if(showDuration)
        applyDuration();
    if(document.querySelector('#vbh img').width < 496*minHP) {
        document.getElementById('vbh').style.backgroundColor = 'red';
        return;
    }
    if(document.querySelector('#vbm img').width < 207*minMP) {
        document.getElementById('vbm').style.backgroundColor = 'red';
        return;
    }
    if(document.querySelector('#vbs img').width < 207*minSP) {
        document.getElementById('vbs').style.bbackgroundColor = 'red';
        return;
    }

    if(defaultAction){
        for (var i = 0; i < defaultAction.length; i++) {
            if (canCast(defaultAction[i])) {
                setSpellAttack(defaultAction[i]);
                break;
            }
        }
    }

    mpane = document.getElementById('pane_monster');
    var m = mpane.getElementsByClassName("btm1");

    for (var j = 0; j < m.length; j++) {
        if (m[j].hasAttribute('onclick')) {
            m[j].setAttribute('onmouseover', m[j].getAttribute('onclick'));
        }
    }
}
function roundEndEvent() {
    var btcp = document.getElementById('btcp');
    if (btcp){
        if(document.querySelector('img[src$="finishbattle.png"]')){
            var endSheet = document.createElement('style');
            endSheet.innerHTML = '#btcp {display: block !important}';
            document.head.appendChild(endSheet);
        }
        else{
            btcp.click();
        }
    }
}

var log = document.querySelector('#textlog > tbody');
var paneCompletion = document.getElementById('pane_completion');

function init() {
    if(!log) {
        return;
    }
    var obs = new MutationObserver(reloadedEvent);
    obs.observe(log, {childList: true});

    var obs2 = new MutationObserver(roundEndEvent);
    obs2.observe(paneCompletion, {childList: true});

    var sheet = document.createElement('style');
    sheet.innerHTML = '#btcp {display: none}.duration{width:30px;display:inline-block;text-align:center;position:relative;margin-left:-30px;top:-4px}.duration>div{background:white;border:1px solid black;padding:0 2px;display:inline-block;min-width:8px;font-weight:bold;height:13px}';
    if(hideLog){
        sheet.innerHTML += '#pane_log {display: none}';
    }
    if(leftHp){
        sheet.innerHTML += '#vbh>div{text-align:left !important}';
    }
    document.head.appendChild(sheet);

    window.addEventListener('contextmenu', function (e) {
        e.preventDefault();
        runRightClickSpell();
    }, false);

    reloadedEvent();
}
init();



I've used "latest" Firefox and Greasemonkey.

And I've used this script since yesterday. (Thank u Sapo !!)

But!!! I can't see the 'gemstone' icon(-above Focus button) and if I don't use gemstone, my script always 'stop' (IMG:[invalid] style_emoticons/default/wink.gif)

And I can't continue battle until using "invisible"gemstone....

Somebody Help~ (IMG:[invalid] style_emoticons/default/wink.gif)

This post has been edited by Scremaz: Jun 26 2017, 11:23
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 26 2017, 11:02
Post #4179
lololo16




********
Group: Gold Star Club
Posts: 2,836
Joined: 5-March 12
Level 500 (Ponyslayer)


QUOTE(simrock87 @ Jun 26 2017, 05:31) *



any chance we can see your Proficiency Gain Sidebar script again?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 26 2017, 11:14
Post #4180
simrock87



<('.'<) (>'.')> (^'.')>
*****
Group: Members
Posts: 647
Joined: 12-June 11
Level 399 (Godslayer)


QUOTE(lololo16 @ Jun 26 2017, 09:02) *

any chance we can see your Proficiency Gain Sidebar script again?

Huh, someone actually used it (IMG:[invalid] style_emoticons/default/happy.gif)
I'll check, but with the battle stuff being a bit SNAFU for me right now, this might take a while until i can extract the new data without too much of a hassle.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


291 Pages V « < 207 208 209 210 211 > » 
Reply to this topicStart new topic
4 User(s) are reading this topic (4 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 24th January 2025 - 05:49