GW Working Bots 2020

05/18/2020 19:02 arno223#436
Hi

I've been working with gwa2 and gwca++ api for a while now with success.

Now there is one thing i'm still struggling with and that's the automated trading between 2 players.
I can send the correct packages for doing a request, offer and accept.
But even thought both clients are sending the correct packages, 1 client is staying in the "View/Decline" prompt and causes an error. If i manually click the "View" button the trade goes fine.

Any idea how I can fix this is or work around?
05/18/2020 19:07 RDL420#437
Quote:
Originally Posted by ooklaba View Post
can anyone help with adding a function to pickup rarity gold?
i have tried copying code from other scripts, with:

Code:
	$r = GetRarity($aitem)
           if $r = Rarity_Gold Then 
             Return True
it has an error and tells me $r = GetRarity($aitem) is not declared, but i have it in my GWA2 file

anyone know what i'm missing?

tyvm
There is a syntax error.
In your case, you need to declare the variable with "Local" for a local scope in your function (you have other ways to declare variables, check the documentation of Autoit to learn more)

Code:
Local $r = GetRarity($aitem)
05/18/2020 19:42 DerMoench14#438
Quote:
Originally Posted by arno223 View Post
Hi

I've been working with gwa2 and gwca++ api for a while now with success.

Now there is one thing i'm still struggling with and that's the automated trading between 2 players.
I can send the correct packages for doing a request, offer and accept.
But even thought both clients are sending the correct packages, 1 client is staying in the "View/Decline" prompt and causes an error. If i manually click the "View" button the trade goes fine.

Any idea how I can fix this is or work around?
Wondering how many posts with these question you're gona push the next days / weeks.
There is no public solution for your needs ... ofc there are private solutions out there but i guess those won't become public ...
05/18/2020 21:38 B_farmer#439
Does anyone know that $HEADER_SEND_CHAT value since the update or is it not public?
05/18/2020 22:17 lataverne#440
Quote:
Originally Posted by B_farmer View Post
Does anyone know that $HEADER_SEND_CHAT value since the update or is it not public?
0x6B
05/19/2020 03:35 RiflemanX#441
Quote:
Originally Posted by ooklaba View Post
can anyone help with adding a function to pickup rarity gold?
i have tried copying code from other scripts, with:

Code:
	$r = GetRarity($aitem)
           if $r = Rarity_Gold Then 
             Return True
it has an error and tells me $r = GetRarity($aitem) is not declared, but i have it in my GWA2 file

anyone know what i'm missing?

tyvm
If your getting a message that says that it is not declared then its not declared.

Most likely, its out of order. Your script is reading the function before it gets to the variable. Another possibility and common mistake that I have had a problem with before is that you missed something small when you cut and pasted it from another script. One example can occur if you cut and pasted GetRarity($aitem) when your main api reads GetRarity(litem). Those tiny errors can cost you a lot of time.

Go back through and look for those small errors and if your still having issues then post more info to include the GetRarity() function and show us the model ID that you have for Rarity_Gold and of course the declared variable that you think should match.

RDL420's solution should work if you make it local.
05/19/2020 06:53 snowflavored#442
Just an FYI for anybody using the ToC bot this week, theres already 10+ of you stuck on one district becaose of the acolyte in the outpost body blocking you and him getting stuck. ;)
05/19/2020 09:28 JohnyDee#443
Quote:
Originally Posted by snowflavored View Post
Just an FYI for anybody using the ToC bot this week, theres already 10+ of you stuck on one district becaose of the acolyte in the outpost body blocking you and him getting stuck. ;)
That's the problem with public bots, such an easy fix and noone even tries to fix it...
05/19/2020 10:12 Hellyeahthisrocks#444
Quote:
Originally Posted by NiliyaFlamme View Post
HI @ all i have Vaettir Ident_Sell_ fixed

He Pickup gold and lila stuff ident and sell it

u have to load the skillbar cus this func is broken

skillbar = OwVUI2h5lPP8Id2BkAiAvpLBTAA

update : he store uniden gold if u want

here my test run 30runs 2 fails its okay i guess

I hope that it works so well for you, if u see bugs or so let me know i will try to fix it



Sincerely yours

Niliya :):)
This bot is crashing every single time. Any help?
05/19/2020 11:15 WakandaUganda#445
Quote:
Originally Posted by JohnyDee View Post
That's the problem with public bots, such an easy fix and noone even tries to fix it...
is there a public ToC bot ?
05/19/2020 12:17 JohnyDee#446
There used to be one, maybe u can look at older threads. It will need updating for sure.
05/19/2020 12:38 Blind995#447
the amount of bots stuck in ToA doing the ToC bot is unreal, the fix takes literally seconds
05/19/2020 13:59 Yoshikawa91#448
Quote:
Originally Posted by Blind995 View Post
the amount of bots stuck in ToA doing the ToC bot is unreal, the fix takes literally seconds
:D:D:D:D
05/19/2020 14:07 Restia Ashdoll#449
Quote:
Originally Posted by Blind995 View Post
the amount of bots stuck in ToA doing the ToC bot is unreal, the fix takes literally seconds
Big brain time starting from Nightfall cause everyone hating that outpost and no one is there anyway xD
05/19/2020 14:50 Blind995#450
Quote:
Originally Posted by Restia Ashdoll View Post
Big brain time starting from Nightfall cause everyone hating that outpost and no one is there anyway xD
you probably shouldnt have mentioned that haha