Pulling static Spawn with A wandering mob near by

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

Moderator: MacroQuest Developers

joemel
decaying skeleton
decaying skeleton
Posts: 2
Joined: Sun Mar 06, 2005 4:55 pm

Pulling static Spawn with A wandering mob near by

Post by joemel » Sun Mar 06, 2005 5:21 pm

I am trying to device code that pulls a static spawn if the wandering spawn is far enough away not to agro. there are 7 spawns in this rotation. The first 5 are all solo. the coding for the 6 and 7th spawn look like this.

:6
/target ${Spawn[loc 348 12 npc radius 2]}
/if (!${Target.ID}) /goto :7
/delay 1s
/if (!${Spawn[${CurrentMobID}].NearestSpawn[npc radius ${TooCloseDistance}].ID}) {
/goto :7
}
/call Mob6
/call combatloop
/goto :1


:7
/target ${Spawn[loc 395 0 npc radius 20]}
/if (!${Target.ID}) /goto :1
/if (!${Spawn[${CurrentMobID}].NearestSpawn[npc radius ${TooCloseDistance}].ID}) {
/call Mob7
/call combatloop
/goto :1
}

any input on how to make this work better would be great. Thank you in advance

JJ
a hill giant
a hill giant
Posts: 227
Joined: Thu Nov 11, 2004 5:50 am

Post by JJ » Sun Mar 06, 2005 6:19 pm

First off,

Code: Select all

 is your friend . . . well ours anyways.

As to your AFK macro code, does the mob wander then stop and wander back or is it a continuous movement? If he goes somewhere and stops, grab those coordinates and just wait to pull 6 when 7 is at that point.

joemel
decaying skeleton
decaying skeleton
Posts: 2
Joined: Sun Mar 06, 2005 4:55 pm

Post by joemel » Sun Mar 06, 2005 6:33 pm

This is not an afk macro, i just find it alot easier to make a toon pull for me as i'm slowing/tashing on the other ones.
I beleive there are three points to where the mobs wanders to and stops.
I will try putting in one of his stoping points and get back to you
Thankyou for the advice

Sym
Macro Author
Macro Author
Posts: 107
Joined: Mon Jul 05, 2004 2:45 am
Contact:

Post by Sym » Mon Mar 07, 2005 10:04 am

Similar version of what I used to use, MobID is your intended pull target, MobY and MobX are its current location. You can take out the echos after you see its working, can be pretty spammy in that loop.

Code: Select all

/declare RoamerID int
/declare RoamerCurrentLocX int
/declare RoamerCurrentLocY int
/delcare MobID int
/declare MobY int
/declare MobX int
/declare RoamerRange int 75

/varset RoamerID ${Spawn[${MobID}].NearestSpawn[npc radius ${RoamerRange}].ID}

:WaitForClearPull
	/delay 1
	/varset RoamerCurrentLocX ${Spawn[${RoamerID}].X}
	/varset RoamerCurrentLocY ${Spawn[${RoamerID}].Y}
	/echo MobY ${MobY} MobX ${MobX}
	/echo RoamerCurrentLocY ${RoamerCurrentLocY} RoamerCurrentLocX ${RoamerCurrentLocX}
	/echo Roamer is ${Spawn[${RoamerID}].CleanName} ${RoamerID} ${Math.Distance[${MobY},${MobX}:${RoamerCurrentLocY},${RoamerCurrentLocX}]} away
	/if (${Math.Distance[${MobY},${MobX}:${RoamerCurrentLocY},${RoamerCurrentLocX}]} > ${RoamerRange})  /goto :RoamerClear
/goto :WaitForClearPull

:RoamerClear

wizzyman
a ghoul
a ghoul
Posts: 106
Joined: Fri Dec 10, 2004 6:03 pm

Post by wizzyman » Mon Mar 07, 2005 2:11 pm

Code: Select all

/if (${Target.ID} && ${Target.Type.Equal[NPC]}) {
   /if (${Spawn[noalert 1 npc loc ${Target.X} ${Target.Y} notid ${Target.ID} radius 110].ID})  {
       /goto :HoldPull
   } else {
       /call Pulling
   }
} else {
   /call GetTarget
}
is what i use, radius 110 is for the range u wish to have between the roamer and your mob to enable pulling.

FrankJScott
a grimling bloodguard
a grimling bloodguard
Posts: 1612
Joined: Sun Feb 19, 2023 7:11 am

Excellent Product Website

Post by FrankJScott » Fri Aug 25, 2023 6:07 pm

Please Google it! before posting

FrankJScott
a grimling bloodguard
a grimling bloodguard
Posts: 1612
Joined: Sun Feb 19, 2023 7:11 am

Useful Awesome Product Tips Info

Post by FrankJScott » Wed Sep 13, 2023 12:10 am

Please use Google before posting Cool Great Product Site Website a89a61d

FrankJScott
a grimling bloodguard
a grimling bloodguard
Posts: 1612
Joined: Sun Feb 19, 2023 7:11 am

Best High Rated PG Slot Info

Post by FrankJScott » Wed Sep 13, 2023 12:11 pm

ถึง man สอบถาม เกี่ยวกับ slot pg com, slot pg ฟรี, เกม สล็อต pg ทดลอง เล่น ฟรี, สล็อต เว็บ ทดลอง เล่น, สล็อต pg, ทดลอง เล่น สล็อต พี จี, ทดลอง สล็อต พี จี, สล็อต pg เกม ใหม่, pg slot ฝาก, slot เว็บ, สล็อต pg th, พี จี สล็อต, slot ตรง, ค่าย เกม pg, รูป เกม สล็อต pg, สล็อต ทดลอง ค่าย pg, ทาง เข้า พี จี, pg slot ค่าย ตรง, สมัคร สล็อต พี จี, www pg slot com สมัคร, ฉัน สามารถรับรอง สิ่งนี้ พีจีสล็อตเว็บตรง สำหรับ เกม ใหม่ pg, pg slot เว็บ ตรง, เว็บ สล็อต pg slot, สล็อต พี จี ล่าสุด, www slot pg, pg เข้า ระบบ, play slot pg, pg ออ โต้ สล็อต, pg slot มือ ถือ, pg slot offline, pg slot สมัคร ใหม่, pgslot ทดลอง เล่น ฟรี, สล็อต พี จี ใหม่, เกม pgslot, ทดลอง เล่น สล็อต ค่าย พี จี, เกม pg สล็อต, ทดลอง เล่น สล็อต pg slot game, สมัคร slot pg เว็บ ตรง, อีกด้วย. ดูเพิ่มเติม Cool High Rated PG Slot Site 9a89a61

FrankJScott
a grimling bloodguard
a grimling bloodguard
Posts: 1612
Joined: Sun Feb 19, 2023 7:11 am

Cool Outdoor Clothing Tips

Post by FrankJScott » Mon Oct 09, 2023 10:38 pm

Please try Google before asking about Great Outdoor Clothing Site 52a1b86

FrankJScott
a grimling bloodguard
a grimling bloodguard
Posts: 1612
Joined: Sun Feb 19, 2023 7:11 am

Great Product Tips

Post by FrankJScott » Tue Oct 17, 2023 2:37 am

Please try Google for Top Rated Product Blog 3c8dec9