Welcome Guest ( Log In | Register )

291 Pages V « < 89 90 91 92 > »   
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 11 2014, 17:09
Post #1796
oohmrparis



We are ping-pong player
*****
Group: Gold Star Club
Posts: 524
Joined: 18-June 13
Level 500 (Ponyslayer)


while ago of the code was a mistake (IMG:[invalid] style_emoticons/default/sad.gif)

CODE
if (settings.effectDurations) {
    var targets = $a('img[onmouseover^="battle.set_infopane_effect"]'), i = targets.length;
    while (i --) {
       var duration = targets[i].getAttribute('onmouseover').match(/, ([-\d]+)\)/);
       if (!duration || duration < 0) duration = '-';
       else duration = duration[1];
       var div = targets[i].parentNode.insertBefore(create('div'),targets[i].nextSibling);
       div.appendChild(create('div')).innerHTML = duration;
       div.className = 'duration';
    }
}


↓this

CODE
if (settings.effectDurations) {
   var targets = $a('img[onmouseover^="battle.set_infopane_effect"]'), i = targets.length;
   while (i --) {
     var text = targets[i].getAttribute('onmouseover'),
       duration = text.match(/, ([-\d]+)\)/),
       stack = text.match(/x\d/);
     if (!duration || duration < 0) duration = '-';
     else duration = duration[1];
     var div = targets[i].parentNode.insertBefore(create('div'), targets[i].nextSibling);
     div.appendChild(create('div')).innerHTML = duration;
     div.className = 'duration';
     if (stack) {
       var left = targets[i].offsetLeft + 16,
         div2 = targets[i].parentNode.insertBefore(create('div'), div.nextSibling);
       div2.appendChild(create('div')).innerHTML = stack;
       div2.style.cssText ='position:absolute;width:12px;top:2px;left:'+left+'px;background:#FF6600;border:1px solid black;font-size:7pt;font-weight:bold;text-align:center;';
     }
   }
}


Background color change (IMG:[invalid] style_emoticons/default/tongue.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 11 2014, 17:50
Post #1797
kumosu



Nazchu~
****
Group: Members
Posts: 428
Joined: 11-July 14
Level 300 (Hero)


Ok, I tested. It's work perfectly now. (IMG:[invalid] style_emoticons/default/biggrin.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 11 2014, 18:14
Post #1798
Dead-ed



Niten = 我が両刀に断てぬもの無し。
********
Group: Members
Posts: 3,577
Joined: 4-March 14
Level 500 (Godslayer)


QUOTE(oohmrparis @ Nov 11 2014, 08:09) *


thanks (IMG:[invalid] style_emoticons/default/biggrin.gif) I'd love to test it.
Reward sent.

This post has been edited by Dead-ed: Nov 11 2014, 18:16
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 11 2014, 23:37
Post #1799
oohmrparis



We are ping-pong player
*****
Group: Gold Star Club
Posts: 524
Joined: 18-June 13
Level 500 (Ponyslayer)


QUOTE(Dead-ed @ Nov 11 2014, 18:14) *

thanks (IMG:[invalid] style_emoticons/default/biggrin.gif) I'd love to test it.
Reward sent.

Thanks. (IMG:[invalid] style_emoticons/default/cool2.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 12 2014, 13:58
Post #1800
Tugamos



Casual Poster
***
Group: Members
Posts: 153
Joined: 18-September 14
Level 236 (Godslayer)


Just saying thanks! (IMG:[invalid] style_emoticons/default/smile.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 13 2014, 00:41
Post #1801
Delques1843



Newcomer
**
Group: Members
Posts: 76
Joined: 21-December 13
Level 98 (Lord)


QUOTE(oohmrparis @ Nov 11 2014, 08:51) *

What's the monster stack?



Great! It works now! Thanks!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 13 2014, 08:50
Post #1802
Dead-ed



Niten = 我が両刀に断てぬもの無し。
********
Group: Members
Posts: 3,577
Joined: 4-March 14
Level 500 (Godslayer)


QUOTE(oohmrparis @ Nov 11 2014, 14:37) *

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

tested & it works great. (IMG:[invalid] style_emoticons/default/biggrin.gif)
btw, how can i combine it with Owyn's Hoverplay? Just because hvstat slim has overlaping function with it, i just need the stack function. I've tried but obviously i screwed up. (IMG:[invalid] style_emoticons/default/faint.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 13 2014, 09:04
Post #1803
kumosu



Nazchu~
****
Group: Members
Posts: 428
Joined: 11-July 14
Level 300 (Hero)


QUOTE(Dead-ed @ Nov 13 2014, 15:50) *

tested & it works great. (IMG:[invalid] style_emoticons/default/biggrin.gif)
btw, how can i combine it with Owyn's Hoverplay? Just because hvstat slim has overlaping function with it, i just need the stack function. I've tried but obviously i screwed up. (IMG:[invalid] style_emoticons/default/faint.gif)

In HV STAT slim:
adjustkey : true,
effectDurations : true,
gemIcon : true,
skillHotkey : false,
roundCounter : true,
noPopup : true,
popupTime : 000,
sparkAlert : false,
HPalert : true,
HPpercentage : 60,
MPalert : true,
MPpercentage : 10,
SPalert : false,
SPpercentage : 1,
channeling : false,
turnEndborder : false,
equippedSet : false

Turn everything except effectDurations into false:

adjustkey : false,
effectDurations : true,
gemIcon : false,
skillHotkey : false,
roundCounter : false,
noPopup : false,
popupTime : 000,
sparkAlert : false,
HPalert : false,
HPpercentage : 60,
MPalert : false,
MPpercentage : 10,
SPalert : false,
SPpercentage : 1,
channeling : false,
turnEndborder : false,
equippedSet : false

Check if it work, I think the gemIcon is the main problem.. If you need something just turn value to true.

This post has been edited by kumosu: Nov 13 2014, 09:11
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 13 2014, 09:22
Post #1804
Dead-ed



Niten = 我が両刀に断てぬもの無し。
********
Group: Members
Posts: 3,577
Joined: 4-March 14
Level 500 (Godslayer)


QUOTE(kumosu @ Nov 13 2014, 00:04) *

In HV STAT slim:
adjustkey : true,
effectDurations : true,
gemIcon : true,
skillHotkey : false,
roundCounter : true,
noPopup : true,
popupTime : 000,
sparkAlert : false,
HPalert : true,
HPpercentage : 60,
MPalert : true,
MPpercentage : 10,
SPalert : false,
SPpercentage : 1,
channeling : false,
turnEndborder : false,
equippedSet : false

Turn everything except effectDurations into false:

adjustkey : false,
effectDurations : true,
gemIcon : false,
skillHotkey : false,
roundCounter : false,
noPopup : false,
popupTime : 000,
sparkAlert : false,
HPalert : false,
HPpercentage : 60,
MPalert : false,
MPpercentage : 10,
SPalert : false,
SPpercentage : 1,
channeling : false,
turnEndborder : false,
equippedSet : false

Check if it work, I think the gemIcon is the main problem.. If you need something just turn value to true.

I just delete them & it works (IMG:[invalid] style_emoticons/default/tongue.gif) i like compact script
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 13 2014, 10:43
Post #1805
oohmrparis



We are ping-pong player
*****
Group: Gold Star Club
Posts: 524
Joined: 18-June 13
Level 500 (Ponyslayer)


QUOTE(Dead-ed @ Nov 13 2014, 08:50) *

tested & it works great. (IMG:[invalid] style_emoticons/default/biggrin.gif)
btw, how can i combine it with Owyn's Hoverplay? Just because hvstat slim has overlaping function with it, i just need the stack function. I've tried but obviously i screwed up. (IMG:[invalid] style_emoticons/default/faint.gif)


need hoverplay in stack display only? with duration?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 13 2014, 11:30
Post #1806
Dead-ed



Niten = 我が両刀に断てぬもの無し。
********
Group: Members
Posts: 3,577
Joined: 4-March 14
Level 500 (Godslayer)


QUOTE(oohmrparis @ Nov 13 2014, 01:43) *

need hoverplay in stack display only? with duration?

stack only is enough since the procs usually get refreshed excessively.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 13 2014, 13:08
Post #1807
oohmrparis



We are ping-pong player
*****
Group: Gold Star Club
Posts: 524
Joined: 18-June 13
Level 500 (Ponyslayer)


nvm

This post has been edited by oohmrparis: Nov 13 2014, 16:02
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 13 2014, 13:44
Post #1808
Dead-ed



Niten = 我が両刀に断てぬもの無し。
********
Group: Members
Posts: 3,577
Joined: 4-March 14
Level 500 (Godslayer)


QUOTE(oohmrparis @ Nov 13 2014, 04:08) *

Sorry, my firefox can't debug it because it does not return an error.
[attachmentid=53882]
(does not display of ET stack)

upload it in a simple substance, please ask an author of hoverplay.

ara~ thanks again (IMG:[invalid] style_emoticons/default/biggrin.gif) gonna work on it when i get time.
Now i'm interested in scripts.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 13 2014, 13:50
Post #1809
djackallstar



ดีjackallstar
**********
Group: Gold Star Club
Posts: 8,221
Joined: 23-July 14
Level 500 (Godslayer)


QUOTE(oohmrparis @ Nov 13 2014, 19:08) *

Sorry, my firefox can't debug it because it does not return an error.
[attachmentid=53882]
(does not display of ET stack)

upload it in a simple substance, please ask an author of hoverplay.

In the current version of Firefox, one needs to use Browser Console (Ctrl+Shift+J) instead of Web Console (Ctrl+Shift+I) to see errors generated by user scripts and addons.
Is this what you want?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 13 2014, 14:32
Post #1810
oohmrparis



We are ping-pong player
*****
Group: Gold Star Club
Posts: 524
Joined: 18-June 13
Level 500 (Ponyslayer)


QUOTE(djackallstar @ Nov 13 2014, 13:50) *

In the current version of Firefox, one needs to use Browser Console (Ctrl+Shift+J) instead of Web Console (Ctrl+Shift+I) to see errors generated by user scripts and addons.
Is this what you want?


I use firefox 32.0 + firebug 2.0.6 + UserScriptLoader (Grease monkey substitute)
Don't display all errors for some reason (even as for the console.log!) (IMG:[invalid] style_emoticons/default/faint.gif)
I tried the method that you taught, but after all it was impossible. (I may get a wrong how to use)
Cuz I can't debug the script which is not usable with chrome...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 13 2014, 14:53
Post #1811
djackallstar



ดีjackallstar
**********
Group: Gold Star Club
Posts: 8,221
Joined: 23-July 14
Level 500 (Godslayer)


QUOTE(oohmrparis @ Nov 13 2014, 20:32) *

I use firefox 32.0 + firebug 2.0.6 + UserScriptLoader (Grease monkey substitute)
Don't display all errors for some reason (even as for the console.log!) (IMG:[invalid] style_emoticons/default/faint.gif)
I tried the method that you taught, but after all it was impossible. (I may get a wrong how to use)
Cuz I can't debug the script which is not usable with chrome...

Tested on Fx 32.0.2. Error messages from userscripts/addons appear only in the Browser Console (the upper one in the image).
Code: [pastebin.com] http://pastebin.com/UC8p8b7g
(IMG:[i.imgur.com] http://i.imgur.com/EiFP4WT.png)

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

 
post Nov 13 2014, 15:31
Post #1812
oohmrparis



We are ping-pong player
*****
Group: Gold Star Club
Posts: 524
Joined: 18-June 13
Level 500 (Ponyslayer)


QUOTE(djackallstar @ Nov 13 2014, 14:53) *

Tested on Fx 32.0.2. Error messages from userscripts/addons appear only in the Browser Console (the upper one in the image).
Code: [pastebin.com] http://pastebin.com/UC8p8b7g


oh, i see (IMG:[invalid] style_emoticons/default/smile.gif) but this console is hard to see...

QUOTE(Dead-ed @ Nov 13 2014, 13:44) *

ara~ thanks again (IMG:[invalid] style_emoticons/default/biggrin.gif) gonna work on it when i get time.
Now i'm interested in scripts.


hoverplay code rewrite this.
CODE

    if(ret && stop_on_rebuffs)
    {
        document.getElementById('monsterpane').setAttribute('style', 'border:2px solid silver;');
    }
    return ret;
}



CODE

    if(ret && stop_on_rebuffs)
    {
        document.getElementById('monsterpane').setAttribute('style', 'border:2px solid silver;');
    }
    stacks();
    return ret;
}

function stacks() {
  var targets = document.querySelectorAll('.btm6 > img'),
    i = targets.length;
  if (i) {
    while(i--) {
      var text = targets[i].getAttribute('onmouseover'),
        stack = text.match(/x\d/);
      if (stack) {
        var left = targets[i].offsetLeft + 16,
          div = targets[i].parentNode.appendChild(document.createElement('div'));
        div.textContent = stack;
        div.style.cssText ='position:absolute;width:12px;top:2px;left:'+left+'px;background:#FF6600;border:1px solid black;font-size:7pt;font-weight:bold;text-align:center;';
      }
    }
  }
}


This post has been edited by oohmrparis: Nov 13 2014, 16:28
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 14 2014, 06:49
Post #1813
djackallstar



ดีjackallstar
**********
Group: Gold Star Club
Posts: 8,221
Joined: 23-July 14
Level 500 (Godslayer)


Script Name
    Equipment Popup for MoogleMail
Description
    Press "c" to open the equipment popup of the attached equipment. The hotkey is customizable.
    This script is mainly written for auctioneers. (useful when a seller forgets to write the equipment URL in the mail)
    Note: The script only works when you use a custom font.
DemoDownload and InstallationFeedback
    To report bugs, request features, or if you have any feedback, please PM me or reply to this thread.


This post has been edited by djackallstar: Nov 17 2014, 02:42
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 16 2014, 20:07
Post #1814
Tugamos



Casual Poster
***
Group: Members
Posts: 153
Joined: 18-September 14
Level 236 (Godslayer)


Hi,

The trophy script it's only for firefox?
Im using google canary, all scrips work fine in native mode except this one.

thank you.

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

Edit: It's working but after i change the Font. thanks!

This post has been edited by Tugamos: Nov 16 2014, 20:26
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 17 2014, 02:45
Post #1815
djackallstar



ดีjackallstar
**********
Group: Gold Star Club
Posts: 8,221
Joined: 23-July 14
Level 500 (Godslayer)


Thanks for reporting the problem and providing a solution, Tugamos. (IMG:[invalid] style_emoticons/default/smile.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


291 Pages V « < 89 90 91 92 > » 
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: 21st September 2025 - 21:57