[Release] Change glow color? Piece of cake =)

Page 29 of 30 FirstFirst ... 1921222324252627282930 LastLast
Results 421 to 435 of 447
  1. #421
    Account Upgraded | Title Enabled! 1313 is offline
    MemberRank
    Oct 2007 Join Date
    IsraelLocation
    378Posts

    re: [Release] Change glow color? Piece of cake =)

    Gembrid, are you can relase glow.gld reader?

  2. #422
    Apprentice aecrimch is offline
    MemberRank
    Dec 2007 Join Date
    842Posts

    re: [Release] Change glow color? Piece of cake =)

    Quote Originally Posted by mauro07 View Post
    mmm... not shared by: Gembrid the glow source code?, really? and then, what the hell is this?:

    .cpp file:

    Code:
    void __cdecl Glow(DWORD dwItemId, DWORD uk1, DWORD uk2, FRGB& cl, BYTE bUkn)
    {
        switch(dwItemId)
        {
            //Crystal Breaker
            case 0x35F:
                cl.r = 0.2291f; cl.g = 0.2291f; cl.b = 0.79f;
            break;
            //Scarlet Dragon Sword
            case 0x365:
                cl.r = 0.79f; cl.g = 0.2291f; cl.b = 0.2291f;
            break;
            //Imperial Shield
            case 0xF58:
                cl.r = 0.98f; cl.g = 0.98f; cl.b = 0.98f;
            break;
            //Scarlet Dragon Set
            case 0x1178: case 0x1378: case 0x1578: case 0x1778: case 0x1978:
                cl.r = 0.79f; cl.g = 0.2291f; cl.b = 0.2291f;
            break;
            //Other items
            default:
                originalGlow(dwItemId, uk1, uk2, cl, bUkn);
            break;
        }
    }
    
    void InitGlowFunc()
    {
        //Glow Functions
        ToolKit.HookOffset((DWORD)&Glow,0x004F9B1B,0xE8);//1.03.11 Jpn
        ToolKit.HookOffset((DWORD)&Glow,0x005CD032,0xE8);//1.03.11 Jpn
    }
    
    extern "C" _declspec(dllexport) void Init()
    {
        DWORD OldProtect;
        if(VirtualProtect(LPVOID(0x401000),0x00875FFF,PAGE_EXECUTE_READWRITE,&OldProtect))
        {
            InitGlowFunc();
        }
        else
        {
            MessageBoxA(NULL,"Cannot load YourDLLName.dll","Error",MB_OK);
            ExitProcess(0);
        }
    }
    Code:
    #include <gl\gl.h>
    #include <gl\glu.h>
    #include <gl\glut.h>
    #include "glaux.h"
    
    struct FRGB
    {
        float r, g, b;
    };
    
    
    typedef int(*ToriginalGlow)(DWORD, DWORD, DWORD, FRGB&, BYTE);
    ToriginalGlow originalGlow = (ToriginalGlow)0x005C2744;//1.03.11 Jpn
    
    void InitGlowFunc();
    PS: Please ignore my cases of switch, because are for my added custom items in my server test, if you need add your own custom items of glow color switch() cases you must be calc: ObjectId for every custom item.

    ObjectId calc: Type * MaxIndex + ItemIndex + ItemOffsetInArray (in my case is: 0x342).
    Ex: 0 * 512 + 19 + 834 (that is: 342, but in: decimal) = Divine Sword of Archangel ObjectId.

    Screen of tests:







    PS 2: For 4FUNer ->You are a noob!
    @mauro07,
    any idea how to find this 3 offsets for gmo 1.04d?

  3. #423
    Apprentice MaaaX is offline
    MemberRank
    Jun 2009 Join Date
    PolandLocation
    6Posts

    re: [Release] Change glow color? Piece of cake =)

    typedef int(*ToriginalGlow)(DWORD, DWORD, DWORD, FRGB&, BYTE);
    ToriginalGlow originalGlow = (ToriginalGlow)0x005F8C50;//1.04D GMO

    //Glow Functions Call
    HookOffset((DWORD)&Glow,0x0057AC07,0xE8);//1.04D GMO
    HookOffset((DWORD)&Glow,0x006083B9,0xE8);//1.04D GMO

    #define ITEM_ID(x,y) (x*512+y)+0x493
    Last edited by MaaaX; 22-07-13 at 07:19 PM.

  4. #424
    Member screamo15 is offline
    MemberRank
    Apr 2011 Join Date
    96Posts

    re: [Release] Change glow color? Piece of cake =)

    Please offsets for 97d+99i....

  5. #425
    Apprentice aecrimch is offline
    MemberRank
    Dec 2007 Join Date
    842Posts

    re: [Release] Change glow color? Piece of cake =)

    Quote Originally Posted by MaaaX View Post
    typedef int(*ToriginalGlow)(DWORD, DWORD, DWORD, FRGB&, BYTE);
    ToriginalGlow originalGlow = (ToriginalGlow)0x005F8C50;//1.04D GMO

    //Glow Functions Call
    HookOffset((DWORD)&Glow,0x0057AC07,0xE8);//1.04D GMO
    HookOffset((DWORD)&Glow,0x006083B9,0xE8);//1.04D GMO

    #define ITEM_ID(x,y) (x*512+y)+0x493
    i think this offset 0x0057AC07 is not ok...
    i have no custom glow effect for 1.04D GMO...

  6. #426
    Apprentice MaaaX is offline
    MemberRank
    Jun 2009 Join Date
    PolandLocation
    6Posts

    re: [Release] Change glow color? Piece of cake =)

    I use this offset and works. To find offsets i use Gembrid guide.


    Glow.cpp
    Code:
    #include "headers.h"
    #include "utility.h"
    #include "Glow.h"
    
    struct FRGB
    {
        float r, g, b;
    };
    
    typedef int(*ToriginalGlow)(DWORD, DWORD, DWORD, FRGB&, BYTE);
    ToriginalGlow originalGlow = (ToriginalGlow)0x005F8C50;//1.04D GMO
    
    void __cdecl Glow(DWORD dwItemId, DWORD uk1, DWORD uk2, FRGB& cl, BYTE bUkn)
    {
        switch(dwItemId)
        {
            //Dragon Knight Set
    		case ITEM_ID(7,29): 
    			cl.r = 0.00f; 
    			cl.g = 0.50f; 
    			cl.b = 1.00f;
            break;
    		case ITEM_ID(8,29): 
    			cl.r = 0.00f; 
    			cl.g = 0.50f; 
    			cl.b = 1.00f;
            break;
    		case ITEM_ID(9,29):
    			cl.r = 0.00f; 
    			cl.g = 0.50f; 
    			cl.b = 1.00f;
            break;
    		case ITEM_ID(10,29):
    			cl.r = 0.00f; 
    			cl.g = 0.50f; 
    			cl.b = 1.00f;
            break;
    		case ITEM_ID(11,29):
    			cl.r = 0.00f; 
    			cl.g = 0.50f; 
    			cl.b = 1.00f;
            break;
    
    		//brave set
    		case ITEM_ID(7,46): 
    			cl.r = 0.95f; 
    			cl.g = 0.4275f; 
    			cl.b = 0.5755f;
            break;
    		case ITEM_ID(8,46): 
    			cl.r = 0.95f; 
    			cl.g = 0.4275f; 
    			cl.b = 0.5755f;
            break;
    		case ITEM_ID(9,46): 
    			cl.r = 0.95f; 
    			cl.g = 0.4275f; 
    			cl.b = 0.5755f;
            break;
    		case ITEM_ID(10,46): 
    			cl.r = 0.95f; 
    			cl.g = 0.4275f; 
    			cl.b = 0.5755f;
            break;
    		case ITEM_ID(11,46): 
    			cl.r = 0.95f; 
    			cl.g = 0.4275f; 
    			cl.b = 0.5755f;
            break;
    
            default:
                originalGlow(dwItemId, uk1, uk2, cl, bUkn);
            break;
        }
    }
    
    void InitGlowFunc()
    {
        //Glow Functions calls
        HookOffset((DWORD)&Glow,0x0057AC07,0xE8);//1.04D GMO
        HookOffset((DWORD)&Glow,0x006083B9,0xE8);//1.04D GMO
    }
    glow.h
    Code:
    #pragma once
    #define ITEM_ID(x,y) (x*512+y)+0x493
    
    void InitGlowFunc();
    Last edited by MaaaX; 24-07-13 at 10:01 PM.

  7. #427
    Novice Achronos is offline
    MemberRank
    Oct 2013 Join Date
    1Posts

    re: [Release] Change glow color? Piece of cake =)

    Could someone post a link to the newest way to change glow color for me plz and thanks?

  8. #428
    Proficient Member Papjautaz is offline
    MemberRank
    Apr 2012 Join Date
    RussiaLocation
    163Posts

    re: [Release] Change glow color? Piece of cake =)

    "Piece of cake =) "

  9. #429
    Proficient Member Van_Bom is offline
    MemberRank
    May 2009 Join Date
    194Posts

    re: [Release] Change glow color? Piece of cake =)

    thanks
    Last edited by Van_Bom; 05-12-13 at 02:54 PM.

  10. #430
    Proficient Member Van_Bom is offline
    MemberRank
    May 2009 Join Date
    194Posts

    re: [Release] Change glow color? Piece of cake =)

    Quote Originally Posted by Wikko0 View Post
    Can u release glow.dll for 1.0L client?
    This for you:
    off: 0x1F9
    call1: 0x004F77CF
    call2: 0x005DEA45

    1.00L CHS Client

  11. #431
    Enthusiast fender1976 is offline
    MemberRank
    Apr 2009 Join Date
    39Posts

    re: [Release] Change glow color? Piece of cake =)

    Quote Originally Posted by saintus View Post
    Did you patch the dll? Did you find the calls and the offset?



    14 in hex is "E" , so if you make 285+E=293, use the Windows calculator and switch to scientific.
    i used calkulator with our topic and

    Please, let someone, write how to compute it, I'm new please help, I do not understand

  12. #432
    c++ CNDev is offline
    MemberRank
    Oct 2010 Join Date
    1,678Posts

    re: [Release] Change glow color? Piece of cake =)

    not bad :)

  13. #433
    Enthusiast fender1976 is offline
    MemberRank
    Apr 2009 Join Date
    39Posts

    re: [Release] Change glow color? Piece of cake =)

    I am ready to pay for teach me

  14. #434
    selling server files is against RZ rules LTPTeam is online now
    MemberRank
    Feb 2013 Join Date
    UkraineLocation
    551Posts

    re: [Release] Change glow color? Piece of cake =)

    Quote Originally Posted by Wikko0 View Post
    Offsets of 1.02c main ? Tnx
    research yourself.

  15. #435
    Apprentice MaaaX is offline
    MemberRank
    Jun 2009 Join Date
    PolandLocation
    6Posts

    re: [Release] Change glow color? Piece of cake =)

    Check this
    Item offset 0x246
    Calls: 0x0052EFB5 0x00679486



Advertisement