All pastes #399257 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-03-17 21:52 UTC
rendered paste body
function main()
{
	variable bool Agg = FALSE
	do
	{
		if ${Target(exists)} && ${Target.Target.GUID.Equal[${Me.GUID}]} && !${Agg}
		{
			echo ">${Target.Name}< ${Me.Level} ${Target.Level} ${Target.Distance}"
			Agg:Set[TRUE]
		}
		
		if !${Target(exists)} && ${Agg}
		{
			Agg:Set[FALSE]
		}
		waitframe
	}
	while (1)
}