Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home/iano/public_html/tpforums-vb5/forum/includes/class_core.php on line 5842

PHP Warning: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_BOTH - assumed 'MYSQL_BOTH' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 588

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 612

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6
Simple Zezenia Bot (only a mana trainer so far lolz) - Page 3
Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 54

Thread: Simple Zezenia Bot (only a mana trainer so far lolz)

  1. #21
    Junior Member
    Join Date
    Apr 2007
    Posts
    10

    Simple Zezenia Bot (only a mana trainer so far lolz)

    How do you do it with send message? I've never used it

  2. #22
    Senior Member
    Join Date
    Mar 2007
    Posts
    376

    Simple Zezenia Bot (only a mana trainer so far lolz)

    Quote Originally Posted by Bryfry221
    How do you do it with send message? I've never used it
    This was my first time actually figuring out how to use it xD

    So here it goes:
    Code:
    Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
    
    
    'YOU HAVE TO USE FINDWINDOW TO FIND THE WINDOW AND SET IT TO THE VARIABLE Window, if you want this code to work without a change:
        SendMessage Window, &H100, vbKeyA, 0 '&H100 = wm_keydown
        SendMessage Window, &H101, vbKeyA, 0 '&H101 = wm_keyup, vbKeyA = the A key on yar/yer keyboard
    
    To send the enter keypress, I use this:
    
    Public Declare Function PostMessage Lib "user32.dll" Alias "PostMessageA" (ByVal hwnd As Long, _
    ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
    
        PostMessage Window, &H100, vbKeyReturn, 0 '&H100 is still wm_keydown
        PostMessage Window, &H101, vbKeyReturn, 0 '&H101 is still wm_keyup
    'vbKeyReturn is teh Enter button.
    The reason why I use PostMessage for the Enter keypress is that SendMessage needs focus to send an enter keypress, while PostMessage doesn't (at least it wouldn't for me)

    Ps. I've always thought you used it to send whole strings of characters, which is why I couldn't get it to work earlier, but now I've made a loop that sends one character at a time.

  3. #23
    Senior Member
    Join Date
    Mar 2007
    Posts
    766

    Simple Zezenia Bot (only a mana trainer so far lolz)

    Also sendmessage hangs ur thread and waits for responce from the target program, while postmessage dosent

  4. #24
    Junior Member
    Join Date
    Apr 2007
    Posts
    10

    Simple Zezenia Bot (only a mana trainer so far lolz)

    Thanks, I was trying to send it as a string and it wasn't working. A for loop through a char array works just fine though

  5. #25
    Junior Member
    Join Date
    Oct 2008
    Posts
    2

    Simple Zezenia Bot (only a mana trainer so far lolz)

    At last I found the pointers, god bless tprogramming!

    Well now to my problem... The thing is I can't get the memory reading right. I know how to do with non pointer addresses but with these pointers I don't know how to do to get it working. :icon8:

    Can someone with experience of this show a litle code for exemple showing the current hp in a MsgBox and help me understand, please!

    Jiggan! Tired of my pixelbot. :icon10:

  6. #26
    Junior Member
    Join Date
    Apr 2007
    Posts
    10

    Simple Zezenia Bot (only a mana trainer so far lolz)

    In your program just start with the base address and then use the ofsets to eventually get to the value

    like use ReadProcessMemory on the base value and then add the ofset to it. And then do it again until you reach the value of hp or mana or whatever.
    (it's what I do I don't know if there is a better way.)

    @erra

    Instead of typing out the spell I send the key for my hotkey for healing (or mana or whatever spell I want automated) and press enter.
    It seems to be faster and doesn't screw up if there is any text in the messagebox already. It works for me since I'm keeping mine private, I haven't tried allowing a person to set which hotkey to press yet.

  7. #27
    Senior Member
    Join Date
    Mar 2007
    Posts
    1,323

    Simple Zezenia Bot (only a mana trainer so far lolz)

    Jiggan: Pointer is a variable that is pointing to some other place in memory. So in practice first you read the pointer's value, and then you read the place in memory where that value points.

    pseudo code:
    Code:
    int memAdr = Memory.Read(pointerAddress);
    int value = Memory.Read(memAdr);

  8. #28
    Senior Member
    Join Date
    Mar 2007
    Posts
    376

    Simple Zezenia Bot (only a mana trainer so far lolz)

    Quote Originally Posted by Bryfry221
    In your program just start with the base address and then use the ofsets to eventually get to the value

    like use ReadProcessMemory on the base value and then add the ofset to it. And then do it again until you reach the value of hp or mana or whatever.
    (it's what I do I don't know if there is a better way.)

    @erra

    Instead of typing out the spell I send the key for my hotkey for healing (or mana or whatever spell I want automated) and press enter.
    It seems to be faster and doesn't screw up if there is any text in the messagebox already. It works for me since I'm keeping mine private, I haven't tried allowing a person to set which hotkey to press yet.
    That's the thing, if you use hotkeys you have to set them beforehand if you don't edit them through memory too. Surely it would be done quite easily, but this is more user-friendly!

    Btw, your way (getting pointer) seems really weird, looks as if you first try a random value and then add random offsets, I'm not sure I get your point xD

  9. #29
    Administrator
    Join Date
    Mar 2007
    Location
    Melbourne, Australia
    Posts
    1,274

    Simple Zezenia Bot (only a mana trainer so far lolz)

    Why hasnt anyone done a packet.dll for this game yet? It should be so easy to update it to make it work with this game, just finding the socket pointer and send address, then disabling checksum and xtea, right?


    I have found the Send_Pointer(47AA84), but still trying to find Socket_Pointer

  10. #30
    Junior Member
    Join Date
    Apr 2007
    Posts
    10

    Simple Zezenia Bot (only a mana trainer so far lolz)

    Quote Originally Posted by Erra
    That's the thing, if you use hotkeys you have to set them beforehand if you don't edit them through memory too. Surely it would be done quite easily, but this is more user-friendly!

    Btw, your way (getting pointer) seems really weird, looks as if you first try a random value and then add random offsets, I'm not sure I get your point xD
    I use cheat engine to find the base pointer that never changes. In order to use the base pointer you have to know the offsets to add in to get to the real address. (Kind of hard for me to explain)

    Here's my code for finding what value your mana is at:

    Code:
    	int basevalue = 0x4df280;
    	ReadProcessMemory(hProcess, (void*) (basevalue), &tempvalue, sizeof(&tempvalue), NULL);
    	basevalue = tempvalue + 0x10;
    	ReadProcessMemory(hProcess, (void*) (basevalue), &tempvalue, sizeof(&tempvalue), NULL);
    	basevalue = tempvalue + 0x8c;
    	ReadProcessMemory(hProcess, (void*) (basevalue), &tempvalue, sizeof(&tempvalue), NULL);
    	basevalue = tempvalue + 0x30;
    	ReadProcessMemory(hProcess, (void*) (basevalue), &tempvalue, sizeof(&tempvalue), NULL);
    I'm sure there are better ways, this is the first time I've attempted to ever make any kind of a trainer or bot or whatever.

    This code will work for finding mana until he updates zezenia

    @dark pallys

    I would make a packet.dll if I knew how. And there aren't very many experienced programmers that are making anything for zezenia at the moment, so most likely everybody else is just like me and doesn't know how.

Posting Permissions

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