Welcome Guest ( Log In | Register )

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

 
post May 10 2014, 01:10
Post #1308
simrock87



<('.'<) (>'.')> (^'.')>
*****
Group: Members
Posts: 647
Joined: 12-June 11
Level 399 (Godslayer)


QUOTE(treesloth16 @ May 9 2014, 03:49) *

No, I don't use spellspam. When I'm holding down 'r', and I spark, it's highly probable that I will die once I close the popup....

Just guessing here ... but have you checked the "Adjust key event handling not to overrun when an alert is shown" option in HVStats (works with Iron btw)?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 12 2014, 07:16
Post #1309
hell yeah



Casual Poster
****
Group: Members
Posts: 360
Joined: 11-July 11
Level 351 (Godslayer)


[quote name='Owyn' date='May 5 2014, 22:51' post='3238338']
MouseMelee Lightning++ / HoverPlay 1.4

Attached File  HoverPlay.user.js.zip ( 2.27k ) Number of downloads: 269


new in this release:
- and added (and tested 34.0.1847.131) support for Google Chrome

HoverPlay is working in Tampermonkey,but Tampermonkey slows my browser down
can it be modified to run without Tampermonkey like other HV script?

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

 
post May 12 2014, 23:30
Post #1310
Owyn



Casual Fapper
*****
Group: Members
Posts: 692
Joined: 12-May 10
Level 354 (Godslayer)


QUOTE
HoverPlay is working in Tampermonkey,but Tampermonkey slows my browser down
can it be modified to run without Tampermonkey like other HV script?

probbly it can, if you wrap the whole script into a function and inject it into head of the document as a <script> element (and change unsafeWindow to just window - it might get access right)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 13 2014, 17:15
Post #1311
holy_demon



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


just a small script I made on the side to help with my other HV projects.

HV Debug
Attached File  HVDebug.user.zip ( 449bytes ) Number of downloads: 129


Unlock the debug pane of Hentaiverse (outside of battle) and put it to the right. Use this if you are curious about what is going on inside HV engine. Recommended for usercript devs.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 14 2014, 07:53
Post #1312
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)


Maybe it's just me, but the No "You are Victorious" Popup script didn't work in Greasemonkey.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 17 2014, 00:16
Post #1313
Owyn



Casual Fapper
*****
Group: Members
Posts: 692
Joined: 12-May 10
Level 354 (Godslayer)


QUOTE(LostLogia4 @ May 14 2014, 09:53) *

Maybe it's just me, but the No "You are Victorious" Popup script didn't work in Greasemonkey.

I'm using this one, works fine in Firefox with GM

Attached File  HV_RoundEnder.user.js.zip ( 451bytes ) Number of downloads: 54
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 17 2014, 04:41
Post #1314
frankmelody



Θ..Θ
*******
Group: Gold Star Club
Posts: 1,314
Joined: 9-January 11
Level 500 (Godslayer)


Anyone who has some idea on counting the number of casting Tier3 offensive spell? For example, I want to count the number of Paradise Lost in an arena battle. My main difficulty is to obtain the number before "You cast XXX" in the battle log, for example:

4 1 You cast Paradise Lost

Any idea how to obtain the above "4" in a script? (use match function can locate "Paradise Lost")
=====
got answer myself
CODE

var table = document.getElementById("togpane_log");
var cells = table.getElementsByTagName("td");

var turnObjToArray = function(obj) {
  return [].map.call(obj, function(element) {
    return element;
  })
};


var listarray = turnObjToArray(cells);
tempt3 = [];

for (var k=0; k<listarray.length;k++)
{
    
if (String(listarray[k].outerText) == "You cast Paradise Lost.")
    tempt3.push(String(listarray[k-2].outerText));
}


tempt3 does the job

This post has been edited by frankmelody: May 17 2014, 05:52
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 17 2014, 08:25
Post #1315
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)


Anyone has a script to record the proficiency gains from the battle logs?

Here's the HTML elements to be retrieved:
<div id="togpane_log" class="bttp btlp"><table><td class="t3b turnEnd">
You gain 0.03 points of staff proficiency.
You gain 0.03 points of cloth armor proficiency.
You gain 0.03 points of elemental magic proficiency.
You gain 0.03 points of divine magic proficiency.
You gain 0.03 points of forbidden magic proficiency.
You gain 0.03 points of supportive magic proficiency.
You gain 0.03 points of deprecating magic proficiency.
</td></tbody></div>

This post has been edited by LostLogia4: May 17 2014, 08:37
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 17 2014, 08:27
Post #1316
kuro009



Peerless Retarded H-Collector of E-Hentai
*****
Group: Members
Posts: 747
Joined: 8-May 10
Level 303 (Godslayer)


Can anyone please make a script to hide the Locked equipments in the Forge and show only the unlocked ones? (For mass salvaging purpose)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 17 2014, 08:57
Post #1317
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(kuro009 @ May 17 2014, 14:27) *
Can anyone please make a script to hide the Locked equipments in the Forge and show only the unlocked ones? (For mass salvaging purpose)
Not a scriptwriter but locked equips have [div class="il"] element. If someone would teach me javascript well enough for the job perhaps I can reverse engineer one of holy_demon's script to make your requested script.

This post has been edited by LostLogia4: May 17 2014, 08:57
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 17 2014, 11:34
Post #1318
Inu Sakuya



Lottery Provider, Former FreeSHop Staff
******
Group: Gold Star Club
Posts: 829
Joined: 4-December 13
Level 411 (Godslayer)


Is there a possible way to track credits drop in arenas and battles?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 17 2014, 11:50
Post #1319
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(Twilight Sparkle1998 @ May 17 2014, 17:34) *
Is there a possible way to track credits drop in arenas and battles?
This should save your credit tracking woes. Well, as long as your browser and Net connection is stable enough for the job anyways.

This post has been edited by LostLogia4: May 17 2014, 11:51
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 17 2014, 12:08
Post #1320
holy_demon



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


QUOTE(LostLogia4 @ May 17 2014, 16:57) *

Not a scriptwriter but locked equips have [div class="il"] element. If someone would teach me javascript well enough for the job perhaps I can reverse engineer one of holy_demon's script to make your requested script.

Hint:
  1. Start with my HV Item Filter script
  2. locked equips will have either "il" or "ilp" class, and unlocked equips have "iu" or "iup" class (the ilp and iup class are for first equip of each equip type, with an empty space right above). I can guess the i stands for item, u/l stands for unlocked/locked, and p for paragraph (IMG:[invalid] style_emoticons/default/rolleyes.gif)
  3. to learn javascript, start/search [developer.mozilla.org] here
Well gl (IMG:[invalid] style_emoticons/default/tongue.gif)

This post has been edited by holy_demon: May 17 2014, 12:19
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 17 2014, 13:19
Post #1321
ctxl



バカ
****
Group: Members
Posts: 425
Joined: 20-May 12
Level 455 (Godslayer)


QUOTE(kuro009 @ May 16 2014, 23:27) *
Can anyone please make a script to hide the Locked equipments in the Forge and show only the unlocked ones? (For mass salvaging purpose)

Paste the following into the developer console:

CODE
var x = document.querySelectorAll(".il, .ilp"); for (var i = x.length - 1; i >= 0; i -= 1) x[i].parentNode.style.display = "none";


Demo GIF:

Attached Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 17 2014, 13:21
Post #1322
kuro009



Peerless Retarded H-Collector of E-Hentai
*****
Group: Members
Posts: 747
Joined: 8-May 10
Level 303 (Godslayer)


QUOTE(holy_demon @ May 17 2014, 15:38) *

Hint:
  1. Start with my HV Item Filter script
  2. locked equips will have either "il" or "ilp" class, and unlocked equips have "iu" or "iup" class (the ilp and iup class are for first equip of each equip type, with an empty space right above). I can guess the i stands for item, u/l stands for unlocked/locked, and p for paragraph (IMG:[invalid] style_emoticons/default/rolleyes.gif)
  3. to learn javascript, start/search [developer.mozilla.org] here
Well gl (IMG:[invalid] style_emoticons/default/tongue.gif)

Nah, removeChild() can do the job, but I'm too lazy to code right now. (IMG:[invalid] style_emoticons/default/rolleyes.gif)
Your Item Filter will be just fine, (for now). (IMG:[invalid] style_emoticons/default/duck.gif)

QUOTE(ctxl @ May 17 2014, 16:49) *

Paste the following into the developer console:
CODE
var x = document.querySelectorAll(".il, .ilp"); for (var i = x.length - 1; i >= 0; i -= 1) x[i].parentNode.style.display = "none";


Many many thanks for the code.
Here is the userscript version:
Attached File  Salvage_Mode.user.zip ( 561bytes ) Number of downloads: 56


This post has been edited by kuro009: May 17 2014, 13:36
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 17 2014, 18:15
Post #1323
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(holy_demon @ May 17 2014, 18:08) *
Hint:
  1. Start with my HV Item Filter script
  2. locked equips will have either "il" or "ilp" class, and unlocked equips have "iu" or "iup" class (the ilp and iup class are for first equip of each equip type, with an empty space right above). I can guess the i stands for item, u/l stands for unlocked/locked, and p for paragraph (IMG:[invalid] style_emoticons/default/rolleyes.gif)
  3. to learn javascript, start/search [developer.mozilla.org] here
Well gl (IMG:[invalid] style_emoticons/default/tongue.gif)
Unfortunately, it'll takes much more to create a proficiency statistics script (the very script that I wanted!). I'm not gonna dream big and make it as elaborate as HVSTAT atm, but I want it to be able to record the individual instances of proficiency gains and store it in localstorage file as logs at bare minimum.

I've got the list of HTML elements to be retrieved (incomplete), but that's it.

<div id="togpane_log" class="bttp btlp"><table><td class="t3b turnEnd">
You gain 0.03 points of staff proficiency.
You gain 0.03 points of cloth armor proficiency.
You gain 0.03 points of elemental magic proficiency.
You gain 0.03 points of divine magic proficiency.
You gain 0.03 points of forbidden magic proficiency.
You gain 0.03 points of supportive magic proficiency.
You gain 0.03 points of deprecating magic proficiency.
</td></tbody></div>

The only other way I could think about is to reverse engineer HVSTAT... and man, ain't that a heavy code, and I could barely even recognize the prof retrieving codes at all, let alone reverse engineer them.

QUOTE(kuro009 @ May 17 2014, 19:21) *
Many many thanks for the code.
Here is the userscript version:
Attached File  Salvage_Mode.user.zip ( 561bytes ) Number of downloads: 56
Uh, it didn't work for me...


This post has been edited by LostLogia4: May 17 2014, 18:37
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 19 2014, 06:26
Post #1324
Razor320



Casual Poster
***
Group: Members
Posts: 220
Joined: 17-October 13
Level 361 (Godslayer)


LostLogia4, try regular expressions.

Sample code to parse line of such kind.
CODE

var regexp = /You\sgain\s(\d+(?:\.\d+))\spoints\sof\s(.+?)\sproficiency/;
var result = regexp.exec(text);

var proficiencyKind = result[2];
var proficiencyGain = parseFloat(result[1]);



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

 
post May 19 2014, 07:13
Post #1325
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(Razor320 @ May 19 2014, 12:26) *
LostLogia4, try regular expressions.

Sample code to parse line of such kind.
CODE

var regexp = /You\sgain\s(\d+(?:\.\d+))\spoints\sof\s(.+?)\sproficiency/;
var result = regexp.exec(text);

var proficiencyKind = result[2];
var proficiencyGain = parseFloat(result[1]);
Thanks, will find a way to write the script after I get my way around Javascript, if nobody else did already.

Anyway, more importantly, I'll need a shopkeeper version of "HV - Item Menu for 0.78" script with "Equipment Popup" which displays equip popup (to bypass no-hotkey scripts) and a "Send" option which brings me to the Mooglemail screen with the equips attached while removing the Salvage and Send to freeSHOP option... Urgently.

This post has been edited by LostLogia4: May 19 2014, 13:14
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 20 2014, 03:55
Post #1326
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)


Got this kind of problem:

(IMG:[i.imgur.com] https://i.imgur.com/fwuejgd.png)

And the error log along with it (yeah, I just learned debugging just today).

TypeError: y.onclick is not a function 077c.js:1
POST http://hentaiverse.org/ [HTTP/1.1 200 OK 297ms]
TypeError: y.onclick is not a function 077c.js:1
error {target: IDBRequest, currentTarget: IDBRequest, eventPhase: 2, bubbles: true, cancelable: true, defaultPrevented: false, timeStamp: 1400550701187000, originalTarget: IDBRequest, explicitOriginalTarget: IDBRequest, isTrusted: true, NONE: 0}

And a few more:
[object DeadObject] hvstat.user.js:1748
AbortError hvstat.user.js:1746
error {target: IDBRequest, currentTarget: IDBRequest, eventPhase: 2, bubbles: true, cancelable: true, defaultPrevented: false, timeStamp: 1400550840640000, originalTarget: IDBRequest, explicitOriginalTarget: IDBRequest, isTrusted: true, NONE: 0}
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 20 2014, 06:12
Post #1327
Kazetenshi



No Credits No Problems
****
Group: Members
Posts: 314
Joined: 8-August 12
Level 318 (Godslayer)


QUOTE(kuro009 @ May 17 2014, 13:21) *

Nah, removeChild() can do the job, but I'm too lazy to code right now. (IMG:[invalid] style_emoticons/default/rolleyes.gif)
Your Item Filter will be just fine, (for now). (IMG:[invalid] style_emoticons/default/duck.gif)
Many many thanks for the code.
Here is the userscript version:
Attached File  Salvage_Mode.user.zip ( 561bytes ) Number of downloads: 56



I think you might want to change the @match in that userscript, at least I had to in order to make it work.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


291 Pages V « < 65 66 67 68 > » 
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 - 18:54