problem with my buy.mac

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

seancraft04
decaying skeleton
decaying skeleton
Posts: 9
Joined: Sat Jun 05, 2004 11:58 pm

problem with my buy.mac

Post by seancraft04 » Wed Jun 23, 2004 11:54 am

Ok basically ive got a buy.mac im using and having problems after it runs a few times.. it will occasionally buy 20 stacks of item XX instead of buying 20 individual items of x. I've tried quite a bit to fix this and im lost im postive i need some sort of a check to see what im buying or something. When it works it buys from the correct slots, an example would be like x = slot 1 xxx= slot 3 and so it buys 20 individual items in slot 1 and a stack of 20 of the stackable items in slot 3, and in this case it would be working correctly whereas after running a few times it will almost swap what i asked, having bought 20 stacks of the slot 3 items and 1 slot 1 item... it is quite odd to say the least and i am at a total loss why it is doing this. I also know/realize that you must have the merchant window/packs and everything open for this to work and that def isn't the problem.

Thank You

Code: Select all

Sub Main
   
  
    /call BuyStack x
    /delay .2s
    /call BuyStack x
    /delay .2s
    /call BuyStack x
    /delay .2s
    /call BuyStack x 
    /delay .2s
    /call BuyStack x
    /delay .2s
    /call BuyStack x 
    /delay .2s
    /call BuyStack x 
    /delay .2s
    /call BuyStack x 
    /delay .2s
    /call BuyStack x
    /delay .2s
    /call BuyStack x 
    /delay .2s
    /call BuyStack x
    /delay .2s
    /call BuyStack x
    /delay .2s
    /call BuyStack x 
    /delay .2s
    /call BuyStack x 
    /delay .2s
    /call BuyStack x 
    /delay .2s
    /call BuyStack x 
    /delay .2s
    /call BuyStack x
    /delay .2s
    /call BuyStack x
    /delay .2s
    /call BuyStack x
    /delay .2s
    /call BuyStack x 
    /delay .2s 
    /call BuyStack xx 
    /delay .2s 

    /return

Sub BuyStack(int SlotNumber) 
    
   /itemnotify Merchant${SlotNumber} leftmouseup 
   /delay 1s 
   /buyitem 20 
   /delay 1s 
   
   /return
}

robdawg
a ghoul
a ghoul
Posts: 114
Joined: Tue Mar 23, 2004 11:54 am
Contact:

Re: problem with my buy.mac

Post by robdawg » Wed Jun 23, 2004 12:54 pm

seancraft04 wrote:

Code: Select all

Sub BuyStack(int SlotNumber) 
    
   /itemnotify Merchant${SlotNumber} leftmouseup 
   /delay 1s 
   /buyitem 20 
   /delay 1s 
   
   /return
Try this...

Code: Select all

Sub BuyStack
    
   /itemnotify Merchant${Param0} leftmouseup 
   /delay 1s 
   /buyitem 20 
   /delay 1s 
   
   /return
I ran into the same problem and this seemed to fix it. SO just go with what works. :)
ROBDAWG

[url=http://www.seathound.com]Seat Hound[/url]
[url=http://www.sportsrumormill.com]Sports Rumor Mill[/url]
[url=http://www.packerforum.com]Packer Forum[/url]

seancraft04
decaying skeleton
decaying skeleton
Posts: 9
Joined: Sat Jun 05, 2004 11:58 pm

Post by seancraft04 » Wed Jun 23, 2004 1:08 pm

Hmm turns out that still doesnt fix it, it ends up having the same problem a little later even with your fix

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Wed Jun 23, 2004 10:12 pm

Buy a stack of water flasks:

Code: Select all

/itemnotify ${Merchant.Item[water flask].InvSlot} leftmouseup
/shift /notify MerchantWnd MW_Buy_Button leftmouseup

BrainDeath
a ghoul
a ghoul
Posts: 86
Joined: Sun Mar 07, 2004 5:00 pm

Post by BrainDeath » Thu Jun 24, 2004 1:07 pm


User avatar
blueninja
a grimling bloodguard
a grimling bloodguard
Posts: 541
Joined: Thu Aug 28, 2003 7:03 am
Location: Göteborg, Sweden

Re: problem with my buy.mac

Post by blueninja » Thu Jun 24, 2004 1:42 pm

seancraft04 wrote:

Code: Select all

    /call BuyStack x
    /delay .2s
    /call BuyStack x
    /delay .2s
    /call BuyStack x
    /delay .2s
    /call BuyStack x 
    /delay .2s
    /call BuyStack x
    /delay .2s
    /call BuyStack x 
    /delay .2s
    /call BuyStack x 
    /delay .2s
    /call BuyStack x 
    /delay .2s
    /call BuyStack x
    /delay .2s
    /call BuyStack x 
    /delay .2s
    /call BuyStack x
    /delay .2s
    /call BuyStack x
    /delay .2s
    /call BuyStack x 
    /delay .2s
    /call BuyStack x 
    /delay .2s
    /call BuyStack x 
    /delay .2s
    /call BuyStack x 
    /delay .2s
    /call BuyStack x
    /delay .2s
    /call BuyStack x
    /delay .2s
    /call BuyStack x
    /delay .2s
    /call BuyStack x 
    /delay .2s 
Ok, sometimes unrolling loops can be a good thing but that's just ridiculous.. J/K :)

The problem you're having, could it perhaps be related to the shift or ctrl keys being pressed?