Welcome Guest ( Log In | Register )

28 Pages V « < 17 18 19 20 21 > »   
Reply to this topicStart new topic
> [Script] HV Utils 3.0.0 (31 December 2023), A comprehensive out-of-battle script for Hentaiverse and ISK

 
post Feb 22 2021, 12:18
Post #361
Nezu



Rat
********
Group: Catgirl Camarilla
Posts: 3,939
Joined: 29-January 12
Level 500 (Ponyslayer)


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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 22 2021, 14:26
Post #362
eYe BuRn



Newcomer
**
Group: Gold Star Club
Posts: 54
Joined: 31-March 10
Level 500 (Dovahkiin)


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"):""))) {
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 22 2021, 15:45
Post #363
Nezu



Rat
********
Group: Catgirl Camarilla
Posts: 3,939
Joined: 29-January 12
Level 500 (Ponyslayer)


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 27 2021, 16:41
Post #364
OnceForAll



Fluffy Tail Fox
*******
Group: Catgirl Camarilla
Posts: 1,633
Joined: 3-January 21
Level 500 (Ponyslayer)


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.
});
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 6 2021, 16:48
Post #365
kusakabe2412



Lurker
Group: Recruits
Posts: 9
Joined: 6-March 21
Level 285 (Godslayer)


gonna test it now (IMG:[invalid] style_emoticons/default/biggrin.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 11 2021, 05:53
Post #366
sssss2



Veteran Poster
********
Group: Gold Star Club
Posts: 4,007
Joined: 11-April 14
Level 500 (Ponyslayer)


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 11 2021, 11:12
Post #367
OnceForAll



Fluffy Tail Fox
*******
Group: Catgirl Camarilla
Posts: 1,633
Joined: 3-January 21
Level 500 (Ponyslayer)


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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 4 2021, 02:17
Post #368
sssss2



Veteran Poster
********
Group: Gold Star Club
Posts: 4,007
Joined: 11-April 14
Level 500 (Ponyslayer)


HVUT 2.10.4 update

- new feature: Salvage Calculator (in Forge/Upgrade)
- and several minor/internal changes
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 23 2021, 09:43
Post #369
shote1369



(^ω^)
*******
Group: Gold Star Club
Posts: 1,557
Joined: 24-April 18
Level 500 (Ponyslayer)


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 28 2021, 04:11
Post #370
what_is_name



Active Poster
*******
Group: Gold Star Club
Posts: 1,038
Joined: 5-May 19
Level 500 (Ponyslayer)


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 25 2021, 17:56
Post #371
OnceForAll



Fluffy Tail Fox
*******
Group: Catgirl Camarilla
Posts: 1,633
Joined: 3-January 21
Level 500 (Ponyslayer)


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 7 2021, 03:18
Post #372
OnceForAll



Fluffy Tail Fox
*******
Group: Catgirl Camarilla
Posts: 1,633
Joined: 3-January 21
Level 500 (Ponyslayer)


(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);
    }
  });
};
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 14 2021, 18:02
Post #373
Nyachin



Newcomer
**
Group: Members
Posts: 81
Joined: 3-February 14
Level 408 (Dovahkiin)


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 14 2021, 18:21
Post #374
Nezu



Rat
********
Group: Catgirl Camarilla
Posts: 3,939
Joined: 29-January 12
Level 500 (Ponyslayer)


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)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 15 2021, 01:16
Post #375
Nyachin



Newcomer
**
Group: Members
Posts: 81
Joined: 3-February 14
Level 408 (Dovahkiin)


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 21 2021, 12:05
Post #376
Noni



Hataraku Noni-sama
***********
Group: Catgirl Camarilla
Posts: 13,371
Joined: 19-February 16
Level 500 (Ponyslayer)


Attached Image
Bug in isekai
User is online!Profile CardPM
Go to the top of the page
+Quote Post

 
post Jun 22 2021, 06:58
Post #377
Fudo Masamune



Passive Poster
*******
Group: Gold Star Club
Posts: 1,636
Joined: 2-February 10
Level 500 (Ponyslayer)


QUOTE(Noni @ Jun 21 2021, 19:05) *

Attached Image
Bug in isekai


probably related to that "disable lower level arena for higher level player", the arena page also have no second page anymore.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 22 2021, 17:07
Post #378
sssss2



Veteran Poster
********
Group: Gold Star Club
Posts: 4,007
Joined: 11-April 14
Level 500 (Ponyslayer)


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 22 2021, 23:35
Post #379
OnceForAll



Fluffy Tail Fox
*******
Group: Catgirl Camarilla
Posts: 1,633
Joined: 3-January 21
Level 500 (Ponyslayer)


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%.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jul 3 2021, 06:19
Post #380
OnceForAll



Fluffy Tail Fox
*******
Group: Catgirl Camarilla
Posts: 1,633
Joined: 3-January 21
Level 500 (Ponyslayer)


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"
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


28 Pages V « < 17 18 19 20 21 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 13th June 2025 - 16:59