Targeting only names from ini file within range..

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

omper
a ghoul
a ghoul
Posts: 110
Joined: Sat Dec 06, 2003 10:46 pm

Targeting only names from ini file within range..

Post by omper » Tue Jun 08, 2004 12:44 am

i am trying to modify my code to read from ini file, get zone name, and set of names of mobs to target.. still only within the 150 range.

here is current code

Code: Select all

:loopgainexp
		/delay 5s
	/target npc radius 150
		/if (!${Target.ID}) /goto :loopgainexp
  	/face nolook fast
	/call Cast "ensnare" 
	/delay 4s
	/doability "Taunt"
	/attack on
this is what i thought the ini file would look like..

Code: Select all

Plane of Nightmares

a Blood Raven
A gnarled Treant
well you get the idea..

any help is appreciated

draco
a ghoul
a ghoul
Posts: 145
Joined: Thu Jan 29, 2004 7:06 pm
Contact:

Post by draco » Tue Jun 08, 2004 9:42 am

I have an include I have been debugging for a month now. I can tell you what I did, since it isn't quite ready for the snippets forum. :-)

Basically, you need to load an array from the ini file. Actually, if you look in my forage w/ ini support in the snippets forum. I use pretty much the same routine
http://macroquest2.com/phpBB2/viewtopic.php?t=7485
Look at the loadFromIni subroutine.

Then, after you RTFM. Use a for loop to iterate through your array. And just add the array value to your target line.

Check out some of the hunter macros for good examples of properly handling combat. In fact I thinck there is a ini based hunter posted.

Good Luck. This should get you started.