 |
 |
 |
HV Script Thread, Discuss your creations. Includes guidelines and infos for script creation (2020-02-28 upd) |
|
Aug 30 2014, 06:05
|
djackallstar
Group: Gold Star Club
Posts: 8,221
Joined: 23-July 14

|
QUOTE(oohmrparis @ Jul 6 2014, 19:53)  Script that displays the condition in equipment page. [attachmentid=46151] If equipment can repair, repair by right-clicking. If you need confirmation dialog, erase the double slash of two places near the bottom of the code. Scraps bug fixed.
Thanks for the script, I use it every day and it's pretty neat! I found a small bug in the repairCost function: this. repairCost = function(qu, type) { var catalyst, num, scrap; if(type == 'Staff' || type == 'Shield') scrap = 'Scrap Wood'; else if(type == 'Light') scrap = 'Scrap Leather'; else if(type == 'Cloth') scrap = 'Scrap Cloth'; else scrap = 'Scrap Metal'; if(qu == 'Exquisite' || qu == 'Magnificent') catalyst = 'Diluted Catalyst', num = 4; else if(qu == 'Legendary' || qu == 'Peerless') catalyst = 'Regular Catalyst', num = 2; else catalyst = 'Wispy Catalyst', num = 10; return [catalyst, num, scrap]; }; According to HentaiVerse 0.80 Release Notes: "- Forge upgrades now require a catalyst. There are six tiers of catalyst items, all of which can be bought in the item store. -- Superior and below will initially require a tier 1 catalyst, Exquisite tier 2, Magnificent tier 3, and Legendary+ tier 4. (Calculated from quality, not the name that happens to be attached, so legacy equipment may go up or down a tier.)-- Upgrade levels past half the base maximum will increase the required tier by 1. Upgrade levels past the base maximum will increase the required tier by 2.-- Catalyst items are NOT returned when an item is salvaged." So basically: The type of catalyst needed has to do with the upgrades of an equipment, and is subject to the quality score (instead of quality prefix) of a weapon.Some info you might be interested in: (from http://ehwiki.org/wiki/Equipment_Prefixes#Quality)"It should be noted that stats generate prefixes, not the other way around (with the exception of peerless which is its own seperate roll). The quality prefix is basically the average value of all the stats given to a piece of gear. For a stat that ranges from 5-10, getting 5 is +1 quality while getting 10 is +6 quality. The sum of the quality scores is then divided by the maximum possible quality score to get a quality rating between 0 and 1." This post has been edited by djackallstar: Aug 30 2014, 15:05
|
|
|
|
 |
|
Aug 30 2014, 12:48
|
oohmrparis
Group: Gold Star Club
Posts: 524
Joined: 18-June 13

|
QUOTE(djackallstar @ Aug 30 2014, 06:05)  Thanks for the script, I use it every day it's pretty neat! I found a small bug in the repairCost function: this. repairCost = function(qu, type) { var catalyst, num, scrap; if(type == 'Staff' || type == 'Shield') scrap = 'Scrap Wood'; else if(type == 'Light') scrap = 'Scrap Leather'; else if(type == 'Cloth') scrap = 'Scrap Cloth'; else scrap = 'Scrap Metal'; if(qu == 'Exquisite' || qu == 'Magnificent') catalyst = 'Diluted Catalyst', num = 4; else if(qu == 'Legendary' || qu == 'Peerless') catalyst = 'Regular Catalyst', num = 2; else catalyst = 'Wispy Catalyst', num = 10; return [catalyst, num, scrap]; }; According to HentaiVerse 0.80 Release Notes: "- Forge upgrades now require a catalyst. There are six tiers of catalyst items, all of which can be bought in the item store. -- Superior and below will initially require a tier 1 catalyst, Exquisite tier 2, Magnificent tier 3, and Legendary+ tier 4. (Calculated from quality, not the name that happens to be attached, so legacy equipment may go up or down a tier.)-- Upgrade levels past half the base maximum will increase the required tier by 1. Upgrade levels past the base maximum will increase the required tier by 2.-- Catalyst items are NOT returned when an item is salvaged." So basically: The type of catalyst needed has to do with the upgrades of an equipment, and is subject to the quality score (instead of quality prefix) of a weapon.Some info you might be interested: (from http://ehwiki.org/wiki/Equipment_Prefixes#Quality)"It should be noted that stats generate prefixes, not the other way around (with the exception of peerless which is its own seperate roll). The quality prefix is basically the average value of all the stats given to a piece of gear. For a stat that ranges from 5-10, getting 5 is +1 quality while getting 10 is +6 quality. The sum of the quality scores is then divided by the maximum possible quality score to get a quality rating between 0 and 1." I'm sorry, I did not understand it well because I'm not good at English. Briefly, what kind of bug is it?
|
|
|
|
 |
|
Aug 30 2014, 13:26
|
Dan31
Group: Members
Posts: 4,399
Joined: 26-March 12

|
QUOTE(oohmrparis @ Aug 30 2014, 12:48)  I'm sorry, I did not understand it well because I'm not good at English. Briefly, what kind of bug is it?
Forged items may require more expensive catalysts for repair.
|
|
|
Aug 30 2014, 14:47
|
djackallstar
Group: Gold Star Club
Posts: 8,221
Joined: 23-July 14

|
QUOTE(oohmrparis @ Aug 30 2014, 18:48)  I'm sorry, I did not understand it well because I'm not good at English. Briefly, what kind of bug is it?
1. If an equipment has upgrades, then sometimes it needs better type of catalysts (ex: from Diluted to Regular). 2. If an quipment is "legacy" (no longer drop), then sometimes it needs worse/better type of catalysts (ex: from Diluted to Wispy, or from Diluted to Vibrant). This post has been edited by djackallstar: Aug 31 2014, 03:41
|
|
|
|
 |
|
Aug 30 2014, 15:00
|
oohmrparis
Group: Gold Star Club
Posts: 524
Joined: 18-June 13

|
QUOTE(Dan31 @ Aug 30 2014, 13:26)  Forged items may require more expensive catalysts for repair.
QUOTE(djackallstar @ Aug 30 2014, 14:47)  1. If an equipment has upgrades, then sometimes it needs better type of catalysts (ex: from Diluted to Regular). 2. If an quipment is "legacy" (no longer drop), then sometimes it needs worse/better type of catalysts (ex: from Diluted to Wispy, or from Diluted to Vibrant).
Thanks (IMG:[ invalid] style_emoticons/default/smile.gif) hmm...It may take time to fix. (IMG:[ invalid] style_emoticons/default/sad.gif) Please be repaired by another script until it.
|
|
|
|
 |
|
Aug 30 2014, 18:54
|
oohmrparis
Group: Gold Star Club
Posts: 524
Joined: 18-June 13

|
Script that displays the condition in equipment page.(Beta ver) [attachmentid=49650]
If equipment can repair, repair by right-clicking. If you need confirmation dialog, erase the double slash of two places near the bottom of the code. Cost bug fixed. May take a little time to read from a different page the cost.
This post has been edited by oohmrparis: Aug 30 2014, 20:04
|
|
|
Sep 1 2014, 13:58
|
holy_demon
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10

|
QUOTE(holy_demon @ Aug 27 2014, 12:44)  Beta release, cos I coded while sleepy
No bug spotted so far... Apparently my code quality improves when I'm sleepy =_=
|
|
|
Sep 1 2014, 15:24
|
Dan31
Group: Members
Posts: 4,399
Joined: 26-March 12

|
Nevermind.
This post has been edited by Dan31: Sep 1 2014, 15:24
|
|
|
Sep 2 2014, 11:13
|
djackallstar
Group: Gold Star Club
Posts: 8,221
Joined: 23-July 14

|
Script removed.
This post has been edited by djackallstar: Sep 2 2014, 15:08
|
|
|
Sep 2 2014, 12:23
|
LostLogia4
Group: Gold Star Club
Posts: 2,716
Joined: 4-June 11

|
QUOTE(djackallstar @ Sep 2 2014, 17:13)  Download from external site You know, you can just put the script in ZIP file and upload it as reply attachment...
|
|
|
Sep 2 2014, 13:08
|
djackallstar
Group: Gold Star Club
Posts: 8,221
Joined: 23-July 14

|
QUOTE(LostLogia4 @ Sep 2 2014, 18:23)  You know, you can just put the script in ZIP file and upload it as reply attachment...
Yeah I know, but I prefer letting people capable of viewing the code online, or installing the script with one click without having to download and unzip the file. And for me, managing source code using Greasyfork/GitHub/Git is way more easier than using attachment.
|
|
|
Sep 2 2014, 13:36
|
holy_demon
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10

|
QUOTE(djackallstar @ Sep 2 2014, 19:13) 
2.You can also change var auto_submit = false to var auto_submit = true in the script, and the script will automatically click the "Add Reply" button for you.
Should just make it click the button automatically for you (IMG:[ invalid] style_emoticons/default/heh.gif)
|
|
|
Sep 2 2014, 13:48
|
djackallstar
Group: Gold Star Club
Posts: 8,221
Joined: 23-July 14

|
QUOTE(holy_demon @ Sep 2 2014, 19:36)  Should just make it click the button automatically for you :heh:
Fixed.
|
|
|
Sep 2 2014, 14:39
|
Colman
Group: Gold Star Club
Posts: 7,333
Joined: 15-November 10

|
I believe fully auto forum spammer should be banned.
|
|
|
Sep 2 2014, 15:07
|
djackallstar
Group: Gold Star Club
Posts: 8,221
Joined: 23-July 14

|
QUOTE(Colman @ Sep 2 2014, 20:39)  I believe fully auto forum spammer should be banned.
Script removed.
|
|
|
Sep 4 2014, 00:08
|
AngelW
Lurker
Group: Recruits
Posts: 5
Joined: 7-February 13

|
Hello,i'm kinda new and wanted to try a few scripts for HW but most of them sems to not work properly ...
The one that highlight items quality in the equipement and item shop for exemple,don't sems to work at all .
Are they expired or is it me doing something wrong ?
PS: found something that worked for me the very first version of HV Equipment Highlights 1.1.0 ,but all the newer ones do not display any color changes at all ....
This post has been edited by AngelW: Sep 4 2014, 00:35
|
|
|
|
 |
|
Sep 5 2014, 14:23
|
Dan31
Group: Members
Posts: 4,399
Joined: 26-March 12

|
QUOTE(AngelW @ Sep 4 2014, 00:08)  Hello,i'm kinda new and wanted to try a few scripts for HW but most of them sems to not work properly ...
The one that highlight items quality in the equipement and item shop for exemple,don't sems to work at all .
Are they expired or is it me doing something wrong ?
PS: found something that worked for me the very first version of HV Equipment Highlights 1.1.0 ,but all the newer ones do not display any color changes at all ....
You should use Holy Demon's Item Manager script ( here).
|
|
|
|
 |
|
Sep 5 2014, 15:39
|
holy_demon
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10

|
QUOTE(Dan31 @ Sep 5 2014, 22:23)  You should use Holy Demon's Item Manager script ( here). For clarification, my script don't highlight equipment, I might include that feature (customized highlighting) in future version but I will need to upgrade the localStorage into indexedDB first. In fact, the highlight you probably see in my screencap is done by a slightly modified version of k-kirei's Better Equipment ShopThis is the version I'm using (modified to highlight peerless and work in the 0.80 forge)
HV_Equip_Light.user.zip ( 1.77k )
Number of downloads: 81This post has been edited by holy_demon: Sep 5 2014, 15:42
|
|
|
|
 |
|
Sep 6 2014, 03:51
|
Usagi =
Group: Gold Star Club
Posts: 2,923
Joined: 29-October 13

|
Hi, so I have a question:
I know:
var xmon = document.getElementsByClassName('btm3'); var monster = xmon[0].children[0].innerHTML;
gives me the monster name of the first monster but its in some very long <div>blah</div> form, how can I change it to words so that I can do something like:
if (monster == 'konata')
instead of
if (monster == 'long<div>blah</div>")
|
|
|
|
 |
|
Sep 6 2014, 04:12
|
holy_demon
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10

|
QUOTE(LOL50015 @ Sep 6 2014, 11:51)  Hi, so I have a question:
I know:
var xmon = document.getElementsByClassName('btm3'); var monster = xmon[0].children[0].innerHTML;
gives me the monster name of the first monster but its in some very long <div>blah</div> form, how can I change it to words so that I can do something like:
if (monster == 'konata')
instead of
if (monster == 'long<div>blah</div>")
Use textContent instead of innerHTML. It only returns the content of text nodes Your shoud learn [ www.w3.org] CSS selectors and use querySelector like this CODE var xmon = document.querySelectorAll("btm3 * *"); var monster = xmon[0].textContent; This post has been edited by holy_demon: Sep 6 2014, 04:13
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
|
 |
 |
 |
|