Welcome Guest ( Log In | Register )

71 Pages V < 1 2 3 4 5 > »   
Reply to this topicStart new topic
> [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

 
post Jan 24 2014, 09:19
Post #41
Colman



Where is the loli?
*********
Group: Gold Star Club
Posts: 7,333
Joined: 15-November 10
Level 500 (Ponyslayer)


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 24 2014, 10:32
Post #42
tlstkdxjfa



Casual Poster
****
Group: Members
Posts: 278
Joined: 12-February 13
Level 350 (Godslayer)


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

User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 24 2014, 11:51
Post #43
Lement



Lalalala la~ la la~!
********
Group: Members
Posts: 2,977
Joined: 28-February 12
Level 326 (Godslayer)


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 24 2014, 12:02
Post #44
holy_demon



Osananajimi<3
*********
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10
Level 500 (Godslayer)


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 24 2014, 12:16
Post #45
holy_demon



Osananajimi<3
*********
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10
Level 500 (Godslayer)


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)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 24 2014, 12:54
Post #46
Colman



Where is the loli?
*********
Group: Gold Star Club
Posts: 7,333
Joined: 15-November 10
Level 500 (Ponyslayer)


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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 24 2014, 13:15
Post #47
holy_demon



Osananajimi<3
*********
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10
Level 500 (Godslayer)


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.

Attached File  HVCooldown_1.0.user.zip ( 1.41k ) Number of downloads: 133




HVCooldown 1.1
Attached File  HVCooldown_1.1.user.zip ( 1.37k ) Number of downloads: 611


Fix 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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 24 2014, 13:18
Post #48
holy_demon



Osananajimi<3
*********
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10
Level 500 (Godslayer)


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
Attached File  HVRoundCounter_1.0.user.zip ( 884bytes ) Number of downloads: 362


Show the current round/max round below the Stamina.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 24 2014, 13:35
Post #49
holy_demon



Osananajimi<3
*********
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10
Level 500 (Godslayer)


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)
Attached File  Hentaiverse_0.77.zip ( 10.47k ) Number of downloads: 66
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 24 2014, 14:11
Post #50
mustardpie



Veteran Poster
********
Group: Members
Posts: 2,717
Joined: 25-April 11
Level 475 (Godslayer)


QUOTE(holy_demon @ Jan 24 2014, 11:18) *

HV Round Counter 1.0
Attached File  HVRoundCounter_1.0.user.zip ( 884bytes ) Number of downloads: 362


Show the current round/max round below the Stamina.


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

 
post Jan 24 2014, 16:07
Post #51
Razor320



Casual Poster
***
Group: Members
Posts: 220
Joined: 17-October 13
Level 361 (Godslayer)


Could you make a script that adds a multi-select feature in shops, to sell selected items in one go?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 24 2014, 17:33
Post #52
holy_demon



Osananajimi<3
*********
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10
Level 500 (Godslayer)


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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 24 2014, 17:42
Post #53
Colman



Where is the loli?
*********
Group: Gold Star Club
Posts: 7,333
Joined: 15-November 10
Level 500 (Ponyslayer)


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 24 2014, 19:10
Post #54
holy_demon



Osananajimi<3
*********
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10
Level 500 (Godslayer)


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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 24 2014, 19:34
Post #55
Lement



Lalalala la~ la la~!
********
Group: Members
Posts: 2,977
Joined: 28-February 12
Level 326 (Godslayer)


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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 24 2014, 20:49
Post #56
holy_demon



Osananajimi<3
*********
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10
Level 500 (Godslayer)


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 25 2014, 07:38
Post #57
Holy Bunny



>‿<
******
Group: Gold Star Club
Posts: 850
Joined: 25-September 12
Level 500 (Ponyslayer)


can you make a script that we switch ability set between melee and mage?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 25 2014, 13:29
Post #58
holy_demon



Osananajimi<3
*********
Group: Gold Star Club
Posts: 5,417
Joined: 2-April 10
Level 500 (Godslayer)


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 25 2014, 14:19
Post #59
Cats Lover



Peerless Cat's Lover of 1H Power (since 0 lvl)
********
Group: Gold Star Club
Posts: 2,800
Joined: 18-April 13
Level 500 (Godslayer)


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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 25 2014, 15:15
Post #60
Holy Bunny



>‿<
******
Group: Gold Star Club
Posts: 850
Joined: 25-September 12
Level 500 (Ponyslayer)


QUOTE(holy_demon @ Jan 25 2014, 19:29) *

That'd be a bit of work. I will put it in the list, but no promise


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


71 Pages V < 1 2 3 4 5 > » 
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: 9th July 2025 - 02:00