Welcome Guest ( Log In | Register )

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

 
post Nov 18 2015, 00:43
Post #2336
Dan31



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


But what if you don't have Regen or Heartseeker/Arcane Focus yet and want to cast it as soon as you get the channeling effect?

Frankly, with unlimited potion uses, I don't mind paying the full MP cost for Heartseeker every now and then, so I don't want to be nitpicky about a few turns. (IMG:[invalid] style_emoticons/default/heh.gif)

But yeah, you may be right.

This post has been edited by Dan31: Nov 18 2015, 01:12
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 18 2015, 00:48
Post #2337
Superlatanium



Dreaming of optimizing the system
**********
Group: Gold Star Club
Posts: 7,601
Joined: 27-November 13
Level 500 (Godslayer)


QUOTE(Dan31 @ Nov 17 2015, 22:43) *
But what if you don't have Regen or Heartseeker/Arcane Focus yet and want to cast it as soon as you get the channeling effect?
Yep... or if you're about to cast a spell but would prefer to cast a costlier spell (Heartseeker) if you know you have channeling.

A user-set variable might be the best solution.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 18 2015, 00:58
Post #2338
Sapo84



Deus lo vult
********
Group: Gold Star Club
Posts: 3,332
Joined: 14-June 09
Level 500 (Ponyslayer)


QUOTE(Superlatanium @ Nov 17 2015, 23:48) *

A user-set variable might be the best solution.

Agreed (still, we are talking about 4 turns, I don't think it makes much difference, because when you use it with a gem you know you have the effect going, stopping the user at that points it's just annoying, so the choice would actually be between 0 and 5, I guess).

Actually the best would be a channelling icon like hoverplay (so that you notice it's there even if the script does not stop the actions yet) and a stop on 0 duration, but it would require more coding.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 18 2015, 02:48
Post #2339
kushinamilf



Newcomer
*
Group: Members
Posts: 20
Joined: 17-September 15
Level 241 (Godslayer)


QUOTE(Dan31 @ Nov 17 2015, 04:15) *

Fixed:
Attached File  Reloader.user.js.txt ( 21.15k ) Number of downloads: 3344


Thanks for your input.

your script is really impressive, but the code "Show current round at the bottom of the page" is not good for my laptop view because i cant see it and the size is very small, could u change the position to the top like "HVSTAT Slim script" did please (IMG:[invalid] style_emoticons/default/smile.gif) , thanks in advance (IMG:[invalid] style_emoticons/default/smile.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 18 2015, 11:49
Post #2340
Dan31



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


QUOTE(kushinamilf @ Nov 18 2015, 01:48) *

your script is really impressive, but the code "Show current round at the bottom of the page" is not good for my laptop view because i cant see it and the size is very small, could u change the position to the top like "HVSTAT Slim script" did please (IMG:[invalid] style_emoticons/default/smile.gif) , thanks in advance (IMG:[invalid] style_emoticons/default/smile.gif)

Yeah, I was thinking about doing this. I myself don't care much about the round counter as I like to play with the log disabled, meaning the round is always indicated in the log at the start of the battle and stays there.

I'll wait for Hoheneim's improvements first.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 18 2015, 13:52
Post #2341
kushinamilf



Newcomer
*
Group: Members
Posts: 20
Joined: 17-September 15
Level 241 (Godslayer)


QUOTE(Dan31 @ Nov 17 2015, 22:49) *

Yeah, I was thinking about doing this. I myself don't care much about the round counter as I like to play with the log disabled, meaning the round is always indicated in the log at the start of the battle and stays there.

I'll wait for Hoheneim's improvements first.

u can take your time friend, i will be waiting patiently (IMG:[invalid] style_emoticons/default/smile.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 18 2015, 16:00
Post #2342
Hoheneim



等価交換 - Tōka kōkan
*******
Group: Members
Posts: 1,245
Joined: 4-January 09
Level 421 (Dovahkiin)


QUOTE(kushinamilf @ Nov 18 2015, 01:48) *

your script is really impressive, but the code "Show current round at the bottom of the page" is not good for my laptop view because i cant see it and the size is very small, could u change the position to the top like "HVSTAT Slim script" did please (IMG:[invalid] style_emoticons/default/smile.gif) , thanks in advance (IMG:[invalid] style_emoticons/default/smile.gif)


Like this?

Attached Image

If you know how to edit the script, here's what you need to add in the round counter section:

right after the line:

x.id = 'round';

copy and paste the following lines:

var roundStyle = { 'position': 'absolute', 'left': '1080px', 'top': '15px', 'width': '120px', 'font-size': '20px', 'font-weight': 'bold', 'z-index': '10', 'text-align':'right'};
$('#round').css(roundStyle);


QUOTE(Dan31 @ Nov 18 2015, 10:49) *

Yeah, I was thinking about doing this. I myself don't care much about the round counter as I like to play with the log disabled, meaning the round is always indicated in the log at the start of the battle and stays there.

I'll wait for Hoheneim's improvements first.


If you want I could post here my version or I can send it to you to see if you could integrate my changes in a cleaner way into your script.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 18 2015, 16:17
Post #2343
Dan31



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


QUOTE(Hoheneim @ Nov 18 2015, 15:00) *

If you want I could post here my version or I can send it to you to see if you could integrate my changes in a cleaner way into your script.

It's okay to post it here directly.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 18 2015, 16:41
Post #2344
Hoheneim



等価交換 - Tōka kōkan
*******
Group: Members
Posts: 1,245
Joined: 4-January 09
Level 421 (Dovahkiin)


QUOTE(Dan31 @ Nov 18 2015, 15:17) *

It's okay to post it here directly.


Ok. Let me polish it a little (so that it's not an ugly mess of JS/jQuery) and I'll post it here.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 18 2015, 16:58
Post #2345
izpekopon



Fading into Oblivion
*******
Group: Members
Posts: 1,498
Joined: 27-August 15
Level 500 (Godslayer)


QUOTE(Dan31 @ Nov 17 2015, 07:27) *

Update for HV Reloader for Firefox:
Attached File  Reloader.user.js.txt ( 21.18k ) Number of downloads: 286

Now includes:
- HV Counter Plus (show turns, time, speed, credits, exp at the end of a battle serie)
- effect durations
- a round counter (disabled by default)
- option to reenable battle log (disabled by default)
- customizable settings (see beginning of script)

Please report any bug. Suggestions appreciated.

Previous version here.


QUOTE(Hoheneim @ Nov 18 2015, 22:41) *

Ok. Let me polish it a little (so that it's not an ugly mess of JS/jQuery) and I'll post it here.

Reloader update hype !!
Thanks guys for the effort.
This script has made my HV life relatively easier and much more enjoyable. (IMG:[invalid] style_emoticons/default/laugh.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 18 2015, 18:01
Post #2346
Hoheneim



等価交換 - Tōka kōkan
*******
Group: Members
Posts: 1,245
Joined: 4-January 09
Level 421 (Dovahkiin)


Here's my version of the Reloader Script:

Attached File  Reloader2.user.js.txt ( 26.8k ) Number of downloads: 259


Features Added:

1. Light Blue highlight color alert for Channeling and Channel gem Icon
2. Green highlight color alert for when Spirit Shield spell is about to run out
3. Replaced monster letters with numbers
4. Advanced Skill Hotkey Handling: Numpad + key to cycle weapon skills first, Enter to cycle Fus-Roh-Dah first. Handles OFC too.

Hotkey usage: cycle through the skills to select the desired one, then attack any monster to activate the skill

Minor fixes to existing code:

round counter shown above monster slots
hidden "next round" pop-up, so it won't flash at end of round
removed additional classes for the duration effects, styles handled in the relevant sections


The parts modified by me are pointed out by a comment, so you know you have to blame me if I botched something...


Bug reports, suggestion and constructive criticism are always welcome.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 18 2015, 18:43
Post #2347
izpekopon



Fading into Oblivion
*******
Group: Members
Posts: 1,498
Joined: 27-August 15
Level 500 (Godslayer)


QUOTE(Hoheneim @ Nov 19 2015, 00:01) *

Here's my version of the Reloader Script:

Attached File  Reloader2.user.js.txt ( 26.8k ) Number of downloads: 259


Features Added:

1. Light Blue highlight color alert for Channeling and Channel gem Icon
2. Green highlight color alert for when Spirit Shield spell is about to run out
3. Replaced monster letters with numbers
4. Advanced Skill Hotkey Handling: Numpad + key to cycle weapon skills first, Enter to cycle Fus-Roh-Dah first. Handles OFC too.

Hotkey usage: cycle through the skills to select the desired one, then attack any monster to activate the skill

Minor fixes to existing code:

round counter shown above monster slots
hidden "next round" pop-up, so it won't flash at end of round
removed additional classes for the duration effects, styles handled in the relevant sections
The parts modified by me are pointed out by a comment, so you know you have to blame me if I botched something...
Bug reports, suggestion and constructive criticism are always welcome.

Looks good, i found the 'Enter' key to shortcut OFC and T1, T2, T3 skills pretty useful.
Replaced monster letters with numbers, Awesome! now i don't have to count.
The green highlight for hen Spirit Shield spell is about to run out, didn't seem that useful.

Overall verdict: would use. (IMG:[invalid] style_emoticons/default/laugh.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 19 2015, 11:27
Post #2348
hc br



Veteran Poster
********
Group: Catgirl Camarilla
Posts: 3,729
Joined: 18-October 15
Level 500 (Ponyslayer)


background-BLACK V2
[attachmentid=74203]

(IMG:[i.imgur.com] http://i.imgur.com/UIbuD7D.png)

CODE
//Added by Hoheneim
            div.style.cssText = 'width:30px;display:inline-block;text-align:center;position:relative;margin-left:-30px;top:-4px;';
            div.firstChild.style.cssText = 'background:BLACK;min-width: 22px;border:1px solid black;padding:0;display:inline-block;font-weight:bold;height:12px;';



change to Dan31's

CODE
//Added by Hoheneim
            div.style.cssText = 'width:30px;display:inline-block;text-align:center;position:relative;margin-left:-30px;top:-4px;';
            div.firstChild.style.cssText = 'background:BLACK;min-width: 22px;padding:0;display:inline-block;font-weight:bold;height:12px;';


This post has been edited by hc br: Nov 19 2015, 18:43
User is online!Profile CardPM
Go to the top of the page
+Quote Post

 
post Nov 19 2015, 17:52
Post #2349
Dan31



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


QUOTE(hc br @ Nov 19 2015, 10:27) *

background-BLACK
[attachmentid=74187]

(IMG:[i.imgur.com] http://i.imgur.com/UIbuD7D.png)

CODE
//Added by Hoheneim
            div.style.cssText = 'width:30px;display:inline-block;text-align:center;position:relative;margin-left:-30px;top:-4px;';
            div.firstChild.style.cssText = 'background:BLACK;min-width: 22px;border:1px solid black;padding:0;display:inline-block;font-weight:bold;height:12px;';


If you change the background to black, you can remove the border.

CODE
//Added by Hoheneim
            div.style.cssText = 'width:30px;display:inline-block;text-align:center;position:relative;margin-left:-30px;top:-4px;';
            div.firstChild.style.cssText = 'background:BLACK;min-width: 22px;padding:0;display:inline-block;font-weight:bold;height:12px;';
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 19 2015, 23:37
Post #2350
Hoheneim



等価交換 - Tōka kōkan
*******
Group: Members
Posts: 1,245
Joined: 4-January 09
Level 421 (Dovahkiin)


QUOTE(Dan31 @ Nov 19 2015, 16:52) *

If you change the background to black, you can remove the border.

CODE
//Added by Hoheneim
            div.style.cssText = 'width:30px;display:inline-block;text-align:center;position:relative;margin-left:-30px;top:-4px;';
            div.firstChild.style.cssText = 'background:BLACK;min-width: 22px;padding:0;display:inline-block;font-weight:bold;height:12px;';



Actually, if you change the background to whatever color to match it with a custom page style of your liking I'd suggest using Stylish instead of hardcoding it in the script.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 20 2015, 00:03
Post #2351
Dan31



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


QUOTE(Hoheneim @ Nov 19 2015, 22:37) *

Actually, if you change the background to whatever color to match it with a custom page style of your liking I'd suggest using Stylish instead of hardcoding it in the script.

+1 for Stylish, applying css directly is much faster than with js.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 20 2015, 00:08
Post #2352
Dan31



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


I finally found a way to get rid of the ContextSwitch mumbo jumbo, which means Reloader doesn't require unsafeWindow anymore.

At the beginning, I tried using
CODE
addEventListener("submit", function(e){e.preventDefault();})

and then the alternative
CODE
<form onsubmit="return false;">

to stop the form from being submitted, but neither would work, because the battleform is submitted programatically with the submit() method, which doesn't fire a submit event (oddly enough). Eventually, I figured out I could simply override submit() with the SubmitAction() from Reloader. Done. (IMG:[invalid] style_emoticons/default/cool.gif)

Vanilla Reloader without unsafeWindow:
Attached File  Reloader.user.js.txt ( 4.4k ) Number of downloads: 106
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 20 2015, 15:12
Post #2353
tatarime



2016年12月208日
******
Group: Gold Star Club
Posts: 802
Joined: 23-June 10
Level 500 (Godslayer)


A little update of "Battle Stats Ex" script.
Show total time & turns per second... and some fix.

Attached Image

This script show detail of total damage & used item & passed turn counter.
I think, this works lightweight and convenient.
Please try it!
Attached File  HV___Battle_Stats_Ex.user.zip ( 2.05k ) Number of downloads: 93
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 20 2015, 15:33
Post #2354
Void Domain



Active Poster
*******
Group: Catgirl Camarilla
Posts: 2,131
Joined: 30-May 10
Level 500 (Godslayer)


QUOTE(tatarime @ Nov 20 2015, 21:12) *

A little update of "Battle Stats Ex" script.
Show total time & turns per second... and some fix.

Attached Image

This script show detail of total damage & used item & passed turn counter.
I think, this works lightweight and convenient.
Please try it!
Attached File  HV___Battle_Stats_Ex.user.zip ( 2.05k ) Number of downloads: 93


Thats amazing!!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 20 2015, 15:48
Post #2355
Void Domain



Active Poster
*******
Group: Catgirl Camarilla
Posts: 2,131
Joined: 30-May 10
Level 500 (Godslayer)


I think there is a little bug in line 137
change
CODE
    
button.value = data.turn + " turns\n" + timeValue  + " (" + (1000/(now-data.lastTime)).toFixed(2) + " t/s)";

to
CODE

button.value = data.turn + " turns\n" + timeValue  + " (" + (data.turn/totalTime).toFixed(2) + " t/s)";

should fix the problem
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


291 Pages V « < 116 117 118 119 > » 
Reply to this topicStart new topic
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 29th April 2025 - 04:44