The Pre Omnifarm bot crashes when it tries to use Glyph of Lesser Energy on my Ele. I'm level 19, no secondary profession. I can't quote the exact error, but its close to this:
Error Line 5726 (Glyph of Lesser Energy>1000)))
Unbalanced line within brackets
It happens with any of the tasks I set it to attempt to do, wether its charr bosses, item farm, doesn't matter what I try to have it run.
How can I make the Vaettir bot store all unidentified golds?
Also, the Luxon farm bot picks up every item and isn't selling the items correctly. Usually inventory fills up after a run or two and then it just stops picking up items. Still completes the run fine.
A little patience, please, I'm working on a version that sells and identifies
i test it befor i upload
Vattir with sell and ident version :
i have test it he ident and sell items
Attention please read
if you have the gwtoolbox then go to your guild hall and seek out the id your merchant has since there is a vein id in every guild hall
Look at the picture there I have an example (red circled)
change that in the vattir script line 1511 Local $ lMerch = GoNPC (63) <- your npc number
then he should also go to the merchant and can sell
since the function:
GetAgentByName () is broken you have to change it until the new function is there
I would be happy about a click on the THANKS button
-If u want Non puplic bot so look in my BM link is in my signature
Hope this helps
Code:
;~ Description: Return merchant depending on MapID.
Func GetMerchant($aMapID = GetMapID())
Switch $aMapID
Case 4, 5, 6, 52, 176, 177, 178, 179 ; proph gh
Return 209
Case 275, 276, 359, 360, 529, 530, 537, 538 ; factions and nf gh
Return 196
Case 10, 11, 12, 139, 141, 142, 49, 857
Return 2030
Case 109, 120, 154
Return 1987
Case 116, 117, 118, 152, 153, 38
Return 1988
Case 122, 35
Return 2130
Case 123, 124
Return 2131
Case 129, 348, 390
Return 3396
Case 130, 218, 230, 287, 349, 388
Return 3397
Case 131, 21, 25, 36
Return 2080
Case 132, 135, 28, 29, 30, 32, 39, 40
Return 2091
Case 133, 155, 156, 157, 158, 159, 206, 22, 23, 24
Return 2101
Case 134, 81
Return 2005
Case 136, 137, 14, 15, 16, 19, 57, 73
Return 1983
Case 138
Return 1969
Case 193, 234, 278, 288, 391
Return 3612
Case 194, 213, 214, 225, 226, 242, 250, 283, 284, 291, 292
Return 3269
Case 216, 217, 249, 251
Return 3265
Case 219, 224, 273, 277, 279, 289, 297, 350, 389
Return 3611
Case 220, 274, 51
Return 3267
Case 222, 272, 286, 77
Return 3395
Case 248
Return 1201
Case 303
Return 3266
Case 376, 378, 425, 426, 477, 478
Return 5379
Case 381, 387, 421, 424, 427, 554
Return 5380
Case 393, 396, 403, 414, 476
Return 5660
Case 398, 407, 428, 433, 434, 435
Return 5659
Case 431
Return 4715
Case 438, 545
Return 5615
Case 440, 442, 469, 473, 480, 494, 496
Return 5607
Case 450, 559
Return 4983
Case 474, 495
Return 5608
Case 479, 487, 489, 491, 492, 502, 818
Return 4714
Case 555
Return 4982
Case 624
Return 6752
Case 638
Return 6054
Case 639, 640
Return 6751
Case 641
Return 6057
Case 642
Return 6041
Case 643, 645, 650
Return 6377
Case 644
Return 6382
Case 648
Return 6583
Case 652
Return 6225
Case 675
Return 6184
Case 808
Return 7442
Case 814
Return 104
EndSwitch
EndFunc ;==>GetMerchant
;~ Description: Return material trader depending on MapID.
Func GetMaterialTrader($aMapID = GetMapID())
Switch $aMapID
Case 4, 5, 6, 52, 176, 177, 178, 179 ; proph gh
Return 204
Case 275, 276, 359, 360, 529, 530, 537, 538 ; factions and nf gh
Return 191
Case 109, 49, 81
Return 2011
Case 193
Return 3618
Case 194, 242, 857
Return 3279
Case 250
Return 3280
Case 376
Return 5385
Case 398
Return 5665
Case 414
Return 5668
Case 424
Return 5386
Case 433
Return 5666
Case 438
Return 5618
Case 491
Return 4720
Case 492
Return 4721
Case 638
Return 6757
Case 640
Return 6758
Case 641
Return 6059
Case 642
Return 6044
Case 643
Return 6383
Case 644
Return 6384
Case 652
Return 6227
Case 77
Return 3409
Case 808
Return 7446
Case 818
Return 4723
EndSwitch
EndFunc ;==>GetMaterialTrader
;~ Description: Return rare material trader depending on MapID.
Func GetRareMaterialTrader($aMapID = GetMapID())
Switch $aMapID
Case 4, 5, 6, 52, 176, 177, 178, 179 ; proph gh
Return 205
Case 275, 276, 359, 360, 529, 530, 537, 538 ; factions and nf gh
Return 192
Case 109
Return 1997
Case 193
Return 3621
Case 194, 250, 857
Return 3282
Case 242
Return 3281
Case 376
Return 5388
Case 398, 433
Return 5667
Case 414
Return 5668
Case 424
Return 5387
Case 438
Return 5613
Case 49
Return 2038
Case 491, 818
Return 4723
Case 492
Return 4722
Case 638
Return 6760
Case 640
Return 6759
Case 641
Return 6060
Case 642
Return 6045
Case 643
Return 6386
Case 644
Return 6385
Case 652
Return 6228
Case 77
Return 3410
Case 81
Return 2083
EndSwitch
EndFunc ;==>GetRareMaterialTrader
;~ Description: Return rune trader depending on MapID.
Func GetRuneTrader($aMapID = GetMapID())
Switch $aMapID
Case 4, 5, 6, 52, 176, 177, 178, 179 ; proph gh
Return 203
Case 275, 276, 359, 360, 529, 530, 537, 538 ; factions and nf gh
Return 190
Case 109, 814
Return 1999
Case 193
Return 3624
Case 194, 242, 250
Return 3285
Case 248, 857
Return 1975
Case 396
Return 5672
Case 414
Return 5671
Case 438
Return 5620
Case 477
Return 5390
Case 487
Return 4726
Case 49
Return 2039
Case 502
Return 4727
Case 624
Return 6764
Case 640
Return 6763
Case 642
Return 6046
Case 643, 645
Return 6389
Case 644
Return 6390
Case 77
Return 3415
Case 808
Return 7450
Case 81
Return 2085
Case 818
Return 4705
EndSwitch
EndFunc ;==>GetRuneTrader
;~ Description: Return dye trader depending on MapID.
Func GetDyeTrader($aMapID = GetMapID())
Switch $aMapID
Case 4, 5, 6, 52, 176, 177, 178, 179 ; proph gh
Return 206
Case 275, 276, 359, 360, 529, 530, 537, 538 ; factions and nf gh
Return 193
Case 109, 49, 81, 857
Return 2010
Case 193
Return 3617
Case 194, 242
Return 3278
Case 250
Return 3277
Case 286
Return 3402
Case 381, 477
Return 5383
Case 403
Return 5663
Case 414
Return 5664
Case 640
Return 6756
Case 642
Return 6043
Case 644
Return 6378
Case 77
Return 3401
Case 812
Return 2107
Case 818
Return 4719
EndSwitch
EndFunc ;==>GetDyeTrader
;~ Description: Return scroll trader depending on MapID.
Func GetScrollTrader($aMapID = GetMapID())
Switch $aMapID
Case 4, 5, 6, 52, 176, 177, 178, 179 ; proph gh
Return 207
Case 275, 276, 359, 360, 529, 530, 537, 538 ; factions and nf gh
Return 194
Case 109
Return 1998
Case 193
Return 3623
Case 194
Return 3283
Case 287
Return 3413
Case 396, 414
Return 5669
Case 426, 857
Return 5392
Case 442, 480
Return 5621
Case 49
Return 2040
Case 624
Return 6761
Case 638
Return 6056
Case 639, 640
Return 6762
Case 643, 644
Return 6387
Case 645
Return 6388
Case 77
Return 3412
Case 808
Return 7448
EndSwitch
EndFunc ;==>GetScrollTrader
Quote:
Originally Posted by schnoesel21
Hope this helps
Code:
;~ Description: Return merchant depending on MapID.
Func GetMerchant($aMapID = GetMapID())
Switch $aMapID
Case 4, 5, 6, 52, 176, 177, 178, 179 ; proph gh
Return 209
Case 275, 276, 359, 360, 529, 530, 537, 538 ; factions and nf gh
Return 196
Case 10, 11, 12, 139, 141, 142, 49, 857
Return 2030
Case 109, 120, 154
Return 1987
Case 116, 117, 118, 152, 153, 38
Return 1988
Case 122, 35
Return 2130
Case 123, 124
Return 2131
Case 129, 348, 390
Return 3396
Case 130, 218, 230, 287, 349, 388
Return 3397
Case 131, 21, 25, 36
Return 2080
Case 132, 135, 28, 29, 30, 32, 39, 40
Return 2091
Case 133, 155, 156, 157, 158, 159, 206, 22, 23, 24
Return 2101
Case 134, 81
Return 2005
Case 136, 137, 14, 15, 16, 19, 57, 73
Return 1983
Case 138
Return 1969
Case 193, 234, 278, 288, 391
Return 3612
Case 194, 213, 214, 225, 226, 242, 250, 283, 284, 291, 292
Return 3269
Case 216, 217, 249, 251
Return 3265
Case 219, 224, 273, 277, 279, 289, 297, 350, 389
Return 3611
Case 220, 274, 51
Return 3267
Case 222, 272, 286, 77
Return 3395
Case 248
Return 1201
Case 303
Return 3266
Case 376, 378, 425, 426, 477, 478
Return 5379
Case 381, 387, 421, 424, 427, 554
Return 5380
Case 393, 396, 403, 414, 476
Return 5660
Case 398, 407, 428, 433, 434, 435
Return 5659
Case 431
Return 4715
Case 438, 545
Return 5615
Case 440, 442, 469, 473, 480, 494, 496
Return 5607
Case 450, 559
Return 4983
Case 474, 495
Return 5608
Case 479, 487, 489, 491, 492, 502, 818
Return 4714
Case 555
Return 4982
Case 624
Return 6752
Case 638
Return 6054
Case 639, 640
Return 6751
Case 641
Return 6057
Case 642
Return 6041
Case 643, 645, 650
Return 6377
Case 644
Return 6382
Case 648
Return 6583
Case 652
Return 6225
Case 675
Return 6184
Case 808
Return 7442
Case 814
Return 104
EndSwitch
EndFunc ;==>GetMerchant
I use it like this
Code:
GoToMerchant(GetMerchant($aMapID))
If you use the AgentID like you do in your picture it will fail if the count of npc is changing like on events. Use the modelID instead is more secure.
Quote:
Originally Posted by afmart
i've actually managed to fix the PerformAction, the flags changed a little bit, 0x1E and 0x20, not sure of the old values
To make it more clear
Code:
;~ Description: Display the names of allies.
Func DisplayAllies($aDisplay)
If $aDisplay Then
Return PerformAction(0x89, 0x1E); was 0x18
Else
Return PerformAction(0x89, 0x20) ; was 0x1A
EndIf
EndFunc ;==>DisplayAllies
The Pre Omnifarm bot crashes when it tries to use Glyph of Lesser Energy on my Ele. I'm level 19, no secondary profession. I can't quote the exact error, but its close to this:
Error Line 5726 (Glyph of Lesser Energy>1000)))
Unbalanced line within brackets
It happens with any of the tasks I set it to attempt to do, wether its charr bosses, item farm, doesn't matter what I try to have it run.
It tells you exactly whats wrong. You have two many brackets on the end of the line. Delete one. Actually look like you need to delete two.
Error Line 5726 (Glyph of Lesser Energy>1000)))
Unbalanced line within brackets
It tells you exactly whats wrong. You have two many brackets on the end of the line. Delete one. Actually look like you need to delete two.
Error Line 5726 (Glyph of Lesser Energy>1000)))
Unbalanced line within brackets
I never made any adjustments to the bot, just tried to run it as is. Its the Omnifarm v2.2 posted a couple pages back. I'll remove some brackets 1 by 1 and see if it helps, but the lines in the script above it for Flare and Firestorm are written the same way.
EDIT: Not a few pages back, sorry. Page 9 of the Pre Farmer post.
Is there anyway to make it where the bot calls out every skill they use on a target?
depends on what you want
team chat?
console output?
Quote:
Originally Posted by schnoesel21
Hope this helps
To make it more clear
Code:
;~ Description: Display the names of allies.
Func DisplayAllies($aDisplay)
If $aDisplay Then
Return PerformAction(0x89, 0x1E); was 0x18
Else
Return PerformAction(0x89, 0x20) ; was 0x1A
EndIf
EndFunc ;==>DisplayAllies
yes, yes, just apply it to every PerformActio()
some times i forget people need a "for dummies" instructions
btw remember to change every header value above 0x50 to +1, also solves lots of problems. EVERY HEADER FROM BEFORE MAY ONE
Ps: no im not in a secret group on another site, i just read the posts and do my own thing
i found the change in the flag using this super program i made and trial and error
you could build a function that checks the district if he is empty before the bot starts and who he is not empty in an empty district travel buddy hate the times in the toc bot installed so it is possible I just just do not like search just the old toc bot out hope i find him think this feature is better against reports than rondom dis change
Updated:we have the feature being tested right now when it works it will be gradually incorporated here in every bot
Hello everyone, I got a Kurzick Render Bot but can't fix it, the issue is with the line 274 :
Code:
;=================================================================================================
; Function: GetNearestItemToAgent($aAgent)
; Description: Get nearest item lying on floor around $aAgent ($aAgent = -2 ourself), necessary to work with PickUpItems func
; Parameter(s): $aAgent: ID of Agent
; Requirement(s): GW must be running and Memory must have been scanned for pointers (see Initialize())
; Return Value(s): On Success - Returns ID of nearest item
; [MENTION=368499]Extended[/MENTION] - distance to item
; Author(s): GWCA team, recoded by ddarek
;=================================================================================================
Func GetNearestItemToAgent($aAgent)
Local $lNearestAgent, $lNearestDistance = 100000000
Local $lDistance, $lAgentToCompare
If IsDllStruct($aAgent) = 0 Then $aAgent = GetAgentByID($aAgent)
For $i = 1 To GetMaxAgents()
$lAgentToCompare = GetAgentByID($i)
If DllStructGetData($lAgentToCompare, 'Type') <> 0x400 Then ContinueLoop
$lDistance = (DllStructGetData($lAgentToCompare, 'Y') - DllStructGetData($aAgent, 'Y')) ^ 2 + (DllStructGetData($lAgentToCompare, 'X') - DllStructGetData($aAgent, 'X')) ^ 2
If $lDistance < $lNearestDistance Then
$lNearestAgent = $lAgentToCompare
$lNearestDistance = $lDistance
EndIf
Next
SetExtended(Sqrt($lNearestDistance)) ;this could be used to retrieve the distance also
Return $lNearestAgent
EndFunc ;==>GetNearestItemToAgent
Could you please Help me ?
The broken line of code come from the AddsOn inside, i simply need the code for the NearestAgendId
Last Chaos GuardianS - New 2019 Server (Opening 12 January 2019) 01/27/2019 - Last Chaos Private Server - 180 Replies https://www.youtube.com/watch?v=kCfwdUoPHu0
Website Coming Soon
Server Information
Start level :1
Max level:165
Experience:x2
Skill Points:x3