 |
 |
 |
[Script] HVtoolBox 1.0.14, A comprehensive out-of-battle script - ISK support |
|
May 8 2018, 00:28
|
jy-laji
Group: Members
Posts: 2,901
Joined: 21-May 11

|
QUOTE(yami_zetsu @ May 7 2018, 17:08)  There's an applejack fig in the bazaar but Hvtoolbox hides it, the only reason I saw it was because that half second the script takes to load, again, does it hides old artifacts, easter/christmas stuff as well? Or better yet, how can I disable the special bazaar hiding? I forgot to thank you in this thread, it works nicely, but I noticed that sometimes equipment can't be selected by the two buttons, in a sense, it makes me feel safer that magnificent/legendaries cannot be selected, but I noticed sometimes exquisites and even superiors can't be selected for salvaging/bazaaring; I'm sorry I don't have an example now, I forgot to keep for examples, I selected manually to sell those ones, I just remember that in the the case of a superior that couldn't be selected it had a 1k+ bazaar selling price
Yeah that's how I wrote it, since to find "magnificent/legendaries" you can use the search box on the left and just type "Legend||Magni" and you can find all mag/leg equipment. I use bazaar price as a criterion because sometimes an exquisite phase/power/shade may still be valuable... no? I don't know actually. Temporarily you can increase this number "var price_upper=1000;" to an upper bound you want, so it will select more equips, but be careful since if an equip's condition is 50%, its bazaar price will also be 50%. But I'll try to find out how to change it to "select those other than mag/leg", it shouldn't be hard. Just need to replace this "t.i[id].price < price_upper" with something that compares the name. I read the OP again and I found the search tool is more powerful than I thought. You can use "(legend||magnif)==false" to find all that are not mag/leg. And you can use "$price" to compare the bazaar price. It doesn't have the "$prices" feature though, which should be the salvage price, I don't know why, otherwise my script is just equivalent to a "$price>$prices&&$price<1000" or "$price<$prices&&$price<1000" search... Anyways... This post has been edited by jy-laji: May 8 2018, 01:21
|
|
|
|
 |
|
May 8 2018, 02:16
|
jy-laji
Group: Members
Posts: 2,901
Joined: 21-May 11

|
QUOTE(jy-laji @ May 8 2018, 06:28)  Yeah that's how I wrote it, since to find "magnificent/legendaries" you can use the search box on the left and just type "Legend||Magni" and you can find all mag/leg equipment. I use bazaar price as a criterion because sometimes an exquisite phase/power/shade may still be valuable... no? I don't know actually. Temporarily you can increase this number "var price_upper=1000;" to an upper bound you want, so it will select more equips, but be careful since if an equip's condition is 50%, its bazaar price will also be 50%. But I'll try to find out how to change it to "select those other than mag/leg", it shouldn't be hard. Just need to replace this "t.i[id].price < price_upper" with something that compares the name.
I read the OP again and I found the search tool is more powerful than I thought. You can use "(legend||magnif)==false" to find all that are not mag/leg. And you can use "$price" to compare the bazaar price. It doesn't have the "$prices" feature though, which should be the salvage price, I don't know why, otherwise my script is just equivalent to a "$price>$prices&&$price<1000" or "$price<$prices&&$price<1000" search... Anyways...
So here is the new version, which selects all equip that "bazaar price > salvage price" or the other way round and is not Legendary or Magnificent. Wait, I should also exclude "Peerless", though I don't have any (IMG:[ invalid] style_emoticons/default/rolleyes.gif) Fixed. The author decides this script is pining for the fjords. (IMG:[invalid] style_emoticons/default/rolleyes.gif)BTW You can also exclude "phase" "shade" etc similarly by finding the "indexOf()". I don't know what's the best way to tell "this isn't worth keeping and should be bazaared/salvaged", though. This post has been edited by jy-laji: May 25 2018, 05:54
|
|
|
|
 |
|
Jun 6 2018, 20:41
|
kserox
Group: Catgirl Camarilla
Posts: 727
Joined: 26-December 10

|
Hi. IIRC, several pages ago user showoff had issue that was never resolved. HVtoolBox 1.0.4 worked on every HV page except equipment shop. I have exact same issue. [ i.imgur.com] Item shop. [ i.imgur.com] Equipment shop.I am also using Srware Iron. Tried versions from 49 up to 60 (or so?). Tried installing the script directly and through the Tampermonkey. Is something can be done here? I really don't wanna update to the very last version or change my browser, since that old Iron version used exclusively for HV and is extremely fast. This post has been edited by kserox: Jun 6 2018, 20:42
|
|
|
|
 |
|
Jun 16 2018, 17:02
|
guard119
Group: Members
Posts: 584
Joined: 30-July 11

|
can I shut off the highlights by HVtoolBox? the highlights of Chinese translate script(equipment an item) is good,and I needn't to set the color. but if run both of the HVtoolBox and the Chinese translate script,the highlights only works in system equipment shop(display the highlights by Chinese translate script,that script only have highlights for equipment) (correction:the highlights don't work on all of my equipment,even in the shop,except the window opened by "c";but it works on the equipment owned by system)
the order at Tampermonkey(Chrome): 1.Hentaiverse Monsterbation 2.Percentile Ranges(this do not work if behind the Chinese scripts,also the Percentile Ranges in HVtoolBox) 4.Chinese translate script(equipment and item) 5.Chinese translate script(interface and etc)(this don't have highlights) 6.HVtoolBox(do not work if before the Chinese equipment and item script)
need the highlights in inventory...
This post has been edited by guard119: Jun 19 2018, 20:13
|
|
|
|
 |
|
Jun 16 2018, 19:49
|
Noni
Group: Catgirl Camarilla
Posts: 13,131
Joined: 19-February 16

|
QUOTE(guard119 @ Jun 16 2018, 17:02)  can I shut off the highlights by HVtoolBox? the highlights of Chinese translate script(equipment an item) is good,and I needn't to set the color. but if run both of the HVtoolBox and the Chinese translate script,the highlights only works in system equipment shop(display the highlights by Chinese translate script,that script only have highlights for equipment)
the order at Tampermonkey(Chrome): 1.Hentaiverse Monsterbation 2.Percentile Ranges(this do not work if behind the Chinese scripts,also the Percentile Ranges in HVtoolBox) 4.Chinese translate script(equipment and item) 5.Chinese translate script(interface and etc)(this don't have highlights) 6.HVtoolBox(do not work if before the Chinese equipment and item script)
need the highlights in inventory...
Yes, we can! 1. Settings button of HV Toolbox 2. Scroll down to 'Highlights' 3. Delete all filled highlights 4. save settings
|
|
|
|
 |
|
Jun 16 2018, 20:08
|
guard119
Group: Members
Posts: 584
Joined: 30-July 11

|
QUOTE(DJNoni @ Jun 17 2018, 01:49)  Yes, we can!
1. Settings button of HV Toolbox 2. Scroll down to 'Highlights' 3. Delete all filled highlights 4. save settings
it do not work. can we shut down it by edit the code?
|
|
|
Jun 16 2018, 22:35
|
Noni
Group: Catgirl Camarilla
Posts: 13,131
Joined: 19-February 16

|
QUOTE(guard119 @ Jun 16 2018, 20:08)  it do not work. can we shut down it by edit the code?
yes, if you know how to write in Javascript. Difficulty is, that you have 2 conflicting scripts... I don't know which one is easiest to edit.
|
|
|
Jun 16 2018, 23:03
|
guard119
Group: Members
Posts: 584
Joined: 30-July 11

|
QUOTE(DJNoni @ Jun 17 2018, 04:35)  yes, if you know how to write in Javascript. Difficulty is, that you have 2 conflicting scripts... I don't know which one is easiest to edit.
I don't know how to write a Java script,so I post here and wish someone can tell me delete from xxx to xxx,or add a "/" before xxx row,if that simply... in fact,the problem isn't that unacceptable,at least it works in the system equipment shop,which may be the most needed place. This post has been edited by guard119: Jun 17 2018, 21:07
|
|
|
|
 |
|
Aug 28 2018, 21:30
|
tox01
Group: Gold Star Club
Posts: 567
Joined: 16-April 09

|
Here are some fixes for everyone, if you are using browser Firefox and Greasemonkey add-on, and experience the problems specified below. Tested in Firefox 61 and Greasemonkey 4.6. You need to edit the specified lines in the HVtoolBox plugin’s code. Search for the first line or block of code and change it to the second one. 1) To repair inline challenge (difficulty) selector ( otherwise it hangs on Wait.. and does not change it ) Change CODE var f = $e("iframe", $d.body, {style: "display:none"}); to CODE var f = $e("iframe", $d.body, {style: "display: block; height: 0px; width: 0px"}); 2) To repair option "Overlaying of highlight" in the plugin’s Settings menu ( otherwise plugin highlights items regardless of the selected setting ): Change CODE elemname.classList.add("styleHigh"+i); if (!$tb.set.hiover) { break; } to CODE if (!$tb.set.hiover) { break; } elemname.classList.add("styleHigh"+i); 3) To repair Bazaar – Equipment Shop pages ( plugin does not load ) Note. No need, if you are using Tampermonkey Change at the beginning of the script CODE (function(){ to CODE (function(){ var dynjs_eqstore = unsafeWindow.dynjs_eqstore;
This post has been edited by tox01: Aug 29 2018, 15:30
|
|
|
|
 |
|
Aug 29 2018, 09:59
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07

|
i may include them in first page. would you mind spending a one-line description for each one?
|
|
|
Aug 29 2018, 12:52
|
tox01
Group: Gold Star Club
Posts: 567
Joined: 16-April 09

|
Edited my post. Please take a look. Thank you.
|
|
|
|
 |
|
Aug 29 2018, 14:29
|
guard119
Group: Members
Posts: 584
Joined: 30-July 11

|
Thanks for helping. I'm using Chrome,but it's same,isn't it?I think it's not the point. I found a mistake in the former expression,the problem seems not highlight,but color. There's no "highlight" in the codes of Chinese script and Hv Utils,and the two scripts are compatible. Here are the three scripts(I'm using)(usually Hv Utils not running).
HVtoolBox_1.0.4.txt ( 161.29k )
Number of downloads: 52
Chinese_translate_script_equipment_and_item_.txt ( 64.02k )
Number of downloads: 46
HV_Utils.txt ( 309.89k )
Number of downloads: 44For tox01's post. 1) Fix challenge selector This can display the color by Chinese script,but the toolbox disappeared,so I can't use it. 2) Fix Settings item highlighting I think the problem isn't highlight now,this can be a part of proof,it does nothing(I had deleted the highlights in toolbox's settings). 3) Fix Bazaar pages Yes,I'm using Tampermonkey. Thank you again. This post has been edited by guard119: Aug 29 2018, 14:54
|
|
|
|
 |
|
Aug 29 2018, 19:26
|
tox01
Group: Gold Star Club
Posts: 567
Joined: 16-April 09

|
QUOTE(guard119 @ Aug 29 2018, 14:29)  Thanks for helping. I'm using Chrome,but it's same,isn't it?I think it's not the point. I found a mistake in the former expression,the problem seems not highlight,but color. There's no "highlight" in the codes of Chinese script and Hv Utils,and the two scripts are compatible. Here are the three scripts(I'm using)(usually Hv Utils not running).
HVtoolBox_1.0.4.txt ( 161.29k )
Number of downloads: 52
Chinese_translate_script_equipment_and_item_.txt ( 64.02k )
Number of downloads: 46
HV_Utils.txt ( 309.89k )
Number of downloads: 44My post was for everybody. Sorry, if it was misleading. I've installed your scripts in Chrome + Tampermonkey. Order of scripts in Tampermonkey: 1) Chinese 2) HVtoolBox Result: no highlighting from Chinese of player equipment items ( shop items - highlighted ). To fix it please change in HVtoolBox line CODE this.elemname.textContent = this.name; to CODE //this.elemname.textContent = this.name; Result of my test: 
|
|
|
|
 |
|
Aug 29 2018, 21:44
|
guard119
Group: Members
Posts: 584
Joined: 30-July 11

|
QUOTE(tox01 @ Aug 30 2018, 01:26)  My post was for everybody. Sorry, if it was misleading. I've installed your scripts in Chrome + Tampermonkey. Order of scripts in Tampermonkey: 1) Chinese 2) HVtoolBox Result: no highlighting from Chinese of player equipment items ( shop items - highlighted ). To fix it please change in HVtoolBox line CODE this.elemname.textContent = this.name; to CODE //this.elemname.textContent = this.name; Result of my test:  That's what I need,thank you so much!
|
|
|
Sep 10 2018, 19:57
|
ALL_MIGHT
Group: Gold Star Club
Posts: 1,548
Joined: 14-October 16

|
(IMG:[ invalid] style_emoticons/default/ph34r.gif) Please ignore it This post has been edited by ALL_MIGHT: Sep 10 2018, 21:31
|
|
|
|
 |
|
Oct 27 2018, 21:51
|
KitsuneAbby
Group: Catgirl Camarilla
Posts: 7,571
Joined: 12-July 14

|
Hi f4tal, dunno if you're still alive, but I got two issues.
1) There's something that quite doesn't work in the search function: comparing the result of two tags.
To put it bluntly, I wanted to write a search query that fetches all items that are worth more as salvage material than as bazaar material, so I wrote this: "$locked==false && $prices>$price" But it doesn't work at all.
Another thing that is quite annoying now. I would like to be able to do something like this: "$quality>Superior", obviously to show only equipments that are above the superior quality. And again, it doesn't work. It'd be quite simpler to do that rather than using tons of (Exquite||Magnificent||Legendrary||Peerless).
Hope to see you again soon.~
This post has been edited by decondelite: Oct 27 2018, 21:52
|
|
|
|
 |
|
Aug 13 2019, 15:27
|
Zhuck
Newcomer
 Group: Recruits
Posts: 13
Joined: 6-August 19

|
Fix for comparing two tags and quality levels: Change the following block: CODE function butFilter(filter) { $tb.templates.filter = filter; var test = /([a-zA-Z\s\$]+)([><\=\-\!]{0,2})([^><\=\-\!\$\&\|\)\(]+)?/; var testgi = new RegExp(test,"gi"); var testi = new RegExp(test,"i"); var filterNoSpace = filter.replace(/(\s+)?([\&\|\(\)\-\!\=\><])(\s+)?/gi,"$2"); for (var o in t.i) { var temp = t.i[o]; var line = filterNoSpace.replace(testgi,function(arg) { if (/\$/.test(arg)) { var array = arg.match(testi); var tag = array[1].replace("$",""); var con = array[2]; var oper = array[3]; if (temp.hasOwnProperty(tag)) { var t = temp[tag]; if (/[0-9]/.test(oper)) { if (con == "<="||con == "=<") {return (t <= oper) ? true : false;} else if (con == ">="||con == "=>") {return (t >= oper) ? true : false;} else if (con == "=="||con == "=") {return (t == oper) ? true : false;} else if (con == "!="||con == "-") {return (t != oper) ? true : false;} else if (con == "<") {return (t < oper) ? true : false;} else if (con == ">") {return (t > oper) ? true : false;} } else { var par = new RegExp(oper,"i"); if (con == "=="||con == "=") {return (par.test(t)) ? true : false;} else if (con == "!="||con == "-") {return (par.test(t)) ? false : true;} } } } else { var argR = new RegExp(arg,"i"); return (argR.test(temp.name))? true : false; } }); var answer = eval(line); if (answer === false) { temp.elem.classList.add("hidden"); } else { temp.elem.classList.remove("hidden"); } $tb.sync(); } } To this: CODE function butFilter(filter) { $tb.templates.filter = filter; const qualities = ["crude", "fair", "average", "superior", "exquisite", "magnificent", "legendary", "peerless"]; var testquality = new RegExp(/(Crude|Fair|Average|Superior|Exquisite|Magnificent|Legendary|Peerless)(?! [a-z])/, "gi"); var testtag = new RegExp(/\$[a-z]+/,"gi"); var testword = new RegExp(/[a-z][a-z ]+[a-z]/,"gi"); var testop = new RegExp(/[><\=\-\!]{1,2}/gi,"gi"); var line; for (var o in t.i) { var temp = t.i[o]; if (/\$/.test(filter)) { line = filter.replace(testtag, function(arg){ var tag = arg.substring(1); if (temp.hasOwnProperty(tag)) {return temp[tag];} return tag;}); line = line.replace(testword, function(arg) { return "\'" + arg.toLowerCase() + "\'";}); line = line.replace(testop, function(con) { if (con == "<="||con == "=<") {return "<="} else if (con == ">="||con == "=>") {return ">=";} else if (con == "=="||con == "=") {return "==";} else if (con == "!="||con == "-") {return "!=";} else if (con == "<") {return "<";} else if (con == ">") {return ">";} else {return "";} }); line = line.replace(testquality, function(arg) { return qualities.indexOf(arg); }); } var answer; if (/^[a-z\'][a-z\'\s]*$/i.test(filter)) { var argR = new RegExp(filter,"i"); answer = argR.test(temp.name); } else { answer = eval(line); } if (answer === false) { temp.elem.classList.add("hidden"); } else { temp.elem.classList.remove("hidden"); } $tb.sync(); } }
This post has been edited by Zhuck: Aug 13 2019, 23:13
|
|
|
|
 |
|
Aug 26 2019, 07:20
|
ryuseii
Group: Catgirl Camarilla
Posts: 846
Joined: 28-March 09

|
Question about ADB display I installed both and only runs one at a time, problem is each of them display ADB a lot more differently Live Percentile Ranges 1.1.0 shows ADB 89% HVtoolBox 1.0.4 shows ADB 21% [203710312] Magnificent Demonic Wakizashi of the Nimble (Level 395, IW 10)
|
|
|
Aug 26 2019, 08:21
|
ahroun
Group: Members
Posts: 285
Joined: 22-January 11

|
Check the Legendary range for LPR and see if they are different.
Not sure why, but HVToolbox sometimes (or always, noticed recently) displays ranges in the Legendary range, especially for Mag level stuff.
There are still differences, though, in the Parry value (-19% vs -30%, but I guess that's related to the databases).
This post has been edited by ahroun: Aug 26 2019, 08:26
|
|
|
Aug 30 2019, 23:38
|
Noni
Group: Catgirl Camarilla
Posts: 13,131
Joined: 19-February 16

|
new version by decondelite moved to first post
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
|
 |
 |
 |
|