smokinghot
Member
- Joined
- Mar 24, 2005
- RedCents
- 0¢
Im reworking a macro, and am having a problem maybe somone can help with.
THe problem is that after I get done autolooting, if i have an add attacking me, my charactor will just stand there until he dies. Its odd because its suppose to warp to succor, and twist heal song when i get below a certian point.
THis is where I think there is an error.
or
Any ideas??
Thanks,
S
THe problem is that after I get done autolooting, if i have an add attacking me, my charactor will just stand there until he dies. Its odd because its suppose to warp to succor, and twist heal song when i get below a certian point.
THis is where I think there is an error.
Rich (BB code):
Sub KillMob
/if (${Target.PctHPs}<95) /squelch /target clear
/if (${Int[${Target.PctHPs}]}<100) /squelch /target clear
/if (!${Target.ID}) /return
/look
/echo Killing a ${Target.CleanName}.
/stick 125 behind moveback
:distancecheck
/if (${Target.Distance}>=200) /goto :distancecheck
/if (${Target.PctHPs}<95) /squelch /target clear
/if (${Int[${Target.PctHPs}]}<100) /squelch /target clear
/if (!${Target.ID}) /return
/if (${Me.PctHPs}<=50) {
/twist 8 2 3 4 1
} else {
/twist 8 2 3 4 5
}
/delay 12s
/if (${Me.TargetOfTarget.Name.NotEqual[${Me}]}) /squelch /target clear
/if (${Target.State.Equal[DEAD]}) /keypress esc
/if (${Target.ID}) /goto :KillStart
/twist reset
/delay 5
/target id ${RV_MyTargetID} corpse
/call Lootmob
/return
or
Rich (BB code):
|-------------------------------------------------------------------------------
|SUB: Aquire Target
|-------------------------------------------------------------------------------
Sub GetTarget
/declare RV_CurrentRadius int local
/declare RV_TargetSub int local
/varset RV_InvalidTargetID 1
:Acquire
/doevents
/for RV_CurrentRadius 100 to ${RV_MaxRadius} step 100
/for RV_TargetSub 1 to ${RV_MobArray.Size}
/squelch /target radius ${RV_CurrentRadius} nopcnear 150 notid ${RV_InvalidTargetID} npc "${RV_MobArray[${RV_TargetSub}]}"
/varset RV_MyTargetID ${Target.ID}
/varset RV_MyTargetDead 0
/if (${Target.ID}) {
/if (${Int[${Target.PctHPs}]}<100) {
/varset RV_InvalidTargetID ${Target.ID}
/call ResetSub
/squelch /target clear
/goto :Acquire
}
/varset RV_HasTarget 1
/varset RV_MyTargetName ${Target.CleanName}
/echo Acquired ${Target.CleanName} at range ${Int[${Target.Distance}]}
/return
}
/next RV_TargetSub
/delay 2
/next RV_CurrentRadius
/if (!${Target.ID}) {
/delay 2s
/varcalc RV_FailCounter ${RV_FailCounter}+1
|/echo Failed to Acquire Target in Range ${RV_MaxRadius} ${RV_FailCounter} Time(s)
/if (${RV_FailCounter}>=${RV_FailMax}) {
/echo Waiting for Respawns...
/look
/twist 1 8
/varset RV_FailCounter 0
}
/goto :Acquire
}
/return
Sub Resetsub
/varset RV_HasTarget 0
/varset RV_TargetDead 0
/varset RV_Fighting 0
/return
Sub Resetsub
/varset RV_HasTarget 0
/varset RV_TargetDead 0
/varset RV_Fighting 0
/return
Any ideas??
Thanks,
S