Page 1 of 1

problem with my buy.mac

Posted: Wed Jun 23, 2004 11:54 am
by seancraft04
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
}

Re: problem with my buy.mac

Posted: Wed Jun 23, 2004 12:54 pm
by robdawg
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. :)

Posted: Wed Jun 23, 2004 1:08 pm
by seancraft04
Hmm turns out that still doesnt fix it, it ends up having the same problem a little later even with your fix

Posted: Wed Jun 23, 2004 10:12 pm
by dont_know_at_all
Buy a stack of water flasks:

Code: Select all

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

Posted: Thu Jun 24, 2004 1:07 pm
by BrainDeath

Re: problem with my buy.mac

Posted: Thu Jun 24, 2004 1:42 pm
by blueninja
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?