Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Thu Nov 21, 2024 2:47 pm

All times are UTC




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: NEED HELP : auto attack for acolyte
Thanked: 0 time(s)  Unread post Posted: Sat Jan 12, 2013 1:53 pm 
Silver Contributor
Silver Contributor
User avatar



Joined: Thu Jun 14, 2012 9:23 am
Posts: 122
Been thanked: 15 time(s)
Has thanked: 6 time(s)
Contribution Points: 310
Hi, i'm currently playing acolyte in Dragonsaga, and basically this class(acolyte) require only normal attack to kill monster since acolyte has triple shot as passive skill

Thus, i've made macro :

begin
if Keyboard.Key is held down("v")
begin loop()
Keyboard.Press key("x")
Macro.Pause("10")
end
end

but this macro doesn't work


So i need someone to help me with this macro

what i want is that once i press "x", the macro will keep pressing(not holding) "x", which is the key for normal attack, until i press "x" again, then the macro will stop and start over again

Someone please help me with this macro

>W<

_________________
Blue Eye White Dragon

Oops! Blue Eye - Macro

YAY!

View my "Dragonsaga bots archive" here : viewtopic.php?f=243&t=13883

If you find this usefull, just simply press "Thank You" -------------------------------------------------------------------------------------------------------------------->


Top
 Profile  
Reply with quote  
 Post subject: Re: NEED HELP : auto attack for acolyte
Thanked: 1 time(s)  Unread post Posted: Sat Jan 12, 2013 2:18 pm 
Gold Contributor
Gold Contributor



Joined: Sat Oct 13, 2012 3:41 pm
Posts: 357
Been thanked: 69 time(s)
Has thanked: 28 time(s)
Contribution Points: 581
This isn't what you asked for, but is a rewrite of the code you posted
Code:
 begin
     if  Keyboard.Key is held down("v")
          begin
               while  Keyboard.Key is held down("v")
                    begin
                         Keyboard.Press key("x")
                         Macro.Pause("10")
                    end
          end
 end
 


I tested it in notepad and it worked. If you test in in your game and it doesn't work then we can look into the reason why it doesn't on the game end, could be need for virtual drivers, using a function for press and release of keys etc

I'm not sure that you can use x to start pressing x like you want. You could use it as a trigger to start a macro that just presses x, but that would kinda be a pain if you had BE running and start typing on the keyboard for some reason and hit x without adding window focus or something like that

I apologize if this is totally off and I am not making much sense. I had surgery a couple days ago and still taking pain meds, rofl

_________________
Feel free to give constructive criticism to any code I post
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: NEED HELP : auto attack for acolyte
Thanked: 0 time(s)  Unread post Posted: Sat Jan 12, 2013 3:27 pm 
Silver Contributor
Silver Contributor
User avatar



Joined: Thu Jun 14, 2012 9:23 am
Posts: 122
Been thanked: 15 time(s)
Has thanked: 6 time(s)
Contribution Points: 310
thanks a lot, i'll try running this on the game and see whether is it working

btw, hope you gets well soon :)

_________________
Blue Eye White Dragon

Oops! Blue Eye - Macro

YAY!

View my "Dragonsaga bots archive" here : viewtopic.php?f=243&t=13883

If you find this usefull, just simply press "Thank You" -------------------------------------------------------------------------------------------------------------------->


Top
 Profile  
Reply with quote  
 Post subject: Re: NEED HELP : auto attack for acolyte
Thanked: 0 time(s)  Unread post Posted: Sat Jan 12, 2013 3:46 pm 
Gold Contributor
Gold Contributor



Joined: Sat Oct 13, 2012 3:41 pm
Posts: 357
Been thanked: 69 time(s)
Has thanked: 28 time(s)
Contribution Points: 581
education wrote:
btw, hope you gets well soon :)


thanks
post back if it doesn't
I can type on my comp ok, but really can't play games atm very well so I need something to do :)

_________________
Feel free to give constructive criticism to any code I post
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: NEED HELP : auto attack for acolyte
Thanked: 0 time(s)  Unread post Posted: Sat Jan 12, 2013 4:21 pm 
Silver Contributor
Silver Contributor
User avatar



Joined: Thu Jun 14, 2012 9:23 am
Posts: 122
Been thanked: 15 time(s)
Has thanked: 6 time(s)
Contribution Points: 310
apparently it dioesn't work on the game

in fact it does work but the attack rate is so slow for some reason

so i use trigger code instead

Code:
 begin
     if  Keyboard.Key is held down("x")
          begin loop()
               Keyboard.Press key("x")
               if  Keyboard.Key is held down("v")
                    begin
                         Macro.Break from loop("yes")
                    end
          end
 end
 


which work quite great, but i cant chat else i might press on "x" just like what you've mentioned in your early post

i'm trying to figure out how to deactivate macro for some time so that i can chat and then reactivate it once i've finished chatting, without using macro.abort()

_________________
Blue Eye White Dragon

Oops! Blue Eye - Macro

YAY!

View my "Dragonsaga bots archive" here : viewtopic.php?f=243&t=13883

If you find this usefull, just simply press "Thank You" -------------------------------------------------------------------------------------------------------------------->


Top
 Profile  
Reply with quote  
 Post subject: Re: NEED HELP : auto attack for acolyte
Thanked: 0 time(s)  Unread post Posted: Sat Jan 12, 2013 5:41 pm 
Gold Contributor
Gold Contributor



Joined: Sat Oct 13, 2012 3:41 pm
Posts: 357
Been thanked: 69 time(s)
Has thanked: 28 time(s)
Contribution Points: 581
just add another if statement with whatever key that when you press it is starts a loop that just has a short macro.pause duration

_________________
Feel free to give constructive criticism to any code I post
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: NEED HELP : auto attack for acolyte
Thanked: 0 time(s)  Unread post Posted: Sat Jan 12, 2013 9:04 pm 
New User
New User



Joined: Fri Jan 11, 2013 7:53 am
Posts: 29
Been thanked: 0 time(s)
Has thanked: 4 time(s)
Contribution Points: 58
Thank you.


Top
 Profile  
Reply with quote  
 Post subject: Re: NEED HELP : auto attack for acolyte
Thanked: 0 time(s)  Unread post Posted: Sun Jan 13, 2013 3:23 am 
Silver Contributor
Silver Contributor
User avatar



Joined: Thu Jun 14, 2012 9:23 am
Posts: 122
Been thanked: 15 time(s)
Has thanked: 6 time(s)
Contribution Points: 310
well, that would work, but it only allow me to chat within the duration set in macro.pause()

also, what if i've done with my chatting and wanna continue the continuous attack, i have to wait for the pause duration to end :(

i'm thinking of using macro.freeze(), but i'm not sure how is this command differ from macro.abort() since i've tested both commands and resulted in silghtly the same thing

if you would be kind enough to tell me how macro.freeze() work, i'd be really appreciated :)

Thank you

_________________
Blue Eye White Dragon

Oops! Blue Eye - Macro

YAY!

View my "Dragonsaga bots archive" here : viewtopic.php?f=243&t=13883

If you find this usefull, just simply press "Thank You" -------------------------------------------------------------------------------------------------------------------->


Top
 Profile  
Reply with quote  
 Post subject: Re: NEED HELP : auto attack for acolyte
Thanked: 0 time(s)  Unread post Posted: Sun Jan 13, 2013 3:33 pm 
Gold Contributor
Gold Contributor



Joined: Sat Oct 13, 2012 3:41 pm
Posts: 357
Been thanked: 69 time(s)
Has thanked: 28 time(s)
Contribution Points: 581
that's not what I meant
you the key press will trigger a loop that lasts until you hit the key again or key combo might be better

so you can use a loop or a while loop that has a short pause along with an if statement so if the key is pressed again it will break from the loop

if that doesn't make sense I can write something up for you as an example

_________________
Feel free to give constructive criticism to any code I post
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: NEED HELP : auto attack for acolyte
Thanked: 0 time(s)  Unread post Posted: Sun Jan 13, 2013 3:49 pm 
Silver Contributor
Silver Contributor
User avatar



Joined: Thu Jun 14, 2012 9:23 am
Posts: 122
Been thanked: 15 time(s)
Has thanked: 6 time(s)
Contribution Points: 310
oh, please write me some example

i'm not familiar with "while loop" at all

to be honest, i do know only "if" and "pixel detection" :oops:

Thank you

_________________
Blue Eye White Dragon

Oops! Blue Eye - Macro

YAY!

View my "Dragonsaga bots archive" here : viewtopic.php?f=243&t=13883

If you find this usefull, just simply press "Thank You" -------------------------------------------------------------------------------------------------------------------->


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

All times are UTC


You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group