• You've discovered RedGuides 📕 an EverQuest multi-boxing community 🛡️🧙🗡️. We want you to play several EQ characters at once, come join us and say hello! 👋
  • IS THIS SITE UGLY? Change the look. To dismiss this notice, click the X --->
  • Unfortunately, yes, there is a suspension wave happening around the new tlp launch. :'( Please keep regular discussion to Suspension MegaThread and please consider submitting a Suspension report to RG.

How do I (merchant macro question) (1 Viewer)

nijhal

Member
Joined
Feb 22, 2006
RedCents
10¢
Ok Im writing a macro for turning in things buying more and turning in.

I have everything but highlighting the item I want to buy and buying it. Can anyone help?

Say the item to buy is Sheet Metal, what would be the command to highlight it so I can have the macro buy it?

Also, before buying stacks should I put this command in?

/keypress shift hold

So it will buy stacks?

Thanks in advance.
 
go to strats and cheats....


look at stickied items


find new TS macros...

look through all the codes for various macros ..

PROBABLY be easier if you just took the existing smithing macro and modified it

but hey thats my 2cp ...

8-)


ARMY
 
Ok Army, I cant fighure out what Im doing wrong here, I got it to work for buying mead, or anything with a one word name. But, when I try to make it buy Red Wine it messes up, "Echo buying Red" all that I have tried wont buy it. Heres the copy of my code, maybe you can help me.

Rich (BB code):
    /declare CompA item outer 
    /varset CompA Red Wine

    /nomodkey /click right target 
    /delay 1s 
    /call OpenPacks 
    /call Buy ${CompA} 60

I have tried putting Red Wine in "quotes" and 'quotes' and alone with Red_Wine, it just wont buy it. So hopefully after all my searching you can help me and show me what I need to change.

Thanks in advance

N
 
Army thank you so much!!!

I was messing with this all night lastnight I just could not figure it out.

Thanks for the ultrafast reply too!!

Thanks again!!

N
 
Well poo, that still didnt work. Ill just post code here for all to use if they want, its for faction mainly. I cant figure this out blah, still learning lol.

Rich (BB code):
|-----------------------------------------------------------------
|Red Wine Turnin MAcro
|Written by : Nijhal
|Usage : /macro nwine
|
|Description : This macro will loop turning in red wine to the npc 
|in neriakc and buying more wine when it runs out.
|------------------------------------------------------------------


#include common/sell.inc 
#include common/buy.inc 
#include common/packs.inc 
#include common/cleanpacks.inc 

/echo |-------------------------
/echo |Red Win Macro Online.
/echo |-------------------------
/popup Red Wine Macro Online.


    /declare CompA item outer 

    /varset CompA Red Wine

    /echo CENTER your MOUSE ... now pls 
    /delay ${Math.Calc[${DelayMult}*2]}s 
    /beep 
    /delay ${Math.Calc[${DelayMult}*2]}s 
    /beep 
    /delay ${Math.Calc[${DelayMult}*2]}s 

Sub Main
  :start
  /target Lokar To`Biath 10
  /echo Heading to Lokar To`Biath
  /popup Heading to Lokar To`Biath
  /delay 1s
  /warp target
  /delay 1s
  /face fast
  /declare chips int local 

:Loop 
/doevents
/call GMCheck
/if (!${FindItem[=Red Wine].InvSlot}) { 
  /echo backpacks empty getting more stuff. 
  /popup Backpacks Empty, Getting more stuff...
  /call BuyWine 
  /return
} 

/for chips 1 to 4 
   /ctrlkey /itemnotify ${FindItem[=Red Wine].InvSlot} leftmouseup 
   /if (!${FindItem[=Red Wine].InvSlot}) /goto :Done 
      /delay 4 
   /if (${chips}==1) { 
      /click left target 
      /click left target 
      /delay 4 
     } 
   /if (${chips}==2) { 
      /notify GiveWnd GVW_MyItemSlot1 leftmouseup 
      /delay 4 
     } 
   /if (${chips}==3) { 
      /delay 4 
      /notify GiveWnd GVW_MyItemSlot2 leftmouseup 
     } 
   /if (${chips}==4) { 
      /delay 4 
      /notify GiveWnd GVW_MyItemSlot3 leftmouseup 
     } 
/next chips 
/delay 4 
/notify GiveWnd GVW_Give_Button leftmouseup 
/delay 4 

:cursorclear 
/delay 4 
/destroy 
/if (${Cursor.ID}) /goto :cursorclear 
/goto :Loop 

:Done 
  /delay 4 
  /notify GiveWnd GVW_Give_Button leftmouseup 
  /autoinv
  /autoinv
  /autoinv
  /call BuyWine
  /return




Sub BuyWine
    /varset EndingVar 1 
    /delay 1s 
    /target Cecile K`Jartan 
    /delay 2s 
    /warp loc 909, -1424, -81
    /delay 2s
    /face fast
    /delay 2s
    /nomodkey /click right target 
    /delay 1s 
    /call OpenPacks 
    /call Buy "${CompA}" 60
    /delay 1s 
    /keypress esc 
    /delay 2s 
/return
|-------------------------------------------------------------------------------- 
|SUB: GM Check 
|-------------------------------------------------------------------------------- 
Sub GMCheck 

   /if (${Spawn[gm].ID}) { 
      /beep 
      /beep 
      /beep 
      
      /echo GM has entered the zone! 
      /echo FUCK HIM but ending the macro... 
   
      /keypress instant_camp

      /endmacro 
   } 
    
/return

When it gets to buying red wine it says Buying NULL, Couldnt find NULL!

Its probably something dumb and simple im missing but I cant figure it out and my head hurts from this.

N
 
lots of changes.. can u tell me exactly what is suppose to happen?

Lokar To`Biath turn in mob right?

Cecile K`Jartan wine vendor?

go to turn in mob ... turn in 15 sets of 4?

then buy 60 .. then rinse repeat?

just checking

ARMY
 
Rich (BB code):
|-----------------------------------------------------------------
|Red Wine Turnin MAcro
|Written by : Nijhal
|Usage : /macro nwine
|
|Description : This macro will loop turning in red wine to the npc 
|in neriakc and buying more wine when it runs out.
|------------------------------------------------------------------


#include common/sell.inc 
#include common/buy.inc 
#include common/packs.inc 
#include common/cleanpacks.inc 

/echo |-------------------------
/echo |Red Win Macro Online.
/echo |-------------------------
/popup Red Wine Macro Online.




Sub Main

    /declare CompA item outer 
    /declare Wine int local
    /declare Set int local
    /varset CompA Red Wine


  :start
  /target Lokar To`Biath
  /echo Heading to %t
  /popup Heading to %t
  /delay 1s
  /warp target
  /delay 1s
  /face fast


:Loop 
/doevents
/call GMCheck
/if (!${FindItem[=Red Wine].InvSlot}) { 
  /echo backpacks empty getting more stuff. 
  /popup Backpacks Empty, Getting more stuff...
  /call BuyWine 
  /return
} 

/for Set 1 to 15
/for Wine 1 to 4 
   /ctrlkey /itemnotify ${FindItem[=Red Wine].InvSlot} leftmouseup 
       /click left target
       /if (!${Cursor.ID}) /goto :Done 
      /delay 4 
      /notify GiveWnd GVW_MyItemSlot${Wine} leftmouseup 
      /delay 4 
/next Wine 
/delay 4 
/notify GiveWnd GVW_Give_Button leftmouseup 
/delay 4 

  /call ClearCursor
/next Set
:Done 
  /call ClearCursor
  /call BuyWine
  /return




Sub BuyWine
    /varset EndingVar 1 
    /delay 1s 
    /target Cecile K`Jartan 
    /face 
    /delay 1s 
    /warp loc 909, -1424, -81
    /delay 1s
    /nomodkey /click right target 
    /delay 1s 

    /call Buy "${CompA}" 60

    /nomodkey /notify MerchantWnd MW_Done_Button LeftMouseUp

    /keypress esc 
    /delay 2s 

|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|Clear Cursor
|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sub ClearCursor 
/declare x int local 
:auto_inv 
/if (${Cursor.ID}) { 
  /if (${Cursor.Container}) { 
    /for x 1 to 8 
    /if (!${InvSlot[pack${x}].Item.Container}) /nomodkey /itemnotify pack${x} leftmouseup 
    /next x 
  } else { 
    /timed 5 /autoinventory 
  } 
  /goto :auto_inv 
} 
/return 

|-------------------------------------------------------------------------------- 
|SUB: GM Check 
|-------------------------------------------------------------------------------- 
Sub GMCheck 

   /if (${Spawn[gm].ID}) { 
      /beep 
      /beep 
      /beep 
      
      /echo GM has entered the zone! 
      /echo FUCK HIM but ending the macro... 
   
      /keypress instant_camp

      /endmacro 
   } 
    
/return
 
Well what Im trying to do is, just goto Lokar turn in all Red Wine, warp to Cecile buy more and repeat.

Basicly since I moved and have to wait for my cable connection for another 2 weeks Im on dialup and cant do much with it cause I run 5 toons. So I have been making macros. This one I have been having considerable trouble with though. I do however have a BBMM Pirate MM 5 person minimum group mac almost done, just need to test them out tonight with my friend. When they are done, I will be posting them.

BTW If anyone know what Mister Squich says when the pirate MM is complete that ends the mission and spawns the chest can you post it? Need to know what he says for my loot event.

I think Im just gonna rewrite this wine mac cause I got more errors...

/varset failed, variable 'EndingVar' not found
nwine.mac@76 (BuyWine):/varset EndingVar 1
nwine.mac@69 (Main):/call BuyWine

I did however get the buying of red wine fixed as long as it isint a variable,

Rich (BB code):
/call Buy "Red Wine" 60

I needed to take out common path from include I had an older version of buy.inc in there and newer in macros directory.

Thanks for all the help I will rewrite it all from scratch and repost if I have anymore problems.

Also, as you might expect I am somewhat new to writing macros, atleast with buying and selling. I want to get into variables and stuff and declares but I am just having a hard time figuring it all out. If you know any good guides about that kinda stuff please point me in the right directions (probably in guides ection). Couple questions...

1. If it isint in the main loop how many times do you have to have a macro read an ini file in your macro? just once?

2. How hard is it to make a Wait4Rez plugin?

All I can think of right now with a migrane.

N
 
nijhal said:
Well what Im trying to do is, just goto Lokar turn in all Red Wine, warp to Cecile buy more and repeat.

Basicly since I moved and have to wait for my cable connection for another 2 weeks Im on dialup and cant do much with it cause I run 5 toons. So I have been making macros. This one I have been having considerable trouble with though. I do however have a BBMM Pirate MM 5 person minimum group mac almost done, just need to test them out tonight with my friend. When they are done, I will be posting them.

BTW If anyone know what Mister Squich says when the pirate MM is complete that ends the mission and spawns the chest can you post it? Need to know what he says for my loot event.

I think Im just gonna rewrite this wine mac cause I got more errors...

/varset failed, variable 'EndingVar' not found
nwine.mac@76 (BuyWine):/varset EndingVar 1
nwine.mac@69 (Main):/call BuyWine

I did however get the buying of red wine fixed as long as it isint a variable,

Rich (BB code):
/call Buy "Red Wine" 60

I needed to take out common path from include I had an older version of buy.inc in there and newer in macros directory.

Thanks for all the help I will rewrite it all from scratch and repost if I have anymore problems.

Also, as you might expect I am somewhat new to writing macros, atleast with buying and selling. I want to get into variables and stuff and declares but I am just having a hard time figuring it all out. If you know any good guides about that kinda stuff please point me in the right directions (probably in guides ection). Couple questions...

1. If it isint in the main loop how many times do you have to have a macro read an ini file in your macro? just once?

2. How hard is it to make a Wait4Rez plugin?

All I can think of right now with a migrane.

N


i didn't even look at your buy sub .. remove the /varset EndingVar 1

and the rest should work

this is close to being done... just need to test again

8-)

ARMY
 
Ok edited it alot more messed around and its working perfect. Heres the code, I will post it in the main forum too, it can be used for muffins for pandos too i suppose, and others if i found them.

Thanks everyone.

Rich (BB code):
|-----------------------------------------------------------------
|Red Wine Turnin MAcro
|Written by : Nijhal
|Usage : /macro nwine
|
|Description : This macro will loop turning in red wine to the npc 
|in neriakc and buying more wine when it runs out.
|
|Thanks to Armysoldier and Z166204 for their help!
|------------------------------------------------------------------

#turbo 40
#include sell.inc 
#include buy.inc 
#include packs.inc 
#include cleanpacks.inc 

    /declare Set int local
    /varset CompA Red Wine

/echo |-------------------------
/echo |Red Win Macro Online.
/echo |-------------------------
/popup Red Wine Macro Online.




Sub Main

  :start
  /target Lokar To`Biath 10
  /echo Heading to Lokar To`Biath
  /popup Heading to Lokar To`Biath
  /delay 1s
  /warp target
  /delay 1s
  /face fast

  /declare chips int local 

:Loop 
/doevents
/call GMCheck
/for chips 1 to 4 
   /ctrlkey /itemnotify ${FindItem[=Red Wine].InvSlot} leftmouseup 
   /if (!${FindItem[=Red Wine].InvSlot}) /call BuyWine
      /delay 2 
   /if (${chips}==1) { 
      /click left target 
      /click left target 
      /delay 1s 
     } 
   /if (${chips}==2) { 
      /notify GiveWnd GVW_MyItemSlot1 leftmouseup 
      /delay 2 
     } 
   /if (${chips}==3) { 
      /delay 2 
      /notify GiveWnd GVW_MyItemSlot2 leftmouseup 
     } 
   /if (${chips}==4) { 
      /delay 2 
      /notify GiveWnd GVW_MyItemSlot3 leftmouseup 
     } 
/next chips 
/delay 2 
/notify GiveWnd GVW_Give_Button leftmouseup 
/delay 2 

:cursorclear 
/delay 2s 
/destroy 
/if (${Cursor.ID}) /goto :cursorclear 
/goto :Loop 







Sub BuyWine
    /delay 1s
    /autoinv
    /autoinv
    /autoinv
    /delay 2s
    /popup Heading to Cecile K`Jartan 
    /target Cecile K`Jartan 
    /face 
    /delay 2s 
    /warp loc 909, -1424, -81
    /delay 2s
    /nomodkey /click right target 
    /delay 2s 

    /call Buy "Red Wine" 60

    /nomodkey /notify MerchantWnd MW_Done_Button LeftMouseUp

    /delay 4s

    /target Lokar To`Biath 10
    /echo Heading to Lokar To`Biath
    /popup Heading to Lokar To`Biath
    /delay 1s
    /warp target
    /delay 1s
    /face fast 
/return


|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|Clear Cursor
|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sub ClearCursor 
/declare x int local 
:auto_inv 
/if (${Cursor.ID}) { 
  /if (${Cursor.Container}) { 
    /for x 1 to 8 
    /if (!${InvSlot[pack${x}].Item.Container}) /nomodkey /itemnotify pack${x} leftmouseup 
    /next x 
  } else { 
    /timed 5 /autoinventory 
  } 
  /goto :auto_inv 
} 
/return 

|-------------------------------------------------------------------------------- 
|SUB: GM Check 
|-------------------------------------------------------------------------------- 
Sub GMCheck 

   /if (${Spawn[gm].ID}) { 
      /beep 
      /beep 
      /beep 
      
      /echo GM has entered the zone! 
      /echo FUCK HIM but ending the macro... 
   
      /keypress instant_camp

      /endmacro 
   } 
    
/return

Thanks again guys!!

N
 
it automatically ended due to not having the include files, buy sell packs and cleanpacks

actually don't worry about it :) i just handed in 250 muffins solo and i can proceed haha.. thanks anyway maskoi, you da best!
 
How do I (merchant macro question)

Users who are viewing this thread

Back
Top