Faction Macro Help

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

Moderator: MacroQuest Developers

User avatar
SukMage
a ghoul
a ghoul
Posts: 88
Joined: Fri Jun 04, 2004 5:08 pm

Faction Macro Help

Post by SukMage » Fri Jun 11, 2004 4:55 pm

Ok this is what I have so far... Moved it to the macro help since it's almost built and I've pretty much copy/pasted stuff from around the board. The line I need help with is in red in the code. Anyone know how to get the quantity to (30 in this instance) the specified amount to turn in to the NPC? Currently it will bring up the quantity window but can't find a snipet anywhere here for that. Thanks guys.

Code: Select all

|SukMage's Failed Attempt to gain Sol Ro Temple Faction June 11, 2004 
|Based heavily on Casino Plat-waster by Groo Apr 29, 2004 

Sub Main 
   /declare i int 
   :Loop 
      /for i 0 to 3 
         /call PickupGold 
         /call GiveGold ${i} 
      /next i 
      /call ClickTrade 
      /call ClearCursor 
      } 
      /delay 1s 
      /goto :Loop 
   /return 

Sub GiveGold(i) 
   /if (${i}>0) { 
      /notify GiveWnd GVW_MyItemSlot${i} leftmouseup 
   } else { 
      /click left target 
      :Loop 
         /delay 1s 
         /if (!${Window[GiveWnd].Open}) /goto :Loop 
   } 
   /delay 3s 
   /return 

Sub PickupGold 
   :Loop 
      /if (!${Cursor.ID}) { 
         /windowstate InventoryWindow open 
         /notify InventoryWindow IW_Money1 leftmouseup 
[color=red]|insert command to clear the quantity window and change value to 30 [/color]
        /notify enter  
   } 
   /delay 1s 
   /return 

Sub ClickTrade 
   /notify GiveWnd GVW_Give_Button leftmouseup    
   /delay 1s 
   /return 

Sub ClearCursor 
    :Loop 
      /if (!${Cursor.ID}) /return 
      /autoinv 
      /delay 1s 
      /doevents 
      /goto :Loop 
    /return