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.
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
giving from what you have posted - the consts are already defined so just leave that part out and try again
Quote:
Originally Posted by dboston
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
Code:
Func CanPickUp($aitem)
Local $m = DllStructGetData($aitem, 'ModelID')
Local $r = GetRarity($aitem)
Local $c = DllStructGetData($aitem, 'ExtraID')
Local $allowedModels = [467, 468, 37765, 933, 2511, 934, 442, 5965, 444, 921, 923, 932, 813, 22190, 22191, 27040, 454, 1660, 499, 1578]
If _ArraySearch($allowedModels, $m) <> -1 Then
Return True
EndIf
Switch $r
Case $RARITY_Gold, $RARITY_Green
Return True
EndSwitch
Return False
EndFunc ;=> CanPickUp
RARITY_Gold and Green should already be definied in your script i think i have seen them somewhere
Yeah you're right I do think they're defined already, so I did leave that bit out (I tried adding it too when it didn't work properly). Still completely ignoring greens (and golds) but everything's telling me it should be working. Got me stumped, this one
Yeah you're right I do think they're defined already, so I did leave that bit out (I tried adding it too when it didn't work properly). Still completely ignoring greens (and golds) but everything's telling me it should be working. Got me stumped, this one
Pickung up the golden coins or other nic items does work though ? otherwise there might be an issue in the Pickup
This took me longer then i thought because the bot is a mess. Didnt notice that _constants.au3 is not included and took this script as reference to check constants. They are correct there.. but you take those from AddsOn.au3 and there the values for the rarity items are wrong.
Got a bit of a different one here. This is a Obsidian Armor runner bot.
1. Enter FoW manually. Take a build (the bot just spams skills, left to right). Take strong heroes too.
2. Run Obsidian1. This will run through the beach, cave, battle field and up to the Eternal Weaponsmith. Close the bot.
3. Speak to the Eternal Weaponsmith manually, and run into the Temple of War (the temple, and route, should both have been cleared already by Obsidian1 bot)
4. Stand ontop of the Eternal Forgemaster, take the quest go afk whilst your heroes complete 'Defend the Temple of War' quest
5. Take quest 'Restore the Temple of War', run Obsidian2. This will run back through the caves, kill necessary enemies, then run back to Eternal Forgemaster.
6. Close the bot, the Eternal Forgemaster will now craft Obsidian Armor.
The bot also picks up all Chaos Axes and Obsidian Shards.
Currently there's nothing in the code to 'stop', so the bots attempt to loop and keep going once it's gotten to the end - if anyone knows a fix that'd be great. Right now it's annoying more than anything
I have more ideas for bots if anyone is interested, Sorrows Furnace Vanquish, The Deep, Urgoz, quests needed to unlock very common PvE quests (IAU! + EBSoH etc.) - would be keen to hear if anyone else had any suggestions
EDIT - tested your green pickup fix, perfect, thanks so much
EDIT - I've uploaded a new file, it's tidied up a bit and takes a different route to avoid a possible over-aggro and wipe. If anyone knows the code to talk to NPCs + accept quests and quest rewards, that'd be great and I'll squeeze that in to make it 1 long continuous bot
Keen Oni Talon
This one is very slow (took me about 4 hours per set with heroes). Farms in Rhea's crater from The Aurios Mines outpost, so make sure you have that unlocked. Only 4 groups of Oni per run (16 Oni in total)
Hello - For this weeks Nick I will have to move through two portals (according to Wiki). Can i make a loop at the 2. portal so that i dont have to resign and start all over
I know that the Vaettir v3 have that loop function but can I just copy it?
Hello - For this weeks Nick I will have to move through two portals (according to Wiki). Can i make a loop at the 2. portal so that i dont have to resign and start all over
I know that the Vaettir v3 have that loop function but can I just copy it?
Hi, if u have answer for the 2 portal im interes for a bot
[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. . .