Pulling static Spawn with A wandering mob near by
Posted: 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
: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