Loading. Please Wait... 
 |
 |
 |
[SHOP][SCRIPT][IW] HolyDemon Shop (0.82 update 13/07), Legendaries, IW Service@15c/pxp, lv5/4 potencies, Crystal pack@40k(500) Figurine@60k Leg Savage Power Slaughter, Peerless Frugal Mjolnir Phase |
|
Jan 24 2014, 09:19
|
Colman
Group: Gold Star Club
Posts: 7,333
Joined: 15-November 10

|
QUOTE(holy_demon @ Jan 24 2014, 14:33)  It's Javascript, and it has nothing to do with Java. Learning it is pretty simple for people with previous programming experience. If this is your first, then it will take quite a bit of time. The first programming language is always hardest to learn. For comparison, I don't even have to "learn" javascript, since it's pretty much a watered down version of C, which I already know. I just have to spend 1-2 hours to memorise the common function and basic syntax (querySelector, string manipulation, array, etc...). On the other hand, my first programming language, Pascal, took me 6 months to learn, and I need another 6 months to learn programming concepts You could start with [ developer.mozilla.org] this page . It's documented by Mozilla, so the example code is fully compatible with Firefox. Other browsers may have a problem or two which can be confusing for beginners to figure out. [ stackoverflow.com] http://stackoverflow.com/ is a great forum for programming, in anything [ jsfiddle.net] http://jsfiddle.net/ is a very convenient site, if you want to get straight into scriptwriting without having to set up a website and all that jazz Thank for the links (IMG:[ invalid] style_emoticons/default/smile.gif) . Since I have some experience in C, I should understand the structure of javascript soon. Edit: Learning JS from beginning right now. Hope to reach a practice level in a few days. (IMG:[ invalid] style_emoticons/default/smile.gif) This post has been edited by Colman: Jan 24 2014, 11:08
|
|
|
|
 |
|
Jan 24 2014, 10:32
|
tlstkdxjfa
Group: Members
Posts: 278
Joined: 12-February 13

|
QUOTE So I go ahead and make a script that will show cooldown for anything in the quickbar that has a cooldown (skills, silence, cure, etc...)
HVCooldown 1.0
"ready" if there no cooldown and ready to use, "0" if no cooldown but can't use for other reason (no skill chain/no overcharge/no mana) otherwise it i will be the number of cooldown left.
wow! that is real nice
|
|
|
Jan 24 2014, 11:51
|
Lement
Group: Members
Posts: 2,977
Joined: 28-February 12

|
QUOTE(holy_demon @ Jan 23 2014, 09:05)  [*]Auto-auctionneer.... Is it even possible? O.o
Already have one, though I need to debug it - people can be somewhat ...innovative in making bids, and I'm not leaving it alone until I'm sure it won't interpret them wrong. I wager the weekly auctioners all have one too. This post has been edited by Lement: Jan 24 2014, 11:52
|
|
|
|
 |
|
Jan 24 2014, 12:02
|
holy_demon
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10

|
QUOTE(Lement @ Jan 24 2014, 20:51)  Already have one, though I need to debug it - people can be somewhat ...innovative in making bids, and I'm not leaving it alone until I'm sure it won't interpret them wrong.
I wager the weekly auctioners all have one too.
Heh no amount of regexp can overcome that, eh? I suppose a system using only letter and digits for item code, that will check for any non-word character in between should cover most human errors. Then it's only a matter of translating "raise", "1m", "1000k", etc into numbers. Of course you still need to be there to handle illegal and all sort of human drama Maybe what we really need is an auto-bid xD It's also relatively simpler to make, since auctions have strict format. Auto-bid vs auto-auction, that would be fun (IMG:[ invalid] style_emoticons/default/tongue.gif) QUOTE(tlstkdxjfa @ Jan 24 2014, 19:32)  wow! that is real nice
Thanks for the donation. It feels good when people appreciate my work (IMG:[ invalid] style_emoticons/default/smile.gif) This post has been edited by holy_demon: Jan 24 2014, 12:11
|
|
|
|
 |
|
Jan 24 2014, 12:16
|
holy_demon
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10

|
QUOTE(Colman @ Jan 24 2014, 18:19)  Thank for the links (IMG:[ invalid] style_emoticons/default/smile.gif) . Since I have some experience in C, I should understand the structure of javascript soon. Edit: Learning JS from beginning right now. Hope to reach a practice level in a few days. (IMG:[ invalid] style_emoticons/default/smile.gif) Another tip: it's always faster to learn a language from other people's code than to learn it from a book. For example, if you want to learn JS for the purpose of writing userscript, then learn by reading and messing with people's code, instead of reading textbook/tutorial that teach you about Javascript for website. The method won't be comprehensive, but neither are textbooks. (IMG:[ invalid] style_emoticons/default/tongue.gif)
|
|
|
|
 |
|
Jan 24 2014, 12:54
|
Colman
Group: Gold Star Club
Posts: 7,333
Joined: 15-November 10

|
QUOTE(holy_demon @ Jan 24 2014, 18:16)  Another tip: it's always faster to learn a language from other people's code than to learn it from a book. For example, if you want to learn JS for the purpose of writing userscript, then learn by reading and messing with people's code, instead of reading textbook/tutorial that teach you about Javascript for website. The method won't be comprehensive, but neither are textbooks. (IMG:[ invalid] style_emoticons/default/tongue.gif) Already reading HVKeybind and your SpellSPAM. I started from fundamental to avoid confuse, due to my programming habits. e.g. I mostly use "e" to represent a small double value, normally 1e-6. Most of the JS I read just now use "e" to store the key press event.
|
|
|
|
 |
|
Jan 24 2014, 13:15
|
holy_demon
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10

|
QUOTE(holy_demon @ Jan 24 2014, 17:21)  So I go ahead and make a script that will show cooldown for anything in the quickbar that has a cooldown (skills, silence, cure, etc...) HVCooldown 1.0"ready" if there no cooldown and ready to use, "0" if no cooldown but can't use for other reason (no skill chain/no overcharge/no mana) otherwise it i will be the number of cooldown left.
HVCooldown_1.0.user.zip ( 1.41k )
Number of downloads: 133 HVCooldown 1.1
HVCooldown_1.1.user.zip ( 1.37k )
Number of downloads: 611Fix a bug that prevent it from running on Opera's Violent Monkey and Chrome's TamperMonkey Feature: Show the current cooldown of skills and spells on the quickbar. "ready" if there no cooldown and ready to use, "0" if no cooldown but can't use for other reason (no skill chain/no overcharge/no mana) otherwise it i will be the number of cooldown left. This post has been edited by holy_demon: Jan 26 2014, 18:23
|
|
|
|
 |
|
Jan 24 2014, 13:18
|
holy_demon
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10

|
QUOTE(something @ Jan 24 2014, 04:36)  can you write a small round counter script? i'd use HV STAT mini, but it slows me down and the alerts are annoying.
HV Round Counter 1.0
HVRoundCounter_1.0.user.zip ( 884bytes )
Number of downloads: 362Show the current round/max round below the Stamina.
|
|
|
|
 |
|
Jan 24 2014, 13:35
|
holy_demon
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10

|
QUOTE(Colman @ Jan 24 2014, 21:54)  Already reading HVKeybind and your SpellSPAM. I started from fundamental to avoid confuse, due to my programming habits. e.g. I mostly use "e" to represent a small double value, normally 1e-6. Most of the JS I read just now use "e" to store the key press event.
Well fundamentals for JS are DOM, CSS, and HTML, not number and string. (IMG:[ invalid] style_emoticons/default/tongue.gif) JS is a very flexible langugage, too flexible, so you'll see all sort of coding style people adhere to, OO, procedural, functional, generic, etc... Also, have a read of Hentaiverse 0.77 JS code (IMG:[ invalid] style_emoticons/default/tongue.gif)
Hentaiverse_0.77.zip ( 10.47k )
Number of downloads: 66
|
|
|
|
 |
|
Jan 24 2014, 16:07
|
Razor320
Group: Members
Posts: 220
Joined: 17-October 13

|
Could you make a script that adds a multi-select feature in shops, to sell selected items in one go?
|
|
|
Jan 24 2014, 17:33
|
holy_demon
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10

|
QUOTE(Razor320 @ Jan 25 2014, 01:07)  Could you make a script that adds a multi-select feature in shops, to sell selected items in one go?
I don't think that's such a useful feature when you can just filter out and sell all. And that actually require a lot of work. So probably not. I might do a multiple selection for all interactions though (salvage, sell) if I feel that they are easy to transfer from my moogle mail mutli-select function.
|
|
|
|
 |
|
Jan 24 2014, 17:42
|
Colman
Group: Gold Star Club
Posts: 7,333
Joined: 15-November 10

|
QUOTE(holy_demon @ Jan 24 2014, 23:33)  I don't think that's such a useful feature when you can just filter out and sell all. And that actually require a lot of work. So probably not. I might do a multiple selection for all interactions though (salvage, sell) if I feel that they are easy to transfer from my moogle mail mutli-select function.
I may try to write a script to salvage all of the .. let say...Exq cotton in one go for learning purpose. I still need a long time to learn javascript though. BTW, javascript itself is not hard, what difficult is something else. It seems I need a wide range of knowledge, e.g. html, css, structure of HV, etc.... This post has been edited by Colman: Jan 24 2014, 17:47
|
|
|
|
 |
|
Jan 24 2014, 19:10
|
holy_demon
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10

|
QUOTE(Colman @ Jan 25 2014, 02:42)  I may try to write a script to salvage all of the .. let say...Exq cotton in one go for learning purpose. I still need a long time to learn javascript though. BTW, javascript itself is not hard, what difficult is something else. It seems I need a wide range of knowledge, e.g. html, css, structure of HV, etc....
That script is actually not that easy, and can be very complicated but good luck (IMG:[ invalid] style_emoticons/default/smile.gif) You don't need knowledge that wide, you only need to know how to use Firebug/Chrome's Developer Tools and Google.
|
|
|
|
 |
|
Jan 24 2014, 19:34
|
Lement
Group: Members
Posts: 2,977
Joined: 28-February 12

|
QUOTE(holy_demon @ Jan 24 2014, 12:02)  Heh no amount of regexp can overcome that, eh? I suppose a system using only letter and digits for item code, that will check for any non-word character in between should cover most human errors. Then it's only a matter of translating "raise", "1m", "1000k", etc into numbers. Of course you still need to be there to handle illegal and all sort of human drama Maybe what we really need is an auto-bid xD It's also relatively simpler to make, since auctions have strict format. Auto-bid vs auto-auction, that would be fun (IMG:[ invalid] style_emoticons/default/tongue.gif) It is sort of the problem that you fix one thing to find another leak. Would still be tons easier if you wouldn't have to discount text that talks about stuff - and then there's bunch of usernames with mathc the pattern. I really should host another though, even if it is just for finding bugs..... The rest of it is pretty trivial tbh, though long( 800 lines total atm in js, some in css). Auto-bid instead of proxy bid is an interesting idea, but people usually don't have multiple computers to run that.
|
|
|
|
 |
|
Jan 24 2014, 20:49
|
holy_demon
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10

|
QUOTE(Lement @ Jan 25 2014, 04:34)  It is sort of the problem that you fix one thing to find another leak. Would still be tons easier if you wouldn't have to discount text that talks about stuff - and then there's bunch of usernames with mathc the pattern. I really should host another though, even if it is just for finding bugs.....
The rest of it is pretty trivial tbh, though long( 800 lines total atm in js, some in css).
Auto-bid instead of proxy bid is an interesting idea, but people usually don't have multiple computers to run that.
But that's exactly what makes reg exp so fun (well most of the time) to work with. It's like solving a ridiculously and increasingly complicated puzzle. When I first learnt about regexp, I used to spend hours to figure out the best expression to sort through my pdf, music, porn, etc. I even wrote some half-assed libraries to parse HTML documents with regex just for shits and giggles (IMG:[ invalid] style_emoticons/default/tongue.gif) Fun time. Anyway, good luck with that. I will start on that project in the near future, so I can talk with you more about the subject (IMG:[ invalid] style_emoticons/default/smile.gif) Or in case you decide to release it (I'm kinda assuming you would, since you're bothered to spend time on CSS for the UII), I would do an auto-bid. Wait, but why would you need multiple computers to run that, unless you're trying to manipulate the auction price This post has been edited by holy_demon: Jan 24 2014, 20:53
|
|
|
|
 |
|
Jan 25 2014, 07:38
|
Holy Bunny
Group: Gold Star Club
Posts: 850
Joined: 25-September 12

|
can you make a script that we switch ability set between melee and mage?
|
|
|
Jan 25 2014, 13:29
|
holy_demon
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10

|
QUOTE(f9206424 @ Jan 25 2014, 16:38)  can you make a script that we switch ability set between melee and mage?
That'd be a bit of work. I will put it in the list, but no promise
|
|
|
Jan 25 2014, 14:19
|
Cats Lover
Group: Gold Star Club
Posts: 2,800
Joined: 18-April 13

|
Wow, your HVCooldown 1.0 and HVCooldown 1.1 are very helpful in studying and referencing. I didn't notice that I can get cooldown durations by that. Well... BTW all variables should have var keyword to prevent it from running on Violent Monkey? Thanks, holy_demon! (IMG:[ invalid] style_emoticons/default/laugh.gif) +Edit I'm looking forward to your other planned scripts like ItemFilter (IMG:[ invalid] style_emoticons/default/smile.gif) This post has been edited by Cats Lover: Jan 25 2014, 14:20
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
|
 |
 |
 |
|
|
|