Need to fix Wings Visual Bug

Results 1 to 6 of 6
  1. #1
    Enthusiast Atlant91 is offline
    MemberRank
    Oct 2007 Join Date
    41Posts

    sad Need to fix Wings Visual Bug

    Hello all!
    I added wings to my server. They have VISUAL bug : become 1 wings when i move to another location or login.
    I know that this bug is widespread, I know that this is problem with Gameserver.

    Anybody please give me even a small answer where to start finding the solution of the problem. Because i tried to find a guide or some answers in topics, started Gameserver in olly , tried to find anything but nothing.

    Sorry for bad English, I will be gratefull if you help


  2. #2

    Re: Need to fix Wings Visual Bug

    what files are u using and from where u downloaded them ?

  3. #3
    Enthusiast Atlant91 is offline
    MemberRank
    Oct 2007 Join Date
    41Posts

    Re: Need to fix Wings Visual Bug

    I use CZF Season 4.5 + Custom Modifications

  4. #4

    Re: Need to fix Wings Visual Bug

    u should check that thread
    http://forum.ragezone.com/f508/games...0-90-a-600553/
    is the gameserver of czf 4.5
    there are fixes for the wings for sure.

  5. #5
    Enthusiast Atlant91 is offline
    MemberRank
    Oct 2007 Join Date
    41Posts

    Re: Need to fix Wings Visual Bug

    ok thanks a lot! now trying to find

  6. #6
    Enthusiast Atlant91 is offline
    MemberRank
    Oct 2007 Join Date
    41Posts

    Re: Need to fix Wings Visual Bug

    Quote Originally Posted by duracel View Post
    I don't think you need function in gs so you can wear wings.I think that you just need to fix the visual bug.
    Code:
    #define j_gObjMakePreviewCharSet ((void(*)(DWORD aIndex))0x005263D0)
    
    HookThis((DWORD)gObjMakePreviewCharSet,0x004035A3);
    Code:
    void gObjMakePreviewCharSet(DWORD aIndex)
    {
        j_gObjMakePreviewCharSet(aIndex);
    
        OBJECTSTRUCT *pObj = (OBJECTSTRUCT*)OBJECT_POINTER(aIndex);
        
        switch(pObj->pInventory[8].m_Type)
        {
        case 0x1A50://Panda Pet InGame
            pObj->CharSet[16] |= 0xE0;
            break;
    
        case 0x1A7B://Skeleton Pet InGame
            pObj->CharSet[5] -= 0x03;
            pObj->CharSet[16] |= 0x60;
            break;
        }
    
        switch(pObj->pInventory[7].m_Type)
        {
        case 0x1882://DL Mini-Wing
            pObj->CharSet[5] += 0x04;
            pObj->CharSet[17] |= 0x20;
            break;
    
        case 0x1883://SUM Mini-Wing
            pObj->CharSet[17] |= 0x40;
            break;
    
        case 0x1884://ELF Mini-Wing
            pObj->CharSet[5] += 0x0C;
            pObj->CharSet[17] |= 0x60;
            break;
    
        case 0x1885://DW Mini-Wing
            pObj->CharSet[5] += 0x08;
            pObj->CharSet[17] |= 0x80;
            break;
    
        case 0x1886://DK Mini-Wing
            pObj->CharSet[5] += 0x04;
            pObj->CharSet[17] |= 0xA0;
            break;
        }
    }
    Credits: Zemattana

    found something but I am bad in C++.
    I tried to insert this code to VisualStudio 2005 and compile as a dll but it showed me a lot of errors.
    Please help understanding what i am doing wrong?

    if i am right i should compile dll and hook it into Gameserver. But what is wrong?
    smth like : error C2065 gObjMakePreviewCharset : undeclared identifier.
    and so on..
    49 errors .

    sorry for my stupidity but I really newbi in Visual Studio



Advertisement