Hope this helpsQuote:
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
[Only registered and activated users can see links. Click Here To Register...]
;~ 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
I use it like thisQuote:
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
GoToMerchant(GetMerchant($aMapID))
To make it more clearQuote:
i've actually managed to fix the PerformAction, the flags changed a little bit, 0x1E and 0x20, not sure of the old values
;~ 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
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.Quote:
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.
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.Quote:
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
depends on what you wantQuote:
Is there anyway to make it where the bot calls out every skill they use on a target?
yes, yes, just apply it to every PerformActio()Quote:
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
;================================================================================================= ; 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
If $DeadOnTheRun = 0 Then $enemy = "22" AggroMoveToEx(1947, -11033, $enemy) If $DeadOnTheRun = 0 Then $enemy = "23" AggroMoveToEx(3108, -12362, $enemy) If $DeadOnTheRun = 0 Then $enemy = "24" AggroMoveToEx(2932, -14112, $enemy) If $DeadOnTheRun = 0 Then $enemy = "25" AggroMoveToEx(2033, -15621, $enemy) If $DeadOnTheRun = 0 Then $enemy = "26" AggroMoveToEx(1168, -17145, $enemy)