Coercer Mana Flow

bob_the_builder

Well-Known Member
Code:
	;Mana Flow the lowest group member
	tempvar:Set[1]
	MemberLowestPower:Set[0]
	do
	{
		if ${Me.Group[${tempvar}].ToActor.Power}<45 && ${Me.Group[${tempvar}].ToActor.Distance}<30 && ${Me.Group[${tempvar}].ToActor(exists)}
		{
			if ${Me.Group[${tempvar}].ToActor.Power}<=${Me.Group[${MemberLowestPower}].ToActor.Power}
				MemberLowestPower:Set[${tempvar}]
		}
		;;Mana Flow
		if ${Me.Group[${MemberLowestPower}].ToActor.Power}<45 && ${Me.Group[${MemberLowestPower}].ToActor.Distance}<30 && ${Me.ToActor.Health}>50 && ${Me.Group[${MemberLowestPower}].ToActor(exists)}
		{
			call CastSpellRange 390 0 0 0 ${Me.Group[${MemberLowestPower}].ToActor.ID}
		}
	}
	while ${tempvar:Inc}<${Me.GroupCount}
The current Coercer SVN has Mana Flow outside of the do while. The "call CastSpellRange 390" is outside of the do while on SVN. The above I put it inside.

Shouldn't the script look like the above post?

Bob
 

bob_the_builder

Well-Known Member
I changed it to this. Maybe if it looks good enough can add to SVN?


Code:
	if ${Me.Grouped}
	{
		;Find actor with lowest mana
		tempvar:Set[1]
		MemberLowestPower:Set[0]
		do
		{
			if ${Me.Group[${tempvar}].ToActor.Power}<45 && ${Me.Group[${tempvar}].ToActor.Distance}<30 && ${Me.Group[${tempvar}].ToActor(exists)}
			{
				if ${Me.Group[${tempvar}].ToActor.Power}<=${Me.Group[${MemberLowestPower}].ToActor.Power}
					MemberLowestPower:Set[${tempvar}]
			}
		}
		while ${tempvar:Inc}<${Me.GroupCount}
	
		;Cannabalize Thoughts
		if (${Actor[${KillTarget}].Health}>=35 && ${Actor[${KillTarget}].Difficulty}>=2) && ${Me.Group[${MemberLowestPower}].ToActor.Power}<85 && (${Me.Ability[${SpellType[51]}].IsReady} && !${Me.Maintained[${SpellType[51]}](exists)})
			call CastSpellRange 51 0 0 0 ${KillTarget}
		;;Mana Flow
		if ${Me.Group[${MemberLowestPower}].ToActor.Power}<45 && ${Me.Group[${MemberLowestPower}].ToActor.Distance}<30 && ${Me.ToActor.Health}>50 && ${Me.Group[${MemberLowestPower}].ToActor(exists)}
			call CastSpellRange 390 0 0 0 ${Me.Group[${MemberLowestPower}].ToActor.ID}
		;Channel if group member is below 20 and we are in combat
		if ${Me.Group[${MemberLowestPower}].ToActor.Power}<20 && ${Me.Group[${MemberLowestPower}].ToActor.Distance}<50  && ${Me.InCombat} && ${Me.Group[${MemberLowestPower}].ToActor(exists)}
			call CastSpellRange 310
		;Mana Cloak the group if the Main Tank is low on power
		if ${Actor[${MainTankPC}].Power}<40 && ${Actor[${MainTankPC}](exists)} && ${Actor[${MainTankPC}].Distance}<50  && ${Actor[${MainTankPC}].InCombatMode}
			call CastSpellRange 354
	}
Bob
 

Amadeus

The Maestro
Staff member
by the way, this:

Code:
while ${tempvar:Inc}<${Me.GroupCount}
should be <= ...not <
 
Top Bottom