Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Exploits, Hacks, Bots, Tools & Macros
You last visited: Today at 14:18

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

Advertisement



why won't functions work in explorable areas

Discussion on why won't functions work in explorable areas within the GW Exploits, Hacks, Bots, Tools & Macros forum part of the Guild Wars category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2020
Posts: 35
Received Thanks: 12
Unhappy why won't functions work in explorable areas

i've been experiencing this issue repeatedly over the last few days

tl;dr - salvage and identify functions work 100% in outposts, 60% in explorable areas. cannot figure out why. they are very capiricious.

it happens with the salvage() and identify() functions

they will work fine in outposts, but will only work when they want to in explorable areas

the identifyitem() function simply will not work, and the script will stay stuck in the identifyitem() function, without moving forward

the salvage() function will cause an immediate DC (screen goes black, offers chance to reconnect by clicking green button) upon startsalvage() being called upon. salvaging manually right before or after the dc will not cause a DC

these issues only happen when they feel like happening, there is absolutely no patern i would otherwise expect (ping speed, memory overload, wrong injection of code)

as mentioned - these functions work 100% of the time in outposts, and about 60% of the time in explorable areas
the only "fix" i have found is to close the script, relaunch it, and have the character zone back to town, then go back to the explorables. and this only fixes it part of the time, and often times, only fixes 1 of 2 (i.e. on the last run - salvage wasn't working, but ID was. i reset it. then salvage worked, but ID didn't).

this is far beyond my comprehension
ooklaba is offline  
Old 06/26/2020, 23:28   #2
 
deroni93's Avatar
 
elite*gold: 0
Join Date: Feb 2016
Posts: 48
Received Thanks: 39
Please paste the raw functions here, I have no idea what's behind them

For reference I've manually sent the salvage packet to the client and it worked with no issues , . The image shows the code I've used, the bot console (printing matching ID's) and the actual packet sent to the server.

If your client is intermittently dc'ing when using the function it's likely going to be the method of calling those functions, perhaps the function is being called without the necessary pauses
deroni93 is offline  
Old 06/26/2020, 23:45   #3
 
elite*gold: 0
Join Date: Mar 2020
Posts: 35
Received Thanks: 12
in the case of identify - i have done this to try and debug:
in instances where the script has failed to ID, i've manually sent the package

Code:
SendPacket(0xC, $HEADER_ITEM_ID, $lIDKit, $lItemID)
and it still fails

in the case of salvage, it's a basic salvage function:

Code:
Func SalvageMats()
Local $aBag, $aSlot, $aItem
For $aBag = 1 To 4 ; all inventory bags ;4
For $aSlot = 1 To DllStructGetData(GetBag($aBag), 'slots')
If CanSalvageMats($aBag, $aSlot) <> 0 Then
SalvageMats2($aBag, $aSlot)
PingSleep(200)
EndIf
Next
Next
EndFunc ;==>Main


Func SalvageMats2($aBag, $aSlot)
Local $i, $aItem = GetItemBySlot($aBag, $aSlot), $aQuantity = DllStructGetData($aItem, 'Quantity')
If IsInvFull() = True Then
Out("Inv Full")
Exit
EndIf
For $i = 1 To $aQuantity
SecureSalvKit()
Out ("Salvaging Mats (" & $aBag & "," & $aSlot & ")")
StartSalvage(GetItemBySlot($aBag, $aSlot))
RndSleep(PingSleep() + 1200)
SalvageMaterials()
RndSleep(PingSleep() + 700)
ClearMemory()
Next
EndFunc
securesalvkit only looks for items in bag 1-4
ooklaba is offline  
Old 06/27/2020, 00:29   #4
 
deroni93's Avatar
 
elite*gold: 0
Join Date: Feb 2016
Posts: 48
Received Thanks: 39
Quote:
Originally Posted by ooklaba View Post
in the case of identify - i have done this to try and debug:
in instances where the script has failed to ID, i've manually sent the package

Code:
SendPacket(0xC, $HEADER_ITEM_ID, $lIDKit, $lItemID)
and it still fails

in the case of salvage, it's a basic salvage function:

Code:
Func SalvageMats()
Local $aBag, $aSlot, $aItem
For $aBag = 1 To 4 ; all inventory bags ;4
For $aSlot = 1 To DllStructGetData(GetBag($aBag), 'slots')
If CanSalvageMats($aBag, $aSlot) <> 0 Then
SalvageMats2($aBag, $aSlot)
PingSleep(200)
EndIf
Next
Next
EndFunc ;==>Main


Func SalvageMats2($aBag, $aSlot)
Local $i, $aItem = GetItemBySlot($aBag, $aSlot), $aQuantity = DllStructGetData($aItem, 'Quantity')
If IsInvFull() = True Then
Out("Inv Full")
Exit
EndIf
For $i = 1 To $aQuantity
SecureSalvKit()
Out ("Salvaging Mats (" & $aBag & "," & $aSlot & ")")
StartSalvage(GetItemBySlot($aBag, $aSlot))
RndSleep(PingSleep() + 1200)
SalvageMaterials()
RndSleep(PingSleep() + 700)
ClearMemory()
Next
EndFunc
securesalvkit only looks for items in bag 1-4

Sorry mate but there are several other functions in there and it isn't obvious what they're doing, if you can send me the entire au3 file I can take a better look.

IMO there are too many functions in there, if you can give me the basis of what you're trying to do I can probably whip up something better that doesn't randomly disconnect you
deroni93 is offline  
Old 06/27/2020, 01:27   #5
 
elite*gold: 0
Join Date: Mar 2020
Posts: 35
Received Thanks: 12
thanks i appreciate it

the function runs all the way till StartSalvage() - that's when it crashes

startsalvage is the basic gwa2 function:

Code:
Func StartSalvage($aItem)
	Local $lOffset[4] = [0, 0x18, 0x2C, 0x690]
	Local $lSalvageSessionID = MemoryReadPtr($mBasePointer, $lOffset)

	If IsDllStruct($aItem) = 0 Then
		Local $lItemID = $aItem
	Else
		Local $lItemID = DllStructGetData($aItem, 'ID')
	EndIf

	Local $lSalvageKit = FindSalvageKit()
	If $lSalvageKit = 0 Then Return

	DllStructSetData($mSalvage, 2, $lItemID)
	DllStructSetData($mSalvage, 3, FindSalvageKit())
	DllStructSetData($mSalvage, 4, $lSalvageSessionID[1])

	Enqueue($mSalvagePtr, 16)
EndFunc   ;==>StartSalvage

Func SalvageMaterials()
	Return SendPacket(0x4, $HEADER_SALVAGE_MATS)
EndFunc   ;==>SalvageMaterials
ooklaba is offline  
Reply


Similar Threads Similar Threads
ISO gZoom dungeon Explorable partners
11/15/2012 - Guild Wars 2 - 10 Replies
Hi guys, I'm looking for 3 more North American servers dungeon Explorable partners that use gZoom. I'm game to do any dungeons. Looking for players who have been Elite pvper members since before gw2's release or at least as long as I have. I'm currently compiling xyz's for boss's in the dungeons I run.
Looking for Arah Explorable partners
11/07/2012 - Guild Wars 2 - 2 Replies
I'm looking for 3-4 people with gZoom so we can just jump to the last bosses of arah explorable and kill it. I know this works with path 2 and path 3, path 1 is bugged and i'm not sure about path 4 because i have never done it before. I have 3 characters so I would like to repeat these dungeons. BTW if you decide to join with me, please DO NOT say anything about gZoom, do not mention anything about it in team chat...they can read chat logs and will ban you on the spot. If anything we should...
[HELP] My Slots Functions won't work
09/03/2012 - WarRock - 4 Replies
Hi guys, i've got a tiny problem. My slots won't work (5slot, 6th slot...) He's the function : if(Slots ==1) { DWORD dwPlayerPtr = *(DWORD*)ADR_SERVERPTR; if(dwPlayerPtr != 0) { *(long*)(dwPlayerPtr + OFS_SLOT5)= 1;
McBadgerCraft - 36 Slots - Protected Areas - PvP Areas - Custom Plugins
05/08/2012 - Minecraft Server Advertising - 0 Replies
McBadgerCraft is a new and upcoming minecraft server. Our server has 2.5GB of RAM, with scheduled backups and 36 player slots. As we are a new server, when our player base expands we will be able to expand the server and its specifications. Please feel free to join our community and please do ask us any questions that the website doesn’t answer for you. Our staff are friendly and approachable so ask away. We look forward to seeing you in game and sharing our exciting new venture with you. ...



All times are GMT +2. The time now is 14:18.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.