|
|
|
HV Script Thread, Discuss your creations. Includes guidelines and infos for script creation (2020-02-28 upd) |
|
Dec 16 2013, 19:00
|
something
Group: Members
Posts: 1,106
Joined: 14-January 07
|
QUOTE(something @ Dec 15 2013, 02:13) is there any chance you can update this for 0.77? it's probably the one feature i miss about HVSTAT since i tend to sleep through arenas and end up dead without it
can't edit this post for some reason anyway, i figured out what went wrong: function go() { var onkeydownSave = document.onkeydown; document.onkeydown = null; var tl = document.getElementById("togpane_log"); >erase this space in the javascript. it should work fine after that //alert(tl && document.getElementsByClassName("cwb2")[0].width < 60) if(tl && document.getElementsByClassName("cwb2")[0].width < 60) alert("Health Low!"); it still overruns a bit though though. haven't been able to figure that one out since i just learned how to edit javascripts a few hours ago
|
|
|
|
|
|
Dec 16 2013, 20:10
|
kuro009
Group: Members
Posts: 747
Joined: 8-May 10
|
Pardon me for the intrusion: HV Random Encounter Notification 1.3.3 for Firefox [updated for 0.78]:
hvren.user.zip ( 3.2k )
Number of downloads: 300- Now the gap is 30 minutes between two Random Encounters, instead of 1 hour. P.S. - I have NO credit in creating this script. I just adjusted it for the 0.78 patch. This post has been edited by kuro009: Dec 17 2013, 07:00
|
|
|
Dec 16 2013, 20:50
|
ctxl
Group: Members
Posts: 425
Joined: 20-May 12
|
QUOTE(fenixray @ Dec 16 2013, 06:10) Item menu on salvage, enchant, item world, upgrade are now broken. Maybe it's because the new feature of equipment renaming?
Yup. It also didn't work with Force Shields when they were introduced. I'll look into it and a few other things later tonight.
|
|
|
|
|
|
Dec 16 2013, 21:31
|
yobi00
Group: Members
Posts: 700
Joined: 13-August 13
|
QUOTE(kuro009 @ Dec 17 2013, 03:10) Pardon me for the intrusion: HV Random Encounter Notification 1.3.3 [updated for 0.78]:
hvren.user.zip ( 3.2k )
Number of downloads: 300- Now the gap is 30 minutes between two Random Encounters, instead of 1 hour. P.S. - I have NO credit in creating this script. I just adjusted it for the 0.78 patch. Thanks for your effort! I don't think this will handle countdown to the "new dawn" event properly though. The following changes fixed it for me. CODE --- orig.hvren.user.js 2013-12-16 23:32:36.000000000 +0900 +++ hvren.user.js 2013-12-17 04:07:38.300003560 +0900 @@ -35,9 +35,9 @@ } function timerReset() { updateTimeToDawn(); - if (timeToDawn.hour === 23) { + if (timeToDawn.hour === 23 && timeToDawn.minute > 29) { localStorage.lastRandomEncounter = Date.now() - ((timeToDawn.minute * 60000) + (timeToDawn.second * 1000)); - minute = 29 - timeToDawn.minute; + minute = 59 - timeToDawn.minute; second = 60 - timeToDawn.second; } else { localStorage.lastRandomEncounter = Date.now(); This post has been edited by yobi00: Dec 16 2013, 21:36
|
|
|
|
|
|
Dec 17 2013, 03:05
|
watisthis
Group: Members
Posts: 1,310
Joined: 20-April 10
|
QUOTE(kuro009 @ Dec 16 2013, 13:10) Pardon me for the intrusion: HV Random Encounter Notification 1.3.3 [updated for 0.78]:
hvren.user.zip ( 3.2k )
Number of downloads: 300- Now the gap is 30 minutes between two Random Encounters, instead of 1 hour. P.S. - I have NO credit in creating this script. I just adjusted it for the 0.78 patch. Don't think this is working as intended
|
|
|
|
|
|
Dec 17 2013, 06:05
|
kuro009
Group: Members
Posts: 747
Joined: 8-May 10
|
QUOTE(yobi00 @ Dec 16 2013, 21:31) Thanks for your effort! I don't think this will handle countdown to the "new dawn" event properly though. The following changes fixed it for me. CODE --- orig.hvren.user.js 2013-12-16 23:32:36.000000000 +0900 +++ hvren.user.js 2013-12-17 04:07:38.300003560 +0900 @@ -35,9 +35,9 @@ } function timerReset() { updateTimeToDawn(); - if (timeToDawn.hour === 23) { + if (timeToDawn.hour === 23 && timeToDawn.minute > 29) { localStorage.lastRandomEncounter = Date.now() - ((timeToDawn.minute * 60000) + (timeToDawn.second * 1000)); - minute = 29 - timeToDawn.minute; + minute = 59 - timeToDawn.minute; second = 60 - timeToDawn.second; } else { localStorage.lastRandomEncounter = Date.now(); Nah, mine is working for me for New Dawn. (IMG:[ invalid] style_emoticons/default/smile.gif) QUOTE(watisthis @ Dec 17 2013, 03:05) Don't think this is working as intended That's strange. (IMG:[ invalid] style_emoticons/default/huh.gif) It's working fine for me. Did you change any part of the script?
|
|
|
|
|
|
Dec 17 2013, 06:48
|
Amaduyu Mitsumi
Group: Gold Star Club
Posts: 1,609
Joined: 2-October 11
|
QUOTE(FiniteA @ Nov 17 2013, 11:47) I wrote a script that renders a one-click-sell-all buttons in EQ shop. After confirm, it will sell all items of all types. Save time to sell each type one by one. [ dpaste.com] http://dpaste.com/1468339/
hvOneClick.user.js.zip ( 1.27k )
Number of downloads: 87Seems that the script has been broken. After 0.78 it sells equips under the One-Handed tab only, other tabs are untouched. Still says this though. CODE One-Handed sold Two-Handed sold Staffs sold Shield sold Cloth sold Light sold Heavy sold
|
|
|
|
|
|
Dec 17 2013, 06:59
|
kuro009
Group: Members
Posts: 747
Joined: 8-May 10
|
QUOTE(kuro009 @ Dec 16 2013, 20:10) Pardon me for the intrusion: HV Random Encounter Notification 1.3.3 [updated for 0.78]:
hvren.user.zip ( 3.2k )
Number of downloads: 300- Now the gap is 30 minutes between two Random Encounters, instead of 1 hour. P.S. - I have NO credit in creating this script. I just adjusted it for the 0.78 patch. OOps, I forgot to mention that it's only for Firefox. This post has been edited by kuro009: Dec 17 2013, 07:00
|
|
|
|
|
|
Dec 17 2013, 14:27
|
ctxl
Group: Members
Posts: 425
Joined: 20-May 12
|
HV - Item Menu for 0.78
itemmenu_mod078.user.js.zip ( 2.23k )
Number of downloads: 296- Rewrote type matching to use equipment item data, rather than equipment names - Now hides Salvage, Upgrade, Enchant, and Item World on MoogleMail pages - Fixed the ability to hide the Salvage option on locked equips As always, middle-click any equipment item to use.
|
|
|
Dec 17 2013, 16:35
|
Kiorika
Group: Members
Posts: 4,784
Joined: 19-September 12
|
I did not know where it is possible to write and decided to write here. (IMG:[ invalid] style_emoticons/default/unsure.gif) Who knows, or can create a widget for Windows that will notify and receive a "new day" (exp, credits)? Do not know how the others but i have a laptop is always on, even when i do not use it. So it would be very convenient if there was a widget. (IMG:[ invalid] style_emoticons/default/rolleyes.gif)
|
|
|
Dec 17 2013, 16:42
|
varst
Group: Gold Star Club
Posts: 11,561
Joined: 30-March 10
|
QUOTE(Kiorika @ Dec 17 2013, 22:35) Who knows, or can create a widget for Windows that will notify and receive a "new day" (exp, credits)?
It's always at 0:00 UTC.
|
|
|
Dec 17 2013, 16:51
|
Kiorika
Group: Members
Posts: 4,784
Joined: 19-September 12
|
QUOTE(varst @ Dec 17 2013, 23:42) It's always at 0:00 UTC.
know it. i meant that without visiting the site. That is, the widget executes the script if i went to the site. This post has been edited by Kiorika: Dec 17 2013, 16:54
|
|
|
|
|
|
Dec 18 2013, 05:19
|
lunadance
Group: Members
Posts: 116
Joined: 2-January 11
|
Hi, It seems all the second quickbar scripts are not being maintained. I modified a bit of the original multi-quickbar script (from [ tiap.github.io] http://tiap.github.io/), which now works for 0cd spells. I only tested it in chrome, you can just save the script into .js and drag into the extension page then it should appear when you enter a battle. Currently it's not convenient to change the spells on the second quickbar (well you have to modify the js script and find the spellid from the spellbook)... anyway, it's a bit useful for me as a lazy guy who just refuse to open the spellbook..... Honor to the original authors ! EDIT: Uh, if posting the script like this violated some kind of forum rules, please tell me, I'll just remove it. EDIT2: Added spell cooldown detection(done by checking the spellbook), 2 or more quickbars supported (IMG:[ i.imgur.com] http://i.imgur.com/OTKXpLWh.jpg) CODE // ==UserScript== // @name HentaiVerse - Extra Quickbars // @version 0.0 // @namespace HVEQ // @match http://hentaiverse.org/* // @run-at document-end // ==/UserScript==
if (!document.getElementById('togpane_log')) return;
// ---------- SETTINGS ---------- var arr_skillbar = [ ['Regen','empty','Spark of Life', 'Spirit Shield','Absorb','empty', 'Drain','Confuse','Blind', 'empty','Corruption','empty','Freeze','Fiery Blast','Shockblast','Gale'], ['empty','empty','Heartseeker','Arcane Focus', 'empty', 'empty', 'Weaken','Slow','empty', 'empty','empty','empty','Sleep','Silence','Cure','Imperil'] ];
// ---------- END SETTINGS ----------
const imageBase = 'http://ehgt.org/v/a/';
var spellMap = { 'empty' : [0, '0', '0'], //place holder 'Regen': [312,'1030','friendly'], 'Cure' : [311,'0530','friendly'],
'Haste': [412,'0533','friendly'], 'Absorb': [421, '1033', 'friendly'], 'Arcane Focus': [432, 'm4020', 'friendly'], 'Heartseeker':[431, 'm4021', 'friendly'], 'Spirit Shield': [423, 'm4040', 'friendly'], 'Protection': [411,'0532','friendly'], 'Shadow Veil': [413,'0633','friendly'], 'Spark of Life': [422,'1133','friendly'], 'Silence' : [232, '0833','hostile'], 'Imperil' : [213, 'm_imperil','hostile'], 'Sleep': [222,'0433','hostile'], 'Confuse': [223,'0733','hostile'], 'Blind': [231,'0933','hostile'], 'Drain': [211,'0133','hostile'], 'Weaken': [212,'0333','hostile'], 'Slow': [221,'0233','hostile'],
'Corruption': [161, '1230', 'hostile'], 'Smite' : [151, '1130', 'hostile'], 'Fiery Blast' : [111, '0130','hostile'], 'Freeze': [121,'0730','hostile'], 'Shockblast': [131,'0330','hostile'], 'Gale': [141,'0430','hostile'], 'Inferno': [112,'0132','hostile'], 'Blizzard': [122,'0732','hostile'], 'Chain Lightning': [132,'0832','hostile'], 'Downburst': [142,'0930','hostile'], };
// ---------- generate arr_skillbar ----------
var Quickbar = document.getElementById('quickbar'), hiddenQuickbars = [ ]; var end_QuickBar = Quickbar.nextSibling; arr_skillbar.forEach(function(skillbar) { var div_skillbar = document.createElement('div'), spellAdded = 0; Quickbar.parentNode.insertBefore(div_skillbar, end_QuickBar);
div_skillbar.className = 'quickbar_extra'; skillbar.forEach(function(action) { if (!spellMap.hasOwnProperty(action)) return; var item = div_skillbar.appendChild(document.createElement('div')); if (action == 'empty') { item.className = 'btqd'; } else { item.className = 'btqs'; var div_if_spell_on_cd = document.getElementById( spellMap[action][0].toString() ).getAttribute('style'); if(div_if_spell_on_cd == null || div_if_spell_on_cd == 'opacity:0.5') item.setAttribute('style', div_if_spell_on_cd); if(spellMap[action][2] == 'friendly') { item.setAttribute('onclick','battle.lock_action(this, 1, \'magic\',' + spellMap[action][0] + ' ); battle.set_' + spellMap[action][2] + '_subattack(' + spellMap[action][0] + '); battle.touch_and_go()');
} else { item.setAttribute('onclick','battle.lock_action(this, 1, \'magic\',' + spellMap[action][0] + ' ); battle.set_' + spellMap[action][2] + '_subattack(' + spellMap[action][0] + ')'); }
var itemicon = item.appendChild(document.createElement('img')); itemicon.setAttribute('src', imageBase + spellMap[action][1] + '.png'); itemicon.className = 'btqi'; } var itemiconbg = item.appendChild(document.createElement('img')); itemiconbg.setAttribute('src','http://ehgt.org/v/ab/b.png'); itemiconbg.className = 'btqb'; spellAdded++; }); });
// ---------- global style ---------- var style = document.createElement('style'); style.innerHTML = 'div.quickbar_extra { width:641px;height:34px;clear:both;padding-left:13px }'+'div.btqd {opacity:0}'; document.head.appendChild(style);
This post has been edited by lunadance: Dec 18 2013, 09:48
|
|
|
|
|
|
Dec 18 2013, 13:56
|
atest1
Group: Gold Star Club
Posts: 2,689
Joined: 5-October 12
|
QUOTE(ctxl @ Dec 17 2013, 20:27) HV - Item Menu for 0.78
itemmenu_mod078.user.js.zip ( 2.23k )
Number of downloads: 296- Rewrote type matching to use equipment item data, rather than equipment names - Now hides Salvage, Upgrade, Enchant, and Item World on MoogleMail pages - Fixed the ability to hide the Salvage option on locked equips As always, middle-click any equipment item to use. Thanks a lot (IMG:[ invalid] style_emoticons/default/laugh.gif)
|
|
|
|
|
|
Dec 19 2013, 11:20
|
Pillowgirl
Group: Gold Star Club
Posts: 5,389
Joined: 2-December 12
|
Could someone competent update this script for the new 30 min change. I use it on Iron btw. Widescreen-timer-hvren.user.js CODE // ==UserScript== // @name HV Random Encounter Notification // @namespace sigo8@e-hentai.org // @author sigo8, LangTuTaiHoa, GaryMcNabb // @version 1.3.2 // @match http://hentaiverse.org/* // @exclude http://hentaiverse.org/pages/showequip* // @run-at document-end // ==/UserScript==
var battleLog = document.getElementById("togpane_log"), rawDate, timeToDawn = {}, logRows, timerDiv, timerLink, resetLink, time, timerID, minute, second;
function updateTimeToDawn() { rawDate = new Date(); timeToDawn = { hour: rawDate.getUTCHours(), minute: rawDate.getUTCMinutes(), second: rawDate.getUTCSeconds() } } function timerUpdate() { if (--second < 0) { second = 59; if (--minute < 0) { timerLink.href = "http://e-hentai.org/"; timerLink.onclick = timerReset; timerLink.style.setProperty("color", "red"); timerLink.innerHTML = "Ready"; clearInterval(timerID); return; } } timerLink.innerHTML = minute + ":" + (second < 10 ? "0" : "") + second; } function timerReset() { updateTimeToDawn(); if (timeToDawn.hour === 23) { localStorage.lastRandomEncounter = Date.now() - ((timeToDawn.minute * 60000) + (timeToDawn.second * 1000)); minute = 59 - timeToDawn.minute; second = 60 - timeToDawn.second; } else { localStorage.lastRandomEncounter = Date.now(); minute = 60; second = 0; } timerLink.innerHTML = minute + ":" + (second < 10 ? "0" : "") + second; timerLink.style.color = "#5C0C11"; if (timerID) clearInterval(timerID); timerID = setInterval(timerUpdate, 1000); } if (battleLog) { logRows = battleLog.firstElementChild.firstElementChild.children; if (logRows[0].firstElementChild.textContent === "0" && logRows[logRows.length-2].lastElementChild.textContent[13] === "r") { updateTimeToDawn(); localStorage.lastRandomEncounter = (timeToDawn.hour !== 23 ? Date.now() : Date.now() - ((timeToDawn.minute * 60000) + (timeToDawn.second * 1000)) ); } } else { timerDiv = document.createElement("div"); timerLink = document.createElement("a"); resetLink = document.createElement("a"); if (!localStorage.lastRandomEncounter) timerReset(); time = localStorage.lastRandomEncounter - (Date.now() - 3600000); minute = second = 0;
timerDiv.style.cssText = "display:block; position: absolute; top:5px; left:980px;"; timerLink.style.cssText = "text-decoration:none; font-size:17px; font-weight:bold; color:#5C0C11;"; resetLink.style.cssText = "text-decoration:none; color:red; top:-3px; position:relative; left:3px;"; resetLink.innerHTML = "RESET"; resetLink.onclick = timerReset; resetLink.href = "#";
timerDiv.appendChild(timerLink); timerDiv.appendChild(resetLink); if (time < 0) { timerLink.href = "http://e-hentai.org/"; timerLink.onclick = timerReset; timerLink.style.color="red"; timerLink.innerHTML="Ready"; } else { time = Math.round(time / 1000); minute = Math.floor(time / 60); second = time - (minute * 60); timerLink.innerHTML = minute + ":" + (second < 10 ? "0" : "") + second; timerID = setInterval(timerUpdate, 1000); } document.body.appendChild(timerDiv); }
This post has been edited by Pillowgirl: Dec 19 2013, 11:21
|
|
|
|
|
|
Dec 19 2013, 14:01
|
yobi00
Group: Members
Posts: 700
Joined: 13-August 13
|
QUOTE(Pillowgirl @ Dec 19 2013, 18:20) Could someone competent update this script for the new 30 min change. I use it on Iron btw. Widescreen-timer-hvren.user.js
This should fix it, but I can't fully test it ATM. It's same as kuro009 version but with new dawn event check fixed in two places and fonts and positions left as they used to be. And I don't think there's anything browser specific in the code, as it works for me on both chrome and firefox. CODE // ==UserScript== // @name HV Random Encounter Notification // @namespace sigo8@e-hentai.org // @author sigo8, LangTuTaiHoa, GaryMcNabb // @version 1.3.3 // @match http://hentaiverse.org/* // @exclude http://hentaiverse.org/pages/showequip* // @run-at document-end // ==/UserScript==
var battleLog = document.getElementById("togpane_log"), rawDate, timeToDawn = {}, logRows, timerDiv, timerLink, resetLink, time, timerID, minute, second;
function updateTimeToDawn() { rawDate = new Date(); timeToDawn = { hour: rawDate.getUTCHours(), minute: rawDate.getUTCMinutes(), second: rawDate.getUTCSeconds() } } function timerUpdate() { if (--second < 0) { second = 59; if (--minute < 0) { timerLink.href = "http://e-hentai.org/"; timerLink.onclick = timerReset; timerLink.style.setProperty("color", "red"); timerLink.innerHTML = "Ready"; clearInterval(timerID); return; } } timerLink.innerHTML = minute + ":" + (second < 10 ? "0" : "") + second; } function timerReset() { updateTimeToDawn(); if (timeToDawn.hour === 23 && timeToDawn.minute > 29) { localStorage.lastRandomEncounter = Date.now() - ((timeToDawn.minute * 60000) + (timeToDawn.second * 1000)); minute = 59 - timeToDawn.minute; second = 60 - timeToDawn.second; } else { localStorage.lastRandomEncounter = Date.now(); minute = 30; second = 0; } timerLink.innerHTML = minute + ":" + (second < 10 ? "0" : "") + second; timerLink.style.color = "#5C0C11"; if (timerID) clearInterval(timerID); timerID = setInterval(timerUpdate, 1000); } if (battleLog) { logRows = battleLog.firstElementChild.firstElementChild.children; if (logRows[0].firstElementChild.textContent === "0" && logRows[logRows.length-2].lastElementChild.textContent[13] === "r") { updateTimeToDawn(); localStorage.lastRandomEncounter = (timeToDawn.hour === 23 && timeToDawn.minute > 29 ? Date.now() - ((timeToDawn.minute * 60000) + (timeToDawn.second * 1000)) : Date.now()); } } else { timerDiv = document.createElement("div"); timerLink = document.createElement("a"); resetLink = document.createElement("a"); if (!localStorage.lastRandomEncounter) timerReset(); time = localStorage.lastRandomEncounter - (Date.now() - 1800000); minute = second = 0;
timerDiv.style.cssText = "display:block; position: absolute; top:5px; left:980px;"; timerLink.style.cssText = "text-decoration:none; font-size:17px; font-weight:bold; color:#5C0C11;"; resetLink.style.cssText = "text-decoration:none; color:red; top:-3px; position:relative; left:3px;"; resetLink.innerHTML = "RESET"; resetLink.onclick = timerReset; resetLink.href = "#";
timerDiv.appendChild(timerLink); timerDiv.appendChild(resetLink); if (time < 0) { timerLink.href = "http://e-hentai.org/"; timerLink.onclick = timerReset; timerLink.style.color="red"; timerLink.innerHTML="Ready"; } else { time = Math.round(time / 1000); minute = Math.floor(time / 60); second = time - (minute * 60); timerLink.innerHTML = minute + ":" + (second < 10 ? "0" : "") + second; timerID = setInterval(timerUpdate, 1000); } document.body.appendChild(timerDiv); }
|
|
|
|
|
|
Dec 19 2013, 14:17
|
ctxl
Group: Members
Posts: 425
Joined: 20-May 12
|
HV - Random Encounter Doge for 0.78
HVRED_mod078.zip ( 2.29k )
Number of downloads: 453On the EH main page: - Reminds you of your last HV difficulty - Saves the last Random Encounter URL - Tells you when the next dawn is going to occur In HV: - Only active outside of combat - Displays the same information in the sidebar Uses a background page to pass localStorage across domains. Chrome only.
|
|
|
Dec 19 2013, 22:01
|
Pillowgirl
Group: Gold Star Club
Posts: 5,389
Joined: 2-December 12
|
Rofl ctxl.
+1
This post has been edited by Pillowgirl: Dec 19 2013, 22:02
|
|
|
Dec 20 2013, 03:07
|
treesloth
Group: Catgirl Camarilla
Posts: 3,524
Joined: 6-January 13
|
Anyone know if the latest HV stat tracker records various resists of player's offensive spell? I want to test how good Penetrator is at different # of potency levels. I have 5.6.5.1, and it does not record any resist. Thanks
|
|
|
Dec 20 2013, 06:11
|
Pillowgirl
Group: Gold Star Club
Posts: 5,389
Joined: 2-December 12
|
I spoke too soon, the timer script from ctxl isn't working in my Iron 28.
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
|
|
|
|
|