eq2harvest - small fix

SuperNoob

Active Member
we talked about this on IRC, but wanted to post so that it did not get lost. There are times that waittime will go negative w/o ever being evaluated at zero to exit the following loop in eq2harvest. I have changed it in my local script and it works much better with ${waittime}>0 so that you do not have the script get hung up forever once the number is negative.

Here is the loop with the change:

Code:
if ${NodeDelay}
	{
		delay:Set[${Math.Rand[${NodeDelay}]}]
		savetime:Set[${Time.Timestamp}]
		do
		{
			call CheckAggro
			waittime:Set[${Math.Calc[(${delay}+${savetime})-${Time.Timestamp}]}]
			CurrentAction:Set[Waiting ${waittime} seconds for Random delay]
			wait 5
		}
		while ${waittime}>0
	}
-SN
 
Top Bottom