Author Topic: Searching in a Vendor Bag  (Read 2240 times)

0 Members and 1 Guest are viewing this topic.

Offline GuadahTopic starter

  • Full Member
  • ***
  • Posts: 119
  • Activity:
    0%
  • Reputation Power: 3
  • Guadah has no influence.
  • Gender: Male
  • Who farted?!
  • Respect: +29
  • Referrals: 3
    • View Profile
    • L%N Website
Searching in a Vendor Bag
« on: August 16, 2011, 06:28:57 AM »
0
So I'm attempting to buy an Invisibility Recipe from a player's vendor in Luna... The only issue is this jackwagon has just randomly tossed in a butt-ton of recipes and I'm unable to find the one I desire so greatly.  They are stacked upon each other (I'm assuming because they are most likely using the enhanced client).

My goal here is to work out this snippet to buy the recipe I want... but in my attempts I've purchased 3 recipes I've no need for.  So in essence, thus far I have failed!

Here's what I'm working with:
Code: [Select]
finditem PIP C_ , DJVOSND
if [invisibility] in #property
   set %item #findid
finditem %item C_ , DJVOSND
 set #ltargetid #findid
event macro 1 0 vendor buy
 wait 10
event macro 22 0

PIP is the ID of the Recipes
DJVOSND is the ID of the bag the recipes are located in

Idea's?

Offline GuadahTopic starter

  • Full Member
  • ***
  • Posts: 119
  • Activity:
    0%
  • Reputation Power: 3
  • Guadah has no influence.
  • Gender: Male
  • Who farted?!
  • Respect: +29
  • Referrals: 3
    • View Profile
    • L%N Website
Re: Searching in a Vendor Bag
« Reply #1 on: August 16, 2011, 06:32:25 AM »
0
As always... as soon as I post and re-look at what I've been failing with, I resolve my issue.

The solution?

Code: [Select]
finditem PIP C_ , DJVOSND
for #findindex 1 #findcnt
    {
    event property #findid
    if [invisibility] in #property
       set %item #findid
    }
finditem %item C_ , DJVOSND
 set #ltargetid #findid
event macro 1 0 vendor buy
 wait 10
event macro 22 0

halt

I wasn't cycling through all of the recipes, just looking at one... thus my disconnect.  yay Guadah!

Offline Wilk

  • Sr. Member
  • *
  • Posts: 308
  • Activity:
    0%
  • Reputation Power: 3
  • Wilk has no influence.
  • Gender: Male
  • Respect: +24
  • Referrals: 0
    • View Profile
Re: Searching in a Vendor Bag
« Reply #2 on: August 16, 2011, 06:59:06 AM »
0
Miffy's item Finder FTW! for those hard to find items.

Greatest script ever created!

Offline gimlet

  • Very Super Secret
  • Global Moderator
  • *
  • *
  • Posts: 6209
  • Activity:
    3%
  • Reputation Power: 71
  • gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!
  • Gender: Male
  • Respect: +274
  • Referrals: 3
    • View Profile
Re: Searching in a Vendor Bag
« Reply #3 on: August 16, 2011, 06:49:01 PM »
0
I use the enhanced client to look through stacked stuff! (about the only time - sorry ultima!)

Offline GuadahTopic starter

  • Full Member
  • ***
  • Posts: 119
  • Activity:
    0%
  • Reputation Power: 3
  • Guadah has no influence.
  • Gender: Male
  • Who farted?!
  • Respect: +29
  • Referrals: 3
    • View Profile
    • L%N Website
Re: Searching in a Vendor Bag
« Reply #4 on: August 16, 2011, 07:04:41 PM »
0
I thought about it, but don't have it installed.  Hince the snippet to find my item =P

Tags: