Welcome Guest ( Log In | Register )

291 Pages V « < 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 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: 768
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: 495
Joined: 15-April 14
Level 451 (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: 768
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: 768
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: 768
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,629
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,629
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: 887
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 offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 1 2016, 04:43
Post #2981
NerfThis



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


QUOTE(Barov @ May 1 2016, 00:20) *

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?


I update CracklingCast fix4 CracklingCast_v1_0_3_fix4.user.js.zip
See Description

And you should be edit code.
CODE

  if (hasGem()) {
    var g = document.getElementById('ikey_p').getAttribute('onmouseover');
    var type = g.slice(26, g.indexOf(' Gem'));
    var icon = "";
    switch (type) {
      case 'Mystic':
        icon = 'channeling.png';
        break;
      case 'Health':
        icon = 'healthpot.png';
        break;
      case 'Mana':
        icon = 'manapot.png';
        break;
      case 'Spirit':
        icon = 'spiritpot.png';
        break;
    }
    placeDisplay('/y/e/' + icon, "", function () {
      useGem();
    }, true, 0);
  }

  if (hp <= Settings.limits.heal) {
    var healAction = heal();
    if (healAction !== false) {
      placeDisplay(healAction[0], healAction[1], healAction[2], true, 0);
    }
    Common.state.paused = true;
  }


And if you want prevent pausing, //Common.state.paused = true; (not false, if set to false, above Common.state.paused value is change)
CODE

if (mp <= Settings.limits.mpotion && canUseItem('mpotion')) {
    placeDisplay(Icons.MPotion, 'width: 26px; height: 26px; border: 2px solid blue', function () {
      useItem('mpotion')
    });
    //Common.state.paused = true;
  }


I test few rounds on Iron v31 with reloader vanilla reloader.

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

 
post May 1 2016, 23:47
Post #2982
esam



Autistic Infidel
*******
Group: Members
Posts: 2,193
Joined: 23-January 16
Level 427 (Godslayer)


Ffs, no clue what I did but tried to remove the spirit stance icon since it would not disappear after being activated. Whilst trying that all icons have disappeared, when undoing what I did the icons will not come back.
Only two scripts activated, cracklingcast and reloader
Shouldn't have touched it mid DwD (IMG:[invalid] style_emoticons/default/cry.gif)

edit:i fiddled around in cracklingcast, didn't touch reloader

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

 
post May 2 2016, 01:32
Post #2983
ginjok



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


QUOTE(tatarime @ Apr 29 2016, 01:17) *



And Mana Draught is this way:
CODE
!$Replenishment; Mana Draught;

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



Thanks. (IMG:[invalid] style_emoticons/default/smile.gif)
But it seems to increase the usage of Draughts, as it "recasts" as soon as it is available again, and it doesn't "work" on the first round (initial casting has to be done manually?).
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 2 2016, 04:31
Post #2984
NerfThis



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


QUOTE(esam @ May 2 2016, 06:47) *

Ffs, no clue what I did but tried to remove the spirit stance icon since it would not disappear after being activated. Whilst trying that all icons have disappeared, when undoing what I did the icons will not come back.
Only two scripts activated, cracklingcast and reloader
Shouldn't have touched it mid DwD (IMG:[invalid] style_emoticons/default/cry.gif)

edit:i fiddled around in cracklingcast, didn't touch reloader


try my fix
and if you don't want accidentally multiple actions at a turn, you should be use reloader fix, too.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 2 2016, 04:41
Post #2985
tatarime



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


QUOTE(ginjok @ May 2 2016, 08:32) *

Thanks. (IMG:[invalid] style_emoticons/default/smile.gif)
But it seems to increase the usage of Draughts, as it "recasts" as soon as it is available again, and it doesn't "work" on the first round (initial casting has to be done manually?).

OK, please try this version.
Spell Spam #Reloader 3.5.2.16
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 2 2016, 12:06
Post #2986
Superlatanium



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


SmartSearch 1.2.1

Attached File  SmartSearch_1.2.1.user.js.txt ( 24.44k ) Number of downloads: 69


See latest post for the most up-to-date version

See first post here for initial info

Changes: The catastrophic localStorage error has been fixed.
  • Now uses IndexedDb instead of localStorage, because the sheer amount of saved text in forums (millions of characters) could not be held given localStorage's small size limit. You need a browser that supports IndexedDb. (The latest versions of Firefox and Chrome are fine)
  • On left-click, links are opened in a new tab instead of replacing the SmartSearch about:blank page. I still suggest using control-click though.
  • Links other than to hentaiverse.org are no longer saved in the database
  • 4 new columns: eid, price, thread saved timestamp, post edited timestamp.
  • Posts that were edited more than 60 days ago, or that were saved in the database more than 60 days ago, are now highlighted to warn you that the poster may not be active.
  • The ignore interface now has a button that lets you delete the thread from the database completely.
  • Various other minor fixes
  • Options: As seen at the top of the script, you may change the day limit before posts are marked as old (different color), as well as a couple other things.
Attached Image

(If you were using the temporary version 1.1.2 I secretly edited into my post yesterday, you'll need to uncomment dbDelete at the top and run the script, and afterwards similarly uncomment dbCreate and run the script)

Many things are different, so there are almost certainly still a couple problems here and there. Please let me know if you run into any of them.

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


291 Pages V « < 148 149 150 151 > » 
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: 23rd July 2025 - 18:38