Welcome, Guest. Please login or register.
Did you miss your activation email?
November 25, 2024, 07:49:21 am *

Login with username, password and session length
Pages: [1]
Print
Author Topic: Essencce of Plat money picker  (Read 6344 times)
Dimur
Hero Member
Hero Member
*****
Posts: 699


View Profile
« on: January 05, 2019, 03:04:16 pm »

It's been a while since I've updated hotkey code, so posting this in case anyone working on Ultimate Weapon combines finds it handy.  It just pulls 10mil plat from your inventory window so you don't have to manually do so.

Line 1: /notify InventoryWindow IW_Money0 leftmouseup
Line 2: /delay 2
Line 3: /notify QuantityWnd QTYW_Slider newvalue 10000000
Line 4: /delay 2
Line 5: /notify QuantityWnd QTYW_Accept_Button leftmouseup

This will put the 10mil on your cursor, you still have to hand it in.  Despite that, it should remove some of the tedium.
Logged
Chieftan
Hero Member
Sr. Member
*****
Posts: 262



View Profile
« Reply #1 on: January 20, 2019, 05:21:44 am »

Just FYI, this does not seem to work with MQEmulators Build, which most probably use, at least not for me, even fresh download
If I am wrong,apologies, if someone has it working please post and I will remove this post

Line 3: /notify QuantityWnd QTYW_Slider newvalue 10000000 isn't changing the amount, it just picks all the plat up
seems the slider command does not set the new value

Works ok on RedGuides Build, they fixed/added it years ago
29 Dec 2014 by eqmule
- Fix/New Feature: /notify QuantityWnd QTYW_slider newvalue # works now/again (did it ever?) Thanks to nytemyst for the report.


Maud prob never fixed or added

Chief
Logged

Dimur
Hero Member
Hero Member
*****
Posts: 699


View Profile
« Reply #2 on: January 20, 2019, 08:20:17 am »

Yep Chief, I am using Redguides build with this. Mqemulator build is built against a 2013 version of MQ2 and likely is missing this fix whereas the Redguides version is built against a much more recent MQ2 and is frequently updated. When I post code, I do try to avoid things the Mqemulator does not support but was unaware that the use of newvalue was one of them.
Logged
Chieftan
Hero Member
Sr. Member
*****
Posts: 262



View Profile
« Reply #3 on: January 20, 2019, 09:03:06 am »

Nps, will let Maud know, see if possible to add =)

Was doing a new toon, noticed he had 200 mill on cursor lol, don't know if he would pass back but glad i noticed it thou hehe
Good thinking not to add an auto give line to it =)

Chief
Logged

Natedog
Master
******
Posts: 830


View Profile
« Reply #4 on: January 21, 2019, 02:17:42 pm »

I dont remember where this code came from.. but I remember using it to turn in a ton of plat to a vendor for something...

will pick up the gold and hand it to the NPC without clicking turnin

Code:
sub Main
/echo Grabbing gold...
/if (${Window[InventoryWindow].Open}) {
/call GetQuantity InventoryWindow IW_Money0 10000000

/delay 3

/click left target

/delay ${Window[GiveWnd].Open}

/delay 1s
}
/return


Sub GetQuantity(string Wnd, string Ctrl, int Count)
   /declare I int local
   /declare J int local
   /declare S string local
   /echo in GetQuantity...
   /delay 1s
   /echo notifying ${Wnd} ${Ctrl} leftmouseup
      /notify ${Wnd} ${Ctrl} leftmouseup
      /delay 3s ( ${Window[QuantityWnd].Open} )

      /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

      /varset S ${Count}
      /for I 1 to ${S.Length}
         /keypress ${S.Mid[${I},1]} chat
         /delay 3s ( ${Window[QuantityWnd].Child[QTYW_SliderInput].Text.Length} == ${I} )
      /next I

   /delay 1s

      /nomodkey /notify QuantityWnd QTYW_Accept_Button leftmouseup
      /delay 3s ( !${Window[QuantityWnd].Open} )


/return
Logged

Pages: [1]
Print
Jump to:  

Recent

Stats

Members
  • Total Members: 6156
  • Latest: Rin1
Stats
  • Total Posts: 65127
  • Total Topics: 5066
  • Online Today: 331
  • Online Ever: 8678
  • (December 19, 2022, 02:32:09 pm)
Users Online
Users: 0
Guests: 282
Total: 282
TinyPortal v1.0 beta 4 © Bloc