Help? Will this work?

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

cheater337
decaying skeleton
decaying skeleton
Posts: 5
Joined: Thu Oct 03, 2002 7:46 pm

Help? Will this work?

Post by cheater337 » Wed Nov 13, 2002 11:13 am

will this work? if not does any one have one that will work?

Code: Select all

 | - buy.mac -
| hacked together from plasmic's sellitem
| Usage: /macro buy "Jug of Sauces" 
| auto magicly buys 30 stacks of specified item

#include routines.mac
#turbo
#chat say

Sub Main
/varset v65 0
/varset v66 "$target(name,clean)"
/press Num_5
/click right target
   :WaitForMerchant
      /doevents
   /if n $v65==0 /goto :WaitForMerchant

/merchant similar "$p0" 
/call buyitem 30
/press esc
/return

sub Event_Chat
   /if "$p1"=="$v66" /if "$p0"~~"say" /if "$p2"~~"$char(name)" /varset v65 1
/return 
[ CENSORED by board mod ]
LOADING PLEASE WAIT...
*GM*butwad tells you, " you are being banned for using macros"
You tell *GM*butwad, "WHAT?! But i dont even KNOW MARCO!"

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Wed Nov 13, 2002 3:40 pm

Salutations,
it should...

cheater337
decaying skeleton
decaying skeleton
Posts: 5
Joined: Thu Oct 03, 2002 7:46 pm

Post by cheater337 » Wed Nov 13, 2002 5:21 pm

it doesn't i started with this

Code: Select all

| - buy.mac -
| hacked together from plasmic's sellitem
| Usage: /macro buy "Jug of Sauces" 
| auto magicly buys 27 stacks of specified item


#chat say

Sub Main
/press Num_5
/click right target
/delay 7
/merchant similar "$p0"
/sendkey down shift
/for v1 1 to 27
  /delay 1
  /click left merchant buy 
/next v1
/sendkey up shift
/press esc
/press esc
/press esc
/return

but its buggy (i think it has to do with the /delay) becuase i dont always get exactly 27 stacks and sometimes it will say "soandso item not found" and tell me how to use the /merchant command (i think its firing off before the merchant window opens) im hoping to get it perfect every time any help would be great. btw i have num_5 mapped to target nearest npc...
LOADING PLEASE WAIT...
*GM*butwad tells you, " you are being banned for using macros"
You tell *GM*butwad, "WHAT?! But i dont even KNOW MARCO!"