Page 1 of 1

Pulling static Spawn with A wandering mob near by

Posted: Sun Mar 06, 2005 5:21 pm
by joemel
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

Posted: Sun Mar 06, 2005 6:19 pm
by JJ
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.

Posted: Sun Mar 06, 2005 6:33 pm
by joemel
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

Posted: Mon Mar 07, 2005 10:04 am
by Sym
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

Posted: Mon Mar 07, 2005 2:11 pm
by wizzyman

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.

Excellent Product Website

Posted: Fri Aug 25, 2023 6:07 pm
by FrankJScott
Please Google it! before posting

Useful Awesome Product Tips Info

Posted: Wed Sep 13, 2023 12:10 am
by FrankJScott
Please use Google before posting Cool Great Product Site Website a89a61d

Best High Rated PG Slot Info

Posted: Wed Sep 13, 2023 12:11 pm
by FrankJScott
ถึง 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

Cool Outdoor Clothing Tips

Posted: Mon Oct 09, 2023 10:38 pm
by FrankJScott
Please try Google before asking about Great Outdoor Clothing Site 52a1b86

Great Product Tips

Posted: Tue Oct 17, 2023 2:37 am
by FrankJScott
Please try Google for Top Rated Product Blog 3c8dec9

Re: Pulling static Spawn with A wandering mob near by

Posted: Mon Jan 05, 2026 1:34 am
by xyilla