• You've discovered RedGuides 📕 an EverQuest multi-boxing community 🛡️🧙🗡️. We want you to play several EQ characters at once, come join us and say hello! 👋
  • IS THIS SITE UGLY? Change the look. To dismiss this notice, click the X --->

How do I...? (1 Viewer)

FunWithUs

New member
Joined
Aug 21, 2005
RedCents
I am not sure what to call it... An array perhaps? Basically, I want to be able to set up a structure that will look at my current location, do a check to see if there are any NPCs within a certain range, and if not, move to the next set of locs and check again. If nothing there, it will move to the next one, and so on...

I just want to be able to cycle through coordinates until I get to a point that has mobs in range. Can anyone give me an example of a set of if statements that will cycle through results in a specific order?

I think I can fill in the blanks if I have a good example to base my work off of.

Thanks in advance.
 
Rich (BB code):
Sub Main
/declare coordcount int outer 0
/declare resetcount int outer 5
:Start
/if (!${SpawnCount[NPC Radius 50]}) {
/if (${coordcount}>=${resetcount}) /varset coordcount 0
/call gotonext
} else /call dosomethingsub
/goto :Start
/return

sub gotonext
/if (${coordcount}==5) {
    /call movetoloc -60.43 1513.25
/varcalc coordcount ${coordcount}+1
}
/if (${coordcount}==4) {
    /call movetoloc -72.33 1435.96
/varcalc coordcount ${coordcount}+1
}
/if (${coordcount}==3) {
    /call movetoloc -60.43 1513.25
/varcalc coordcount ${coordcount}+1
}
/if (${coordcount}==2) {
    /call movetoloc -72.33 1435.96
/varcalc coordcount ${coordcount}+1
}
/if (${coordcount}==1) {
    /call movetoloc -60.43 1513.25
/varcalc coordcount ${coordcount}+1
}
/if (${coordcount}==0) {
    /call movetoloc -72.33 1435.96
/varcalc coordcount ${coordcount}+1
}
/return
 
How do I...?

Users who are viewing this thread

Back
Top