Page 1 of 1

FindItem/FindItemCount and Cursor Items

Posted: Fri Sep 22, 2017 10:34 am
by Arglemente
Before this last patch, FindItemCount included items on the cursor.

This is no longer the case.

If you have 10 in inventory and 1 on cursor
${FindItemCount[=Vegetables]}
Will return 10. Previously it was 11. More importantly, if all are on cursor, count is 0.

However FindItem appears to still factor cursor in. if all of an item is on the cursor, count is 0, and found is still valid
${FindItem[=Vegetables]}

Re: FindItem/FindItemCount and Cursor Items

Posted: Fri Sep 22, 2017 6:13 pm
by SwiftyMUSE
I don't see any changes in the code that would make this the case. That being said, FindItem and FindItemCount should work the same way. I'll look at adding the cursor stuff to FindItemCount.

Re: FindItem/FindItemCount and Cursor Items

Posted: Sun Sep 24, 2017 11:43 am
by Arglemente
Thank you.

It's possible it changed a patch ago - I don't recall if I used my forage macro in the past month.

Either way, I have modified my script (a variation on YAFF someone posted here many years ago) to compensate, but things are definitely different "recently" (last patch or two).

The fact that FindItem and FindItemCount work differently with regard to the cursor is an inconsistency.

Re: FindItem/FindItemCount and Cursor Items

Posted: Sun Sep 24, 2017 4:32 pm
by SwiftyMUSE
I've sent EqMule the changes to be included in the next release.

Re: FindItem/FindItemCount and Cursor Items

Posted: Mon Sep 25, 2017 12:40 am
by Arglemente
That is amazing. Thank you.