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 22:55

  • 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   #1
 
elite*gold: 0
Join Date: Nov 2018
Posts: 33
Received Thanks: 19
Complete noob coder attempting to code interchangeable Nick bot

Hi there

I wanted to create a skeleton-like bot that had the basic structure of a bot, but each week could be changed very easily to farm the new Nick item (just change IDs of outpost/area/items/route taken). This would be done with heroes so not extremely efficient, but would be easy and would work.

I've tried adjusting code around from bots I've seen in the Nick thread and have got the bot posted here (currently, for Truffles in Melandru's Hope outside Brauer Academy).

The bot has 2 main problems which stops it from doing it's job:
1)The bot doesn't pick up Truffles
I've got the Model ID of truffles but no idea where I put this in, nor can I find anywhere within the documents where another model ID is written, or any pickup function in the main bot, so quite stumped on this one. I would eventually like to input all event items and greens too

2)The bot will fail to recognise it's in an outpost after resigning after 1 run:
So it will do 1 run, resign, go back to outpost, but then immediately start "hunting" again when it's function should be to leave the outpost.

Appreciate these are really noob questions, however I have 0 experience in this so just looking for some help

Thanks

EDIT:

These are working bots so far:
Attached Files
File Type: zip Dessicated Hydra Claw.zip (55.0 KB, 17 views)
File Type: zip Frigid Hearts.zip (54.8 KB, 14 views)
File Type: zip Gold Dubloon Coin.zip (55.2 KB, 13 views)
File Type: zip Intricate Grawl Necklace.zip (166.1 KB, 11 views)
File Type: zip Luminous Stone.zip (55.2 KB, 11 views)
File Type: zip Skelk Claw.zip (54.8 KB, 11 views)
dboston is offline  
Thanks
3 Users
Old 03/16/2023, 03:55   #2
 
elite*gold: 0
Join Date: Jan 2019
Posts: 53
Received Thanks: 22
I will work on this tonight and see what all i can do. Shouldn't be too many changes
ForgottenRelic is offline  
Old 03/18/2023, 18:41   #3
 
elite*gold: 0
Join Date: Jun 2017
Posts: 5
Received Thanks: 1
The model ID was forgotten to be entered under CanPickUp.
ElseIf $m = 813 Then
Return True ;Truffle

For your MapLoading problem simply query the instance type.
Do
RndSleep(100)
Until GetMapLoading() == $INSTANCETYPE_EXPLORABLE Or TimerDiff($TimerLoad) > 20000

For your resign set after MapLoading($Outpost)
Do
RndSleep(100)
Until GetMapLoading() == $INSTANCETYPE_OUTPOST Or TimerDiff($TimerLoad) > 20000
RndSleep(2000)

Maybe this will help you
panda231 is offline  
Old 03/18/2023, 23:45   #4
 
elite*gold: 0
Join Date: Nov 2018
Posts: 33
Received Thanks: 19
Hey - thanks a lot for your help.

I have got it picking up Truffles (and anything else I can find the ID of!) so that's great, thanks very much.

I've tried the resigning function you wrote and I'm getting the "variable used without being declared error". Am I correct in thinking that the variable is "$INSTANCETYPE_OUTPOST"?
Is this something that is done at the start of the code, or in one of the other files?
dboston is offline  
Old 03/19/2023, 20:33   #5
 
elite*gold: 0
Join Date: Jun 2017
Posts: 5
Received Thanks: 1
Edit - Global $TimerLoad - into your Truffle.au3

Put this into your AddOn.au3
Global Enum $INSTANCETYPE_OUTPOST, $INSTANCETYPE_EXPLORABLE, $INSTANCETYPE_LOADING

If you go through a gate use Move instead of Moveto

Change your While Part
SwitchMode(0) ;Normal Mode

; FastWayOut()
GoOut()
While (CountSlots() > 4)
$NumberRun = $NumberRun +1
VQ()
WEnd

_PurgeHook()
clearmemory()

into

SwitchMode(0) ;Normal Mode
VQ()
$NumberRun = $NumberRun +1
_PurgeHook()
clearmemory(
)

Than it should work
panda231 is offline  
Old 03/19/2023, 23:59   #6
 
elite*gold: 0
Join Date: Nov 2018
Posts: 33
Received Thanks: 19
Hi again, I appreciate your help on this, and have worked through your suggestions. However I think there's something missing still from preventing it working correctly.

On the issue of not recognising the outpost and going "hunting" immediately after resigning instead of "going out" of the outpost first; I implemented the change you highlighted in red and orange and with these in effect, the bot won't even leave the outpost for 1 run before erroring, it will never leave the outpost as it goes "hunting" straight away.

I've had a play around myself but still stumped - could it be something to do with:
If $NumberRun = 0 Then ;first run
and then a little bit later
SwitchMode(0) ;Normal Mode
;FastWayOut()
GoOut()
While (CountSlots() > 4)
$NumberRun = $NumberRun +1

My thought was that it was only applying the "GoOut" function on the bot's first run, whereas we want it to "GoOut" on returning to the outpost for the second run, and the third run, and the fourth run etc.

I've uploaded the current version with the changes in if you wanted to have a look - thanks again!
Attached Files
File Type: zip Truffle.zip (56.2 KB, 4 views)
dboston is offline  
Old 03/20/2023, 23:01   #7
 
elite*gold: 0
Join Date: Jun 2017
Posts: 5
Received Thanks: 1
try this one

not sexy but should work
Attached Files
File Type: zip Truffle.zip (56.4 KB, 14 views)
panda231 is offline  
Old 03/21/2023, 23:40   #8
 
elite*gold: 0
Join Date: Nov 2018
Posts: 33
Received Thanks: 19
That's working! Not pretty, or efficient, but definitely working.

Thanks very much for your help on this!
dboston is offline  
Old 03/22/2023, 14:15   #9
 
elite*gold: 0
Join Date: Nov 2018
Posts: 33
Received Thanks: 19
For anyone curious, here is a really messy updated version of panda231's work that will farm the current Nick item, Skelk Claws.
Attached Files
File Type: zip Skelk Claw.zip (54.8 KB, 19 views)
dboston is offline  
Old 03/27/2023, 14:45   #10
 
elite*gold: 0
Join Date: Nov 2018
Posts: 33
Received Thanks: 19
Here's one for Dessicated Hydra claws.

If anyone is interested in making this work further I'd be keen to work on it, would like to be able to farm specific greens (what's the green pickup function?) would look at Urgoz/Deep but believe theres some interaction to do there (flagging heroes, opening chests) dungeons, UW/FoW too. Would also like to run through some missions too but again, not super sure how to get it to interact with NPCs or deal with cutscenes etc.
Attached Files
File Type: zip Dessicated Hydra Claw.zip (55.0 KB, 20 views)
dboston is offline  
Thanks
2 Users
Old 03/30/2023, 10:42   #11
 
elite*gold: 0
Join Date: Mar 2023
Posts: 17
Received Thanks: 13
I am sending a bump.
Corey 1991 is offline  
Old 03/30/2023, 20:16   #12
 
elite*gold: 0
Join Date: Dec 2010
Posts: 51
Received Thanks: 25
maybe we could post the finished scripts in the old nick thread most of those work might need gwa2 update and few fixes
corey54321 is offline  
Old 04/04/2023, 17:13   #13
 
elite*gold: 0
Join Date: Oct 2018
Posts: 9
Received Thanks: 2
Does anyone know the ID number for Frigid Hearts? Can't seem to find that one anywhere.
Fracman is offline  
Old 04/06/2023, 07:54   #14
 
elite*gold: 0
Join Date: Sep 2009
Posts: 27
Received Thanks: 17
ModelID: 494
joeko is offline  
Thanks
1 User
Old 04/06/2023, 13:22   #15
 
elite*gold: 0
Join Date: Nov 2018
Posts: 33
Received Thanks: 19
Frigid Hearts bot

This one is extremely messy, but as always, works
Attached Files
File Type: zip Frigid Hearts.zip (54.8 KB, 21 views)
dboston is offline  
Thanks
1 User
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 +2. The time now is 22:55.


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.