Welcome Guest ( Log In | Register )

291 Pages V « < 80 81 82 83 > »   
Reply to this topicStart new topic
> HV Script Thread, Discuss your creations. Includes guidelines and infos for script creation (2020-02-28 upd)

 
post Aug 30 2014, 06:05
Post #1607
djackallstar



ดีjackallstar
**********
Group: Gold Star Club
Posts: 8,221
Joined: 23-July 14
Level 500 (Godslayer)


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

 
post Aug 30 2014, 12:48
Post #1608
oohmrparis



We are ping-pong player
*****
Group: Gold Star Club
Posts: 524
Joined: 18-June 13
Level 500 (Ponyslayer)


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

 
post Aug 30 2014, 13:26
Post #1609
Dan31



Chilling around
********
Group: Members
Posts: 4,399
Joined: 26-March 12
Level 491 (Godslayer)


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

 
post Aug 30 2014, 14:47
Post #1610
djackallstar



ดีjackallstar
**********
Group: Gold Star Club
Posts: 8,221
Joined: 23-July 14
Level 500 (Godslayer)


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

 
post Aug 30 2014, 15:00
Post #1611
oohmrparis



We are ping-pong player
*****
Group: Gold Star Club
Posts: 524
Joined: 18-June 13
Level 500 (Ponyslayer)


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

 
post Aug 30 2014, 18:54
Post #1612
oohmrparis



We are ping-pong player
*****
Group: Gold Star Club
Posts: 524
Joined: 18-June 13
Level 500 (Ponyslayer)


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

 
post Sep 1 2014, 13:58
Post #1613
holy_demon



Osananajimi<3
*********
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10
Level 500 (Godslayer)


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

 
post Sep 1 2014, 15:24
Post #1614
Dan31



Chilling around
********
Group: Members
Posts: 4,399
Joined: 26-March 12
Level 491 (Godslayer)


Nevermind.

This post has been edited by Dan31: Sep 1 2014, 15:24
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 2 2014, 11:13
Post #1615
djackallstar



ดีjackallstar
**********
Group: Gold Star Club
Posts: 8,221
Joined: 23-July 14
Level 500 (Godslayer)


Script removed.

This post has been edited by djackallstar: Sep 2 2014, 15:08
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 2 2014, 12:23
Post #1616
LostLogia4



Translating Miku's Yuri Nikki for the heck of it~~
********
Group: Gold Star Club
Posts: 2,716
Joined: 4-June 11
Level 362 (Godslayer)


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

 
post Sep 2 2014, 13:08
Post #1617
djackallstar



ดีjackallstar
**********
Group: Gold Star Club
Posts: 8,221
Joined: 23-July 14
Level 500 (Godslayer)


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

 
post Sep 2 2014, 13:36
Post #1618
holy_demon



Osananajimi<3
*********
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10
Level 500 (Godslayer)


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

 
post Sep 2 2014, 13:48
Post #1619
djackallstar



ดีjackallstar
**********
Group: Gold Star Club
Posts: 8,221
Joined: 23-July 14
Level 500 (Godslayer)


QUOTE(holy_demon @ Sep 2 2014, 19:36) *

Should just make it click the button automatically for you :heh:

Fixed.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 2 2014, 14:39
Post #1620
Colman



Where is the loli?
*********
Group: Gold Star Club
Posts: 7,333
Joined: 15-November 10
Level 500 (Ponyslayer)


I believe fully auto forum spammer should be banned.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 2 2014, 15:07
Post #1621
djackallstar



ดีjackallstar
**********
Group: Gold Star Club
Posts: 8,221
Joined: 23-July 14
Level 500 (Godslayer)


QUOTE(Colman @ Sep 2 2014, 20:39) *

I believe fully auto forum spammer should be banned.

Script removed.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 4 2014, 00:08
Post #1622
AngelW



Lurker
Group: Recruits
Posts: 5
Joined: 7-February 13
Level 213 (Destined)


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

 
post Sep 5 2014, 14:23
Post #1623
Dan31



Chilling around
********
Group: Members
Posts: 4,399
Joined: 26-March 12
Level 491 (Godslayer)


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

 
post Sep 5 2014, 15:39
Post #1624
holy_demon



Osananajimi<3
*********
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10
Level 500 (Godslayer)


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 ofk-kirei's Better Equipment Shop

This is the version I'm using (modified to highlight peerless and work in the 0.80 forge)

Attached File  HV_Equip_Light.user.zip ( 1.77k ) Number of downloads: 81


This post has been edited by holy_demon: Sep 5 2014, 15:42
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 6 2014, 03:51
Post #1625
Usagi =



Veteran Poster
********
Group: Gold Star Club
Posts: 2,923
Joined: 29-October 13
Level 453 (Dovahkiin)


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

 
post Sep 6 2014, 04:12
Post #1626
holy_demon



Osananajimi<3
*********
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10
Level 500 (Godslayer)


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


291 Pages V « < 80 81 82 83 > » 
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: 16th September 2025 - 08:45