Welcome Guest ( Log In | Register )

291 Pages V « < 202 203 204 205 206 > »   
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 24 2017, 22:33
Post #4061
Juggernaut Santa



Living in HV 0.83 until Tenboro adds the Tower to Persistent
***********
Group: Gold Star Club
Posts: 11,129
Joined: 26-April 12
Level 500 (Ponyslayer)


Sapo, your last mousemelee with gems does nothing, it stays still (IMG:[invalid] style_emoticons/default/duck.gif)

The previous one works perfectly though...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 24 2017, 22:41
Post #4062
boulay



Noob
********
Group: Gold Star Club
Posts: 2,675
Joined: 27-June 11
Level 500 (Godslayer)


QUOTE(abc12345678901 @ Jun 24 2017, 22:31) *

Wait so how do i use this one? I dont see any changes when I added it to Tampermonkey.

well, these don't work with tampermonkey (Chrome, etc...), I'll make chrome extensions later. The NoStylish works with greasemonkey just fine though, and it should with tampermonkey too if you're using firefox.

This post has been edited by boulay: Jun 24 2017, 22:44
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 24 2017, 22:59
Post #4063
pooaa



Regular Poster
*****
Group: Gold Star Club
Posts: 645
Joined: 20-July 14
Level 500 (Ponyslayer)


QUOTE(End Of All Hope @ Jun 25 2017, 04:33) *

Sapo, your last mousemelee with gems does nothing, it stays still (IMG:[invalid] style_emoticons/default/duck.gif)

The previous one works perfectly though...

it works fine with me through firefox
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 24 2017, 23:03
Post #4064
Sapo84



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


QUOTE(pooaa @ Jun 24 2017, 20:31) *

so could you tell me what these two means?
var log = document.querySelector('#textlog > tbody');
var paneCompletion = document.getElementById('pane_completion');

First one gets the DOM Element where the battle logs are inserted.
Second one gets the DOM Element where the popup are inserted.
They are not settings though (there is a reasons there are three blanks lines between the settings and those two lines) (IMG:[invalid] style_emoticons/default/heh.gif)

QUOTE(End Of All Hope @ Jun 24 2017, 22:33) *

Sapo, your last mousemelee with gems does nothing, it stays still (IMG:[invalid] style_emoticons/default/duck.gif)

Tested in Chrome and it worked (apart from the need of moving the mouse).
Maybe it's incompatible with other scripts?
In you can find errors in the console I'll take a look, otherwise just keep the old version (IMG:[invalid] style_emoticons/default/heh.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 24 2017, 23:08
Post #4065
Juggernaut Santa



Living in HV 0.83 until Tenboro adds the Tower to Persistent
***********
Group: Gold Star Club
Posts: 11,129
Joined: 26-April 12
Level 500 (Ponyslayer)


QUOTE(Sapo84 @ Jun 24 2017, 23:03) *

In you can find errors in the console I'll take a look, otherwise just keep the old version (IMG:[invalid] style_emoticons/default/heh.gif)

Line 75 says that function declaration can't be used in blocks.

This post has been edited by End Of All Hope: Jun 24 2017, 23:09
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 24 2017, 23:21
Post #4066
Sapo84



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


QUOTE(End Of All Hope @ Jun 24 2017, 23:08) *

Line 75 says that function declaration can't be used in blocks.

Yeah, I know, but it should work regardless

CODE

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

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

 
post Jun 24 2017, 23:25
Post #4067
pooaa



Regular Poster
*****
Group: Gold Star Club
Posts: 645
Joined: 20-July 14
Level 500 (Ponyslayer)


QUOTE(Sapo84 @ Jun 25 2017, 05:03) *

First one gets the DOM Element where the battle logs are inserted.
Second one gets the DOM Element where the popup are inserted.
They are not settings though (there is a reasons there are three blanks lines between the settings and those two lines) (IMG:[invalid] style_emoticons/default/heh.gif)
Tested in Chrome and it worked (apart from the need of moving the mouse).
Maybe it's incompatible with other scripts?
In you can find errors in the console I'll take a look, otherwise just keep the old version (IMG:[invalid] style_emoticons/default/heh.gif)

thanks, just curious cause it looks like settings (IMG:[invalid] style_emoticons/default/tongue.gif)
and is it possible that i can change the alert background color myself?
or i need to know how to writing code first?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 25 2017, 00:45
Post #4068
Fap.Fap



Active Poster
*******
Group: Gold Star Club
Posts: 1,551
Joined: 19-October 11
Level 500 (Ponyslayer)


QUOTE(End Of All Hope @ Jun 24 2017, 22:33) *

Sapo, your last mousemelee with gems does nothing, it stays still (IMG:[invalid] style_emoticons/default/duck.gif)

The previous one works perfectly though...


which one is it ? I can only find the one where you have to keep moving your mouse to attack
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 25 2017, 00:56
Post #4069
Juggernaut Santa



Living in HV 0.83 until Tenboro adds the Tower to Persistent
***********
Group: Gold Star Club
Posts: 11,129
Joined: 26-April 12
Level 500 (Ponyslayer)


QUOTE(Fap.Fap @ Jun 25 2017, 00:45) *

which one is it ? I can only find the one where you have to keep moving your mouse to attack

All of them do.

The one I'm talking about is this: https://forums.e-hentai.org/index.php?s=&am...t&p=4884137

I setted it with 0 as default action like the other, modified the "none" somewhere to show the log like the other, changed the hp/mp/sp thresholds like the other.
In battle does nothing. Hovering, moving, staying still, it doesn't attack for me (IMG:[invalid] style_emoticons/default/duck.gif)

This other one works perfectly, except for the fact you have to keep moving while hovering to attack since it doesn't still have the chrome fix: https://forums.e-hentai.org/index.php?s=&am...t&p=4884008

Both tried on Chrome, of course... for some reason Firefox since 0.85 is slow as hell (IMG:[invalid] style_emoticons/default/heh.gif)


This post has been edited by End Of All Hope: Jun 25 2017, 00:57
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 25 2017, 01:12
Post #4070
Fap.Fap



Active Poster
*******
Group: Gold Star Club
Posts: 1,551
Joined: 19-October 11
Level 500 (Ponyslayer)


QUOTE(End Of All Hope @ Jun 25 2017, 00:56) *

All of them do.

The one I'm talking about is this: https://forums.e-hentai.org/index.php?s=&am...t&p=4884137

I setted it with 0 as default action like the other, modified the "none" somewhere to show the log like the other, changed the hp/mp/sp thresholds like the other.
In battle does nothing. Hovering, moving, staying still, it doesn't attack for me (IMG:[invalid] style_emoticons/default/duck.gif)

This other one works perfectly, except for the fact you have to keep moving while hovering to attack since it doesn't still have the chrome fix: https://forums.e-hentai.org/index.php?s=&am...t&p=4884008

Both tried on Chrome, of course... for some reason Firefox since 0.85 is slow as hell (IMG:[invalid] style_emoticons/default/heh.gif)



I see, I didnt change the default to 0 to make it work for meele, but yes you still have keep moving the mouse which gives it your full attention against SG's
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 25 2017, 01:16
Post #4071
AnonDarkMage7



Regular Poster
******
Group: Gold Star Club
Posts: 925
Joined: 1-June 12
Level 500 (Ponyslayer)


CODE

// ==UserScript==
// @name        MouseMagelee 0.85
// @namespace   hentaiverse.org
// @match       *://*.hentaiverse.org/*
// @run-at      document-end
// @grant       none
// ==/UserScript==

// ***THANKS***
// sickentide (HV No Popup)
// sigo8 (Reloader Shim)

// SETTINGS
var hideLog = true;
var defaultAction = [153,152,151]; //var defaultAction =0 for melee
var minHP = 0.35;
var minMP = 0.2;
var minSP = 0.3;
var rightClick = [311,313];
var log = document.querySelector('#textlog > tbody');
var paneCompletion = document.getElementById('pane_completion');

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 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;';

        function useGem(){
            window.battle.lock_action(gem, 1, 'items', 'ikey_p');
            window.battle.set_friendly_skill('999');
            window.battle.touch_and_go();
            gem.remove(); //probably useless
            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() {
    showGem();
    if(document.querySelector('#vbh img').width < 496*minHP) return;
    if(document.querySelector('#vbm img').width < 207*minMP) return;
    if(document.querySelector('#vbs img').width < 207*minSP) 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();
        }
    }
}

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}';
    if(hideLog){
        sheet.innerHTML += '#pane_log {display: none}';
    }
    document.head.appendChild(sheet);

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

    reloadedEvent();
}
init();


is there anyway to pause this so that I can cast imperil? If i select imperil I can hover and it'll use imperil once before going through the spells i set in the rotation and the number keys don't work after I've selected imperil.

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

 
post Jun 25 2017, 01:21
Post #4072
boulay



Noob
********
Group: Gold Star Club
Posts: 2,675
Joined: 27-June 11
Level 500 (Godslayer)


Numbered OC chips, v0.1

A temporary thing until somebody find a better alternative ^^

Attached File  Numbered_OC_chips.css ( 1.96k ) Number of downloads: 165
[attachmentid=104690]

(IMG:[image.noelshack.com] http://image.noelshack.com/fichiers/2017/25/7/1498346420-overcharge-chips.png)

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

 
post Jun 25 2017, 01:26
Post #4073
Scremaz



A certain pervert. OT expert. Just dancing around in the game.
***********
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07
Level 500 (Ponyslayer)


QUOTE(boulay @ Jun 25 2017, 01:21) *

Numbered OC chips, v0.1

A temporary thing until somebody find a better alternative ^^

Attached File  Numbered_OC_chips.css ( 1.96k ) Number of downloads: 165
[attachmentid=104690]

(IMG:[image.noelshack.com] http://image.noelshack.com/fichiers/2017/25/7/1498346420-overcharge-chips.png)

so, even the great CSS master couldn't reinstate the old sidebar or add a few numbers? we're doomed, i guess...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 25 2017, 01:32
Post #4074
boulay



Noob
********
Group: Gold Star Club
Posts: 2,675
Joined: 27-June 11
Level 500 (Godslayer)


QUOTE(Scremaz @ Jun 25 2017, 01:26) *

so, even the great CSS master couldn't reinstate the old sidebar or add a few numbers? we're doomed, i guess...

adding the exact numbers would be impossible with just css, but just remaking the old bars is highly possible. Just don't want to do it right now (IMG:[invalid] style_emoticons/default/tongue.gif)

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

 
post Jun 25 2017, 01:33
Post #4075
Fap.Fap



Active Poster
*******
Group: Gold Star Club
Posts: 1,551
Joined: 19-October 11
Level 500 (Ponyslayer)


QUOTE(boulay @ Jun 25 2017, 01:32) *

adding the exact numbers would be impossible with just css, but just remaking the old bars is highly possible. Just don't want to do it right now (IMG:[invalid] style_emoticons/default/tongue.gif)


Im trying the stylish one, but doesnt seem to work with opera again^^
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 25 2017, 01:36
Post #4076
boulay



Noob
********
Group: Gold Star Club
Posts: 2,675
Joined: 27-June 11
Level 500 (Godslayer)


QUOTE(Fap.Fap @ Jun 25 2017, 01:33) *

Im trying the stylish one, but doesnt seem to work with opera again^^

raw css never worked that fine with Chrome/opera, that's why I made chrome extensions. These will come later, just doing some emergency fixes here and there right now...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 25 2017, 01:36
Post #4077
Juggernaut Santa



Living in HV 0.83 until Tenboro adds the Tower to Persistent
***********
Group: Gold Star Club
Posts: 11,129
Joined: 26-April 12
Level 500 (Ponyslayer)


QUOTE(boulay @ Jun 25 2017, 01:32) *

adding the exact numbers would be impossible with just css

A script that checks your hp when you visit the character page and then calculates, in battle, current pixel of the hp bar/max pixel of the hp bar * last checked hp, rounded down, giving you your approximate health?
Not sure if possible, but probably yes.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 25 2017, 01:38
Post #4078
Tamao Serizawa



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


QUOTE(DJNoni @ Jun 24 2017, 22:59) *

Edit: quick fix: Change in AltlessCasting:

in settings:
row = '5'
pad = 'qb'

and then you have the same way of imperil play of 2 5 8 back!


Sorry. How to do this?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 25 2017, 01:40
Post #4079
Scremaz



A certain pervert. OT expert. Just dancing around in the game.
***********
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07
Level 500 (Ponyslayer)


QUOTE(End Of All Hope @ Jun 25 2017, 01:36) *

A script that checks your hp when you visit the character page and then calculates, in battle, current pixel of the hp bar/max pixel of the hp bar * last checked hp, rounded down, giving you your approximate health?
Not sure if possible, but probably yes.

my wild guess, bar lenght is calculated from a counter, and then aproximated to pixels. just spotting that counter and writing it would do the trick
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 25 2017, 01:52
Post #4080
Juggernaut Santa



Living in HV 0.83 until Tenboro adds the Tower to Persistent
***********
Group: Gold Star Club
Posts: 11,129
Joined: 26-April 12
Level 500 (Ponyslayer)


QUOTE(Scremaz @ Jun 25 2017, 01:40) *

my wild guess, bar lenght is calculated from a counter, and then aproximated to pixels. just spotting that counter and writing it would do the trick

Also that. But let's assume that the part that converts HP in pixels is server-side...
Worst case scenario (IMG:[invalid] style_emoticons/default/ph34r.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


291 Pages V « < 202 203 204 205 206 > » 
Reply to this topicStart new topic
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 23rd January 2025 - 19:26