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 07:05

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

Advertisement



Complete noob coder attempting to code interchangeable Nick bot

Discussion on Complete noob coder attempting to code interchangeable Nick bot within the GW Exploits, Hacks, Bots, Tools & Macros forum part of the Guild Wars category.

Reply
 
Old 04/17/2023, 10:42   #16
 
elite*gold: 0
Join Date: Apr 2009
Posts: 94
Received Thanks: 10
Okay so for this week Nick set i wanna give it a try "making" the new bot. So to make sure i got it right all i have to do is:

Change Town and Arena ID, Coordinates for moving out of the town and change coordinates for the farming route? (:

And add ID for the Nick item
ARJ is offline  
Old 04/17/2023, 12:34   #17
 
elite*gold: 0
Join Date: Nov 2018
Posts: 33
Received Thanks: 19
That's correct, although this week's set is Phantom Residue, which is dropped by some mobs in the Underworld. Obviously to get into the underworld you either need to /kneel interact with NPC or use a scroll, I'm not too sure how to code either of those actions into the bot, so I'll likely not farm this next week's item.

Unless of course, you get into the UW, start the bot, let the bot do a run until it /resigns, close the bot, then manually re-enter the UW and start the bot again. It's only 5 drops it needs so might not take too many runs. (Although might have to edit it to remove the bot trying to zone to an outpost at the start of the run, not looked into it although should be relatively easy?)
dboston is offline  
Old 04/18/2023, 13:14   #18
 
elite*gold: 0
Join Date: Apr 2009
Posts: 94
Received Thanks: 10
oh i picked a bad week for it. But cant you just farm in "Ruins of the Tomb of the Primeval Kings" ..

Info from wiki:

Edit: Okay nevermind it looks complicated too xD Ill just wait for an easy nick set xD
ARJ is offline  
Old 06/06/2023, 12:07   #19
 
elite*gold: 0
Join Date: Nov 2018
Posts: 33
Received Thanks: 19
Intricate Grawl Necklaces
Attached Files
File Type: zip Intricate Grawl Necklace.zip (54.9 KB, 19 views)
dboston is offline  
Old 06/11/2023, 01:46   #20
 
elite*gold: 0
Join Date: Jan 2021
Posts: 47
Received Thanks: 4
Guys, something changed in code? Like headers or what? My bots are all messed up.
Dupljakus is offline  
Old 06/12/2023, 11:48   #21
 
elite*gold: 0
Join Date: Nov 2018
Posts: 33
Received Thanks: 19
I've not changed anything in these Nick bots except the item pickup ID, outpost/explorable area ID and the coordinates for the bot to run...
dboston is offline  
Old 06/20/2023, 15:26   #22
 
elite*gold: 0
Join Date: Nov 2018
Posts: 33
Received Thanks: 19
Gold Dubloon Coins

As there are some bosses here with Green drops, I wondered if anyone knew how to add a blanket "pickup all grees' line into the code somewhere? Or if anyone knows of a location that has ModelIDs of all green items that I can input manually myself?

Thanks
Attached Files
File Type: zip Gold Dubloon Coin.zip (55.2 KB, 14 views)
dboston is offline  
Old 06/20/2023, 17:25   #23
 
Restia Ashdoll's Avatar
 
elite*gold: 0
Join Date: Apr 2016
Posts: 313
Received Thanks: 166
Quote:
Originally Posted by dboston View Post
Gold Dubloon Coins

As there are some bosses here with Green drops, I wondered if anyone knew how to add a blanket "pickup all grees' line into the code somewhere? Or if anyone knows of a location that has ModelIDs of all green items that I can input manually myself?

Thanks
just pick up everything with green rarity ..

Global Const $RARITY_GREEN = 2627


Please check yourself if this is working i won't test it, but form the stuff you provided this looks fitting imo, i also shortend the function because that looked so ugly - you can just add every modelid which should be picked up in the first case statement --> if you want to keep the readability i would suggest you get a const for the Item showing the name
Restia Ashdoll is offline  
Old 06/20/2023, 18:03   #24
 
elite*gold: 0
Join Date: Nov 2018
Posts: 33
Received Thanks: 19
I replaced my pickup function with the one you suggested but getting an error (variable used without being declared). Will have a dig into it later

Thanks for setting me on the right track!
dboston is offline  
Old 06/20/2023, 18:09   #25
 
Restia Ashdoll's Avatar
 
elite*gold: 0
Join Date: Apr 2016
Posts: 313
Received Thanks: 166
Quote:
Originally Posted by dboston View Post
I replaced my pickup function with the one you suggested but getting an error (variable used without being declared). Will have a dig into it later

Thanks for setting me on the right track!
My bad just put a Local infront of the 2 variables $r and $m - fixed it above also
Restia Ashdoll is offline  
Old 06/20/2023, 23:16   #26
 
elite*gold: 0
Join Date: Nov 2018
Posts: 33
Received Thanks: 19
Thanks, although I'm still getting an error, further up in the code, in this function:

Code:
Func GetExtraItemInfo($aitem)
    If IsDllStruct($aitem) = 0 Then $aAgent = GetItemByItemID($aitem)
    $lItemExtraPtr = DllStructGetData($aitem, "namestring")

    DllCall($mHandle[0], 'int', 'ReadProcessMemory', 'int', $mHandle[1], 'int', $lItemExtraPtr, 'ptr', $lItemExtraStructPtr, 'int', $lItemExtraStructSize, 'int', '')
    Return $lItemExtraStruct
EndFunc   ;==>GetExtraItemInfo
The error is on the 4th line (DllCall), I've been looking at it with Google and ChatGPT but no luck so far.

EDIT. Ok, think I've fixed it, I removed some brackets from the code you sent, here's the new version:

Code:
Func CanPickUp($aitem)
    Local $r = DllStructGetData($aItem, 'rarity')
    Local $m = DllStructGetData($aitem, 'ModelID')

    Switch $m
        Case 467, 468, 37765, 933, 2511, 934, 442, 5965, 444, 921, 923, 932, 813, 22190, 22191, 27040, 454, 1660, 499, 1578
            Return True
        Case Else
            If $r = $RARITY_GREEN Then Return True
            Return False
    EndSwitch
EndFunc ;=> CanPickUp
It's not crashing anymore, will test to see if it picks up Dubloons + Greens now...
dboston is offline  
Old 06/21/2023, 08:18   #27
 
Restia Ashdoll's Avatar
 
elite*gold: 0
Join Date: Apr 2016
Posts: 313
Received Thanks: 166
Quote:
Originally Posted by dboston View Post
Thanks, although I'm still getting an error, further up in the code, in this function:

Code:
Func GetExtraItemInfo($aitem)
    If IsDllStruct($aitem) = 0 Then $aAgent = GetItemByItemID($aitem)
    $lItemExtraPtr = DllStructGetData($aitem, "namestring")

    DllCall($mHandle[0], 'int', 'ReadProcessMemory', 'int', $mHandle[1], 'int', $lItemExtraPtr, 'ptr', $lItemExtraStructPtr, 'int', $lItemExtraStructSize, 'int', '')
    Return $lItemExtraStruct
EndFunc   ;==>GetExtraItemInfo
The error is on the 4th line (DllCall), I've been looking at it with Google and ChatGPT but no luck so far.

EDIT. Ok, think I've fixed it, I removed some brackets from the code you sent, here's the new version:

Code:
Func CanPickUp($aitem)
    Local $r = DllStructGetData($aItem, 'rarity')
    Local $m = DllStructGetData($aitem, 'ModelID')

    Switch $m
        Case 467, 468, 37765, 933, 2511, 934, 442, 5965, 444, 921, 923, 932, 813, 22190, 22191, 27040, 454, 1660, 499, 1578
            Return True
        Case Else
            If $r = $RARITY_GREEN Then Return True
            Return False
    EndSwitch
EndFunc ;=> CanPickUp
It's not crashing anymore, will test to see if it picks up Dubloons + Greens now...
Just drop a Green on purpose if you want to quickly test it, i took the above string out of the api but i guess that was outdated than

glad it seems to work
Restia Ashdoll is offline  
Thanks
1 User
Old 06/21/2023, 12:25   #28
 
elite*gold: 0
Join Date: Nov 2018
Posts: 33
Received Thanks: 19
I've been dropping greens like there's no tomorrow but I cannot get it to pickup. I've tried slicing parts out of other bots and inserting them but if they don't pickup, they crash. If anyone knows why this may be the case, I'd love to know! Thanks
dboston is offline  
Old 06/21/2023, 13:23   #29
 
Waka.Waka's Avatar
 
elite*gold: 0
Join Date: Dec 2016
Posts: 128
Received Thanks: 72
Try this one
Code:
Global Enum $RARITY_White = 2621, $RARITY_Blue = 2623, $RARITY_Purple = 2626, $RARITY_Gold = 2624, $RARITY_Green = 2627

Func CanPickUp($aitem)
Local $m = DllStructGetData($aitem, 'ModelID')
Local $r = GetRarity($aitem)
Local $c = DllStructGetData($aitem, 'ExtraID')

    Switch $m
        Case 467, 468, 37765, 933, 2511, 934, 442, 5965, 444, 921, 923, 932, 813, 22190, 22191, 27040, 454, 1660, 499, 1578
            Return True
 EndSwitch

Switch $r
   Case $RARITY_Gold ; Gold Items
			Return True
   case $RARITY_Green
			Return True
EndSwitch

Return False

EndFunc ;=> CanPickUp
You can now also add all kind of stuff with a new switch. Either Colors or req8 or so on...
Waka.Waka is offline  
Thanks
1 User
Old 06/21/2023, 14:58   #30
 
elite*gold: 0
Join Date: Nov 2018
Posts: 33
Received Thanks: 19
Quote:
Originally Posted by Waka.Waka View Post
Try this one
Code:
Global Enum $RARITY_White = 2621, $RARITY_Blue = 2623, $RARITY_Purple = 2626, $RARITY_Gold = 2624, $RARITY_Green = 2627

Func CanPickUp($aitem)
Local $m = DllStructGetData($aitem, 'ModelID')
Local $r = GetRarity($aitem)
Local $c = DllStructGetData($aitem, 'ExtraID')

    Switch $m
        Case 467, 468, 37765, 933, 2511, 934, 442, 5965, 444, 921, 923, 932, 813, 22190, 22191, 27040, 454, 1660, 499, 1578
            Return True
 EndSwitch

Switch $r
   Case $RARITY_Gold ; Gold Items
			Return True
   case $RARITY_Green
			Return True
EndSwitch

Return False

EndFunc ;=> CanPickUp
You can now also add all kind of stuff with a new switch. Either Colors or req8 or so on...

Appreciate the help, but that one also doesn't pick up. It actually errors on that first line when you open it to run (error: cannot assign values to constants). I've tried moving that first bit around to get it to run, but then it doesn't pick up greens (or golds), so assuming it needs to be in the code somewhere, just not in the places I've tried
dboston is offline  
Reply


Similar Threads Similar Threads
[Help]Items not interchangeable?
10/25/2013 - Shaiya Private Server - 2 Replies
I find it urgent, I need to swap items and try various forms.. lph + ShStudio, exploit. erroneous result: Handsdown: please help on Items not interchangeable of shaiya ep 5 : Rolleyes:
items are not interchangeable
08/14/2012 - Shaiya - 2 Replies
hello elitepvpers users want to ask a question which is whether there is some kind of hack articles "not interchangeable" not found, is to pass the items to another pj. thanks and regards, I hope your answers
[NEW]client to make items that are not interchangeable, interchangeable
05/27/2012 - Shaiya - 1 Replies
client to make items that are not interchangeable, interchangeable CLIENT EP4 ONLY english just need a client or old ep 3 ep 4 to make it work. can only be exchanged via the item shop or pulling espaņol solo se necesita un cliente viejo ep 3 o ep 4 para hacerlo funcionar. solo se puede intercambiar via tienda o tirando el item :):):)
Interchangeable items shaiya lat
02/08/2012 - Shaiya - 0 Replies
ESPAŅOL: Hola quisiera saber si hay algun programa para poder intercambiar los articulos de promocion que no son comerciables, me gustaria que me dejaran el link de donde puedo descargar dicho programa. Ya he visto que algunos personajes venden dichos articulos y quisiera saber como lo hacen gracias ^^ Les envio un gran saludo ^^ PD: creo que se tiene que modificar un parche o algo asi he oido si alguien me ayudara seria genial. Shaiya Lat INGLES: Hello I wonder if there is any...
not interchangeable items shaiya
12/13/2011 - Shaiya Private Server - 3 Replies
such friends, I wonder if there is a program to exchange items that are not interchangeable between accounts. . .



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


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