Quote:
Originally Posted by AlainProvist
lol sry if I hurt you with my last comments about the code cause it was not my intention  . You did a great job by writing this bot and I wouldn't be capable to do the same prom scratch sincerely. What I told was about the language ahk and all those look alike.
About the fix, I'm still stuck at the inventory offset and probably the others under. I tried to find the offsets from the end by taking the quest object id of my own character at slot X and searching with CE this id in the memory. Found a lot of adresses that I offseted of -8 to try to get the address of the item slot. But I didn't found any valid slot...
edit : Nevermind finaly found the inventory base address 
|
Nono, you're not hurting me with my comments. I completely agree that ahk is a horrible language and I think I admitted in the second post in this thread that the code was a mess. I'm actually quite amazed that people are fixing it still and admire the effort being put in.
I did find an old version of my excel bot, here's a screeny
I'm already ashamed of the other code I've been posting in this thread so I'm not gonna actually post all of this horrible mess, sadly it would be too much of an effort to make it work again as I'd actually have to download pwi patches n stuff :P
VBA is really an interesting language, as you can randomly choose to declare some variables and others you don't, it's case insensitive, but it does convert all variables of a certain name into the same case as they were declared the first time, even if they're in a completely different scope (and unrelated). Instead of returning a value from a function you actually set the function name equal to your return value. You call functions with brackets and methods without brackets to get that awesome consistency.
You do have a debugger though, which do in theory exist for ahk as well, so I'm not sure yet which is a 'better' (I should say less horrible) language to do anything non trivial in. I've attempted to write some OCR type program in ahk before, doing the heavy lifting in a c++ dll, but slowly all my code migrated into the dll because it was just easier that way. Ended up with some basic code for calling the dll and that was about it in the ahk file
I just have a soft spot for ahk because I wrote my first useful program in it (a ragnarok bot) and VBA is also special because for some reason non software companies LOVE excel tools, even things that really shouldn't be in excel.
Also my 'memory reader' in excel: (setting a variable type to pointer would automatically open up a new tab reading the memory that pointer points to)
sorry for hijacking my thread, just know a certain person loves fail ideas/code in programs