Loading. Please Wait...
|
|
|
HV Script Thread, Discuss your creations. Includes guidelines and infos for script creation (2020-02-28 upd) |
|
Jun 24 2017, 22:33
|
Juggernaut Santa
Group: Gold Star Club
Posts: 11,129
Joined: 26-April 12
|
Sapo, your last mousemelee with gems does nothing, it stays still (IMG:[ invalid] style_emoticons/default/duck.gif) The previous one works perfectly though...
|
|
|
Jun 24 2017, 22:41
|
boulay
Group: Gold Star Club
Posts: 2,675
Joined: 27-June 11
|
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
|
|
|
Jun 24 2017, 22:59
|
pooaa
Group: Gold Star Club
Posts: 645
Joined: 20-July 14
|
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
|
|
|
|
|
|
Jun 24 2017, 23:03
|
Sapo84
Group: Gold Star Club
Posts: 3,332
Joined: 14-June 09
|
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)
|
|
|
|
|
|
Jun 24 2017, 23:08
|
Juggernaut Santa
Group: Gold Star Club
Posts: 11,129
Joined: 26-April 12
|
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
|
|
|
Jun 24 2017, 23:21
|
Sapo84
Group: Gold Star Club
Posts: 3,332
Joined: 14-June 09
|
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
|
|
|
|
|
|
Jun 24 2017, 23:25
|
pooaa
Group: Gold Star Club
Posts: 645
Joined: 20-July 14
|
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?
|
|
|
|
|
|
Jun 25 2017, 00:45
|
Fap.Fap
Group: Gold Star Club
Posts: 1,551
Joined: 19-October 11
|
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
|
|
|
|
|
|
Jun 25 2017, 00:56
|
Juggernaut Santa
Group: Gold Star Club
Posts: 11,129
Joined: 26-April 12
|
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=4884137I 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=4884008Both 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
|
|
|
|
|
|
Jun 25 2017, 01:12
|
Fap.Fap
Group: Gold Star Club
Posts: 1,551
Joined: 19-October 11
|
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=4884137I 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=4884008Both 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
|
|
|
|
|
|
Jun 25 2017, 01:16
|
AnonDarkMage7
Group: Gold Star Club
Posts: 925
Joined: 1-June 12
|
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
|
|
|
|
|
|
|
|
|
Jun 25 2017, 01:32
|
boulay
Group: Gold Star Club
Posts: 2,675
Joined: 27-June 11
|
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
|
|
|
Jun 25 2017, 01:33
|
Fap.Fap
Group: Gold Star Club
Posts: 1,551
Joined: 19-October 11
|
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^^
|
|
|
Jun 25 2017, 01:36
|
boulay
Group: Gold Star Club
Posts: 2,675
Joined: 27-June 11
|
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...
|
|
|
Jun 25 2017, 01:36
|
Juggernaut Santa
Group: Gold Star Club
Posts: 11,129
Joined: 26-April 12
|
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.
|
|
|
Jun 25 2017, 01:38
|
Tamao Serizawa
Group: Gold Star Club
Posts: 119
Joined: 15-February 12
|
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?
|
|
|
Jun 25 2017, 01:40
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07
|
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
|
|
|
|
|
|
Jun 25 2017, 01:52
|
Juggernaut Santa
Group: Gold Star Club
Posts: 11,129
Joined: 26-April 12
|
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)
|
|
|
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members:
|
|
|
|
|
|
|