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
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
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