Results 1 to 8 of 8

Thread: Making Farm Bot

  1. #1
    paulosousa12
    paulosousa12 is offline
    Guest
    Join Date
    2011 Jul
    Posts
    2
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts
    Rep Power
    0

    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

    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

  2. #2
    Dwar
    Dwar is offline
    Veteran Dwar's Avatar
    Join Date
    2010 Mar
    Posts
    2,222
    Thanks Thanks Given 
    211
    Thanks Thanks Received 
    2,230
    Thanked in
    292 Posts
    Rep Power
    10
    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)
    Please, post your questions on forum, not by PM or mail

    I spend my time, so please pay a little bit of your time to keep world in equilibrium

  3. #3
    MrSmith
    MrSmith is offline
    Member-in-training
    Join Date
    2010 Aug
    Posts
    85
    Thanks Thanks Given 
    9
    Thanks Thanks Received 
    7
    Thanked in
    4 Posts
    Rep Power
    0
    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.
    Ever Danced With The Devil By The Pale Moonlight ?

  4. #4
    paulosousa12
    paulosousa12 is offline
    Guest
    Join Date
    2011 Jul
    Posts
    2
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts
    Rep Power
    0
    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

    Please register or login to download attachments.


  5. #5
    unfaceguy
    unfaceguy is offline
    New member
    Join Date
    2011 Jun
    Posts
    26
    Thanks Thanks Given 
    13
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts
    Rep Power
    0
    are you sure your offset correct ?

  6. #6
    MrSmith
    MrSmith is offline
    Member-in-training
    Join Date
    2010 Aug
    Posts
    85
    Thanks Thanks Given 
    9
    Thanks Thanks Received 
    7
    Thanked in
    4 Posts
    Rep Power
    0
    Offset is definitely incorrect if you are receiving garbled characters.

    I forgot to ask for which version of Perfect World ?
    Last edited by MrSmith; 2011-07-10 at 11:22 PM. Reason: to prevent double posting
    Ever Danced With The Devil By The Pale Moonlight ?

  7. #7
    Aquila
    Aquila is offline
    Guest
    Join Date
    2011 Jul
    Posts
    2
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts
    Rep Power
    0
    hmmm, guys... well u are all here pro XD i don t understand anything but i wish to learn 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 ... 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

  8. #8
    MrSmith
    MrSmith is offline
    Member-in-training
    Join Date
    2010 Aug
    Posts
    85
    Thanks Thanks Given 
    9
    Thanks Thanks Received 
    7
    Thanked in
    4 Posts
    Rep Power
    0
    It's not one specific program, also it's bad to hijack someone elses thread.
    Ever Danced With The Devil By The Pale Moonlight ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •