need some help w/ a mod .mac

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

Moderator: MacroQuest Developers

Cleric78
orc pawn
orc pawn
Posts: 17
Joined: Wed Sep 11, 2002 10:51 pm

need some help w/ a mod .mac

Post by Cleric78 » Thu Sep 12, 2002 5:38 pm

ok i _tried_ again to mod a .mac to make silk swatches but its not working here is the code .... excuse me if the code does not got into the code format ... i am still a n00b at this forum

Cleric78

Cleric78
orc pawn
orc pawn
Posts: 17
Joined: Wed Sep 11, 2002 10:51 pm

Re: need some help w/ a mod .mac

Post by Cleric78 » Thu Sep 12, 2002 5:41 pm

ok i _tried_ again to mod a .mac to make silk swatches but its not working here is the code .... excuse me if the code does not got into the code format ... i am still a n00b at this forum

Cleric78

Code: Select all

 | - Swatches.mac - 

#include routines.mac 
|#turbo 

Sub Main 
   | Clear sticky keys 
   /press ctrl 
   /press shift 
   /press alt 

   /cleanup 


   | Main Loop 
   /call FindCombiner Tailoring 
   /if $return==99 /return 
   /varset v80 $return 

   /sendkey down ctrl 
   :MakeItem 

    
      /finditem "spider silk" 
      /if $find()==FALSE /goto :Done 
      /click left $v80 0 

      /finditem "spider silk" 
      /if $find()==FALSE /goto :Done 
      /click left $v80 1 

      /click left $v80 combine 

      /if "$cursor()"=="TRUE" /goto :AutoDrop 
      /for v1 1 to 5 
         /delay 2 
         /if "$cursor()"=="TRUE" /goto :AutoDrop 
      /next v1 

   /goto :MakeItem 

   :AutoDrop 
      /click left auto 
      /doevents 
   /goto :MakeItem 
    
   :Done 
   /sendkey up ctrl 

   /cleanup 

/return 
-------------
edit: WOOT i figured it out ... i R no longer a n00b :)

User avatar
Fippy
a snow griffon
a snow griffon
Posts: 499
Joined: Tue Jul 16, 2002 10:42 am

Post by Fippy » Thu Sep 12, 2002 7:39 pm

This is my swatches macro. Works fine. Not turboed but it a damn sight faster than manual :-)

Code: Select all

| - Swatches.mac -
|
#include routines.mac

Sub Main
   /call FindCombiner Tailoring
   /if $return==99 /return

   /cleanup
   /click right inv $return

   /sendkey down ctrl
   :Swatches
      /click left auto
      /finditem "Spider Silk"
      /if $find()==FALSE /goto :Done
      /click left pack $return 0
      /finditem "Spider Silk"
      /if $find()==FALSE /goto :Done
      /click left pack $return 1
      /click left pack $return combine
      :Wait
         /delay 1
      /if $pack($return,empty)==FALSE /goto :Wait
      /delay 1
      /click left auto
   /goto :Swatches

  :Done
  /sendkey up ctrl
/return

Cleric78
orc pawn
orc pawn
Posts: 17
Joined: Wed Sep 11, 2002 10:51 pm

WHOOT

Post by Cleric78 » Fri Sep 13, 2002 2:02 am

the above macro worked GREAT ... thank you friend

Cleric78