[AHK] Simple script for expedition: Tujen Haggle - quick buy/reroll with hotkey menu

User Tag List

Page 1 of 6 12345 ... LastLast
Results 1 to 15 of 78
  1. #1
    xerance's Avatar Active Member CoreCoins Purchaser
    Reputation
    32
    Join Date
    Jan 2018
    Posts
    150
    Thanks G/R
    36/30
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    [AHK] Simple script for expedition: Tujen Haggle - quick buy/reroll with hotkey

    Nothing fancy, but gets the job done.

    Demo example:
    tujen reroll.gif

    LAST UPDATE: 12-14-2022





    Changelog

    1.06b


    Code:
    edit: uploaded wrong version, now fixed.
    -Added adjustable randomized number of haggles for possible(?) less risk of detection.
    1.05

    Originally Posted by Boost-Haven View Post
    It's not macros fault, some recent windows update broke MouseDelay behavior in autohotkey scripts. You can manually add sleeps after each mouse action, then it continues to work as before
    Code:
    -Replaced SetMouseDelay with "sleep"

    ...


    Download at the bottom or make a new folder and a new ahk script inside with the following code:


    Code:
    ; ##########################################
    ; # Expedition Tujen Haggle - version 1.06b #
    ; ##########################################
    #IfWinActive  Path of Exile
    #NoEnv 
    #SingleInstance , Force
    SetWorkingDir %A_ScriptDir% 
    SendMode, Input
    ConfigINI=%A_scriptdir%\Config.ini
    ifnotexist,%ConfigINI%
    {
    	IniWrite, 0	, %ConfigINI%, ConfirmPos, xx
    	IniWrite, 0	, %ConfigINI%, ConfirmPos, yy
    	IniWrite, 0	, %ConfigINI%, RerollPos, xx
    	IniWrite, 0	, %ConfigINI%, RerollPos, yy
    }
    ;=Speed adjustments=
    ;per scroll down (haggling speed) in milisec
    ;wait time in milisec
    vMouseMoveDelaySpeedMin = 35 
    vMouseMoveDelaySpeedMax = 45 
    vClickDelaySpeed = 50
    ;=haggling adjustments=
    ;haggling delay
    vHagglingScrollSpeedMin = 20 
    vHagglingScrollSpeedMax = 30
    ;first haggle number
    vFirstMin = 14
    vFirstMax = 16
    ;last haggle number
    vLastMin = 5
    vLastMax = 8
    return
    
    
    $1::
    if !GetKeyState("capslock","T")
     {
     Send, 1
     }
    
     else
     {
    	MouseClick, left
    	Random, FirstH, %vFirstMin%, %vFirstMax%
    	Loop, %FirstH%
    	{
    		Send {WheelDown 1}
    		Random, vHagglingScrollSpeed, %vHagglingScrollSpeedMin%, %vHagglingScrollSpeedMax%
    		Sleep %vHagglingScrollSpeed%
    	}
    	MouseGetPos xx, yy
    	rCordXX = %xx%
    	rCordYY = %yy%
    	BlockInput, MouseMove
    	IniRead, CordXX, Config.ini, ConfirmPos, xx
    	IniRead, CordYY, Config.ini, ConfirmPos, yy
    	MouseMove, CordXX , CordYY , 0
    	Random, vMouseMoveDelaySpeed, %vMouseMoveDelaySpeedMin%, %vMouseMoveDelaySpeedMax%
    	Sleep %vMouseMoveDelaySpeed%
    	MouseClick, left
    	Random, vMouseMoveDelaySpeed, %vMouseMoveDelaySpeedMin%, %vMouseMoveDelaySpeedMax%
    	Sleep %vMouseMoveDelaySpeed%
    	Random, LastH, %vLastMin%, %vLastMax%
    	Loop, %LastH%
    	{
    		Send {WheelDown 1}
    		Sleep %vHagglingScrollSpeed%
    	}
    	Random, vMouseMoveDelaySpeed, %vMouseMoveDelaySpeedMin%, %vMouseMoveDelaySpeedMax%
    	Sleep %vMouseMoveDelaySpeed%
    	MouseClick, left
    	Sleep %vClickDelaySpeed%
    	MouseClick, left
    	MouseMove, rCordXX , rCordYY , 0	
    	BlockInput, MouseMoveOff
     }
    return
    
    $2::
    if !GetKeyState("capslock","T") 
     {
     Send, 2
     }
    
     else
     {
    	BlockInput, MouseMove
    	MouseGetPos xx, yy
    	rCordXX = %xx%
    	rCordYY = %yy%
    	IniRead, CordXX, Config.ini, RerollPos, xx
    	IniRead, CordYY, Config.ini, RerollPos, yy
    	MouseMove, CordXX , CordYY , 0
    	Sleep %vClickDelaySpeed%
    	MouseClick, left
    	MouseMove, rCordXX , rCordYY , 0
    	BlockInput, MouseMoveOff
     }
    return
    
    
    
    
    +F9::
    	MouseGetPos xx, yy
    	IniWrite,%xx%	,	%ConfigINI%, ConfirmPos, xx
    	IniWrite,%yy%	,	%ConfigINI%, ConfirmPos, yy
    return
    
    
    +F10::
    	MouseGetPos xx, yy
    	IniWrite,%xx%	,	%ConfigINI%, RerollPos, xx
    	IniWrite,%yy%	,	%ConfigINI%, RerollPos, yy
    return


    On your first run you will have to set the coordinates for Confirm and Reroll with the following hotkeys:


    shift+f9 = set your current mouse location as the position of your confirm button. Simply start haggling for any item the first time and mouse over confirm and press shift+f9
    shift+f10 = set your current mouse location as the position of your reroll button.

    Position only needs to be set once, they are saved and stored in config.ini.


    Now when you done you can start haggling and have a happier wrist:

    1 = quick buy and haggle
    the price down to 45-70%~ and will attempt to gamble another 5-25%~ again; will buy at third attempt no matter what. After it moves the mouse back to its original location.
    2 = reroll
    Will moves the mouse back to its original location after rerolling.

    Capslock needs to be toggle ON for the hotkeys to work, otherwise it will just send 1 and 2 as regular.


    Newest version: expedition_Haggle - 1.06b.zip
    Legacy script: Legacy.zip
    Last edited by xerance; 12-24-2022 at 12:02 AM.

    [AHK] Simple script for expedition: Tujen Haggle - quick buy/reroll with hotkey
  2. Thanks zerger3, 2klulu, camapxam, jiumittosama, SuperSemen, amnemon, admiralyamamoto, raimer76, noneyatemp, Sychotix (10 members gave Thanks to xerance for this useful post)
  3. #2
    Tryzer's Avatar Member
    Reputation
    12
    Join Date
    Apr 2017
    Posts
    80
    Thanks G/R
    0/2
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can you make a Gwennen script which buy highlighted items?

  4. #3
    gentlemen37's Avatar Member
    Reputation
    1
    Join Date
    Jun 2019
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for sharing. It's so good.

  5. #4
    xerance's Avatar Active Member CoreCoins Purchaser
    Reputation
    32
    Join Date
    Jan 2018
    Posts
    150
    Thanks G/R
    36/30
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Updated script:
    removed unnecessary sleep, haggling is now faster
    optimized haggling scroll steps to: 15/8/buy from 15/5/buy; which essentially mean it will now buy at a better prize.
    Own testing: 0 failed attempts in 600~ rerolls., let me know if it fails to buy anything.
    You now also have small window of opportunity to move your mouse to the next gamling target.



    Originally Posted by Tryzer View Post
    can you make a Gwennen script which buy highlighted items?
    Naw, that would require pixel reading, and would go closer to a fully automated bot script rather than a help script. No desire to get into pixel detection.

    Originally Posted by gentlemen37 View Post
    Thank you for sharing. It's so good.
    glad you enjoying it, gotta keep that wrist healthy.
    Last edited by xerance; 03-25-2022 at 03:59 PM.

  6. #5
    somik1's Avatar Member
    Reputation
    1
    Join Date
    Aug 2017
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can u do ahk? Danning. Logbook image search, Exotic, Astragali. And after buying everyone, reroll.
    I think it's an easy script, but I don't understand scripts at all.

  7. #6
    Th3daz's Avatar Member
    Reputation
    1
    Join Date
    Jun 2021
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Mine seems to be keep haggling without buying on third attempt. How do i fix this one?
    Th3daz

  8. #7
    xerance's Avatar Active Member CoreCoins Purchaser
    Reputation
    32
    Join Date
    Jan 2018
    Posts
    150
    Thanks G/R
    36/30
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Th3daz View Post
    Mine seems to be keep haggling without buying on third attempt. How do i fix this one?
    Increase the set mouse delay on top or the last sleep 50

  9. #8
    camapxam's Avatar Active Member
    Reputation
    21
    Join Date
    Nov 2009
    Posts
    264
    Thanks G/R
    186/19
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    NVM, i have to change the loop to work with my mouse, and now it works like magic, thanks alot man, this is heaven
    Last edited by camapxam; 04-14-2022 at 12:23 PM.

  10. #9
    xerance's Avatar Active Member CoreCoins Purchaser
    Reputation
    32
    Join Date
    Jan 2018
    Posts
    150
    Thanks G/R
    36/30
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by camapxam View Post
    NVM, i have to change the loop to work with my mouse, and now it works like magic, thanks alot man, this is heaven
    out of curiosity, mind posting the change you did in case someone else encounter the same issue?

  11. #10
    camapxam's Avatar Active Member
    Reputation
    21
    Join Date
    Nov 2009
    Posts
    264
    Thanks G/R
    186/19
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Well here it is, i don't know for sure but maybe it's my mouse scrolling speed, but it does not work with your setting, or just my wooden pc acting out.
    15 loop would put my first haggle at almost 5-10%, and Tujen will put the item away, so i have to reduce that. And buying at 3rd attempt is basically 90% of the price for me, tested like 20 times in a row, i don't really know why it does not work like your gif, so i had to add another attempt, now it's close enough. Fast PC may not be needing this 3rd one tho.
    Code:
    ; ###########################
    ; # Expedition Tujen Haggle #
    ; ###########################
    Process,Priority,,A
    #IfWinActive   Path of Exile
    #NoEnv  
    #SingleInstance  , Force
    SetMouseDelay 50
    SetWorkingDir %A_ScriptDir% 
    SendMode, Input
    ConfigINI=%A_scriptdir%\Config.ini
    ifnotexist,%ConfigINI%
    {
    	IniWrite, 0	, %ConfigINI%, ConfirmPos, xx
    	IniWrite, 0	, %ConfigINI%, ConfirmPos, yy
    	IniWrite, 0	, %ConfigINI%, RerollPos, xx
    	IniWrite, 0	, %ConfigINI%, RerollPos, yy
    }
    return
    
    
    $1::
    if !GetKeyState("capslock","T")
     {
     Send, 1
     }
    
     else
     {
    	Click
    	Loop, 9
    	{
    		Send {WheelDown 1}
    	}
    	MouseGetPos xx, yy
    	rCordXX = %xx%
    	rCordYY = %yy%
    	BlockInput, MouseMove
    	IniRead, CordXX, Config.ini, ConfirmPos, xx
    	IniRead, CordYY, Config.ini, ConfirmPos, yy
    	MouseMove, CordXX , CordYY , 0
    	Click
    	Sleep 100
    	Loop, 8
    	{
    		Send {WheelDown 1}
    	}
    	Click
    	Sleep 100
    	Loop, 7
    	{
    		Send {WheelDown 1}
    	}
    	Click
    	Sleep 100
    	Click
    	MouseMove, rCordXX , rCordYY , 0	
    	BlockInput, MouseMoveOff
     }
    return
    
    $2::
    if !GetKeyState("capslock","T") 
     {
     Send, 2
     }
    
     else
      {
    	BlockInput, MouseMove
    	MouseGetPos xx, yy
    	rCordXX = %xx%
    	rCordYY = %yy%
    	IniRead, CordXX, Config.ini, RerollPos, xx
    	IniRead, CordYY, Config.ini, RerollPos, yy
    	MouseMove, CordXX , CordYY , 0
    	Sleep 100
    	Click
    	MouseMove, rCordXX , rCordYY , 0
    	BlockInput, MouseMoveOff
     }
    return
    
    
    
    
    +F9::
    	MouseGetPos xx, yy
    	IniWrite,%xx%	,	%ConfigINI%, ConfirmPos, xx
    	IniWrite,%yy%	,	%ConfigINI%, ConfirmPos, yy
    return
    
    
    +F10::
    	MouseGetPos xx, yy
    	IniWrite,%xx%	,	%ConfigINI%, RerollPos, xx
    	IniWrite,%yy%	,	%ConfigINI%, RerollPos, yy
    return
    Last edited by camapxam; 04-17-2022 at 01:13 AM.

  12. #11
    thieunien's Avatar Member
    Reputation
    1
    Join Date
    Apr 2022
    Posts
    13
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, anyone got banned bcuz this script?

  13. #12
    Sychotix's Avatar Moderator Authenticator enabled
    Reputation
    1415
    Join Date
    Apr 2006
    Posts
    3,942
    Thanks G/R
    285/571
    Trade Feedback
    1 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by thieunien View Post
    Hi, anyone got banned bcuz this script?
    Really doubt it. Most of their bans nowadays have been related to RMT, so stay away from that and use the limited user method for anything public/external and you should be fine.

  14. #13
    xerance's Avatar Active Member CoreCoins Purchaser
    Reputation
    32
    Join Date
    Jan 2018
    Posts
    150
    Thanks G/R
    36/30
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by camapxam View Post
    Well here it is, i don't know for sure but maybe it's my mouse scrolling speed, but it does not work with your setting, or just my wooden pc acting out.
    15 loop would put my first haggle at almost 5-10%, and Tujen will put the item away, so i have to reduce that. And buying at 3rd attempt is basically 90% of the price for me, tested like 20 times in a row, i don't really know why it does not work like your gif, so i had to add another attempt, now it's close enough. Fast PC may not be needing this 3rd one tho.
    Code:
    ; ###########################
    ; # Expedition Tujen Haggle #
    ; ###########################
    Process,Priority,,A
    #IfWinActive   Path of Exile
    #NoEnv  
    #SingleInstance  , Force
    SetMouseDelay 50
    SetWorkingDir %A_ScriptDir% 
    SendMode, Input
    ConfigINI=%A_scriptdir%\Config.ini
    ifnotexist,%ConfigINI%
    {
    	IniWrite, 0	, %ConfigINI%, ConfirmPos, xx
    	IniWrite, 0	, %ConfigINI%, ConfirmPos, yy
    	IniWrite, 0	, %ConfigINI%, RerollPos, xx
    	IniWrite, 0	, %ConfigINI%, RerollPos, yy
    }
    return
    
    
    $1::
    if !GetKeyState("capslock","T")
     {
     Send, 1
     }
    
     else
     {
    	Click
    	Loop, 9
    	{
    		Send {WheelDown 1}
    	}
    	MouseGetPos xx, yy
    	rCordXX = %xx%
    	rCordYY = %yy%
    	BlockInput, MouseMove
    	IniRead, CordXX, Config.ini, ConfirmPos, xx
    	IniRead, CordYY, Config.ini, ConfirmPos, yy
    	MouseMove, CordXX , CordYY , 0
    	Click
    	Sleep 100
    	Loop, 8
    	{
    		Send {WheelDown 1}
    	}
    	Click
    	Sleep 100
    	Loop, 7
    	{
    		Send {WheelDown 1}
    	}
    	Click
    	Sleep 100
    	Click
    	MouseMove, rCordXX , rCordYY , 0	
    	BlockInput, MouseMoveOff
     }
    return
    
    $2::
    if !GetKeyState("capslock","T") 
     {
     Send, 2
     }
    
     else
      {
    	BlockInput, MouseMove
    	MouseGetPos xx, yy
    	rCordXX = %xx%
    	rCordYY = %yy%
    	IniRead, CordXX, Config.ini, RerollPos, xx
    	IniRead, CordYY, Config.ini, RerollPos, yy
    	MouseMove, CordXX , CordYY , 0
    	Sleep 100
    	Click
    	MouseMove, rCordXX , rCordYY , 0
    	BlockInput, MouseMoveOff
     }
    return
    
    
    
    
    +F9::
    	MouseGetPos xx, yy
    	IniWrite,%xx%	,	%ConfigINI%, ConfirmPos, xx
    	IniWrite,%yy%	,	%ConfigINI%, ConfirmPos, yy
    return
    
    
    +F10::
    	MouseGetPos xx, yy
    	IniWrite,%xx%	,	%ConfigINI%, RerollPos, xx
    	IniWrite,%yy%	,	%ConfigINI%, RerollPos, yy
    return
    and putting the "SetMouseDelay 50" to higher doesn't do anything for you?

  15. #14
    camapxam's Avatar Active Member
    Reputation
    21
    Join Date
    Nov 2009
    Posts
    264
    Thanks G/R
    186/19
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by xerance View Post
    and putting the "SetMouseDelay 50" to higher doesn't do anything for you?
    for some unknown reason, i could set the delay to 800, it only took longer, but not changing the result of the "1" action. As i said earlier, wheel scrolling down too much at 1st attempt, tujen's mad. And buying at 3rd is still high price for me. I can only pull the price down after 3rd one. Maybe he hate me, but the highest range in 3rd attempt is still at 90%

  16. #15
    camapxam's Avatar Active Member
    Reputation
    21
    Join Date
    Nov 2009
    Posts
    264
    Thanks G/R
    186/19
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Sychotix View Post
    Really doubt it. Most of their bans nowadays have been related to RMT, so stay away from that and use the limited user method for anything public/external and you should be fine.
    how do we limit the bot account to ahk tho? Set the whole ahk folder in C?

Page 1 of 6 12345 ... LastLast

Similar Threads

  1. Created simple script for pindle farming, no autoloot though
    By shnwj in forum Diablo 2 Resurrected Bots and Programs
    Replies: 1
    Last Post: 10-06-2021, 10:47 PM
  2. [Bot] WTB AHK custom Script for Elite dangerous! [Serious Only]
    By BAKERKUSH in forum MMO Exploits|Hacks
    Replies: 0
    Last Post: 08-17-2018, 10:39 AM
  3. [Request] Script for raid frames (3 players). Will tip with $
    By cdonis84 in forum WoW UI, Macros and Talent Specs
    Replies: 1
    Last Post: 11-29-2012, 12:11 AM
  4. Need a realllllly simple script for AUTO IT!
    By unfunkable in forum Diablo 3 Bots Questions & Requests
    Replies: 3
    Last Post: 06-06-2012, 07:35 AM
  5. VERY SIMPLE GUIDE for noobs to create a private server with custom EVERYTHING
    By c0ddingt0n in forum WoW EMU Guides & Tutorials
    Replies: 21
    Last Post: 05-15-2008, 08:54 PM
All times are GMT -5. The time now is 06:42 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search