Author Topic: Finditem Ordering  (Read 4871 times)

0 Members and 1 Guest are viewing this topic.

Offline UOMaddogTopic starter

  • Maddog
  • Elite
  • *
  • *
  • Posts: 1625
  • Activity:
    0%
  • Reputation Power: 22
  • UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...
  • Gender: Male
  • Biggest B@D@$$ of the Universe
  • Respect: +165
  • Referrals: 8
    • View Profile
    • Insane UO
Finditem Ordering
« on: September 22, 2011, 05:51:38 PM »
0
So I had a curious question. If I have a open bag with 100 items in it and I do finditem * C with it, it will find 100 items and they will all be in the #findindex from 1 through 100. Now, if I run the same finditem again, will every item be "found" in the exact same order or does it vary randomly???
There are 10 kinds of people in this world: those that understand binary and those that don't!

Windows:  A 64-bit tweak of a 32-bit extension to a 16-bit user interface for an 8-bit operating system based on a 4-bit architecture from a 2-bit company that can't stand 1 bit of competition!

Offline camotbik

  • Sr. Member
  • *
  • Posts: 349
  • Activity:
    0%
  • Reputation Power: 3
  • camotbik has no influence.
  • Gender: Male
  • Hello! I'm a UO addict.
  • Respect: +38
  • Referrals: 0
    • View Profile
Re: Finditem Ordering
« Reply #1 on: September 22, 2011, 06:08:02 PM »
0
why not just test it out?
Code: [Select]
menu Clear
menu Window Title TEST
menu Window Color BtnFace
menu Window Size 422 563
menu Font Transparent #true
menu Font Align Right
menu Font Name MS Sans Serif
menu Font Size 8
menu Font Style
menu Font Color WindowText
menu Font BGColor Window
menu List Create EUOListBox1 0 0 209 573
menu Font Name MS Sans Serif
menu Font Size 8
menu Font Style
menu Font Color WindowText
menu List Create EUOListBox2 212 0 209 573
menu Show 421 270
finditem * C_ , #backpackid
for #findindex 1 #findcnt
{
  menu List Add EUOListBox1 #findid
}
finditem * C_ , #backpackid
for #findindex 1 #findcnt
{
  menu List Add EUOListBox2 #findid
}
halt


Seems exactly the same.
What you witness -- is whatver..
uogamers hybrid.

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: Finditem Ordering
« Reply #2 on: September 22, 2011, 06:17:08 PM »
0
i believe they are indexed in item id order...  so if you swapped one item out the index would change.
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline UOMaddogTopic starter

  • Maddog
  • Elite
  • *
  • *
  • Posts: 1625
  • Activity:
    0%
  • Reputation Power: 22
  • UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...
  • Gender: Male
  • Biggest B@D@$$ of the Universe
  • Respect: +165
  • Referrals: 8
    • View Profile
    • Insane UO
Re: Finditem Ordering
« Reply #3 on: September 22, 2011, 09:20:29 PM »
0
i believe they are indexed in item id order...  so if you swapped one item out the index would change.


You mean like alphabetical order by their id?

(Sorry I couldn't test this, I was at work and just had a thought and was curious of the answer. Also, even with a few tests, I wasn't sure if it was guaranteed every time)
There are 10 kinds of people in this world: those that understand binary and those that don't!

Windows:  A 64-bit tweak of a 32-bit extension to a 16-bit user interface for an 8-bit operating system based on a 4-bit architecture from a 2-bit company that can't stand 1 bit of competition!

Offline Neo

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
Re: Finditem Ordering
« Reply #4 on: September 23, 2011, 03:11:37 AM »
0
Well, I gave it a few tests here...

  • Item: Mortar And Pestle ID: TOOCKUD Type: RQF kind: 0 col: 0 rep: 255
  • Item: Mortar And Pestle ID: NOOCKUD Type: RQF kind: 0 col: 0 rep: 255
  • Item: Runebook ID: EBEQAUD Type: ZBN kind: 0 col: 2124 rep: 208
  • Item: Mysticism Spellbook ID: LJQSWTD Type: RJR kind: 0 col: 0 rep: 0
  • Item: Book Of Chivalry ID: TJVSMTD Type: YXM kind: 0 col: 0 rep: 0
  • Item: Runebook ID: LRNHGTD Type: ZBN kind: 0 col: 1121 rep: 196
  • Item: Runebook ID: CMFEGTD Type: ZBN kind: 0 col: 1121 rep: 192
  • Item: Endless Decanter Of Water ID: UNNDATD Type: VBM kind: 0 col: 1150 rep: 255
  • Item: Bulk Order Book ID: JOTQYSD Type: DYM kind: 0 col: 0 rep: 68
  • Item: 20 Spiders' Silk ID: KDEHTSD Type: RZF kind: 0 col: 0 rep: 255
  • Item: Bag ID: QDEHTSD Type: CKF kind: 0 col: 0 rep: 176
  • Item: Recall Rune ID: GRDHTSD Type: QWL kind: 0 col: 0 rep: 255
  • Item: Recall Rune ID: WQDHTSD Type: QWL kind: 0 col: 0 rep: 255
  • Item: Recall Rune ID: NQDHTSD Type: QWL kind: 0 col: 0 rep: 255
  • Item: Recall Rune ID: OQDHTSD Type: QWL kind: 0 col: 0 rep: 255
  • Item: Tinker's Tools ID: BCDDYRD Type: JTL kind: 0 col: 0 rep: 255
  • Item: Scribe's Pen ID: YEGPJRD Type: PBG kind: 0 col: 0 rep: 255
  • Item: Bulk Order Book ID: IHGPJRD Type: DYM kind: 0 col: 0 rep: 0
  • Item: 8283 Gold Coin ID: RVWOVQD Type: POF kind: 0 col: 0 rep: 255
  • Item: An Interior Decorator ID: PDDDPPD Type: BXF kind: 0 col: 0 rep: 255
  • Item: Runebook ID: PUODOPD Type: ZBN kind: 0 col: 1121 rep: 0
  • Item: Runebook ID: LQLIGPD Type: ZBN kind: 0 col: 2219 rep: 184
  • Item: Runebook ID: IJMNBND Type: ZBN kind: 0 col: 2126 rep: 200


At first glance, I figured they were indexed by #findid, in inverse alphabetical order, if you read the id from right to left.

Then I found some exceptions.

Then I ran it for G_15 and found no logic behind the order whatsoever...

So, I really can't see a pattern here... If anyone can, please enlighten me! :)

neo



« Last Edit: September 23, 2011, 03:20:18 AM by Neo »
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Finditem Ordering
« Reply #5 on: September 23, 2011, 04:02:02 AM »
0
In the order moved with the first identified item being the last one moved.

Maybe lol...

I'm pretty sure I played with this for like 10 minutes before. If you have 20 bandages in your pack unstacked, and move them one at a time into a container, then do a find for bandage, they will show up with the last one moved being the first one found.

I got bored with it and never revisited it, until this very post :P
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline Crome969

  • Elite
  • *
  • *
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: Finditem Ordering
« Reply #6 on: September 23, 2011, 06:59:00 AM »
0
In the order moved with the first identified item being the last one moved.

Maybe lol...

I'm pretty sure I played with this for like 10 minutes before. If you have 20 bandages in your pack unstacked, and move them one at a time into a container, then do a find for bandage, they will show up with the last one moved being the first one found.

I got bored with it and never revisited it, until this very post :P
You are right!
I had these tests some years ago,too and it seems like the order comes up as the Datastream goes to client.
Example:
ID 1 -10 are in Bag a
now you Scan Bag a and getting an Index with an Order 1-10
then you move 2,3,7,5,4,1,6,8,9,10 in this queue to Bag b
doing Scanitems will give you exactly this Order!

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Finditem Ordering
« Reply #7 on: September 23, 2011, 07:32:27 AM »
0
Yeah! What do I win?
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: Finditem Ordering
« Reply #8 on: September 23, 2011, 07:40:46 AM »
0
Yeah! What do I win?

A Hacksimus Extremus title   ;) :D ;D
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline Crome969

  • Elite
  • *
  • *
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: Finditem Ordering
« Reply #9 on: September 23, 2011, 08:36:03 AM »
0
Yeah! What do I win?
I will Honor you until my end of life as the Administrator of this Site and praise your insane knowlegde about Easyuo ;D

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Finditem Ordering
« Reply #10 on: September 23, 2011, 08:39:52 AM »
0
Yeah! What do I win?
I will Honor you until my end of life as the Administrator of this Site and praise your insane knowlegde about Easyuo ;D
I'll take it!
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline NObama

  • Everything I need to know, I learned from Miffy's Item Finder.
  • Elite
  • *
  • *
  • Posts: 3454
  • Activity:
    0%
  • Reputation Power: 43
  • NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.
  • Respect: +161
  • Referrals: 2
    • View Profile
Re: Finditem Ordering
« Reply #11 on: September 23, 2011, 07:48:21 PM »
0
The question is....how is it useful?  Perhaps for scanning your bag for drops, if scanjournal isn't an option?

Offline Crome969

  • Elite
  • *
  • *
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: Finditem Ordering
« Reply #12 on: September 24, 2011, 12:38:26 PM »
0
The question is....how is it useful?  Perhaps for scanning your bag for drops, if scanjournal isn't an option?
When u scan a Container or Ground, and want change the queue start from last not from first. So you have the option to say with your code how you want to use it. The Main Author asked for the ordering

Tags: