Empty inventory of team

Stuff that doesn't fit in other categories.
Post Reply
Fugo
Posts: 100
Joined: Sun Jan 21, 2018 2:18 am

Empty inventory of team

Post by Fugo » Wed Mar 21, 2018 1:00 pm

One of the big issue we all have is with full inventorys

Instead of turning drops out, i figured a way to auto sell the 32 first items of the inventory (check before there is nothing you want to keep)

The sell key on my game config is set up on F7

Code: Select all

hotkey ( NumpadPlus ) // Test vendre tout l'inventaire quand le vendeur est select
{
ClickMouse ( Lbutton  853 283 )
wait (150)
Key ( F7 )
wait (150)
ClickMouse ( Lbutton  853 303 )
wait (50)
Key ( F7 )
wait (150)
ClickMouse ( Lbutton  853 318 )
wait (150)
Key ( F7 )
wait (150)
ClickMouse ( Lbutton  853 334 )
wait (150)
Key ( F7 )
wait (150)
ClickMouse ( Lbutton  853 352 )
wait (150)
Key ( F7 )
wait (150)
ClickMouse ( Lbutton  853 370 )
wait (150)
Key ( F7 )
wait (150)
ClickMouse ( Lbutton  853 385 )
wait (150)
Key ( F7 )
wait (150)
ClickMouse ( Lbutton  853 404 )
wait (150)
ClickMouse ( Lbutton  1013 318 ) // page 2
wait (150)
ClickMouse ( Lbutton  853 283 )
wait (150)
Key ( F7 )
wait (150)
ClickMouse ( Lbutton  853 303 )
wait (50)
Key ( F7 )
wait (150)
ClickMouse ( Lbutton  853 318 )
wait (150)
Key ( F7 )
wait (150)
ClickMouse ( Lbutton  853 334 )
wait (150)
Key ( F7 )
wait (150)
ClickMouse ( Lbutton  853 352 )
wait (150)
Key ( F7 )
wait (150)
ClickMouse ( Lbutton  853 370 )
wait (150)
Key ( F7 )
wait (150)
ClickMouse ( Lbutton  853 385 )
wait (150)
Key ( F7 )
wait (150)
ClickMouse ( Lbutton  853 404 )
wait (150)
ClickMouse ( Lbutton  1013 345 ) // page 3
wait (150)
ClickMouse ( Lbutton  853 283 )
wait (150)
Key ( F7 )
wait (150)
ClickMouse ( Lbutton  853 303 )
wait (50)
Key ( F7 )
wait (150)
ClickMouse ( Lbutton  853 318 )
wait (150)
Key ( F7 )
wait (150)
ClickMouse ( Lbutton  853 334 )
wait (150)
Key ( F7 )
wait (150)
ClickMouse ( Lbutton  853 352 )
wait (150)
Key ( F7 )
wait (150)
ClickMouse ( Lbutton  853 370 )
wait (150)
Key ( F7 )
wait (150)
ClickMouse ( Lbutton  853 385 )
wait (150)
Key ( F7 )
wait (150)
ClickMouse ( Lbutton  853 404 )
wait (150)
ClickMouse ( Lbutton  1013 368 ) // page 4
}
A bit long but it seems to work

Rob
Site Admin
Posts: 1483
Joined: Sat Sep 25, 2010 6:52 am

Re: Empty inventory of team

Post by Rob » Wed Mar 21, 2018 11:42 pm

Very nice!
Author of Mojo

hardscrabble
Posts: 34
Joined: Wed Dec 23, 2020 8:10 pm

Re: Empty inventory of team

Post by hardscrabble » Fri Jan 29, 2021 1:02 am

I am new to mojo and posted scripts has hastened my learning as well as forum. fugo post has saved me time writing this script which he gets the credit as all I did was take care of stacked items if you wish to sell them also. I left test in there so I could see what was going on testing errors. I like that feature.

hotkey ( NumpadPlus ) // sell 1-5 bags 7 slots each
{
wait (400)
ClickMouse ( test Lbutton 1013 292 ) // target bag one
wait (400)
ClickMouse ( test Lbutton 853 283 ) // 1 spot one
wait (400)
Key ( Shift S ) // default sell
wait (700) // any lower it may appraise
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 303 ) // 2
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 318 ) // 3
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 334 ) // 4
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 352 ) // 5
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 370 ) // 6
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 385 ) // 7
wait (400)
Key ( Shift S ) // default sell
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 404 ) // 8
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 1013 318 ) // page 2
wait (400)
ClickMouse ( test Lbutton 853 283 ) // 1 spot one
wait (400)
Key ( Shift S ) // default sell
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 303 )
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 318 )
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 334 )
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 352 )
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 370 )
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 385 )
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 404 )
wait (400)
Key ( Shift S ) // default sell
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 1013 345 ) // page 3
wait (400)
ClickMouse ( test Lbutton 853 283 )
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 303 )
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 318 )
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 334 )
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 352 )
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 370 )
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 385 )
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 404 )
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 1013 368 ) // page 4
wait (400)
ClickMouse ( test Lbutton 853 283 )
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 303 )
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 318 )
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 334 )
wait (400)
Key ( Shift S )
wait (600)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 352 )
wait (400)
Key ( Shift S )
wait (600)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 370 )
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 385 )
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 853 404 )
wait (400)
Key ( Shift S )
wait (700)
ClickMouse ( test Lbutton 630 429 ) // yes all quantity
wait (400)
ClickMouse ( test Lbutton 884 14 ) // target character button 2 hide
}
Last edited by hardscrabble on Fri Jan 29, 2021 1:12 pm, edited 3 times in total.

hardscrabble
Posts: 34
Joined: Wed Dec 23, 2020 8:10 pm

Re: Empty inventory of team

Post by hardscrabble » Fri Jan 29, 2021 1:25 am

DETETING items not sold. once I had that figured out to sell with stacked items I decided to delete items that cant be sold. this one took longer to make even though I had a good example from selling. I had to work with timing as it sometimes hit appraise if it was too short.
Remember it assumes you don't have button 2 of character page not up if not it will hide it. if youn dont want to delete from certain character then have button 2 up. it will hide it but will still click screen. I left test in there so I could see what was going on testing errors. I like that feature.
Image 007.png
Image 007.png (124.78 KiB) Viewed 3395 times

Rob
Site Admin
Posts: 1483
Joined: Sat Sep 25, 2010 6:52 am

Re: Empty inventory of team

Post by Rob » Fri Jan 29, 2021 8:21 am

Thanks a lot for posting those. It's nice to see somebody using "test". I don't know why your images aren't getting displayed.
Author of Mojo

hardscrabble
Posts: 34
Joined: Wed Dec 23, 2020 8:10 pm

Re: Empty inventory of team

Post by hardscrabble » Fri Jan 29, 2021 8:50 am

that is an image but dont know how to to make and put in smaller box. my first time taking a scrolling image in an attempt tonpost like many do.

Rob
Site Admin
Posts: 1483
Joined: Sat Sep 25, 2010 6:52 am

Re: Empty inventory of team

Post by Rob » Fri Jan 29, 2021 9:02 am

If you want to email them to me, I'll attach them to the posts. rob@mojoware.org
Author of Mojo

hardscrabble
Posts: 34
Joined: Wed Dec 23, 2020 8:10 pm

Re: Empty inventory of team

Post by hardscrabble » Thu Feb 04, 2021 12:07 am

numerbpad- is defailt take screen shot. i wonder how many screenshots i took?

hardscrabble
Posts: 34
Joined: Wed Dec 23, 2020 8:10 pm

Re: Empty inventory of team

Post by hardscrabble » Sat Mar 20, 2021 7:34 pm

i reccomend a cancel button just in cace you hit it by mistake or see something you dont want to sell lol. you cant control cursor for duration of script.

Post Reply