RiflemanX
thank you for our help now my heros use skills the raptor bot have help me me ;)
thank you for our help now my heros use skills the raptor bot have help me me ;)
Quote:
;~ Description: Deposit gold into storage.
Func DepositGold($aAmount = 0)
Local $lAmount
Local $lStorage = GetGoldStorage()
Local $lCharacter = GetGoldCharacter()
If $aAmount > 0 And $lCharacter >= $aAmount Then
$lAmount = $aAmount
Else
$lAmount = $lCharacter
EndIf
If $lStorage + $lAmount > 1000000 Then $lAmount = 1000000 - $lStorage
ChangeGold($lCharacter - $lAmount, $lStorage + $lAmount)
EndFunc ;==>DepositGold
;~ Description: Withdraw gold from storage.
Func WithdrawGold($aAmount = 0)
Local $lAmount
Local $lStorage = GetGoldStorage()
Local $lCharacter = GetGoldCharacter()
If $aAmount > 0 And $lStorage >= $aAmount Then
$lAmount = $aAmount
Else
$lAmount = $lStorage
EndIf
If $lCharacter + $lAmount > 100000 Then $lAmount = 100000 - $lCharacter
ChangeGold($lCharacter + $lAmount, $lStorage - $lAmount)
EndFunc ;==>WithdrawGold
;~ Description: Internal use for moving gold.
Func ChangeGold($aCharacter, $aStorage)
Return SendPacket(0xC, $ChangeGoldHeader, $aCharacter, $aStorage)
EndFunc ;==>ChangeGold
ChangeGoldHeader = 0x81
Please look through the past pages. This issue has already been addressed and the correction that you need to make has already been posted.Quote:
I have a problem since the last update when I want the character to deposit money or take it in the chest Xunlai this one doesn't do anything.
I use the classic functions of GWA2 (version: 3.7.11)
WithdrawGold ()
DepositGold ()
Sorry I haven't seen this answerQuote:
Please look through the past pages. This issue has already been addressed and the correction that you need to make has already been posted.
Quote:
Look at the functions: Getgoldcharacter(), DepositGold(), DonateFaction() and be sure to update your headers using the updatescript.
0x81 is correct for the header. As for the other updates, check these two functions in your GWA2 and ensure they are updated:Quote:
Sorry I haven't seen this answer
Suddenly seeing this answer a problem is presented.
This one talks about an update script, I thought about the Guild Wars Botting API Patcher 1.6. But I think it is out of date compared to the last update.
I compared the $ HEADER that are present in my GWA2 and in the GWA2_Headers, they are exactly the same values, it's just the names that change.
Test your newly updated scripts by checking to make sure they count items in your inventory accurately.
PS : Here is my header for move golds
Global Const $ChangeGoldHeader = 0x81
and the present header in gwa2_headers
Global Const $HEADER_GOLD_MOVE = 0x81 ;Moves Gold (from chest to inventory, and otherway around IIRC)
;~ Description: Returns amount of gold in storage. Func GetGoldStorage() Local $lOffset[5] = [0, 0x18, 0x40, 0xF8, 0x94] ; from 80 Local $lReturn = MemoryReadPtr($mBasePointer, $lOffset) Return $lReturn[1] EndFunc ;==>GetGoldStorage ;~ Description: Returns amount of gold being carried. Func GetGoldCharacter() Local $lOffset[5] = [0, 0x18, 0x40, 0xF8, 0x90] ; from 7C Local $lReturn = MemoryReadPtr($mBasePointer, $lOffset) Return $lReturn[1] EndFunc ;==>GetGoldCharacter
Local $lItemStruct = DllStructCreate('long id;long agentId;ptr bagequipped;ptr bag;ptr modstruct;long modstructsize;ptr customized;long modelfileid;byte type;byte unknown1;short extraId;short value;byte unknown2[2];long interaction;long modelId;ptr modString;ptr namestring2;ptr namestring;ptr singleitemname;byte itemowner;byte unknown3[9];byte ismaterialsalvageable;byte unknown4;short quantity;byte equipped;byte profession;byte slot')
Do all your scripts crash like this? What specific script is this that you refer too? More info = more help.Quote:
Lately Ive been running into a lot of GW crashes and I cant pinpoint where its at really. It happens with the easiest bot that ports to a town, leaves it and runs a few seconds using the MoveTo function of GWA2. All headers are updated as well as the latest GWA2.
Guild Wars error log states: (2) Client pathing data out of sync with server. You may observe your character 'warping' during movement.
(2) Sequence queue congestion.
I cant really pinpoint whats going wrong even with logging certain functions. I assume it has to do with getting body blocked but im not sure.
Any help?
What is this? It looks like its suppose to be Pogmei Chest runner but everything is missing from the main combat loop. Your loop looks like it just goes outside, runs to a certain spot, then casts IAU and then goes back to town. I don't understand.Quote:
Ive reduced the script as much as I could and it still crashes very randomly, sometimes after 4 iterations, sometimes after 20 or 40. I dont have this issue with every bot. But I noticed my fiber bot (which I did not change for a couple of weeks, started crashing too after about 3 hours).
This little script however already crashes after 3-7 min.
See attachment
Func CombatLoop()
If Not $RenderingEnabled Then ClearMemory()
Out($numChestsFound & " chests found")
Local $openedChestIDs[5]
Local $openedChestIndex = 0
Out("RunTo1")
RunTo(-12290, 976)
Out("use iau")
UseSkill($IAU)
If GetIsDead(-2) Then
Out("Failed")
$FailCount += 1
GUICtrlSetData($FailsLabel, $FailCount)
MapDT()
Sleep(1000)
Return False
Else
$RunCount += 1
GUICtrlSetData($RunsLabel, $RunCount)
MapDT()
Sleep(1000)
Return True
EndIf
EndFunc
Compile the script into a .exe and run as admin. It could be possible that your anti-virus kills the process on a random security sweep.Quote:
Yep, that is my whole point. I made a pongmei chest runner myself and I was planning to make different chest runners as well. The point of THIS script is to just provide a script that still crashes on my pc while being stripped of everything else. i.e to narrow down the problem...
I can't see anything wrong with it either, but it crashes which is why I have no clue wtf is going on.
Edit: I already tried different GWA2 files, from your bots and others.