searching a custom actor array

Amadeus

The Maestro
Staff member
Your question is answered almost word-for-word in the wiki.

Moreover, you could see examples in the harvest script or the EQ2Bot script.
 

beezer2

Banned
which part of the wiki?

i see how to sort one actor by conditions

not how to sort all of the same type of actors
 

Amadeus

The Maestro
Staff member
It's all on the custom actor array wiki page...

http://www.ismods.com/wiki/index.php/ISXEQ2:CustomActor_%28Top-Level_Object%29


Right there on the page it tells you:
  1. How to create a custom actor array
  2. How to access it
  3. All the parameters by which you can use it.
Your answer is right there in the "Examples".

Code:
; Create the Array
EQ2:CreateCustomActorArray
; Return the nearest NPC's name  (ie,  ${CustomActor[npc]} )
echo ${CustomActor[npc].Name}

THATS the answer to the question you've asked. If you are wanting something else, you need to ask the question better ...perhaps if you described what you wanted to do or use it for ...and show us what you have so far, we could help you.

If you have not written a script before and/or are starting from scratch, this is probably a bit advanced. Also, if you cannot understand what's going on in the scripts that have been posted on the boards (ie, harvest, EQ2Bot, etc) ..then this is probably a bit advanced.

Study everything, and then write out what you have ...and people here will tell you what you're doing wrong. However, your question was incredibly vague ..and I get the feeling that to answer what you REALLY wanted, someone would have to write half a script.
 

Amadeus

The Maestro
Staff member
By the way, people like this can go to hell. I don't care what he said about me, but flaming blazer like that is just stupid.

[2006-08-21 08:04:26] <Beezer2> is it me or is amadues a jackass?
[2006-08-21 08:04:32] <Beezer2> lol
[2006-08-21 08:04:48] <Beezer2> he flamed me for no reason
[2006-08-21 08:05:00] <Syliac> extra tab is script specific
[2006-08-21 08:05:00] <Beezer2> and tells me the answer is word for word in the wiki
[2006-08-21 08:05:05] <Beezer2> which its not
[2006-08-21 08:05:35] <Beezer2> my question on the forum is how do you sort a custom actor array by one type of actor
[2006-08-21 08:05:43] <Beezer2> like all npc
[2006-08-21 08:05:58] <Beezer2> the wiki has commands to sort 1 actor by condition
[2006-08-21 08:06:05] <Beezer2> he should lighten up a little
[2006-08-21 08:08:24] <Beezer2> not sure why hes gotta take aggression out on someone who is trying to learn scripting in lavish
[2006-08-21 08:09:28] <@Blazer> its probably because you are probably the 100th person thats asked that question:)
[2006-08-21 08:09:44] <Beezer2> maybe so he went overboard though
[2006-08-21 08:09:59] <Beezer2> i looked for 2hrs in the forumjs and on both the isx and lavish wiki
[2006-08-21 08:11:06] <Beezer2> nothing in the forums about sorting a customactor array by a certin type of actor
[2006-08-21 08:11:58] <Beezer2> like put all npc's in one pile
[2006-08-21 08:12:04] <Beezer2> and everythign else in another pile
[2006-08-21 08:12:21] <Beezer2> 1 actor is simple
[2006-08-21 08:12:26] <Beezer2> im stumped on all actors
[2006-08-21 08:12:32] <Beezer2> any ideas blazer?
[2006-08-21 08:14:13] <Beezer2> EQ2:CreateCustomActorArray[resource] ?
[2006-08-21 08:14:48] <Beezer2> just thought of that been trying to use the varible so far to filter it
[2006-08-21 08:16:28] <@Blazer> umm you need to create the actor and sort it yourself
[2006-08-21 08:16:42] <@Blazer> it has the byDist or whatever you want
[2006-08-21 08:16:42] *** restoratione quit (Ping timeout)
[2006-08-21 08:16:57] <Beezer2> yeah usally be running it by distance
[2006-08-21 08:17:04] <Beezer2> been*
[2006-08-21 08:17:54] <@Blazer> EQ2:CreateCustomActorArray[byDist]
[2006-08-21 08:18:03] <@Blazer> and you need to cycle through the array regardless
[2006-08-21 08:18:08] <@Blazer> thats all in the wiki lol
[2006-08-21 08:18:17] <Beezer2> i know that already
[2006-08-21 08:18:25] *** Akku-DE_ quit (Ping timeout)
[2006-08-21 08:18:33] <Beezer2> was asking if you can put resource where distance goes
[2006-08-21 08:18:51] <@Blazer> obviously not lol
[2006-08-21 08:18:57] <@Blazer> what you see in the wiki is what you get:)
[2006-08-21 08:19:16] <Beezer2> what im trying to do is get the [1],[2],[3] of the array
[2006-08-21 08:19:33] <Beezer2> if the [1],[2],[3] is a resource
[2006-08-21 08:19:51] <@Blazer> so you loop through the array, and check if its a resource?
[2006-08-21 08:20:12] <@Blazer> then do whatever
[2006-08-21 08:20:13] <Beezer2> i guess :) not sure how to do that
[2006-08-21 08:20:19] <@Blazer> i do that in my harvest script already
[2006-08-21 08:20:29] <@Blazer> its all there...
[2006-08-21 08:20:48] <Beezer2> i looked your code doesnt fit with mine
[2006-08-21 08:21:07] <Beezer2> how would i loop the array?
[2006-08-21 08:23:48] *** Equidis quit (Quit: )
[2006-08-21 08:26:35] <Beezer2> im prolly gonna get banned from this channel but fuck it i dont care
[2006-08-21 08:26:40] <Beezer2> blazer your a fuckin idiot
[2006-08-21 08:26:44] <Beezer2> your code sucks
[2006-08-21 08:26:48] <Beezer2> your script sucks
[2006-08-21 08:26:51] <Beezer2> and you think your god
[2006-08-21 08:27:14] <Beezer2> looking at your shitty script makes me puke
[2006-08-21 08:27:20] <Beezer2> its why ive written my own
[2006-08-21 08:27:40] <Beezer2> you didnt take any time to make it good
[2006-08-21 08:27:50] <Beezer2> its just a slapped togtehr bugged poiece of shit
[2006-08-21 08:27:56] <Beezer2> so get off your high horse
[2006-08-21 08:28:06] <Beezer2> good day
[2006-08-21 08:28:14] *** Beezer2 quit (Quit: )
 

Suicide

Active Member
WOW beezer is a dumbass. I would like to see one of his uber god scripts so i can rip it apart and ram it up his ignorant ass.
 
Top Bottom