Welcome Guest ( Log In | Register )

291 Pages V « < 147 148 149 150 151 > »   
Reply to this topicStart new topic
> HV Script Thread, Discuss your creations. Includes guidelines and infos for script creation (2020-02-28 upd)

 
post Apr 28 2016, 21:44
Post #2961
幻猫儿



Sweetness Overload!
**********
Group: Gold Star Club
Posts: 7,591
Joined: 4-December 15
Level 422 (Journeyman)


@garm0&f4tal
Thanks to both of you but I have issues running the reloader.
What I did was I downloaded the user.js file and dragged it into the "extensions" tab of my chrome (the same thing as what I did to the other 4 user.js files I downloaded) and it simply does not work.
Here is a screenshot from my extensions tab:Attached Image
The same method worked for showgem and bettermelee but did not work for hovermelee.
I'd like to know if I did anything wrong or additional things have to be done.

This post has been edited by 诱骗者迪卡伊: Apr 28 2016, 21:46
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 28 2016, 21:54
Post #2962
nobody_xxx



((´☻ω☻`) $◞౪◟$ (´☻ω☻`))
***********
Group: Gold Star Club
Posts: 13,753
Joined: 7-December 10
Level 496 (Godslayer)


you need tampermonkey extensions for some scripts like reloader and hoverplay (IMG:[invalid] style_emoticons/default/laugh.gif)

just download it from chrome webstore (IMG:[invalid] style_emoticons/default/heh.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 28 2016, 22:05
Post #2963
幻猫儿



Sweetness Overload!
**********
Group: Gold Star Club
Posts: 7,591
Joined: 4-December 15
Level 422 (Journeyman)


QUOTE(nobody_xxx @ Apr 28 2016, 21:54) *

you need tampermonkey extensions for some scripts like reloader and hoverplay (IMG:[invalid] style_emoticons/default/laugh.gif)

just download it from chrome webstore (IMG:[invalid] style_emoticons/default/heh.gif)


now it worked.
I just went to the actual thread, played with tampermonkey for a while and now it's running.
Thanks to you all (IMG:[invalid] style_emoticons/default/smile.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 28 2016, 22:24
Post #2964
f4tal



Veteran Poster
********
Group: Members
Posts: 2,662
Joined: 10-January 13
Level 416 (Godslayer)


QUOTE
I just went to the actual thread, played with tampermonkey for a while and now it's running.

You can find more useful information about script configuration and installation in special thread: forums.e-hentai.org/index.php?showtopic=191192
Good to know everything works for you.
Check this thread periodically - someday new version of reloader may be released =)

P.S. Checked my mediafire account - Reloader 1.3.3a was download 170 times and Reloader 1.3.3b was download 50 times. Not bad ^^
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 28 2016, 23:33
Post #2965
ginjok



The Villain
*******
Group: Gold Star Club
Posts: 1,736
Joined: 23-April 12
Level 500 (Godslayer)


I'm currently using these:
Reloader 1.3.3b,Spell Spam #Reloader 3.5.2.1, HV STAT Slim Mod #Reloader 0.2.16

If anyone know how to change these:

How to use a gem just by hovering?

Channeling on the last cast of the round requires manual input to skip to next round, any fix?

A way to right click to recast the draught when it expires?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 29 2016, 02:31
Post #2966
Superlatanium



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


Edit: Many things to do, I'll post the upgraded version in a day or few. 1.1.1 will be obsolete very soon. You may consider this as a nearly-broken preview only. (It will work in WTB just fine, but if you save more than a couple pages of WTS it will likely hit the localStorage limit quickly and break)

Edit2: No I'm serious, if you download it now you'll probably be disappointed, just wait a few hours

Edit3: Here's a preliminary version that doesn't break localStorage size limits, for those of you who are over-eager for a working version. Mostly untested, but it probably works on Firefox at least. Your browser must support IndexedDB.

Edit4: See latest post



SmartSearch 1.1.1


Before:
Want to buy an item from WTS at the best price? Click on every single thread on each of the 6 pages and control-F.
Want to sell an item in WTB at the best price? Click on every single thread on each of the 6 pages and control-F.
Want to find an equipment, such as Magnificent+ prefixed Rapier of the Nimble? Too bad, the search function doesn't support wildcards. You'll have to search for each prefix individually.
Magnificent Fiery Rapier of the Nimble
Legendary Fiery Rapier of the Nimble
Magnificent Shocking Rapier of the Nimble
Legendary Shocking Rapier of the Nimble
etc. Also, you can't filter search results for the first few posts of recent shop threads (the posts that have equipment lists), so the posts you find may be from players who haven't logged on in a year.
Now:
Want to buy an item from WTS at the best price? SmartSearch with a single click and get a list of every line in every thread in WTS that includes that item, all on one page.
Want to sell an item in WTB at the best price? SmartSearch and get a list of every line in every thread in WTB that includes that item, all on one page.
Want to find an equipment? SmartSearch for the equipment name (with wildcards if you want) and get a list of every line in every thread in WTS that matches (links to thread and equipment included). You also have the option of searching with a regular expression.
Quick start instructions:

Attached Image

Notes:
  • First "Save" every page in WTS and WTB, and then "Save" again every so often when you want to update the database.
  • Type in the search string and press SmartSearch while on WTS to search for threads in WTS, or while on WTB to search for threads in WTB.
  • Use * as a wildcard. You can also click the checkbox to search for a [www.regular-expressions.info] regular expression instead.
  • Not case sensitive. Both ordinary searches and regular expressions will match any case in the search string and search results.
  • Press "Ignore" to display an interface which gives you the option of ignoring the selected post, or the entire selected thread. From that interface you can also remove other posts and threads that you ignored in the past.
  • Strikethroughs strikethroughs and [url]s are preserved.
  • When Saving threads, multiple spaces in a post are all replaced with a single space, so you don't need to worry about search results not coming up due to the poster's bad formatting.
  • Can be used on forums 77 and 78 (WTS and WTB).
Try it, please report any bugs!

Edit: Working on (personal notes):
* On left-click, open links in new tab instead of replacing the SmartSearch about:blank page
* Local storage limits are preventing some people from saving many pages of threads. WTS in particular is eating up too much space. Compression algorithm? Don't compress SmartSearch.last ? Or IndexedDB?
* only HV links are saved
* Equipment EID column?
* "Post last edited" column?
* "Thread last saved" column?
* Price column? /(\d+[km])/i
* On ignore click, "remove from database" option?

All done, debugging and testing now...

This post has been edited by Superlatanium: May 2 2016, 12:06
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 29 2016, 03:17
Post #2967
tatarime



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


QUOTE(Superlatanium @ Apr 29 2016, 09:31) *

SmartSearch 1.1.1


Great!
You are great always! (IMG:[invalid] style_emoticons/default/laugh.gif)


----------
QUOTE(ginjok @ Apr 29 2016, 06:33) *

How to use a gem just by hovering?
Channeling on the last cast of the round requires manual input to skip to next round, any fix?
A way to right click to recast the draught when it expires?


Spell Spam #Reloader 3.5.2.15 stable / HV STAT Slim Mod #Reloader 0.2.17

It was updated.
And Mana Draught is this way:
CODE
!$Replenishment; Mana Draught;

Health = Regeneration, Spirit = Refreshment
Try it. (IMG:[invalid] style_emoticons/default/smile.gif)

----------
HV_ColorDebuff 0.3

Attached File  HV_ColorDebuff_0.3.user.zip ( 722bytes ) Number of downloads: 53


FEATURES:
  • Paint monsters in different colors
  • Silence: Red / Imperil: Green / Weaken: Blue
  • Support Reloader
Support: Firefox / Chrome
(This script is another player's request)

This post has been edited by tatarime: Feb 20 2017, 15:15
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 29 2016, 04:40
Post #2968
LazyShd



Need moar VNs
******
Group: Gold Star Club
Posts: 767
Joined: 5-May 13
Level 475 (Godslayer)


Hi everyone! Maybe someone could help me please?

Recently tried Crackling Cast - v1.0.3 but it didn't quite hit my tastes, but there was one feature that i really liked! It was about when your hp drops below certain level it stops and prevents all actions and if you just hit space bar it will heal you based on the priority of spells and potions that you listed.
How can i disable/delete everything else, so that only that feature will remain?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 29 2016, 07:11
Post #2969
FabulousCupcake



Casual Poster
****
Group: Gold Star Club
Posts: 490
Joined: 15-April 14
Level 448 (Dovahkiin)


QUOTE(Superlatanium @ Apr 29 2016, 02:31) *

SmartSearch 1.1.1


(IMG:[invalid] style_emoticons/default/wub.gif)

A random suggestion: create a price column?
With something like /(\d+[km])/i
Oh, maybe add the time when the shop datas are saved too, with clear button?
With relative time? (e.g. 10 minutes ago )

QUOTE(LazyShd)

Hi everyone! Maybe someone could help me please?

Recently tried Crackling Cast - v1.0.3 but it didn't quite hit my tastes, but there was one feature that i really liked! It was about when your hp drops below certain level it stops and prevents all actions and if you just hit space bar it will heal you based on the priority of spells and potions that you listed.
How can i disable/delete everything else, so that only that feature will remain?

You should be able to do this by disabling the event listeners on mousehover events.
(IMG:[r.kyaa.sg] https://r.kyaa.sg/erzgjr.png)

Or alternatively just comment the line calling the function hover().

This post has been edited by FabulousCupcake: Apr 29 2016, 07:12
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 29 2016, 10:54
Post #2970
NerfThis



Active Poster
*******
Group: Catgirl Camarilla
Posts: 2,467
Joined: 3-February 14
Level 500 (Ponyslayer)


QUOTE(LazyShd @ Apr 29 2016, 11:40) *

Hi everyone! Maybe someone could help me please?

Recently tried Crackling Cast - v1.0.3 but it didn't quite hit my tastes, but there was one feature that i really liked! It was about when your hp drops below certain level it stops and prevents all actions and if you just hit space bar it will heal you based on the priority of spells and potions that you listed.
How can i disable/delete everything else, so that only that feature will remain?


test this CracklingCast_v1_0_3_fix2.user.js.zip fix2 - Bug: Invalid target
CracklingCast_v1-0-3_fix3.user.js.zip
fix3 - Fixed bug: Invalid target
with
Reloader vanilla Reloader_vanilla_v1.1.1_fix1.user.js.zip
fix1 - Prevent ajax multiple request at a turn. (for CracklingCast)

Description

Changes:
Replace Spirit Stance image and Full-Cure.
Add hover area option.
Add stop when channeling buff and channeling buff image.
Change ccrack icon order. This change will make consume item order.
Settings.heal_rotation, channeling, gem, hp-mp-sp draught-potion-elixir, expire buff.

- Bug
// fix me: Middle click on monster pane, trigger normal attack on Iron v31 (not FF 46.0).


If you want Right click to use consume item
CODE

/**
* Middle Click listener
*/
window.addEventListener("mousedown", function (e) {
  if (e.button == 1) {
    e.preventDefault();
    var target = getMonsterUnderCursor(false);
    var tar = -1;
    var spell = pickSpell(Settings.spells.right);
    var detail = Spells[spell];

    if (detail) {
      if (detail[2] != -1) {
        tar = 0;
      }
      else if (target !== null && target.hasAttribute('onclick')) {
        tar = Number(target.id.slice(5, 6));
        if (tar == 0)
          tar = 10;
      }

      if (tar != -1)
        cast(spell, tar);
    }
  }
}, false);

/**
* Right Click listener
*/
window.addEventListener("contextmenu", function (e) {
  consumeItem();
  e.preventDefault();
}, false);


If you want stop when get gem.
Line: 482
CODE

placeDisplay('/y/e/' + icon, "", function () {
  useGem();
});
Common.state.paused = true;


This post has been edited by hansvar92: Apr 30 2016, 16:38
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 29 2016, 11:58
Post #2971
f4tal



Veteran Poster
********
Group: Members
Posts: 2,662
Joined: 10-January 13
Level 416 (Godslayer)


QUOTE
SmartSearch 1.1.1

This will be revolution in trading o_o
Extremely useful and effective script! Many-many-many thanks to you! (IMG:[invalid] style_emoticons/default/happy.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 29 2016, 12:02
Post #2972
LazyShd



Need moar VNs
******
Group: Gold Star Club
Posts: 767
Joined: 5-May 13
Level 475 (Godslayer)


FabulousCupcake and hansvar92

Big thanks for your help!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 29 2016, 18:55
Post #2973
LazyShd



Need moar VNs
******
Group: Gold Star Club
Posts: 767
Joined: 5-May 13
Level 475 (Godslayer)


And hello everyone again!

Need some more help with CracklingCast.
How can i make it not to interference with number keys at all? Because if i set
"num : ['Attack']"
attacking with number keys works with some lag when i spam them. And if i set
"num : []"
or even comment this line, then number keys do nothing at all!

So what i need to do with this script to teach him to forget and not interference with number keys in any matter?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 29 2016, 19:47
Post #2974
NerfThis



Active Poster
*******
Group: Catgirl Camarilla
Posts: 2,467
Joined: 3-February 14
Level 500 (Ponyslayer)


QUOTE(LazyShd @ Apr 30 2016, 01:55) *

And hello everyone again!

Need some more help with CracklingCast.
How can i make it not to interference with number keys at all? Because if i set
"num : ['Attack']"
attacking with number keys works with some lag when i spam them. And if i set
"num : []"
or even comment this line, then number keys do nothing at all!

So what i need to do with this script to teach him to forget and not interference with number keys in any matter?



do you want this? num key default hv action (remove CracklingCast's num keys binding)?
i go to sleep.

------
Edit: Remove code. avoid misunderstanding for reloader.

NOTE: DO NOT TRY KEY DOWN OR CLICK WHILE HOVER ATTACK.
IT WILL MAKE MULTIPLE AJAX (RELOADER) ACTION AT A TURN BY CracklingCast.


This post has been edited by hansvar92: Apr 30 2016, 09:19
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 29 2016, 20:01
Post #2975
LazyShd



Need moar VNs
******
Group: Gold Star Club
Posts: 767
Joined: 5-May 13
Level 475 (Godslayer)


QUOTE(hansvar92 @ Apr 29 2016, 21:47) *

do you want this? num key default hv action (remove CracklingCast's num keys binding)?
i go to sleep.

Yes! That's exactly what i wanted, thank you very much!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 30 2016, 09:42
Post #2976
Superlatanium



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


Is there anyone here who has experience with indexedDB? LocalStorage isn't big enough.

I've been trying to get indexedDB commands and libraries to cooperate with a userscript for hours but it's frustratingly complicated. I only want to work with a single object, such as:
CODE
//Retrieve from indexedDB, then execute callback
obj = dbCall(callback);

//Save to indexedDB, then execute callback
dbSave(obj, callback);
It seems like it'd be easy, but...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 30 2016, 12:33
Post #2977
t_t_z



Wall Poster
****
Group: Gold Star Club
Posts: 351
Joined: 25-December 12
Level 500 (Godslayer)


QUOTE(Superlatanium @ Apr 30 2016, 03:42) *

Is there anyone here who has experience with indexedDB? LocalStorage isn't big enough.

I've been trying to get indexedDB commands and libraries to cooperate with a userscript for hours but it's frustratingly complicated. I only want to work with a single object, such as:
CODE
//Retrieve from indexedDB, then execute callback
obj = dbCall(callback);

//Save to indexedDB, then execute callback
dbSave(obj, callback);
It seems like it'd be easy, but...


Not sure if it'll help, but here's part of custom code in one of my scripts:

Creating DB:
CODE

function updateMonsterDatabaseFunction(evt) {
        var files = evt.target.files; // FileList object

            var reader = new FileReader();

            // Closure to capture the file information.
            reader.onload = (function(theFile) {
                return function(e) {
                    var monsterData = tsvJSON(reader.result);
                    dbVersion = dbVersion + 1;
                    localStorage['HVMonsterBestiaryIndexedDbVersion_' + dbName] = dbVersion;
                    var request = window.indexedDB.open(dbName, dbVersion);
                    request.onerror = function(event) {
                        console.log("Error opening indexedDB");
                    };
                    request.onupgradeneeded = function(event) {
                        var monsterDatabase = event.target.result;
                        var objectStore = monsterDatabase.createObjectStore("monsters", {
                            keyPath: "Name"
                        });
                        objectStore.transaction.oncomplete = function(event){
                          var monsterObjectStore = monsterDatabase.transaction("monsters", "readwrite").objectStore("monsters");
                          for(var i in monsterData){
                            monsterObjectStore.add(monsterData[i]);
                          }
                        };
                    };
                    request.onsuccess = function(event){
                      database = event.target.result;
                    };
                };
            })(files[0]);
            reader.readAsText(files[0]);
    }
    document.getElementById('updateMonsterDatabase').addEventListener('change', updateMonsterDatabaseFunction, false);


Reading from DB:
CODE


    function updateMonster(targetDOM){
      if(targetDOM.children[2].children[0].children[0].src == 'http://hentaiverse.org/y/s/nbardead.png'){
          localStorage['priority_' + targetDOM.id] = Number.MIN_SAFE_INTEGER;
          return;
      }
      
      var monsterName = targetDOM.children[1].children[0].textContent;
      var request = window.indexedDB.open(dbName);
      request.onsuccess = function(event){
        database = event.target.result;
        var transaction = database.transaction(["monsters"]);
        var objectStore = transaction.objectStore("monsters");
        var getRequest = objectStore.get(monsterName);
        getRequest.onsuccess = function(event) {
          var monsterLvl = parseInt(targetDOM.children[0].children[1].textContent,10);
          var monsterHPString = targetDOM.children[2].children[0].children[1].textContent;
          var monsterMaxHP = parseInt(monsterHPString.slice(monsterHPString.indexOf("/")+2),10);
          localStorage['priority_' + targetDOM.id] = getMonsterPriority(getRequest.result, monsterLvl, monsterMaxHP);
          //targetDOM.children[0].innerHTML = "L" + monsterLvl + "<br />" + "P" + getRequest.result["Power Lvl"] + "<br />" + getRequest.result["Class"];
        };
        getRequest.onerror = function(event){
           localStorage['priority_' + targetDOM.id] = 0;//not in database; probably newly created and thus weak
          console.log("Error in getting from database");
          console.log(event);
        };
      };
      request.onerror = function(event){
        console.log("Error in opening " + dbName);
        console.log(event);
      };
      request.onupgradeneeded = function(event){
        event.target.transaction.abort();//DB doesn't exist; abort and don't create
      };
    }


What exactly are you trying to do?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 30 2016, 14:14
Post #2978
Superlatanium



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


QUOTE(tonytyzhang @ Apr 30 2016, 10:33) *
Not sure if it'll help, but here's part of custom code in one of my scripts:

What exactly are you trying to do?
Thanks.

All I want is to be able to save and retrieve one object. Prior code was
CODE
localStorage.SmartSearch = JSON.stringify(SmartSearch);
//or
SmartSearch = JSON.parse(localStorage.SmartSearch);
See what I posted yesterday. Once I can do the equivalent of that, I can handle everything else pretty easily. I might have gotten it, but it still feels absurd to need a few pages of code with IndexedDB instead of just a couple of lines with localStorage. The only reason I'm switching to IndexedDB is because localStorage's size limit is too small.

It took me some more hours of trial and error but I think I've got it working... maybe... in FF. We'll see... but it really feels like I'm doing something wrong when I need so many nested structures {domain => database name => objectStore => objectStoreKeyName => .get('1') } just to read and write my single data variable.

This post has been edited by Superlatanium: Apr 30 2016, 19:06
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 30 2016, 17:20
Post #2979
Barov



Casual Poster
***
Group: Members
Posts: 105
Joined: 20-March 15
Level 270 (Godslayer)


QUOTE(hansvar92 @ Apr 27 2016, 16:53) *



CracklingCast img src fix for hv v0.84 and add hover area. [attachmentid=84663]
fix3 - Fixed bug: Invalid target

This is temporary fix. I wait for simrock87's next update.
Description: here

Changes:
Replace Spirit Stance image and Full-Cure.
Add hover area option.
Add stop when channeling buff and channeling buff image.
Change ccrack icon order. This change will make consume item order.
Settings.heal_rotation, channeling, gem, hp-mp-sp draught-potion-elixir, expire buff.


Do you know how to change the gem/heal icons to activate on click rather than mouseover?

Also, would commenting out 507-518 simply prevent pausing for mana pots?

This post has been edited by Barov: Apr 30 2016, 17:40
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 30 2016, 19:14
Post #2980
Rhydin



Number Cruncher
******
Group: Gold Star Club
Posts: 884
Joined: 5-June 15
Level 500 (Ponyslayer)


QUOTE(Barov @ Apr 30 2016, 17:20) *

Do you know how to change the gem/heal icons to activate on click rather than mouseover?


This has been answered before already (couple pages back by now I guess):

Change the script like this (should be line 712)

function placeDisplay(icon, style, action) {
var img = document.getElementsByClassName('btp')[0].appendChild(document.createElement('img'));
img.id = 'h';
img.className = 'ccrack';
img.src = icon;
img.style.cssText = style;
img.onclick = action;

QUOTE(Barov @ Apr 30 2016, 17:20) *

Also, would commenting out 507-518 simply prevent pausing for mana pots?


Maybe by changing

CODE
Common.state.paused = true


into false
User is online!Profile CardPM
Go to the top of the page
+Quote Post


291 Pages V « < 147 148 149 150 151 > » 
Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 19th January 2025 - 13:19