[Development] Ultimate Source Code for Customs

Page 13 of 16 FirstFirst ... 35678910111213141516 LastLast
Results 181 to 195 of 237
  1. #181
    C/C++,PHP,HTML,Java,ASM zasmqniq is offline
    MemberRank
    Jan 2009 Join Date
    BulgariaLocation
    435Posts

    re: [Development] Ultimate Source Code for Customs

    mauro can y reupload 1.08C main please unpacked.... :(

  2. #182
    Darkness Member Kiosani is offline
    MemberRank
    Oct 2007 Join Date
    ArgentinaLocation
    1,276Posts

    re: [Development] Ultimate Source Code for Customs

    Quote Originally Posted by zasmqniq View Post
    mauro can y reupload 1.08C main please unpacked.... :(
    Sorry, but I don't have more this main.exe, I think that: "Pinkof", may have one unpacked.

  3. #183
    Apprentice AdritoX is offline
    MemberRank
    Dec 2005 Join Date
    My HouseLocation
    15Posts

    re: [Development] Ultimate Source Code for Customs

    Quote Originally Posted by mauro07 View Post
    In a few more hours, I update the entire theme, changing a few things, and adding a lot of information on some methods of research's, simple, so that everyone can find by itself the offsets needed for functions that wish to add to your: main.exe

    So stay tuned...
    Enseñanos a buscar los offsets para el MiniMap!!
    how to research MiniMap offsets? please!

    Gracias :)

  4. #184
    C/C++,PHP,HTML,Java,ASM zasmqniq is offline
    MemberRank
    Jan 2009 Join Date
    BulgariaLocation
    435Posts

    re: [Development] Ultimate Source Code for Customs

    Mauro i saw y dont have the 1.08C but can y help wit main 1.08A+ i have unpacked and all really idk where is the problem on this main....

  5. #185
    Apprentice JoaoNetoADM is offline
    MemberRank
    Jan 2012 Join Date
    16Posts

    re: [Development] Ultimate Source Code for Customs

    Can you send me the same offsets for 1.03h(1.03.08), please? or source 1.03H??

  6. #186
    Retired NanoGuy is offline
    MemberRank
    Jul 2012 Join Date
    IsraelLocation
    286Posts

    re: [Development] Ultimate Source Code for Customs

    Quote Originally Posted by josesp View Post
    All From 1.03O+ GMO

    Obviously: Credits to Gembrid ;)

    Code:
    __declspec(naked) void CharRotFix1(){ 
        __asm { 
            ADD EAX, 0x168 
            ADD EAX, Camera_PosZ 
            RETN 
        } 
    } 
    
    
    __declspec(naked) void CharRotFix2(){ 
        __asm { 
            MOV ECX, 0x168 
            SUB ECX, Camera_PosZ 
            RETN 
        } 
    } 
    
    const float Rad = 0.01745329; 
    
    void RotateDmg(float& X, float& Y, float D){
    
        float sinTh = sin(Rad * (*Camera_RotZ)); 
        float cosTh = cos(Rad * (*Camera_RotZ)); 
         
        X += D / 0.7071067 * cosTh / 2; 
        Y -= D / 0.7071067 * sinTh / 2; 
    }  
    
    void Fix_RotateDmg(){
    
    	const int CharRotFix1_Offset = 0x0057C2AA; //0x58E282; 
    	const int CharRotFix2_Offset = 0x0057C506; //0x58E51F; 
    	const int DamgRotPatch_Offset = 0x005F5E81; //0x64298F; 
    	const int DamgRotCall_Offset = 0x005F5E8C; 
    
        //Fix Rotation
        WriteCall(CharRotFix1_Offset, (DWORD)CharRotFix1); 
        WriteCall(CharRotFix2_Offset, (DWORD)CharRotFix2); 
    
        //Call to RotateDmg 
        char Hook[] = { 0x8D,0x45,0xF8,0x8D,0x4D,0xF4,0xFF,0x75,0x18,0x50,0x51,0xE8,0x6F,0xA1,0xA0,0xFF,0x83,0xC4,0x0C,0xE9,0x07,0xFF,0xFF,0xFF }; 
    
       memcpy((LPVOID)DamgRotPatch_Offset,Hook,sizeof(Hook)); 
       WriteCall(DamgRotCall_Offset, (DWORD)&RotateDmg); 
    }
    link to it?
    or maybe you can tell what its exetly 1.03O?
    i mean like 1.03.52 (this format)

  7. #187
    Proficient Member josesp is online now
    MemberRank
    Mar 2009 Join Date
    186Posts

    re: [Development] Ultimate Source Code for Customs

    Quote Originally Posted by NanoGuy View Post
    link to it?
    or maybe you can tell what its exetly 1.03O?
    i mean like 1.03.52 (this format)
    1.03.15 i think.. dont remember :P

  8. #188
    Retired NanoGuy is offline
    MemberRank
    Jul 2012 Join Date
    IsraelLocation
    286Posts

    re: [Development] Ultimate Source Code for Customs

    Quote Originally Posted by josesp View Post
    1.03.15 i think.. dont remember :P
    very strange i tried the main 1.03O=1.03.15 and 1.03O+=1.03.41 and looks like the offset wrong can you give me alink to the main?
    or offsets to other main version?

  9. #189
    Mulegend Server Mulegend is offline
    MemberRank
    May 2006 Join Date
    Montevideo - UruguayLocation
    461Posts

    re: [Development] Ultimate Source Code for Customs

    1.03O+ = 1.03.41 is kor main, not GMO

  10. #190
    Proficient Member josesp is online now
    MemberRank
    Mar 2009 Join Date
    186Posts

    re: [Development] Ultimate Source Code for Customs

    Search for Season4.5 (4.6 JPN) GMO in Google

  11. #191
    Darkness Member Kiosani is offline
    MemberRank
    Oct 2007 Join Date
    ArgentinaLocation
    1,276Posts

    re: [Development] Ultimate Source Code for Customs

    Here offsets for: 1.07.48 korean version of main.exe.. for camera rotate damage mob fix..
    originally developed by: Gembrid, for: 1.04d (Season 3 Episode 1) Kor main.exe.


    Customs.cpp


    Code:
    __declspec(naked) void CharRotFix1()
    {
        __asm
        {
            add eax, 0x168
            add eax, zRot
            retn
        }
    }
    
    
    __declspec(naked) void CharRotFix2()
    {
        __asm
        {
            mov ecx, 0x168
            sub ecx, zRot
            retn
        }
    }
    
    
    void RotateDmg(float& x, float& y, float d)
    {
        float sinTh = sin(rad*Camera.RotZ);
        float cosTh = cos(rad*Camera.RotZ);
        
        x += d/0.7071067*cosTh/2;
        y -= d/0.7071067*sinTh/2;
    }
    
    
    void FixCamDmg()
    {
        HookOffset((DWORD)&CharRotFix1, CharRotFix1_Offset, 0xE8);
        HookOffset((DWORD)&CharRotFix2, CharRotFix2_Offset, 0xE8);
    
    
        BYTE patch[] = {0x8D, 0x45, 0xF8, 0x8D, 0x4D, 0xF4,
                        0xFF, 0x75, 0x18, 0x50, 0x51, 0xE8,
                        0x61, 0xD6, 0x9B, 0xFF, 0x83, 0xC4,
                        0x0C, 0xE9, 0x0A, 0xFF, 0xFF, 0xFF};
    
    
        memcpy((LPVOID)DamgRotPatch_Offset, patch, sizeof(patch));
        HookOffset((DWORD)&RotateDmg, DamgRotCall_Offset, 0xE8);
    }
    Customs.h

    Code:
    const int CharRotFix1_Offset  = 0x5BE529;
    const int CharRotFix2_Offset  = 0x5BE83D;
    const int DamgRotPatch_Offset = 0x6403C1;
    const int DamgRotCall_Offset  = 0x6403CC;
    const float rad = 0.01745329;
    float zRot = *Camera_RotZ;
    -------------------------------------------------------------------------------------------

    HP Mob Bar Offsets for: 1.04d -> (1.04.04) GMO Main.exe

    Code:
    //----------------------------------------------------------------------------// Functions
    //----------------------------------------------------------------------------
    #define DRAW_INTERFACE        0x0080F790 //1.04d (Eng) -> Season 6 Episode 3
    #define DRAW_GUI            0x00790A00 //1.04d (Eng) -> Season 6 Episode 3
    #define CREATE_COLOR            0x00420120 //1.04d (Eng) -> Season 6 Episode 3
    #define DRAW_BUTTON            0x00790CF0 //1.04d (Eng) -> Season 6 Episode 3
    #define DRAW_COLORED_BUTTON    0x00790DD0 //1.04d (Eng) -> Season 6 Episode 3
    
    
    #define GET_THIS_POINTER        0x0041FE10 //1.04d (Eng) -> Season 6 Episode 3
    #define TABBED_TEXT_OUT        0x00420150 //1.04d (Eng) -> Season 6 Episode 3
    #define SET_TEXT_COLOR        0x00420040 //1.04d (Eng) -> Season 6 Episode 3
    -------------------------------------------------------------------------------------------------

    and Minimap complete src remade for me (but not tested) for: 1.04d (GMO) Main.exe

    Minimap.cpp

    Code:
    #include "Stdafx.h"
    #include "Minimap.h"
    
    
    extern "C" _declspec(dllexport) void LoadMini()
    {
        DWORD OldProtect;
        if(VirtualProtect(LPVOID(0x401000),0x00A60F74,PAGE_EXECUTE_READWRITE,&OldProtect))
        {
            MiniMap();
        }
        else
        {
            MessageBoxA(NULL,"Cannot load UltMap.dll","Error",MB_OK);
            ExitProcess(0);
        }
    }
    
    
    void HookExactOffset(DWORD my, DWORD tohook, BYTE type)
    {
        *(BYTE*)tohook = type;
        *(DWORD*)(tohook+1) = my;
    }
    
    
    void HookThis(DWORD dwMyFuncOffset,DWORD dwJmpOffset)
    {
        *(DWORD*)(dwJmpOffset+1)=dwMyFuncOffset-(dwJmpOffset+5);
    }
    
    
    void ChangePath(const char* Map, ...)
    {
        memcpy((DWORD*)0xD4A654,Map,17);//good
        HookExactOffset(0xD4A654,0x00888C0A,0x68);//good
    }
    
    
    void LoadImageJpgForMap(char* ImagePatch, DWORD PrintCode)
    {
        _asm
        {
            Mov Edi, 0x007721E0//good
            Push 0x1
            Push 0x2900
            Push 0x2601
            Push 0x7B7A
            Push 0xD4A654//good
            Call Edi
            Add Esp,0x18
        }
    }
    
    
    int LoadMap(int Map)
    {
        char FullMapName[200];
        sprintf_s(FullMapName,"World%d\\Map1.jpg",Map+1);
        ChangePath(FullMapName);
        LoadImageJpgForMap(FullMapName, 0x7B7A);
        return Map;
    }
    
    
    bool MapChecker1(int Map)
    {
        if( Map == 0 || Map == 1 || Map == 2 || Map == 3 || Map == 4 || Map == 7 || Map == 8 ||
            Map == 10 || Map == 24 || Map == 30 || Map == 33 || Map == 34 || Map == 37 || Map == 38 ||
            Map == 41 || Map == 51 || Map == 56 || Map == 57 || Map == 63)
        {
            return 1;
        }
        return 0;
    }
    
    
    char FullMapName[200];
    
    
    void MapChecker2(int Map)
    {
        if( Map == 0 || Map == 1 || Map == 2 || Map == 3 || Map == 4 || Map == 7 || Map == 8 ||
            Map == 10 || Map == 24 || Map == 30 || Map == 33 || Map == 34 || Map == 37 || Map == 38 ||
            Map == 41 || Map == 51 || Map == 56 || Map == 57 || Map == 63)
        {
            LoadMap(Map);
            
            _asm
            { 
                MOV EDI, 0x00860FC0
                CALL EDI
                MOV ECX,EAX
                MOV EDI, 0x008615F0
                CALL EDI
                MOV ECX,EAX
                MOV EDI, 0x00886C20
                CALL EDI
            }
            Sleep(100);
        }
        else if( Map == 77 || Map == 78)
        {
            *(BYTE*)(0x00886B94) = 0x75;
        }
        else
        {
            *(BYTE*)(0x00886B94) = 0x75;
        }
    }
    
    
    void MiniLoad()
    {
        int Map;
        char FullMapName[200];
    
    
        Map = *(unsigned char*)0x00E61E18;
    
    
        if( Map == 0 || Map == 1 || Map == 2 || Map == 3 || Map == 4 || Map == 7 || Map == 8 ||
            Map == 10 || Map == 24 || Map == 30 || Map == 33 || Map == 34 || Map == 37 || Map == 38 ||
            Map == 41 || Map == 51 || Map == 56 || Map == 57 || Map == 63)
        {
            sprintf_s(FullMapName,"World%d\\Map1.jpg",Map+1);
            *(BYTE*)(0x0087E119) = 0xEB;
            memcpy((DWORD*)0xD30008,FullMapName,17);
        }
        else if( Map == 77 || Map == 78)
        {
            *(BYTE*)(0x00886B94) = 0x75;
        }
        else
        {
            *(BYTE*)(0x00886B94) = 0x75;
        }
    }
    
    
    void MiniMap()
    {
    
    
        *(BYTE*)(0x007D3B7B) = 0x90;
        *(BYTE*)(0x007D3B7B+1) = 0x90;
        
        HookThis((DWORD)&MapChecker1, 0x00886B87);
        HookThis((DWORD)&MapChecker2, 0x0062EB3D);
    }
    Minimap.h

    Code:
    #include "stdafx.h"#include <windows.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string>
    
    
    
    
    char * GetMap(int map);
    
    
    
    
    void Options();
    void MiniMap();
    
    
    int ShowMiniMap;
    int IsMiniMap   = GetPrivateProfileIntA("UltMap","Enabled",0,".\\UltMap.ini");
    int LastMap     = -1;
    int *Map         = (int*)(0x8B1AA8);
    int *MainState = (int*)(0x8C236C);
    I hope these things (which are useless to me), can be useful to someone else, I am now working with something new and more complicated than this, I am looking to make changes to main.exe external graphics using programming combined with: DirectX, not with the old and almost obsolete: OpenGL. xD

    Working on a new project for the community, which will have many good things and open source for all project name: GameEngine ---> Coming Soon (Only for: RaGEZONE Forum).
    Last edited by Kiosani; 19-10-12 at 03:29 AM.

  12. #192
    Account Upgraded | Title Enabled! boncha is offline
    MemberRank
    Oct 2008 Join Date
    254Posts

    re: [Development] Ultimate Source Code for Customs

    mauro07 - can you add option to change skin npc ?

  13. #193
    Apprentice aecrimch is offline
    MemberRank
    Dec 2007 Join Date
    842Posts

    re: [Development] Ultimate Source Code for Customs

    thanks Mauro07 for sharing this,

    1.04D MiniMap work



    do you have all /world/map.ojz?

  14. #194
    Darkness Member Kiosani is offline
    MemberRank
    Oct 2007 Join Date
    ArgentinaLocation
    1,276Posts

    re: [Development] Ultimate Source Code for Customs

    Quote Originally Posted by aecrimch View Post
    thanks Mauro07 for sharing this,

    1.04D MiniMap work



    do you have all /world/map.ojz?
    Thanks for you: aecrimch, for test this... and... yes I have all map.ozj. but I don't remember the place in my pc... :p

  15. #195
    Proficient Member caothuphutho is offline
    MemberRank
    Dec 2007 Join Date
    0x00000000Location
    150Posts

    re: [Development] Ultimate Source Code for Customs

    Quote Originally Posted by aecrimch View Post
    thanks Mauro07 for sharing this,

    1.04D MiniMap work



    do you have all /world/map.ojz?
    all file word/map.ozj download : here !

    you can share source , i buid code mauro07 but not work :(



Advertisement