Help - Search - Members - Calendar
Full Version: whats wrong here?
AC Tools Everything Macro > AC Tool Macros > Macro Development
Alomovo
i've made this little macro that'll be expanded later tongue.gif

the point of this macro is to execute an aerial combo of the thief class automatically.
the combo should start when you press 1 on your Numpad(any other key is fine aswell) i think i know where the mistake is in this code but i don't know how to fix it :s
can somone please help me out?

CODE
SetActiveWindow Dragonica (Client Ver : 0.17)

Procedure KickAss //aircombo1
keys X //attack
keys X //attack
keys S //uppercut
delay 500
keys C //jump
delay 200
loop 50
keys X //rapid spin midair
end
End

If Keys {Num 1} = true //Here's the error in the code i think
Call KickAss // Do these commands if true
Else
// Do these commands if false
End



********************************************************************************
*********************
----------------------------------------------------------------Edit-------------------------------------------------------------------------
********************************************************************************
*********************

i've been doing some research and came up with a new macro code, it seems to work when i test it but when i try it ingame it doens't react...

CODE
SetActiveWindow Dragonica (Client Ver : 0.17)

ClearGlobalKeys

Constants
down = {DOWN}
attack = x
uppercut = s
jump = c
End

Procedure Start
While 1 = 1
Delay 50
If {GlobalKeys} contains 096 //Numpad 0
Clearglobalkeys
Call aircombo
End
End
End

Procedure aircombo
While 1 = 1
Keydown $attack
Delay 100
Keydown $uppercut
Delay 100
Keydown $jump
Loop 50
Delay 50
Keydown $attack
End
Keydown $down
Keydown $attack
Call Start
End
End
Ahk
Try adding the time to the keydown command...
Keydown a 20 //presses a for 20 milliseconds
Alomovo
i will try that smile.gif

thank you for your help
Alomovo
seems it still won't work wich i find strange... maybe my SetActiveWindow is wrong.. how can i see the correct name of the active window??
Bear
The While Statement inside the Start Procedure is a Waste of a Procedure and you don't need to Call Start since when aircombo is done control is returned to the While statement, that's why it called a CALL statement.



CODE

SetActiveWindow Dragonica (Client Ver : 0.17)

ClearGlobalKeys

Constants
down = {DOWN}
attack = x
uppercut = s
jump = c
End

Procedure aircombo
Keydown $attack
Delay 100
Keydown $uppercut
Delay 100
Keydown $jump
Loop 50
Delay 50
Keydown $attack
End
Keydown $down
Keydown $attack
End

While 1 = 1
Delay 50
If {GlobalKeys} contains 096 //Numpad 0
Clearglobalkeys
Call aircombo
End
End
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.