The Wiki for Tale 5 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.

If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.

Takhetu/Code

From ATITD5
Revision as of 06:03, 26 October 2010 by Takhetu (talk | contribs)
Jump to navigationJump to search
	MineRecord:
	MineNum++
	MouseGetPos, MineX%MineNum%, MineY%MineNum%
	Broke%MineNum% := False
	Matrix%MineNum% := GetMatrix(MineX%MineNum%-1,MineY%MineNum%-1,3)
	GuiControl, Text, MineNumText, %MineNum% crystals captured
	return
			ThirdStone := SecondStone+A_Index



;check for broken
Stone1 := FindMatrix(MineX%FirstStone%-1,MineX%FirstStone%+1,MineY%FirstStone%-1,MineY%FirstStone%+1,3,Matrix%FirstStone%)
Stone2 := FindMatrix(MineX%SecondStone%-1,MineX%SecondStone%+1,MineY%SecondStone%-1,MineY%SecondStone%+1,3,Matrix%SecondStone%)
Stone3 := FindMatrix(MineX%ThirdStone%-1,MineX%ThirdStone%+1,MineY%ThirdStone%-1,MineY%ThirdStone%+1,3,Matrix%ThirdStone%)
AllThere := True
If (Stone1=0)
{
	Broke%FirstStone% := True
	AllThere := False
}
If (Stone2=0)
{
	Broke%SecondStone% := True
	AllThere := False
}
If (Stone3=0)
{
	Broke%ThirdStone% := True
	AllThere := False
}

If (AllThere=True)
{
	MouseMove, MineX%FirstStone%, MineY%FirstStone%
	;Msgbox, FirstStone: MineX%FirstStone%, MineY%FirstStone%
	Sleep %Delay%
	Send {A}
	Sleep %Delay%
	MouseMove, MineX%SecondStone%, MineY%SecondStone%
	;Msgbox, SecondStone: MineX%SecondStone%, MineY%SecondStone%
	Sleep %Delay%
	Send {A}
	Sleep %Delay%
	MouseMove, MineX%Thirdstone%, MineY%Thirdstone%
	;Msgbox, ThirdStone: MineX%Thirdstone%, MineY%Thirdstone%
	Sleep %Delay%
	Send {A}
	Sleep %Delay%
	Send {S}
	Sleep %Delay%
	Gosub, Popup
}
		}
	}
}



	if ChatWarning = 0