 |
 |
 |
[Script] HV Utils 3.0.0 (31 December 2023), A comprehensive out-of-battle script for Hentaiverse and ISK |
|
Feb 22 2021, 12:18
|
Nezu
Group: Catgirl Camarilla
Posts: 3,939
Joined: 29-January 12

|
HVUtils mooglemail currently won't send if you don't have any attachments selected; I have to go back to default UI to send a mail that is just text.
|
|
|
|
 |
|
Feb 22 2021, 14:26
|
eYe BuRn
Newcomer
  Group: Gold Star Club
Posts: 54
Joined: 31-March 10

|
QUOTE(Nezu @ Feb 22 2021, 10:18)  HVUtils mooglemail currently won't send if you don't have any attachments selected; I have to go back to default UI to send a mail that is just text.
Are you using the latest version Nezu? It's supposed to be fixed. QUOTE(sssss2 @ Feb 4 2021, 01:08)  2.10.2 update - fixed a bug that mooglemail can't be sent without any attachment.
Also there's a little typo on line 4980: if(!selected.length || (settings.equipmentShopConfirm===2 || settings.equipmentShopConfirm===1&&salvage.length || valuable.length) && !confirm("Are you sure you wish to sell "+selected.length+" equipment piece"+(selected.length>1?"s":"")+" for "+(sum.toLocaleString())+" credits?"+(valuable.length?"\n\n[Possible valuable equimpent]\n\n"+valuable.join("\n"):"")+(salvage.length?"\n\n[Better to Salvage]\n"+salvage.join("\n"):""))) {
|
|
|
|
 |
|
Feb 22 2021, 15:45
|
Nezu
Group: Catgirl Camarilla
Posts: 3,939
Joined: 29-January 12

|
QUOTE(eYe BuRn @ Feb 22 2021, 12:26)  Are you using the latest version Nezu? It's supposed to be fixed. Also there's a little typo on line 4980: if(!selected.length || (settings.equipmentShopConfirm===2 || settings.equipmentShopConfirm===1&&salvage.length || valuable.length) && !confirm("Are you sure you wish to sell "+selected.length+" equipment piece"+(selected.length>1?"s":"")+" for "+(sum.toLocaleString())+" credits?"+(valuable.length?"\n\n[Possible valuable equimpent]\n\n"+valuable.join("\n"):"")+(salvage.length?"\n\n[Better to Salvage]\n"+salvage.join("\n"):""))) {
Ah, good catch, no, I didn't see that update (IMG:[ invalid] style_emoticons/default/laugh.gif) Cheers
|
|
|
|
 |
|
Feb 27 2021, 16:41
|
OnceForAll
Group: Catgirl Camarilla
Posts: 1,633
Joined: 3-January 21

|
A feature request for the monster lab section. I'd like to have a sorter feature (likes sort by morale, sort by hunger, sort by PL, etc.) Here is my current approach to doing this: CODE const containerEl = monsterList.querySelector('#slot_pane'); // This is the container element of monsters // Turn monsters container into flexbox containerEl.style.display = 'flex'; containerEl.style.flexDirection = 'column';
document.querySelectorAll('.msl').forEach(el => { const name = el.querySelector(':nth-child(2)').textContent.trim(); // Name of the monster. const morale = Number(el.querySelectorAll('.msn')[1].textContent.trim()); // Morale const hunger = Number(el.querySelectorAll('.msn')[0].textContent.trim()); // Hunger
el.style.order = morale; // Sort monter using morale. CSS3 flex order feature. // el.style.order = hunger; // It is also possible to sort using hunger. });
|
|
|
|
 |
|
Mar 6 2021, 16:48
|
kusakabe2412
Lurker
Group: Recruits
Posts: 9
Joined: 6-March 21

|
|
|
|
Mar 11 2021, 05:53
|
sssss2
Group: Gold Star Club
Posts: 4,007
Joined: 11-April 14

|
HV Utils 2.10.3 HV Utils URL 1.2.1
* You need to update both HVUT and HVUT_URL
- Fixed Random Encounter Notification bug in Isekai - Monster List is now sortable, and you can set a default sort key (settings.monsterLabDefaultSort) - You can edit [Equipment WTS Code] in Equipment Inventory (click [WTS Code] -> click [Edit Equip Code]) - There are a few changes in ItemShop Code Generator: If you had edited and saved [Item WTS Code] in Item Inventory, you need to change // set BBCode to // set itemCode
This post has been edited by sssss2: Mar 11 2021, 08:06
|
|
|
|
 |
|
Mar 11 2021, 11:12
|
OnceForAll
Group: Catgirl Camarilla
Posts: 1,633
Joined: 3-January 21

|
QUOTE(sssss2 @ Mar 11 2021, 11:53)  HV Utils 2.10.3 HV Utils URL 1.2.1
* You need to update both HVUT and HVUT_URL
- Fixed Random Encounter Notification bug in Isekai - Monster List is now sortable, and you can set a default sort key (settings.monsterLabDefaultSort) - You can edit [Equipment WTS Code] in Equipment Inventory (click [WTS Code] -> click [Edit Equip Code]) - There are a few changes in ItemShop Code Generator: If you had edited and saved [Item WTS Code] in Item Inventory, you need to change // set BBCode to // set itemCode
Thanks for implementing my feature request! And now I am asking for a new feature request. (IMG:[ pic.skk.moe] https://pic.skk.moe/file/sukkaw/eh/17.png) I just added too many items in the "Item Inventory" block, so I have to modify the CSS to make it in 3 rows: CODE .hvut-bt-inventory > li {width:33%; font-size: 12px} It is possible to detect the size of "equipEnchantInventory" array, and apply "width: 33%; font-size: 12px" when the array size is larger than 12.
|
|
|
|
 |
|
Apr 4 2021, 02:17
|
sssss2
Group: Gold Star Club
Posts: 4,007
Joined: 11-April 14

|
HVUT 2.10.4 update
- new feature: Salvage Calculator (in Forge/Upgrade) - and several minor/internal changes
|
|
|
Apr 23 2021, 09:43
|
shote1369
Group: Gold Star Club
Posts: 1,557
Joined: 24-April 18

|
Snom has problems with HV Utils. It loads everything failed, such as mooglemail, bazaar, arena (failed to load page 2).... Is there a solution for fixing it ? It's still worked excellently yesterday in Incognito Mode! Edited: It's work fine in normal browser (Snom uses Google Chrome), but it "refused" to work in Incognito Mode.
This post has been edited by shote1369: Apr 23 2021, 11:46
|
|
|
|
 |
|
Apr 28 2021, 04:11
|
what_is_name
Group: Gold Star Club
Posts: 1,038
Joined: 5-May 19

|
QUOTE(shote1369 @ Apr 23 2021, 15:43)  Snom has problems with HV Utils. It loads everything failed, such as mooglemail, bazaar, arena (failed to load page 2).... Is there a solution for fixing it ? It's still worked excellently yesterday in Incognito Mode! Edited: It's work fine in normal browser (Snom uses Google Chrome), but it "refused" to work in Incognito Mode.
It a Chrome 90+ issue and should fixed in new Chrome release now [ github.com] https://github.com/Tampermonkey/tampermonkey/issues/1220
|
|
|
|
 |
|
May 25 2021, 17:56
|
OnceForAll
Group: Catgirl Camarilla
Posts: 1,633
Joined: 3-January 21

|
Feature Request: add "[buy on hvm]" in upgrade costs panel: (IMG:[ pic.skk.moe] https://pic.skk.moe/file/sukkaw/eh/38.png) My current implementation: CODE // In method _up.calc_upgrade const tr = $element('tr', _up.node.costs, [`/<td>${item}</td><td>${count}</td><td>(${stock})</td>`, count > stock ? '.hvut-up-nostock' : '']); if (count > stock) { const buyLink = tr.firstChild.appendChild(document.createElement('a')); buyLink.style.color = 'blue'; buyLink.textContent = '[buy on hvm]'; buyLink.style.margin = '0 2px'; // Create HVMarket search link const hvmUrl = new URL('https://hvmarket.xyz/?filters=0'); hvmUrl.searchParams.append('search_term', item); buyLink.href = hvmUrl.toString(); buyLink.target = '_blank'; // HVMarket item exchange URL format: https://hvmarket.xyz/exchange/[item id]/ // example: https://hvmarket.xyz/exchange/60003/ // I am too lazy to collect item ids. }
This post has been edited by OnceForAll: May 25 2021, 18:02
|
|
|
|
 |
|
Jun 7 2021, 03:18
|
OnceForAll
Group: Catgirl Camarilla
Posts: 1,633
Joined: 3-January 21

|
(IMG:[ cdn.discordapp.com] https://cdn.discordapp.com/attachments/609123079716601867/851259203627647016/unknown.png) Another feature request, support buying repair materials at AR/RB/GR page. And here is my implementation: CODE $battle.node.repair_inventory = $element('ul', $battle.node.div, { className: 'hvut-bt-buy-repair-materials', header: 'BUY REPAIR MATERIAL' });
// ....
// $battle.display_inventory = function () { $battle.node.repair_inventory.innerHTML = ''; // Clear the dom // ... for (const mat of ['Scrap Cloth', 'Scrap Leather', 'Scrap Metal', 'Scrap Wood', 'Energy Cell']) { const li = document.createElement('li'); li.style.display = 'flex'; li.style.margin = '0 2px';
const imbueSpan = li.appendChild(document.createElement('span')); if (mat === 'Energy Cell') { imbueSpan.textContent = '[+200]'; // This should be configurable } else { imbueSpan.textContent = '[+400]'; // This should be configurable } imbueSpan.classList.add('hvut-bt-imbue');
const nameSpan = li.appendChild(document.createElement('span')); // Probably should be replaced with a class nameSpan.textContent = mat; nameSpan.style.textAlign = 'left'; nameSpan.style.flexGrow = '1'; nameSpan.style.fontWeight = 'bold'; nameSpan.style.margin = '0 2px'; nameSpan.style.textOverflow = 'ellipsis';
const numSpan = li.appendChild(document.createElement('span')); numSpan.textContent = `(${$battle.inventory[mat] || 0})`;
if (($battle.inventory[mat] || 0) < 100) { // This should be configurable numSpan.classList.add('hvut-bt-warn'); }
imbueSpan.onclick = () => { numSpan.classList.remove('hvut-bt-warn'); numSpan.textContent = `( ... )`; // Show loading message if (mat === 'Energy Cell') { buyThings(mat, 200, $battle.load_inventory); // This should be configurable } else { buyThings(mat, 400, $battle.load_inventory); // This should be configurable } };
$battle.node.repair_inventory.appendChild(li); } // } // $battle.display_inventory END
// Extracted utility function from MoogleMail coupon clipper service feature & Forge buying catalysts feature function buyThings(name, count = 1000, onFinishCallback) { const shopData = { 'health draught': { id: 11191, price: 23 }, 'health potion': { id: 11195, price: 45 }, 'health elixir': { id: 11199, price: 450 }, 'mana draught': { id: 11291, price: 45 }, 'mana potion': { id: 11295, price: 90 }, 'mana elixir': { id: 11299, price: 900 }, 'spirit draught': { id: 11391, price: 45 }, 'spirit potion': { id: 11395, price: 90 }, 'spirit elixir': { id: 11399, price: 900 }, // "soul fragment": {id:48001,price:900}, 'crystal of vigor': { id: 50001, price: 9 }, 'crystal of finesse': { id: 50002, price: 9 }, 'crystal of swiftness': { id: 50003, price: 9 }, 'crystal of fortitude': { id: 50004, price: 9 }, 'crystal of cunning': { id: 50005, price: 9 }, 'crystal of knowledge': { id: 50006, price: 9 }, 'crystal of flames': { id: 50011, price: 9 }, 'crystal of frost': { id: 50012, price: 9 }, 'crystal of lightning': { id: 50013, price: 9 }, 'crystal of tempest': { id: 50014, price: 9 }, 'crystal of devotion': { id: 50015, price: 9 }, 'crystal of corruption': { id: 50016, price: 9 }, 'monster chow': { id: 51001, price: 14 }, 'monster edibles': { id: 51002, price: 27 }, 'monster cuisine': { id: 51003, price: 45 }, 'happy pills': { id: 51011, price: 1800 }, 'scrap cloth': { id: 60051, price: 90 }, 'scrap leather': { id: 60052, price: 90 }, 'scrap metal': { id: 60053, price: 90 }, 'scrap wood': { id: 60054, price: 90 }, 'energy cell': { id: 60071, price: 180 }, 'wispy catalyst': { id: 60301, price: 90 }, 'diluted catalyst': { id: 60302, price: 450 }, 'regular catalyst': { id: 60303, price: 900 }, 'robust catalyst': { id: 60304, price: 2250 }, 'vibrant catalyst': { id: 60305, price: 4500 }, 'coruscating catalyst': { id: 60306, price: 9000 } };
$ajax.add('GET', '?s=Bazaar&ss=is', null, function (r) { let matches = r.responseText.match(/<input type="hidden" name="storetoken" value="(\w+)"/); const storetoken = matches?.[1]; if (storetoken) { $ajax.add('POST', '?s=Bazaar&ss=is', `storetoken=${storetoken}&select_mode=shop_pane&select_item=${shopData[name.toLowerCase()].id}&select_count=${count}`, onFinishCallback); } }); };
|
|
|
|
 |
|
Jun 14 2021, 18:02
|
Nyachin
Newcomer
  Group: Members
Posts: 81
Joined: 3-February 14

|
Hi, How does the Reallocator works? Just created a new persona, and all primary attributes are 0, i don't want to click for thousands times, please tell that there is somewhere a feature to save my mouse
|
|
|
Jun 14 2021, 18:21
|
Nezu
Group: Catgirl Camarilla
Posts: 3,939
Joined: 29-January 12

|
QUOTE(Nyachin @ Jun 14 2021, 17:02)  Hi, How does the Reallocator works? Just created a new persona, and all primary attributes are 0, i don't want to click for thousands times, please tell that there is somewhere a feature to save my mouse
You can hold shift or ctrl when clicking the + or - signs to make assigning faster, even without HVUtils (IMG:[ invalid] style_emoticons/default/tongue.gif)
|
|
|
Jun 15 2021, 01:16
|
Nyachin
Newcomer
  Group: Members
Posts: 81
Joined: 3-February 14

|
QUOTE(Nezu @ Jun 14 2021, 18:21)  You can hold shift or ctrl when clicking the + or - signs to make assigning faster, even without HVUtils (IMG:[ invalid] style_emoticons/default/tongue.gif) That's it, thank you for save my life
|
|
|
Jun 21 2021, 12:05
|
Noni
Group: Catgirl Camarilla
Posts: 13,371
Joined: 19-February 16

|
Bug in isekai
|
|
|
Jun 22 2021, 06:58
|
Fudo Masamune
Group: Gold Star Club
Posts: 1,636
Joined: 2-February 10

|
QUOTE(Noni @ Jun 21 2021, 19:05)  Bug in isekai probably related to that "disable lower level arena for higher level player", the arena page also have no second page anymore.
|
|
|
Jun 22 2021, 17:07
|
sssss2
Group: Gold Star Club
Posts: 4,007
Joined: 11-April 14

|
Due to 0.88 changes, Arena pages intergration will be removed. I'll update HVUT when it comes to Persistent. If you want to fix right now, find if(!_query.page) { in line 9333 and change it to if(!_query.page && !_isekai) {
This post has been edited by sssss2: Jun 22 2021, 17:11
|
|
|
Jun 22 2021, 23:35
|
OnceForAll
Group: Catgirl Camarilla
Posts: 1,633
Joined: 3-January 21

|
Also, the stamina is changing as well: QUOTE(Tenboro @ Jun 22 2021, 22:37)  - Stamina is now considered "Great" above 60, and increases stamina drain by 50% rather than 100%.
|
|
|
Jul 3 2021, 06:19
|
OnceForAll
Group: Catgirl Camarilla
Posts: 1,633
Joined: 3-January 21

|
Another issue found (Actually it should be considered as a quirk). (IMG:[ cdn.discordapp.com] https://cdn.discordapp.com/attachments/720844729494798360/860735824828432414/unknown.png) When you click with the "Control" key hold on macOS, it will open the menu instead, the window loses focus, and "MouseEvent.ctrlKey" will always be false. Would mind considered adding a fallback? Like "e.ctrlKey || e.shiftKey"
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
|
 |
 |
 |
|