@
[Only registered and activated users can see links. Click Here To Register...]
Well i made my own API based on GWA2.
The use of Pointer instead of Structs is great but gwAPI is made way too special for some kind of Bots (e.g. Func SalvageBags()) imo ... so i decided to write my own API.
The main Problem we / you all have is that there are too many different Versions of GWA2 / gwAPI ... most of them are outdated or dirty fixed ... and some do still have malicious code inside (e.g. sending login-data to private server) and yeah, only a few APIs are really up-to-date.
The Idea with Github (someone wrote about some posts above) seems really great but i think its way too much work to get realized.
Furthermore there are only a few People left who really have knowledge about basic API programming and i think most of them went to GWCA(++) ... sometimes i think to myself im the only one left who still uses GWA2 :D
The majority of User in this Thread just want to grab/leech some Ready-to-Start-Bots. Only a few leave some comments here like (Help, does't work) or (Bot crashed while doing blablabla) ... nothing personal to you guys, every bit helps to fix!
So im not sure what you should do ... it takes a lot of work to write your own API ... i did it in 2013 and only need to update when Gw gets an Update.
But al least i can give you a hint ... i did it the same way:
Create a new folder (e.g. "Bots"). Within that folder create for every Project/Bot another new folder.
Create a folder in Bots and name it "gwAPI".
So you should have some structure like this:
"Bots"
|
|---"gwAPI"
|
|---"Bot1"
|
|---"Bot2"
|
|---"Project UW"
|
|--- ...
|
Copy the most up-to-date-Version of gwAPI to "Bots/gwAPI".
Now when you work on "Bot1" you just need to
Code:
#include "../gwAPI/gwApi.au3"
So you ONLY need one up-to-date Version of your gwAPI and can do all your Updates and stuff within that folder. All Bots/Projects share the same API.
This will make things much easier in the future :)
Cheers