 |
 |
 |
HV Script Thread, Discuss your creations. Includes guidelines and infos for script creation (2020-02-28 upd) |
|
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
|
|
|
|
 |
|
Sep 6 2014, 06:19
|
katatumri
Group: Members
Posts: 552
Joined: 18-September 13

|
It is the dawn of a new day! Reflecting on your journey so far, you find that you are a little wiser. You gain 7,862,096 EXP! You gain 225 Credits
|
|
|
|
 |
|
Sep 6 2014, 14:27
|
lolzerznijmniewdupe
Group: Members
Posts: 278
Joined: 9-July 08

|
QUOTE(screwit @ Jan 7 2014, 16:45)  Just wondering, is there a script which displays the damage done by a monster next to its box?
I'm searching for exactly that. A script to show how much damage a monster did to me. If nothing like this exists, how much would it cost to have it made for me? The basics would be each monster has damage done shown next to it (it can be after the box, I play fullscreen tab anyway) and the monster that did the most has that damage in red. Similarly, a second number would show total dmg done. It doesn't need to store anything, I know there's a scrollback limit now but I'm happy with the total damage even if it's only X latest rounds that's only shown. I can explain in detail once someone is interested. As for how much I'd pay, I'm broke. At best I can get 2 hath a day, so prices like 100 hath are ridiculously out of my reach.
|
|
|
|
 |
|
Sep 7 2014, 06:55
|
Usagi =
Group: Gold Star Club
Posts: 2,923
Joined: 29-October 13

|
QUOTE(holy_demon @ Sep 6 2014, 10:12)  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; lol I'm just a newbie who only know very basic things (IMG:[ invalid] style_emoticons/default/cry.gif) I don't know, but textContent always return " " for me. As an experiment, I try using: var a = document.getElementsByClassName("btm3")[0].querySelectorAll(".fd2>div")[0]; to get the first character of the first monster's name, which is "<div class="f2lb f250"></div>" then I do: a.textContent and it returns " " maybe I'm doing something wrong? I'm using iron 37 btw. This post has been edited by LOL50015: Sep 7 2014, 06:55
|
|
|
|
 |
|
Sep 7 2014, 07:53
|
holy_demon
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10

|
QUOTE(LOL50015 @ Sep 7 2014, 14:55)  lol I'm just a newbie who only know very basic things (IMG:[ invalid] style_emoticons/default/cry.gif) I don't know, but textContent always return " " for me. As an experiment, I try using: var a = document.getElementsByClassName("btm3")[0].querySelectorAll(".fd2>div")[0]; to get the first character of the first monster's name, which is "<div class="f2lb f250"></div>" then I do: a.textContent and it returns " " maybe I'm doing something wrong? I'm using iron 37 btw. You're not using custom font.
|
|
|
Sep 7 2014, 08:22
|
Usagi =
Group: Gold Star Club
Posts: 2,923
Joined: 29-October 13

|
QUOTE(holy_demon @ Sep 7 2014, 13:53)  You're not using custom font.
omg suddenly it works! thank you!
|
|
|
|
 |
|
Sep 8 2014, 17:09
|
lolzerznijmniewdupe
Group: Members
Posts: 278
Joined: 9-July 08

|
QUOTE(lolzerznijmniewdupe @ Sep 6 2014, 14:27)  I'm searching for exactly that. A script to show how much damage a monster did to me.
If nothing like this exists, how much would it cost to have it made for me? The basics would be each monster has damage done shown next to it (it can be after the box, I play fullscreen tab anyway) and the monster that did the most has that damage in red. Similarly, a second number would show total dmg done. It doesn't need to store anything, I know there's a scrollback limit now but I'm happy with the total damage even if it's only X latest rounds that's only shown.
I can explain in detail once someone is interested. As for how much I'd pay, I'm broke. At best I can get 2 hath a day, so prices like 100 hath are ridiculously out of my reach.
Any feedback would be nice. It would let me know if there's no interest due to price/complexity/lack of interest.
|
|
|
|
 |
|
Sep 8 2014, 17:50
|
holy_demon
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10

|
QUOTE(lolzerznijmniewdupe @ Sep 9 2014, 01:09)  Any feedback would be nice. It would let me know if there's no interest due to price/complexity/lack of interest.
It's not simple, since it requires a lot of fiddling with regexp on the battle log, and regexp is a big pain in the ass. (IMG:[ invalid] style_emoticons/default/heh.gif) And the script doesn't even sound that useful for that amount of work. To put in perspective, a standalone HP scaling script (outside of HVStat) is in high demand, but nobody has bothered to release it, and that script is much simpler than what you want (only reading the first few line if the log vs reading all damage line of the log)
|
|
|
|
 |
|
Sep 8 2014, 18:06
|
lolzerznijmniewdupe
Group: Members
Posts: 278
Joined: 9-July 08

|
QUOTE(holy_demon @ Sep 8 2014, 17:50)  It's not simple, since it requires a lot of fiddling with regexp on the battle log, and regexp is a big pain in the ass. (IMG:[ invalid] style_emoticons/default/heh.gif) And the script doesn't even sound that useful for that amount of work. Thank you for replying. I don't know anything about JS, but regexping for "you for" from a block of text isn't much fiddling at all. Anything before that starting from "t3"> gets matched against the list of monsters and any number between the space after "for" and a second space is the number that gets displayed. Javascript is completely alien to me, but retrieving such data from the battle log isn't much of a hassle, unless I'm missing some sort of hurdle.
|
|
|
|
 |
|
Sep 8 2014, 18:31
|
holy_demon
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10

|
QUOTE(lolzerznijmniewdupe @ Sep 9 2014, 02:06)  I don't know anything about JS, but regexping for "you for" from a block of text isn't much fiddling at all. Anything before that starting from "t3"> gets matched against the list of monsters and any number between the space after "for" and a second space is the number that gets displayed.
Javascript is completely alien to me, but retrieving such data from the battle log isn't much of a hassle, unless I'm missing some sort of hurdle.
The biggest pain of working with regexp in this case is to figure out where to start reading from and where to stop reading. You will also need to get the monster name so you can match with the monster list. How are you going to regexp from a monster called "I hit you for 9000"? On top all of that you will need to sort and manage those numbers, and persist the data between pageload. JS is relatively easy language to learn if you're already experienced in programming. It took me about 4 days to teach myself JS and write SpellSpam, using HV KeyBind as a sort of template. So yeah, use this project as an occasion to learn JS (IMG:[ invalid] style_emoticons/default/sleep.gif)
|
|
|
|
 |
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
|
 |
 |
 |
|