OllyDBG and offsets

Results 1 to 10 of 10
  1. #1
    Apprentice DeluxeGM is offline
    MemberRank
    Jul 2016 Join Date
    24Posts

    OllyDBG and offsets

    Hello for everybody.
    First of all I want to say Sorry for my poor english.
    I tryed to googling, but found nothing, maybe I'm just blind or something else, but I want to learn How to found offsets anything I need on any main.exe and How to calculate my own offset to replace the default offset from main, like this one:
    SetByte(0x0040B4C5,0x50);
    Here I understand that first one (0x0040B4C5) is a default offset from Main.exe and 0x50 is calculated offset from brain, but how calculate the second one and how find first one?



    UPD:

    I learned something. Now I know what is offsets actually where I see them in Olly.
    Now I want to change Elf Soldier Wings to custom ones.
    I found an array in my main (1.04e my array is 1171 [not hexed]), so I know how to find Elf's Soldier wear: 12*512+3+1171 = 7318 or 1C96 in hex. So I try to find this item and I found it, that was not so hard, but I was happy as hell :D.
    Here is the image of that:




    But there is two 1C96 offsets: 005F5B42 and 005F5B4B, so I tryed to edit first, second, both - only crash client, what I did wrong?
    My code was:
    SetByte ((0x005F5B42 + 6),(BYTE)7366); for first one
    and
    SetByte((0x005F5B4B + 6),(BYTE)7366); for second one.
    Last edited by DeluxeGM; 09-11-17 at 10:09 PM.


  2. #2
    0x4D696E68 myheart is offline
    MemberRank
    Jun 2017 Join Date
    354Posts

    Re: OllyDBG and offsets

    example max create character main 1.04d/e



    Code:
    offset 0x004030D1 | value 0x7
    =>
    for (int i = 0; i < 7; ++i )
    {
    }


    Code:
    => SetByte(0x004030D1 + 3,0x7);
    Last edited by myheart; 06-11-17 at 03:07 AM.

  3. #3
    Apprentice DeluxeGM is offline
    MemberRank
    Jul 2016 Join Date
    24Posts

    Re: OllyDBG and offsets

    Quote Originally Posted by myheart View Post
    example max create character main 1.04d/e



    Code:
    offset 0x004030D1 | value 0x7


    Code:
    => SetByte(0x004030D1 + 3,0x7);
    Thanks for answer and sorry, because I dont really understand HOW u found an offset of creating character, and what did u changed ? Maximum players to create = 4? or what?

    Tell me, please, from the start, how u open main.exe in OllyDBG, do u debug it, what are you doing to find offset of something u need and etc.

    By the way I already pushed 'Like' to you, because thats already more, than nothing.
    Last edited by DeluxeGM; 06-11-17 at 03:10 AM.

  4. #4
    0x4D696E68 myheart is offline
    MemberRank
    Jun 2017 Join Date
    354Posts

    Re: OllyDBG and offsets

    Quote Originally Posted by DeluxeGM View Post
    Thanks for answer and sorry, because I dont really understand HOW u found an offset of creating character, and what did u changed ? Maximum players to create = 4? or what?

    Tell me, please, from the start, how u open main.exe in OllyDBG, do u debug it, what are you doing to find offset of something u need and etc.

    By the way I already pushed 'Like' to you, because thats already more, than nothing.
    SetByte((0x004030D1 + 3),0x7);
    season 6 MAX CLASS = 7.| 0x6 = no RF, 0x5 = no SU, 0x4 = no DL,...


    run debug and try with Breakpoint
    and depend your skill and logic.

  5. #5
    Apprentice DeluxeGM is offline
    MemberRank
    Jul 2016 Join Date
    24Posts

    Re: OllyDBG and offsets

    Quote Originally Posted by myheart View Post
    SetByte((0x004030D1 + 3),0x7);
    season 6 MAX CLASS = 7.| 0x6 = no RF, 0x5 = no SU, 0x4 = no DL,...


    run debug and try with Breakpoint
    and depend your skill and logic.
    Ok, understood you, thanks.
    BUT to get any offset:
    1) Main.exe should be unpacked or not?
    2) Should I start my main.exe before I put it in Olly?
    3) Should I debug in Olly (F9) main.exe after I put it in Olly?
    4) And last one is HOW to find offset I want to get?
    Like how u understood offset 0x004030D1 is create character offset? How u found this?

    Like what should I do to get offset of Elf Buffer wings?
    What I'm thinking about this:
    1) Start main.exe, go to elf buffer
    2) Put main.exe into olly
    3) Debug that
    4) Trying to find offset 0x1803 (12*512 + 3 = elf 2nd wings in hex = 1803 = 0x1803, right?)
    5) Found nothing. What I'm doing wrong? Cant even understand, sorry that I'm so stupid :(

  6. #6
    Apprentice DeluxeGM is offline
    MemberRank
    Jul 2016 Join Date
    24Posts

    Re: OllyDBG and offsets

    Still need help with my last message.

    - - - Updated - - -

    UPDATED FIRST POST, Added new information about situation, maybe now someone can help me.

  7. #7
    0x4D696E68 myheart is offline
    MemberRank
    Jun 2017 Join Date
    354Posts

    Re: OllyDBG and offsets

    Quote Originally Posted by DeluxeGM View Post
    Hello for everybody.
    But there is two 1C96 offsets: 005F5B42 and 005F5B4B, so I tryed to edit first, second, both - only crash client, what I did wrong?
    My code was:
    SetByte ((0x005F5B42 + 7),(BYTE)7366); for first one
    and
    SetByte((0x005F5B4B + 7),(BYTE)7366); for second one.
    first you need to learn data type ranges.


    and
    Quote Originally Posted by DeluxeGM View Post
    0x005F5B42
    0x005F5B4B
    isn't Elfsoldier preview function.
    Last edited by myheart; 08-11-17 at 03:27 AM.

  8. #8
    Apprentice DeluxeGM is offline
    MemberRank
    Jul 2016 Join Date
    24Posts

    Re: OllyDBG and offsets

    Quote Originally Posted by myheart View Post
    first you need to learn data type ranges.


    and

    isn't Elfsoldier preview function.
    I understood that There should be +6, but not +7.
    But if thats not a elfsoildier preview function, so how to find the right one?

  9. #9
    Apprentice DeluxeGM is offline
    MemberRank
    Jul 2016 Join Date
    24Posts

    Re: OllyDBG and offsets

    Bump. Help please.

  10. #10
    Apprentice DeluxeGM is offline
    MemberRank
    Jul 2016 Join Date
    24Posts

    Re: OllyDBG and offsets

    Solved.
    Close thread, please.



Advertisement