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 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

 
post Sep 6 2014, 06:19
Post #1627
katatumri



Regular Poster
*****
Group: Members
Posts: 552
Joined: 18-September 13
Level 340 (Godslayer)


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

 
post Sep 6 2014, 14:27
Post #1628
lolzerznijmniewdupe



Casual Poster
****
Group: Members
Posts: 278
Joined: 9-July 08
Level 223 (Godslayer)


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

 
post Sep 7 2014, 06:55
Post #1629
Usagi =



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


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

 
post Sep 7 2014, 07:53
Post #1630
holy_demon



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


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

 
post Sep 7 2014, 08:22
Post #1631
Usagi =



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


QUOTE(holy_demon @ Sep 7 2014, 13:53) *

You're not using custom font.


omg suddenly it works! thank you!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Sep 8 2014, 17:09
Post #1632
lolzerznijmniewdupe



Casual Poster
****
Group: Members
Posts: 278
Joined: 9-July 08
Level 223 (Godslayer)


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

 
post Sep 8 2014, 17:50
Post #1633
holy_demon



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


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

 
post Sep 8 2014, 18:06
Post #1634
lolzerznijmniewdupe



Casual Poster
****
Group: Members
Posts: 278
Joined: 9-July 08
Level 223 (Godslayer)


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

 
post Sep 8 2014, 18:31
Post #1635
holy_demon



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


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)
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: 22nd September 2025 - 20:55