Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Bots
You last visited: Today at 07:53

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[GWA2] How to close salvage window AFTER salvage session is complete?

Discussion on [GWA2] How to close salvage window AFTER salvage session is complete? within the GW Bots forum part of the Guild Wars category.

Reply
 
Old   #1
 
3vangelist's Avatar
 
elite*gold: 0
Join Date: Jan 2018
Posts: 46
Received Thanks: 14
[GWA2] How to close salvage window AFTER salvage session is complete?

Hi all,

I'm making a bot to manage my inventory for me in-game.

1. StartSalvage() on an item I want a mod for.
2. SalvageMod() for the mod I'm after
3. Close Salvage window (without GW kicking me out!)

Can't figure out how to do step 3. Looks like when I close the salvage window in-game, it sends a packet to the GS to "cancel" the session. The GS panics when it sees that the session has already completed, and the client gets kicked from the server.

Help or examples would be really appreciated. Thanks
3vangelist is offline  
Old 05/07/2018, 20:33   #2
 
elite*gold: 0
Join Date: Nov 2012
Posts: 134
Received Thanks: 49
I believe that 4D 1 solved this by creating _GuildWars_SendEvent() and placed it inside SalvageMod() in gwaX.

Most people that have been salvaging mods have just ignored the window and know not to attempt to close it manually.

It is just best to skip step 3. It doesn't help the bot perform better.
savsuds is offline  
Old 05/07/2018, 20:44   #3
 
3vangelist's Avatar
 
elite*gold: 0
Join Date: Jan 2018
Posts: 46
Received Thanks: 14
Thanks for the info. This isn't anywhere in the version of gwapi or gwa2 I have so I'm guessing this. Is another library. Do you know where I can find it?
3vangelist is offline  
Old 05/07/2018, 21:32   #4
 
elite*gold: 0
Join Date: Nov 2012
Posts: 134
Received Thanks: 49
The simple answer is yes, I know where to find it. The real answer is that gwaX API is not a public release.

Code:
;~ Description:  Salvages a mod from an item.  $nType = { $SALVAGE_PREFIX(0), $SALVAGE_SUFFIX(1), $SALVAGE_INSCRIPTION(2) }
Func _GuildWars_SalvageMod($nType)
    Local $tQueueBuff = DllStructCreate("DWORD;DWORD;DWORD;DWORD")

    DllStructSetData($tQueueBuff, 1, $CMD_SEND_PACKET)
    DllStructSetData($tQueueBuff, 2, 0x0008          )
    DllStructSetData($tQueueBuff, 3, $CtoGS_MSGSalvageMod          )
    DllStructSetData($tQueueBuff, 4, $nType          )

	_GuildWars_SendEvent(0xFB,0,0)

    Return __Enqueue($tQueueBuff, 16)
EndFunc
Maybe that will help you out.
savsuds is offline  
Old 05/07/2018, 21:46   #5
 
elite*gold: 0
Join Date: May 2014
Posts: 269
Received Thanks: 328
It won't ... because he doesn't have the lib.
Sry but gwaX is private and most probably it will also stay private.

But you can just ignore the open window that keeps open after salvage. It will disappear after mapchange.
You can also klick "cancel" manually ... just don't klick on "salvage" because it will crash the client.
DerMoench14 is offline  
Old 05/08/2018, 03:41   #6
 
3vangelist's Avatar
 
elite*gold: 0
Join Date: Jan 2018
Posts: 46
Received Thanks: 14
Thanks for the replies, at least I know it can be done, I'll keep digging
3vangelist is offline  
Reply


Similar Threads Similar Threads
[GWA2] How to chase after updated header values?
11/14/2024 - GW Bots - 11 Replies
Hi all, First post, but have been following the tips all over this forum for about 6 months since I started writing my own bots. Recently the server headers changed, and although it looks like the community have pulled through and released a new version of GWA2 to reflect it, there are other headers that I'm using, that aren't in the vanilla GWA2 code. SendPacket(0x14, 0x6F, $lItemID, $lQuantity, $lBagID, $aSlot - 1) The above command would have previously told GW to move $lQuantity...
COF bot still crashes after GWA2 update
04/15/2018 - GW Exploits, Hacks, Bots, Tools & Macros - 2 Replies
Hello. So, I updated all the headers as per the update on this bot. The bot travels to Doomlore and then it crashes as soon as it leaves the exit. I cant figure it out. Any help would be greatly appreciated. Thank you.
//CLOSE //CLOSE //CLOSE //CLOSE //CLOSE //CLOSE
10/27/2013 - elite*gold Trading - 1 Replies
//ERSTMAL CLOSED!
Rename CO2 window title (any window actually)
05/13/2006 - CO2 Exploits, Hacks & Tools - 4 Replies
I have seen a few posts requesting this. It is a simple autohotkey macro nothing fancy here. You will notice also that the UPX packer detection is not triggered. If you use autohotkey and want to know how to remove the packer PM me it is rather simple. To use this little tool thingie it is very simple: Execute the code. Focus your window. Press Hotkey CTRL+WIN+w Change the Title. Apply



All times are GMT +1. The time now is 07:56.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.