|
|
|
HV Script Thread, Discuss your creations. Includes guidelines and infos for script creation (2020-02-28 upd) |
|
Sep 30 2017, 02:31
|
sickentide
Group: Catgirl Camarilla
Posts: 1,355
Joined: 31-August 10
|
i wanted an RE timer/counter that works exactly the way i like, so i wrote one [attachmentid=109339] this is mostly just for my own amusement, but if anyone else finds it useful all the better. i have disabled it by default so you can keep using f4tal's timer if you want access to its more advanced features, set reTimer = true if you want to use this one. the main feature is that it takes you into battle with one click, middle click to reset, scroll to adjust counter
|
|
|
|
|
|
Sep 30 2017, 23:08
|
KitsuneAbby
Group: Catgirl Camarilla
Posts: 7,566
Joined: 12-July 14
|
It appears that Battle Unfocus is incompatible with Monsterbation regarding the background of monsters. They conflict each other and CSS is too stupid of a language to set both a background color and a background image on the same block (btm1). Nothing much can be done about one thing: using a partially transparent background color in the btm2 subdivs instead of just the entire btm1 of the monster, that is then kept for the background image. Sicken, would it be possible to have a small option to apply the monster background picture to either the entire monster pane (default) or only the monster number? The color would need to be 'rgba(240,128,128,0.3)' instead of 'lightcoral' and 'rgba(0,255,127,0.3)' instead of 'springgreen' as background color of btm2. It's the same colors but with 30% opacity so the actual background remains fairly visible. Here's how it looks like when I apply the rgba(0,255,127,0.3) to btm2,btm3,btm4 and btm6: [ i.imgur.com] ScreenshotI wanted to try applying to all subdivs, but it looks ugly, that's why I'm suggesting only btm2 (monster number and level). Can you tell me if it's possible please? That'd be greatly appreciated. Also, there's a small bug that appeared when I updated my Monsterbation from 1.2.0.6 to 1.2.1.1: https://www.youtube.com/watch?v=T_8XYz6gTZIThat bug seems to still be there in 1.2.2.0. Basically, it's the buff icons that blink when they're about to expire. Note that it doesn't occur when the hovering gets stopped due to an alert. This post has been edited by decondelite: Sep 30 2017, 23:23
|
|
|
|
|
|
Oct 1 2017, 08:48
|
WeebLife
Group: Gold Star Club
Posts: 1,151
Joined: 27-September 07
|
Suggestion for aesthetic Monsterbation improvement:
Is it possible to make the black boxes beside the monsters a standard size? When you get certain monster combinations, it can make the page look really messy. Example of this below.
[attachembed=109415]
|
|
|
|
|
|
Oct 1 2017, 10:51
|
boulay
Group: Gold Star Club
Posts: 2,675
Joined: 27-June 11
|
QUOTE(decondelite @ Sep 30 2017, 23:08) It appears that Battle Unfocus is incompatible with Monsterbation regarding the background of monsters. They conflict each other and CSS is too stupid of a language to set both a background color and a background image on the same block (btm1). Nothing much can be done about one thing: using a partially transparent background color in the btm2 subdivs instead of just the entire btm1 of the monster, that is then kept for the background image. Sicken, would it be possible to have a small option to apply the monster background picture to either the entire monster pane (default) or only the monster number? The color would need to be 'rgba(240,128,128,0.3)' instead of 'lightcoral' and 'rgba(0,255,127,0.3)' instead of 'springgreen' as background color of btm2. It's the same colors but with 30% opacity so the actual background remains fairly visible. Here's how it looks like when I apply the rgba(0,255,127,0.3) to btm2,btm3,btm4 and btm6: [ i.imgur.com] ScreenshotI wanted to try applying to all subdivs, but it looks ugly, that's why I'm suggesting only btm2 (monster number and level). Can you tell me if it's possible please? That'd be greatly appreciated. for this background problem, I'd suggest you try modifying something else like the text color, font style or anything else in said divs using: CODE div.btm3[style*="-------------------------"]{your settings + background:none} (I think it's btm3, not sure) so it only takes effect when you're using monsterbation... This post has been edited by boulay: Oct 1 2017, 10:53
|
|
|
|
|
|
Oct 1 2017, 11:27
|
Scremaz
Group: Gold Star Club
Posts: 24,304
Joined: 18-January 07
|
QUOTE(The Original Zeo @ Oct 1 2017, 08:48) Suggestion for aesthetic Monsterbation improvement:
my two cents: personally i'd make them all the same width, with a chance to go past the black line if trainer name is too long - like in the case of fxxxking kawaii. and in case of a single-digit resistance, put a filler blank space in order for all the words to be aligned as the same point. in case it is possible, of course. Spoiler text - Highlight to read... not really needed - just a finickiness in fact - but black boxes could either have the same height of monsters cells (preferred) or be vertically center-aligned too lazy to do a pic, but i hope it's understandable (IMG:[ invalid] style_emoticons/default/heh.gif) QUOTE(boulay @ Oct 1 2017, 10:51) -snip-
boobs! (IMG:[ invalid] style_emoticons/default/ph34r.gif) This post has been edited by Scremaz: Oct 1 2017, 11:29
|
|
|
|
|
|
Oct 1 2017, 12:53
|
KitsuneAbby
Group: Catgirl Camarilla
Posts: 7,566
Joined: 12-July 14
|
QUOTE(boulay @ Oct 1 2017, 10:51) for this background problem, I'd suggest you try modifying something else like the text color, font style or anything else in said divs using: CODE div.btm3[style*="-------------------------"]{your settings + background:none} (I think it's btm3, not sure) so it only takes effect when you're using monsterbation... Btm2 is perfectly fine. That's the one which background is modified to indicate a boss/SG/god. And it gives out very well with Battle Unfocus.
|
|
|
|
|
|
Oct 1 2017, 14:08
|
zcb535359
Group: Gold Star Club
Posts: 179
Joined: 21-October 16
|
is there anybody use a script called HV-Chart改, which can show percentage of Mag and Leg with a chart. this one used to work perfectly, until i have a try on alt site. no matter which gears i try, it always show "failed to get level, error:" after i press the 'show chart' button. however, if i copy the link into the block and press compare, it works fine. is there any way to fix this? thanks in advance. This post has been edited by zcb535359: Oct 1 2017, 14:10
|
|
|
Oct 1 2017, 14:36
|
Maharid
Group: Catgirl Camarilla
Posts: 2,369
Joined: 27-April 10
|
Probably something can be done, but i don't think the script was complete to start with, if i remember well it was a work in progress.
Anyway i think that f4tal hawe some intention of adding it to ToolBox in the future but at the moment is working on adding Equipment Comparison and other things.
|
|
|
|
|
|
Oct 1 2017, 15:04
|
WeebLife
Group: Gold Star Club
Posts: 1,151
Joined: 27-September 07
|
Hello again Hopefully a quick question, again with mosterbation 1.2.1.1 Line 58 of my script is: CODE monsterKeywords = /(Police|PL: 2250)/, I want to change this to: CODE monsterKeywords = /(Police|PL: 2250|Undead / Crushing)/, But the forward slash between Undead and Crushing keeps breaking the script. I have tried wrapping it with quotes "Undead / Crushing", and with apostrophes 'Undead / Crushing', but neither works. How do I write this code so it highlights monsters that meet both criteria Undead AND Crushing? Thank you (IMG:[ invalid] style_emoticons/default/smile.gif)
|
|
|
|
|
|
Oct 1 2017, 16:33
|
RoadShoe
Group: Catgirl Camarilla
Posts: 3,241
Joined: 9-August 15
|
If this question is already answered in here somewhere, just let me know and I'll go search for it.
If it isn't in here:
In Monsterbation, under quickbar extend:
I'm trying to set up my quickbar for a PFfest option.
I want it to go: Hlth draught/Hlth Pot space Mana draught/Mana pot space spirit draught/pot space Vase Gum
How would a novice go about that?
|
|
|
|
|
|
Oct 1 2017, 16:39
|
Noni
Group: Catgirl Camarilla
Posts: 12,924
Joined: 19-February 16
|
QUOTE(RoadShoe @ Oct 1 2017, 16:33) If this question is already answered in here somewhere, just let me know and I'll go search for it.
If it isn't in here:
In Monsterbation, under quickbar extend:
I'm trying to set up my quickbar for a PFfest option.
I want it to go: Hlth draught/Hlth Pot space Mana draught/Mana pot space spirit draught/pot space Vase Gum
How would a novice go about that?
Check mine: quickbarExtend = [ 1,'ikey_1','ikey_2','ikey_3','ikey_4','ikey_5','ikey_6','ikey_7', 'ikey_8', 'ikey_9', 'ikey_10', 'ikey_11', 'ikey_12','ikey_s1','ikey_s2', 'ikey_n1'], Explanation: ikey_1 = first battle item ikey_2 = second battle item etc. ikey_s1 = first scroll slot etc. ikey_n1= first infusion slot 1 = the slot for showing gems (don't touch) So you set the right stuff in the right slot. (in HV battle item page). Then you make the order in the right way. (in Monsterbation settings) note that Vase is slotted in item slot 11 and that gum is slotted in item slot 12. That's how you get those in the right place. This post has been edited by DJNoni: Oct 1 2017, 16:42
|
|
|
|
|
|
Oct 1 2017, 16:56
|
RoadShoe
Group: Catgirl Camarilla
Posts: 3,241
Joined: 9-August 15
|
QUOTE(DJNoni @ Oct 1 2017, 07:39) Check mine: quickbarExtend = [ 1,'ikey_1','ikey_2','ikey_3','ikey_4','ikey_5','ikey_6','ikey_7', 'ikey_8', 'ikey_9', 'ikey_10', 'ikey_11', 'ikey_12','ikey_s1','ikey_s2', 'ikey_n1'],
Explanation:
ikey_1 = first battle item ikey_2 = second battle item etc. ikey_s1 = first scroll slot etc. ikey_n1= first infusion slot 1 = the slot for showing gems (don't touch)
So you set the right stuff in the right slot. (in HV battle item page). Then you make the order in the right way. (in Monsterbation settings)
note that Vase is slotted in item slot 11 and that gum is slotted in item slot 12. That's how you get those in the right place.
Ahh... That makes sense! I'm off to try it now. Thanks DJNoni!! (IMG:[ invalid] style_emoticons/default/smile.gif) EDIT: That worked like a charm. Excellent advice! Thanks DJNoni! EDIT#2: This: quickbarExtend = [ 1,'ikey_11','0','ikey_12','0','ikey_13','0','ikey_1','ikey_4','ikey_7','0','ikey_2','ikey_5','ikey_8','0','ikey_6','ikey_9' ], Equals this as Vase/Gum/Last Elixar/Draughts/Potions/Elixars as I have it set up in Item Inventory: This post has been edited by RoadShoe: Oct 1 2017, 19:48
|
|
|
|
|
|
Oct 1 2017, 21:30
|
f4tal
Group: Members
Posts: 2,662
Joined: 10-January 13
|
QUOTE(zcb535359 @ Oct 1 2017, 15:08) is there anybody use a script called HV-Chart改, which can show percentage of Mag and Leg with a chart. this one used to work perfectly, until i have a try on alt site. no matter which gears i try, it always show "failed to get level, error:" after i press the 'show chart' button. however, if i copy the link into the block and press compare, it works fine. is there any way to fix this? thanks in advance.
Could you try this?
HVChart__0.6.1_.user.js.txt ( 112.06k )
Number of downloads: 10111QUOTE(Maharid @ Oct 1 2017, 15:36) Probably something can be done, but i don't think the script was complete to start with, if i remember well it was a work in progress. Anyway i think that f4tal hawe some intention of adding it to ToolBox in the future but at the moment is working on adding Equipment Comparison and other things.
I have this intention, yes. But first, Super and Jenga should finish their server for providing equipment' stats/ranges. Long story short - right now we have at least three scripts that use in one way or another equipment' ranges: Percentile Ranges, Equipment Comparison and HV Chart. Each of them shares pre-coded database of ranges and supposedly authors of these scripts should update these databases at schedule according to edits in wiki. Neither speaking it is time-consuming and tedious, but also may lead to mistakes due to human factor. Super and Jenga want to create a server (or rather provide an API for already existed server) that would aggregate stats from equipment (script will collect stats of player's equipment) and would serve stats for requested equipment "on a call" in online mode. So instead of that mechanics: CODE Player check equipment -> Script checks -> its database -> player gets stats for that equipment ...guys would like to create that model: CODE Player check equipment -> Script sends -> a call to server -> server sends stats back -> player gets stats for that equipment But it will take time (IMG:[ invalid] style_emoticons/default/smile.gif) This post has been edited by f4tal: Oct 1 2017, 21:33
|
|
|
|
|
|
Oct 1 2017, 21:31
|
Superlatanium
Group: Gold Star Club
Posts: 7,573
Joined: 27-November 13
|
QUOTE(zcb535359 @ Oct 1 2017, 12:08) this one used to work perfectly, until i have a try on alt site. no matter which gears i try, it always show "failed to get level, error:" after i press the 'show chart' button. Just search for the getLevel function and replace hentaiverse with alt.hentaiverse, did you try that? (can't exactly test myself for some reason, my connection to [ alt.hentaiverse.org] https://alt.hentaiverse.org/ keeps failing) QUOTE(The Original Zeo @ Oct 1 2017, 13:04) Line 58 of my script is: CODE monsterKeywords = /(Police|PL: 2250)/, I want to change this to: CODE monsterKeywords = /(Police|PL: 2250|Undead / Crushing)/, But the forward slash between Undead and Crushing keeps breaking the script. It's a regular expression; the slashes mark the beginning and end of the RE, so if you want a literal forward slash in the middle rather than a begin/end indicator, you need to escape the character This post has been edited by Superlatanium: Oct 1 2017, 21:36
|
|
|
|
|
|
Oct 2 2017, 00:30
|
WeebLife
Group: Gold Star Club
Posts: 1,151
Joined: 27-September 07
|
QUOTE(Superlatanium @ Oct 2 2017, 05:01) It's a regular expression; the slashes mark the beginning and end of the RE, so if you want a literal forward slash in the middle rather than a begin/end indicator, you need to escape the character
Sorry, I'm a coding novice (IMG:[ invalid] style_emoticons/default/sad.gif). I'm assuming the begin/end indicator is the vertical bar (|)? And how do I "escape" the character? I've tried to substitute it with an asterisk I've tried to substitute it with the AMP code for forward slash ( & #47; without the space) I've tried to substitute it with KEY_FORWARDSLASH and KEY_191 (learned from the keybinding section) But none of these worked :/ Worst case scenario: I can highlight all undead. But if possible, I would really prefer to only highlight the Undead that use Crushing attacks (and not highlight the Undead that use Slashing)... Is this possible? My code currently reads: CODE monsterKeywords = /(ID: 169480|PL: 2250|ID: 126501|Celestial|ID: 46822|Undead)/, Very quick side-question: If a monster matches both the scan time criteria, and the monster keyword criteria, which highlight takes precedence? Will the monster be highlighted in lightcoral or springgreen? I think it would make more sense if the lightcoral were to take precedence.
|
|
|
|
|
|
Oct 2 2017, 01:26
|
WName
Newcomer
Group: Members
Posts: 46
Joined: 13-September 17
|
Does anyone know if the SmartSearch script is still being maintained by someone? Seems to be partially broken at the moment. I've fixed some of the bugs myself, but there are still a few others that I haven't gotten to yet. If nobody is still keeping it up to date, I wouldn't mind posting the code once I've resolved the issues (if Superlatanium is okay with it--I'll contact him directly as well). QUOTE(Scremaz @ Oct 1 2017, 02:27) my two cents: personally i'd make them all the same width, with a chance to go past the black line if trainer name is too long - like in the case of fxxxking kawaii. and in case of a single-digit resistance, put a filler blank space in order for all the words to be aligned as the same point. in case it is possible, of course.
Both of those would be pretty easy to do, I think, with the addition of a little extra CSS and maybe some changes to the JS that generates those elements.
|
|
|
|
|
|
Oct 2 2017, 02:00
|
Superlatanium
Group: Gold Star Club
Posts: 7,573
Joined: 27-November 13
|
QUOTE(The Original Zeo @ Oct 1 2017, 22:30) Sorry, I'm a coding novice (IMG:[ invalid] style_emoticons/default/sad.gif). I'm assuming the begin/end indicator is the vertical bar (|)? And how do I "escape" the character? The begin/end indicator is just the slash: QUOTE(Superlatanium @ Oct 1 2017, 19:31) the slashes mark the beginning and end of the RE, so if you want a literal forward slash in the middle rather than a begin/end indicator, you need to escape the character In code, often there are a few special characters to indicate something special used by the code rather than the literal keyboard character. In these situations, to indicate that you want the literal character rather than the special indicator, you almost always type the language's escape character right before the literal character you want, and the parser will recognize that you want the literal character. With regular expressions, slash is a reserved character (for the beginning and the end of the expression), and the escape character REs use is the backslash, so use "\/" inside a RE to indicate a literal slash. Eg /bob\/joe/ is the RE that searches for the exact string "bob/joe". And /bob/joe/ just doesn't get parsed in the first place, because it sees three instances of the begin/end indicator. Same sort of thing if you ever want to match any other RE special character, like []\^$.|?*+() [ www.regular-expressions.info] https://www.regular-expressions.info/refcharacters.htmlQUOTE(WName @ Oct 1 2017, 23:26) Does anyone know if the SmartSearch script is still being maintained by someone? Seems to be partially broken at the moment. I've fixed some of the bugs myself, but there are still a few others that I haven't gotten to yet. If nobody is still keeping it up to date, I wouldn't mind posting the code once I've resolved the issues (if Superlatanium is okay with it--I'll contact him directly as well). It's probably easy, I haven't looked at it in a while but I'm sure I can fix bugs if you find any This post has been edited by Superlatanium: Oct 2 2017, 06:08
|
|
|
|
|
|
Oct 2 2017, 03:03
|
WeebLife
Group: Gold Star Club
Posts: 1,151
Joined: 27-September 07
|
QUOTE(Superlatanium @ Oct 2 2017, 09:30) The begin/end indicator is just the slash: In code, often there are a few special characters to indicate something special used by the code rather than the literal keyboard character. In these situations, to indicate that you want the literal character rather than the special indicator, you almost always type the language's escape character right before the literal character you want, and the parser will recognize that you want the literal character. With regular expressions, slash is a reserved character (for the beginning and the end of the expression), and the escape character REs use is the backslash, so use "\/" inside a RE to indicate a literal slash. Eg /bob\/joe/ is the RE that searches for the exact string "bob/joe". And /bob/joe/ just doesn't get parsed in the first place, because it sees three instances of the begin/end indicator. Same sort of thing if you ever want to match any other RE special character, like []\^$.|?*+() [ www.regular-expressions.info] https://www.regular-expressions.info/refcharacters.htmlSweet, I get it. Thank you very much (IMG:[ invalid] style_emoticons/default/laugh.gif) Tested and confirmed that the following code highlights Undead / Crushing, and does not highlight Undead / Slashing (unless triggered by the PL: 2250 tag) (IMG:[ invalid] style_emoticons/default/tongue.gif) CODE monsterKeywords = /(ID: 169480|PL: 2250|ID: 126501|Celestial|ID: 46822|Undead \/ Crushing)/,
|
|
|
|
|
|
Oct 2 2017, 03:55
|
WName
Newcomer
Group: Members
Posts: 46
Joined: 13-September 17
|
QUOTE(Superlatanium @ Oct 1 2017, 17:00) It's probably easy, I haven't looked at it in a while but I'm sure I can fix bugs if you find any
Excellent, thank you. I've responded to your PM with a description of the two issues I noticed.
|
|
|
Oct 2 2017, 06:14
|
Superlatanium
Group: Gold Star Club
Posts: 7,573
Joined: 27-November 13
|
Fixed a few bugs, including one that was preventing gear info from displaying after saving levels
SmartSearch_1.3.1.user.js.txt ( 57.38k )
Number of downloads: 1321
|
|
|
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:
|
|
|
|
|