Sol Ro Faction macro

Have a macro idea but not sure where to start? Ask here.

Moderator: MacroQuest Developers

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

Sol Ro Faction macro

Post by SukMage » Wed Jun 09, 2004 1:10 am

Ok... I made simple macros for like fishing and foraging and stuff but I'm not sure how to go about making one to give Rathmana Umptyscrunch , the merchant in Sol Ro, 30 gold then auto inventory looped back... I killed my Sol Ro Tower faction and the fingers are getting sore giving about 1-2k in 30 gols shots to this guy...

I know there's a way to give target 30 gold then autoinventory then :loop. Anyone able to point me in the right direction or type up a simple macro for that?

Catt
a lesser mummy
a lesser mummy
Posts: 76
Joined: Mon Sep 16, 2002 2:49 am

Post by Catt » Wed Jun 09, 2004 4:23 am


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

Post by SukMage » Wed Jun 09, 2004 6:37 pm

Thanks. It's prolly a really newbish question but I've been macroing for all of about 2 months and haven't quite gotten all of the stuff down. My appologies. Bear with me and I'll get up to par but I can see modifying it if I were giving an item. How would I go about picking up the 30 gold instead of an item in my inventory?

colt45
orc pawn
orc pawn
Posts: 16
Joined: Thu Jun 10, 2004 5:29 am

Post by colt45 » Thu Jun 10, 2004 6:27 am

dont know how much it will help you, but use the

Code: Select all

/mouseto gold
/click left
/notify somewindow SomeSlider newvalue 30  (whatever it is for the moeny slider)
/notify enter (moneywindow) 
then check out the casino script for the give commands, sorry i cant help you more . . . andi dont even kow if this works, but its worth a shott

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

Post by SukMage » Thu Jun 10, 2004 5:14 pm

Okay. This is what I have so far...

Code: Select all

|SukMage's Failed Attempt to gain Sol Ro Temple Faction June 10, 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
        /notify enter |is that correct to "hit enter key"?[/color]
   }
   /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 

The suggested:

Code: Select all

/mouseto gold 
/click left 
didn't work so I poked around and found how to open inventory and click the "gold" part to open the quantity window. Need to figure out how to move the slider now.

Brick 37
decaying skeleton
decaying skeleton
Posts: 6
Joined: Sun Nov 16, 2003 12:35 am

Re: Sol Ro Faction macro

Post by Brick 37 » Tue Apr 27, 2010 6:47 pm

Just a quick bump, 6 years later.

Hacked this macro together to work, as the QuantityWindow slider still is unworking in MQ :)

Will max your Sol Ro faction from Kos to Ally in about 15mins (make sure you don't have more than 2k pp on you) :P

Code: Select all

Sub Main
   /declare i int
   :Loop
         /call PickupGold
         /call GiveGold
      /call ClickTrade
      /call ClearCursor
      }
      /delay 1s
      /goto :Loop
   /return

Sub GiveGold(i)
/target Rathmana   
/face
/click left target
      :Loop
         /delay 1s
         /if (!${Window[GiveWnd].Open}) /goto :Loop
   }
/return

Sub PickupGold
   :Loop
      /if (!${Cursor.ID}) {
         /windowstate InventoryWindow open
         /notify InventoryWindow IW_Money0 leftmouseup

/declare I int local
/declare J int local
/for I 1 to 2
         /varset J ${Window[QuantityWnd].Child[QTYW_SliderInput].Text.Length}
         /if ( ${J} > 0 ) {
            /keypress backspace chat
            /delay 3s ( ${Window[QuantityWnd].Child[QTYW_SliderInput].Text.Length} < ${J} )
            /varset I 1
         } else {
            /varset I 2
         }
      /next I

/keypress 3 chat


        /notify QuantityWnd QTYW_Accept_Button leftmouseup
   }
   /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