Trouble With Auto Target in HunterNoWarp.mac

Orbitz

Lifetimer
Joined
Jan 3, 2007
Messages
204
Reaction score
3
Points
18
I am using hunternowarp.mac and haven't made any changes to it other then to add the zone name and a sigle mob name into HunterMob.ini. I am only killing one mob type in a room that has 8 or 10 static spawns.

This same mob type also spawns waaaaaaaay down a hall in another room.

When I launch the mac, it has no problem acquiring a target, except that it is acquiring one of the mobs from the other room instead of picking one of the 20 mobs he is standing right in the middle of :)

I assumed I have the zone name and mob name entered correctly as it is acquiring a target...I have tried adjusting /declare RV_MaxRadius int outer 300 down to 50 and all numbers in between. At above 800 it continues to acquire a target (in the wrong room), below that it says it is unable to acquire a target.

The mobs in both rooms have identical names so I am confused as to why it won't acquire one of the ones from right next to him. Any help would be most appreciated :)
 
Please disregard :) Started working all of a sudden.

Edit - Started bypassing mobs in the same room to target mobs with the same name across the zone. Worked correctly for about an hour with several full rounds of respwans in the room...then borked again. Didn't change anything so not sure what the problem could be.
 
Can anyone help me figure out why hunternowarp won't target mobs in the same room? I am pretty sure I have the huntermob.ini file correct as it will target mobs with the correct name 300 feet away in a different room...if I move to that room, it will then start to aquire targets in the room I was in orginally :) For some reason it is ignoring anything that is close by.

Here is what is in Sub Main:

Code:
Sub Main 

   |------------------------------------------------------------ 
   |How many times should aquire target fail before delaying? 
   |------------------------------------------------------------ 
   /declare RV_FailMax          int outer  3 
   |------------------------------------------------------------ 
   |How far would you like to target a mob? 
   |------------------------------------------------------------ 
   /declare RV_MaxRadius        int outer  60
   |------------------------------------------------------------ 
   |How far is the combat range? 
   |------------------------------------------------------------ 
   /declare RV_Range            int outer 10 
   |------------------------------------------------------------ 
   |What is the minimum Z Value of mobs I should target? 
   |------------------------------------------------------------ 
   /declare RV_MinZRange        int outer  -100 
   |------------------------------------------------------------ 
   |What is the maximum Z Value of mobs I should target? 
   |------------------------------------------------------------ 
   /declare RV_MaxZRange        int outer  100 
   |------------------------------------------------------------ 
   |Should I loot all items? 
   |------------------------------------------------------------ 
   /declare RV_LootAllItems     int outer  0 
   |------------------------------------------------------------ 
   |Should I display stats? 
   |------------------------------------------------------------ 
   /declare RV_DisplayStats     int outer  1

And here is the section for acquiring a target:

Code:
Sub GetTarget 

   /declare RV_CurrentRadius   int local 
   /declare RV_TargetSub   int local 
   :Acquire 
   /for RV_CurrentRadius 10 to ${RV_MaxRadius} step 10 
      /for RV_TargetSub 1 to ${RV_MobArray.Size} 
         /squelch /target radius ${RV_CurrentRadius} nopcnear 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) { 
               /echo Mob NOT a Full Health, picking another... 
               /varset RV_InvalidTargetID ${Target.ID} 
               /call ResetSub 
               /goto :Acquire 
            } 
            /if (${Int[${Target.Z}]}<${RV_MinZRange}) { 
               /echo Mob is BELOW Min Z Range, picking another... 
               /varset RV_InvalidTargetID ${Target.ID} 
               /call ResetSub 
               /goto :Acquire 
            } 
            /if (${Int[${Target.Z}]}>${RV_MaxZRange}) { 
               /echo Mob is ABOVE Max Z Range, picking another... 
               /varset RV_InvalidTargetID ${Target.ID} 
               /call ResetSub 
               /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, Resetting Failure Counter... 
         /delay 60s 
         /varset RV_FailCounter 0 
      } 
      /goto :Acquire 
   } 
/return
 
RV_MaxRadius = 60...looks like it sets max radius for :Acquire to only 60...try changing it to 300...
 
Actually I only want it to target mobs WITHIN 60...it is doing just the opposite...ignoring mobs close by and only targeting mobs far away.
 
Only other thing I can see is possibly the mobs you are targeting are directly above or below you?

Might try limiting the RV_ZMaxRange and RV_ZMinRange...they are set to 100 now.
 
No that isn't it...they are withing +/- 5 on the z axis...basically on the same level.