#NoEnv
#Warn
#InstallKeybdHook
SendMode Event
#UseHook
#SingleInstance force
SendMode, Play
CustomColor = 0000005
Gui +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui, Color, %CustomColor%
WinSet, TransColor, %CustomColor%
draco:=false, ice:=false, barbar:=false
xpos := 1200
ypos := 10
;SetTimer, windowsclass, 10
;SetTimer, guishow, 10
Gui, Add, Picture, x255 y45 w48 h48 +BackgroundTrans vx2 gdraco, ressources\dracolyte_.png
Gui, Add, Picture, x255 y45 w48 h48 +BackgroundTrans vx1 gdraco, ressources\dracolyte.png
Gui, Add, Picture, x145 y45 w48 h48 +BackgroundTrans vy2 gice, ressources\icemage.png
Gui, Add, Picture, x145 y45 w48 h48 +BackgroundTrans vy1 gice, ressources\ice sage.png
Gui, Add, Picture, x35 y45 w48 h48 +BackgroundTrans vc2 gbarbar, ressources\andy_barbarian.png
Gui, Add, Picture, x35 y45 w48 h48 +BackgroundTrans vc1 gbarbar, ressources\barbarian.png
Gui, Add, Text, x25 y20 w115 h20 +BackgroundTrans, candy barbarian
Gui, Add, Text, x145 y20 w60 h20 +BackgroundTrans, ice sage
Gui, Add, Text, x255 y20 w65 h20 +BackgroundTrans, dracolyte
Gui, Add, Text, x350 y20 w65 h20 +BackgroundTrans greset, reset
Gui, Add, Picture, x665 y3 w25 h25 +BackgroundTrans gexitt, ressources\exit.png
Gui, Add, Picture, x400 y80z w240 h20 +BackgroundTrans, ressources\boat jump.png
Gui, Add, Picture, x400 y60 w240 h20 +BackgroundTrans, ressources\move gui.png
Gui, Add, Picture, x640 y3 w25 h25 +BackgroundTrans greloadd, ressources\reload.png
Gui, Show, x%xpos% y%ypos% w692 h118,
ci := 1, xi := 1, yi := 1
bjump=True
return
draco:
If ice
{
GuiControl Hide, y%yi%
yi := 3 - yi
GuiControl Show, y%yi%
}
If barbar
{
GuiControl Hide, c%ci%
ci := 3 - ci
GuiControl Show, c%ci%
}
Sleep 1
draco:=True, ice:=false, barbar:=false
GuiControl Hide, x%xi%
xi := 3 - xi
GuiControl Show, x%xi%
Return
ice:
If barbar
{
GuiControl Hide, c%ci%
ci := 3 - ci
GuiControl Show, c%ci%
}
If draco
{
GuiControl Hide, x%xi%
xi := 3 - xi
GuiControl Show, x%xi%
}
Sleep 1
draco:=false, ice:=True, barbar:=false
GuiControl Hide, y%yi%
yi := 3 - yi
GuiControl Show, y%yi%
Return
barbar:
If ice
{
GuiControl Hide, y%yi%
yi := 3 - yi
GuiControl Show, y%yi%
}
If draco
{
GuiControl Hide, x%xi%
xi := 3 - xi
GuiControl Show, x%xi%
}
Sleep 1
draco:=false, ice:=false, barbar:=True
GuiControl Hide, c%ci%
ci := 3 - ci
GuiControl Show, c%ci%
Return
reset:
If ice
{
GuiControl Hide, y%yi%
yi := 3 - yi
GuiControl Show, y%yi%
}
If barbar
{
GuiControl Hide, c%ci%
ci := 3 - ci
GuiControl Show, c%ci%
}
If draco
{
GuiControl Hide, x%xi%
xi := 3 - xi
GuiControl Show, x%xi%
}
Sleep 1
draco:=false, ice:=False, barbar:=false
Return
*~$LButton::
Loop
{
If draco
{
Send {RButton}
Sleep 850
GetKeyState, state, LButton
if state = U
Break
}
If ice
{
Send {Rbutton}
sleep 300
GetKeyState, state, LButton
if state = U
Break
}
If barbar
{
Send {RButton}
Sleep 2900
GetKeyState, state, LButton
if state = U
Break
}
}
return
^Up::
ypos := ypos - 1
Gui, Show, x%xpos% y%ypos% w692 h118
return
^Down::
ypos := ypos + 1
Gui, Show, x%xpos% y%ypos% w692 h118
return
^Right::
xpos := xpos + 1
Gui, Show, x%xpos% y%ypos% w692 h118
return
^Left::
xpos := xpos - 1
Gui, Show, x%xpos% y%ypos% w692 h118
return
*~$Space::
{
GetKeyState, state, Space
if state = D
{
GetKeyState, state, Z
if state = D
{
Loop
{
GetKeyState, state, Z
if state = U
Break
GetKeyState, state, Space
if state = U
Break
Sleep 450
GetKeyState, state, Z
if state = U
Break
GetKeyState, state, Space
if state = U
Break
Send {Space}
Sleep 50
GetKeyState, state, Z
if state = U
Break
GetKeyState, state, Space
if state = U
Break
Send {g}
Sleep 50
}
}
}
}
Return
exitt:
ExitApp
F10::
ExitApp
reloadd:
Reload