All pastes #519026 Raw Edit

geber

public lua v1 · immutable
#519026 ·published 2007-05-29 14:44 UTC
rendered paste body
	if GetDistance(OwnerX, OwnerY, x, y) < TOO_FAR_TARGET then		Log(string.format("...moving... (state %d)", MyState))		stdMove(ID, x, y)		local HomunHP = GetV(V_HP, MyID)		local HomunMaxHP = GetV(V_MAXHP, MyID)		local HomunHPPerc = (HomunHP / HomunMaxHP) * 100		local NextTarget = GetMyNextTarget(HomunHPPerc)		if NextTarget ~=0 then			MyEnemy = NextTarget			DoSkill_AutoAttack(490)		end