-
Making Farm Bot
Hi all,
So my holidays have arrived, and i decided to start a small personal project, to create a simple (but efficient) mat farming bot. I'm using AutoIt, it seemed the language with more examples and source codes i could find (don't know the language, but knowing many other programming languages the language won't be a problem).
Used CE and read some stuff, and already can read all the player info from my char :D
Before starting of working on actions i was planing to create a function to allow the search for mats/loot in general. Using some examples, i managed to get this:
Code:
$pointer = _MemoryRead(_MemoryRead(_MemoryRead(_MemoryRead($Mem_Address, $Mem_Open)+0x8, $Mem_Open)+0x28, $Mem_Open)+0x14, $Mem_Open) ;reads value at memory address
$item = _MemoryRead(_MemoryRead($pointer+$i*4, $Mem_Open) + 0x4, $Mem_Open)
$ITEM_NAME = _MemoryRead(_MemoryRead($item_base + 0x164, $Mem_Open), $Mem_Open, 'wchar[30]') ;Item-Name
My problem is that it seems i don't find any mats/loot :/ For what i'm seeing i must be looking at the wrong addresses :(
Any help would be appreciated :)
Cumps
-
Hi pal,
did you checked offsets? They are correct? As I remembered, item name offsets should be like this (from old PW client)
[BA] + 1C + 08 + 28 + 18 + index*4 + 4 + 164 + 0 (wchar type)
-
Yes don't forget the terminating 0 at the end because the names are dynamic in memory it's never the same :)
Offsets are practically the same just Item Name offset is different.
-
1 Attachment(s)
I got all the offsets correct (following Dwar post, and prophet bot code) but i only get some random Chinese characters in the object/item name LOL
-
are you sure your offset correct ?
-
Offset is definitely incorrect if you are receiving garbled characters.
I forgot to ask for which version of Perfect World ?
-
hmmm, guys... well u are all here pro XD i don t understand anything :( but i wish to learn :D not just for this game, but i can start with it... so if any of you can explain me baby steps :O, 1. which program i need to download ..... XD I will understand if u don t have will to explain it to me, like that :D ... thx :O
---------- Post added 2011-07-13 at 09:23 AM ---------- Previous post was 2011-07-12 at 01:06 PM ----------
guess it is to much to ask :D
-
It's not one specific program, also it's bad to hijack someone elses thread.