[Release] Addons for zClient (custom items, 3d fix, glow, fog, sky, minimap)

Page 6 of 6 FirstFirst 123456
Results 126 to 129 of 129
  1. #126
    Member hoanmaster321 is offline
    MemberRank
    Feb 2015 Join Date
    Hà Nội, VietLocation
    96Posts

    re: [Release] Addons for zClient (custom items, 3d fix, glow, fog, sky, minimap)

    Quote Originally Posted by mauro07 View Post
    Actually.. is only: Linear filtering ( but apply on 1 different way that old: RMST code ).. because Anisotropic on main is bad..

    First you must add a new: Display.cpp file and Display.h file with this code:

    Code:
    #include "stdafx.h"
    #include "Display.h"
    #include "Interface.h"
    #include "detours.h"
    #include "TMemory.h"
    #include "User.h"
    
    
    int Lin    = GetPrivateProfileIntA("zClient","IsLin",0,".\\zClient.ini");
    int Fog = GetPrivateProfileIntA("zClient","IsFog",0,".\\zClient.ini");
    
    
    // ----------------------------------------------------------------------------------------------
    
    
    typedef void (APIENTRY *FUNC_GLENABLE)            (GLenum mode);
    FUNC_GLENABLE glEnable_o = NULL;
    
    
    typedef HWND (APIENTRY *FUNC_WINEXEC)            (LPCTSTR lpClassName,LPCTSTR lpWindowName);
    FUNC_WINEXEC WinExec_o = NULL;
    
    
    typedef void (APIENTRY *FUNC_GLBIND)            (GLenum target,GLuint texture);
    FUNC_GLBIND glBindTex_o = NULL;
    
    
    void APIENTRY glEnable_h(GLenum mode)
    {
        if( pPlayerState != GameProcess )
        {
            *(double*)oCam_ClipS = 540;
            *(double*)oCam_ClipU = 580;
            *(double*)oCam_ClipJ = 600;
            *(double*)oCam_ClipM = 660;
            *(double*)oCam_ClipL = 1250;
            *(double*)oCam_ClipX = 1190;
            *(double*)oCam_ClipN = 1900;
            // ----
            *(float*)oCam_ClipZ  = 2300;
            *(float*)oCam_ClipY  = 2400;
            *(float*)oCam_ClipV     = 2650;
            *(float*)oCam_ClipQ     = 3220;
            *(float*)oCam_ClipP     = 3300;
            *(float*)oCam_ClipO     = 3400;
        }
        else
        {
            *(double*)oCam_ClipS = 6144;
            *(double*)oCam_ClipU = 6144;
            *(double*)oCam_ClipJ = 6144;
            *(double*)oCam_ClipM = 6144;
            *(double*)oCam_ClipL = 6144;
            *(double*)oCam_ClipX = 6144;
            *(double*)oCam_ClipN = 6144;
            // ----
            *(float*)oCam_ClipZ  = 6144;
            *(float*)oCam_ClipY  = 6144;
            *(float*)oCam_ClipV     = 6144;
            *(float*)oCam_ClipQ     = 6144;
            *(float*)oCam_ClipP     = 6144;
            *(float*)oCam_ClipO     = 6144;
        }
        // ----
        SetByte((LPVOID)0x004D87EC,0x0E);
        // ----
        if(Lin!=0)
        {
            glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
            glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
        }
        // ----
        if(Fog!=0)
        {
            SetNop(0x004D9938,2);
            SetNop(0x004D9954,2);
        }
        // ----
        glEnable_o(mode);
    }
    
    
    void gFiltersInit()
    {    
        glEnable_o = (FUNC_GLENABLE)DetourFunction((PBYTE)DetourFindFunction("Opengl32.dll", "glBegin"),(PBYTE)glEnable_h);
    }
    and in .h file:

    Code:
    #pragma once
    
    
    void gFiltersInit();
    and in your: dllmain.cpp add this:

    Code:
    #include "Display.h"
    
    extern "C" __declspec(dllexport)void Init()
    {
        //VMBEGIN
        // ----
        DWORD OldProtect;
        // ----
        if(VirtualProtect(LPVOID(0x401000),0xD21FFF,PAGE_EXECUTE_READWRITE,&OldProtect))
        {
               gController.Load();
           gChatExpanded.Load();
           gItemPrice.Load();
           gItem.Load();
           gResetSystem.Load();
           gProtocol.Load();
           gCheatGuard.Load();
           gObjUser.Load();
           gOther.Load();
           gInterface.Load();
           gVisualFix.InitVisualFix();
           g_ItemModel.Load();
    
               gFiltersInit();
         }
    }
    and you must use my Camera clip cases for the Maps floor.. look this on Import.h:


    Code:
    #define oCam_ClipY    0x00D2C894    //float: 2400.000
    #define oCam_ClipZ    0x00D27BC0  //float: 2300.000
    #define oCam_ClipV    0x00D2C890  //float: 2650.000
    #define oCam_ClipQ    0x00D27BCC    //float: 3220.000
    #define oCam_ClipO    0x00D2C840  //float: 3400.000
    #define oCam_ClipP    0x00D2C8A8    //float: 3300.000
    #define oCam_ClipX    0x00D2C848  //double: 1190.00000000
    #define oCam_ClipJ    0x00D22E88  //double: 600.0000000000000
    #define oCam_ClipN    0x00D2C878    //double: 1900.000000000000
    #define oCam_ClipU    0x00D2C898  //double: 580.0000000000000
    #define oCam_ClipL    0x00D2C888    //double: 1250.00000000000
    #define oCam_ClipM    0x00D2C830    //double: 660.0000000000000
    #define oCam_ClipS    0x00D256F0  //double: 540.0000000000000
    PS: But you must use some detours library version for this.. and add to your solution folder from project.. I'm using detours version: 1.5 here I leave for u. Good Luck

    https://mega.co.nz/#!uZJATLrJ!PSQeyq...Ak1yiOiaiXQ0e0

    PS 2: And for ini file: zClient.ini put this:

    Code:
    [zClient]
    IsLin    =1
    IsFog    =1
    PS 3: Fog is internal on main.exe not detours used because is slow for make intercept.
    detours version: 1.5 please reupload

  2. #127
    Apprentice scrome is offline
    MemberRank
    Sep 2011 Join Date
    DeviasLocation
    14Posts

    re: [Release] Addons for zClient (custom items, 3d fix, glow, fog, sky, minimap)

    Quote Originally Posted by hoanmaster321 View Post
    detours version: 1.5 please reupload
    Sure bro.. here new link for detours 1.5:

    https://mega.nz/#!SMgR0BjR!Txw4P3fcJ...YITW5wRIqbilUs

    here link for detours 2.1 too:

    https://mega.nz/#!GUQhjSiJ!37s52EQaW...0GBhTlL4akQQQ4

    Credits: Mr. Kernighan (old RMSTeam from external fog code 1.03K)

    - - - Updated - - -

    Quote Originally Posted by hoanmaster321 View Post
    you share pLoadImage("Custom\\Maps\\PlayerPoint.jpg", 0x7883, 0x2600, 0x2900, 1, 0); // ----
    pLoadImage("Custom\\Maps\\MiniMapNull.tga", 0x7884, 0x2601, 0x2900, 1, 0);
    // --
    pLoadImage("Custom\\Maps\\MiniMap0.tga", 0x7885, 0x2601, 0x2900, 1, 0);
    // --
    pLoadImage("Custom\\Maps\\MiniMap1.tga", 0x7886, 0x2601, 0x2900, 1, 0);
    // --
    pLoadImage("Custom\\Maps\\MiniMap2.tga", 0x7887, 0x2601, 0x2900, 1, 0);
    // ----
    pLoadImage("Custom\\Maps\\MiniMap3.tga", 0x7888, 0x2601, 0x2900, 1, 0);
    // ----
    pLoadImage("Custom\\Maps\\MiniMap4.tga", 0x7889, 0x2601, 0x2900, 1, 0);
    // ----
    // Exile Map 0x788A
    // ----
    pLoadImage("Custom\\Maps\\MiniMap6.tga", 0x788B, 0x2601, 0x2900, 1, 0);
    // ----
    pLoadImage("Custom\\Maps\\MiniMap7.tga", 0x788C, 0x2601, 0x2900, 1, 0);
    I don't have originals: .tga files from Nemesis, but maybe this: .jpg from my minimap can help to you bro:

    https://mega.nz/#!WEwiVZQa!l3dCE1hEY...z7xszvZ_YEvG6k

    ps: and here I leave too: .tga from Interface for external minimap that: Nemesis, use in his code:



    https://mega.nz/#!eIZzGLpZ!Cy4W6ZO7n...G_NbMFxWC8cMns

    and my own modified from original (without Illusion Event buttons that not works xD in the same .rar file):



    ps 2: I leave here too.. a small experiment that I make.. a long time ago.. (without Success xD) sorry, but I don't know so much of programming... to try to implement something like this:



    I make this textures .tga using.. directX texture tool and my brain xD look:





    https://mega.nz/#!2RBilaoB!geIyMSB0K...fC6MEyK4nf4TYo

    ps3: YES, this is from another knowded game... I know Hahaha.. is my failed trying.. to re-create Arieth Radar Mini Map...

    ps4: and here I leave.. pseudo-code decompiled from: 1.04d GMO main.exe with my IDA 6.6 from original Webzen MiniMap Proc (maybe to some person here is util this):

    Code:
    //----- (00887490) --------------------------------------------------------
    char __usercall sub_887490@<al>(int a1@<ecx>, int a2@<ebx>, int a3@<edi>, int a4@<esi>)
    {
      int alpha; // ST2C_4@1
      int v5; // eax@1
      int v6; // eax@1
      int v7; // eax@1
      float v8; // ST34_4@1
      float v9; // ST30_4@1
      float v10; // ST08_4@1
      float v11; // ST04_4@1
      float green; // ST24_4@1
      float red; // ST20_4@1
      float v14; // ST24_4@1
      float v15; // ST20_4@1
      int v16; // ST2C_4@2
      int v17; // eax@2
      GLfloat v18; // ST2C_4@6
      GLfloat v19; // ST2C_4@7
      GLfloat v20; // ST2C_4@10
      GLfloat v21; // ST2C_4@11
      int v22; // ST18_4@12
      int v23; // ST14_4@12
      int v24; // eax@12
      float v25; // ST1C_4@13
      float v26; // ST18_4@13
      float v27; // ST24_4@14
      float v28; // ST20_4@14
      int v29; // edx@14
      int v30; // edx@14
      int v31; // edx@15
      int v33; // [sp+34h] [bp-104h]@1
      char v34; // [sp+38h] [bp-100h]@1
      char v35; // [sp+39h] [bp-FFh]@1
    
      v33 = a1;
      v34 = 0;
      sub_9CF4B0((int)&v35, 0, 255);
      sub_635FD0(1);
      glColor4f(1.0, 1.0, 1.0, *(float *)(v33 + 128));
      alpha = (int)dword_E8C58C;
      v5 = (int)sub_41FE10(a2, a3);
      sub_420120(v5, alpha);
      v6 = (int)sub_41FE10(a2, a3);
      sub_420040(v6, 0xFFu, 0xFFu, 0xFFu, 0xFFu);
      v7 = (int)sub_41FE10(a2, a3);
      sub_4200B0(v7, 0, 0, 0, 0);
      v8 = (double)*(signed int *)(v33 + 124) * 0.5;
      v9 = (double)*(signed int *)(v33 + 124) * 0.5;
      v10 = (double)*(signed int *)(v33 + 16);
      v11 = (double)*(signed int *)(v33 + 12);
      sub_637C60(a2, a3, a4, 31610, v11, v10, 128.0, 128.0, *(float *)(v33 + 116), *(float *)(v33 + 120), v9, v8, 1, 1, 0.0);
      green = (double)*(signed int *)(v33 + 8);
      red = (double)*(signed int *)(v33 + 4);
      sub_790A00(a2, a3, a4, 31608, red, green, 154.0, 162.0);
      v14 = (double)*(signed int *)(v33 + 24);
      v15 = (double)*(signed int *)(v33 + 20);
      sub_790A00(a2, a3, a4, 31609, v15, v14, 134.0, 37.0);
      glColor4f(1.0, 1.0, 1.0, *(float *)(v33 + 128));
      if ( sub_8CAF90() )
      {
        v16 = (int)dword_E8C590;
        v17 = (int)sub_41FE10(a2, a3);
        sub_420120(v17, v16);
        if ( flt_5EF5A1C - *(float *)(v33 + 144) > 500.0 )
        {
          *(float *)(v33 + 144) = flt_5EF5A1C;
          *(_BYTE *)(v33 + 134) = 1;
        }
        if ( *(_BYTE *)(v33 + 134) )
        {
          if ( *(_DWORD *)(v33 + 140) >= 10 )
          {
            v19 = *(float *)(v33 + 140);
            sub_50D100(a3, a4, (int)&v34, (int)"%d:%d", *(_DWORD *)(v33 + 136));
          }
          else
          {
            v18 = *(float *)(v33 + 140);
            sub_50D100(a3, a4, (int)&v34, (int)"%d:0%d", *(_DWORD *)(v33 + 136));
          }
        }
        else if ( *(_DWORD *)(v33 + 140) >= 10 )
        {
          v21 = *(float *)(v33 + 140);
          sub_50D100(a3, a4, (int)&v34, (int)"%d %d", *(_DWORD *)(v33 + 136));
        }
        else
        {
          v20 = *(float *)(v33 + 140);
          sub_50D100(a3, a4, (int)&v34, (int)"%d 0%d", *(_DWORD *)(v33 + 136));
        }
        v22 = *(_DWORD *)(v33 + 24) + 10;
        v23 = *(_DWORD *)(v33 + 20);
        v24 = (int)sub_41FE10(a2, a3);
        sub_420150(v24, v23, v22, (int)&v34, 134, 0, 3, 0);
      }
      (*(void (__thiscall **)(int))(*(_DWORD *)v33 + 12))(v33);
      glColor4f(1.0, 1.0, 0.0, *(float *)(v33 + 128));
      v25 = (double)*(signed int *)(v33 + 104);
      v26 = (double)*(signed int *)(v33 + 100);
      sub_6378A0(v26, v25, 3.0, 3.0, 0.0, 0);
      sub_635F50();
      sub_635FD0(1);
      glColor4f(1.0, 1.0, 1.0, *(float *)(v33 + 128));
      if ( *(_BYTE *)(v33 + 132) == 1 )
      {
        v27 = (double)*(signed int *)(v33 + 32);
        v28 = (double)*(signed int *)(v33 + 28);
        sub_790A00(a2, a3, a4, 31614, v28, v27, 128.0, 53.0);
        sub_888730(v33, a2, a3, a4);
        sub_779540(v33 + 188, v29, *(float *)(v33 + 128), 1);
        sub_779540(v33 + 360, v30, *(float *)(v33 + 128), 1);
        sub_7797A0(v33 + 188, a2, a3, a4, 0);
        sub_7797A0(v33 + 360, a2, a3, a4, 0);
      }
      sub_790880(v33 + 532, (int)dword_E8C58C);
      sub_779540(v33 + 532, v31, *(float *)(v33 + 128), 1);
      sub_7797A0(v33 + 532, a2, a3, a4, 0);
      sub_635F50();
      return 1;
    }
    // 5EF5A1C: using guessed type float flt_5EF5A1C;
    ps5: My IDA shows this.. when I load the original 1.04.04 GMO main.exe:



    Some person here... have this ??? Hahaha !!
    Last edited by scrome; 10-12-15 at 09:13 AM.

  3. #128
    Enthusiast olaolala3 is offline
    MemberRank
    Mar 2016 Join Date
    28Posts

    re: [Release] Addons for zClient (custom items, 3d fix, glow, fog, sky, minimap)

    Quote Originally Posted by quskevel View Post
    my friend fix position on Cloak... Looks like crap... Its not fix in .dll its only fixed position in bmd.
    here fixed Cloak of Death only bmd: Wings10.bmd — RGhost — файлообменник
    how u can do it ?
    u can fix it for me ? Please https://mega.nz/#F!jQ8VmbpC!XtXUIlAUFOA0nQAlsuo8UQ

  4. #129
    Enthusiast banbe9x is offline
    MemberRank
    Jun 2008 Join Date
    38Posts

    re: [Release] Addons for zClient (custom items, 3d fix, glow, fog, sky, minimap)

    Quote Originally Posted by quskevel View Post
    my friend fix position on Cloak... Looks like crap... Its not fix in .dll its only fixed position in bmd.
    here fixed Cloak of Death only bmd: http://rghost.ru/private/57439041/05...2b98d420734ee2

    Link is death, anyone reupload ? Thank you!



Page 6 of 6 FirstFirst 123456

Advertisement