Jump to content

[C++] Icons for item_blend with real-time


VegaS™
 Share

Recommended Posts

  • 2 weeks later...

c5d6c6517c40123ccc2c5261f55a2f47.gif

 

 

#Bug fixed
 
When you die you lose all sites that belong affect potion icons.
 
[File: src/Server/game/src/char_affect.cpp]
 
//1.) Search:
            if (IsPC())
            {
                SendAffectRemovePacket(GetDesc(), GetPlayerID(), pkAff->dwType, pkAff->bApplyOn);
            }

//2.)Add this before:

#ifdef ENABLE_NEW_AFFECT_POTION			
			int pkAff_blend[] = {AFFECT_POTION_1, AFFECT_POTION_2, AFFECT_POTION_3, AFFECT_POTION_4, AFFECT_POTION_5, AFFECT_POTION_6};
			
			if ((pkAff->dwType == pkAff_blend[0]) || (pkAff->dwType == pkAff_blend[1]) || (pkAff->dwType == pkAff_blend[2]) ||
				(pkAff->dwType == pkAff_blend[3]) || (pkAff->dwType == pkAff_blend[4]) || (pkAff->dwType == pkAff_blend[5]))
			{
				++it;
				continue;
			}
#endif
 
Link to comment
Share on other sites

  • 3 weeks later...
Module Name: C:\Users\....\Desktop\Metin2\....\metin2client.exe
Time Stamp: 0x57ba140a - (null)

Exception Type: 0xc0000005

eax: 0x00000000    ebx: 0x00000000
ecx: 0x00000073    edx: 0x00000073
esi: 0x0399aaa0    edi: 0x0046bcb0
ebp: 0x00afe490    esp: 0x00afe48c

0x003e11cd    C:\Users\....\Desktop\Metin2\....\metin2client.exe
0x0040e8cf    C:\Users\....\Desktop\Metin2\....\metin2client.exe
0x0049c5f3    C:\Users\....\Desktop\Metin2\....\metin2client.exe
0x0049c3bd    C:\Users\....\Desktop\Metin2\....\metin2client.exe
0x00486cb9    C:\Users\....\Desktop\Metin2\....\metin2client.exe
0x004853a2    C:\Users\....\Desktop\Metin2\....\metin2client.exe
0x004d2bb6    C:\Users\....\Desktop\Metin2\....\metin2client.exe
0x00465f56    C:\Users\....\Desktop\Metin2\....\metin2client.exe
0x0046487a    C:\Users\....\Desktop\Metin2\....\metin2client.exe
0x0046bcbf    C:\Users\....\Desktop\Metin2\....\metin2client.exe
0x1e0a87b7    C:\Users\....\Desktop\Metin2\....\python27.dll
0x1e0ea900    C:\Users\....\Desktop\Metin2\....\python27.dll
0x1e0ec65f    C:\Users\....\Desktop\Metin2\....\python27.dll
0x1e0ecd22    C:\Users\....\Desktop\Metin2\....\python27.dll
0x1e0e93f5    C:\Users\....\Desktop\Metin2\....\python27.dll
0x1e0ea977    C:\Users\....\Desktop\Metin2\....\python27.dll

#Error... How can I solve it?

Link to comment
Share on other sites

 

 

c5d6c6517c40123ccc2c5261f55a2f47.gif

#Bug fixed

 

When you die you lose all sites that belong affect potion icons.

 

[File: src/Server/game/src/char_affect.cpp]

 

//1.) Search:

            if (IsPC())
            {
                SendAffectRemovePacket(GetDesc(), GetPlayerID(), pkAff->dwType, pkAff->bApplyOn);
            }
//2.)Add this before:
#ifdef ENABLE_NEW_AFFECT_POTION			
			int pkAff_blend[] = {AFFECT_POTION_1, AFFECT_POTION_2, AFFECT_POTION_3, AFFECT_POTION_4, AFFECT_POTION_5, AFFECT_POTION_6};
			
			if ((pkAff->dwType == pkAff_blend[0]) || (pkAff->dwType == pkAff_blend[1]) || (pkAff->dwType == pkAff_blend[2]) ||
				(pkAff->dwType == pkAff_blend[3]) || (pkAff->dwType == pkAff_blend[4]) || (pkAff->dwType == pkAff_blend[5]))
			{
				++it;
				continue;
			}
#endif
Hay dos funciones de estos:

 

if (IsPC())

{

SendAffectRemovePacket(GetDesc(), GetPlayerID(), pkAff->dwType, pkAff->bApplyOn);

}

 

Que en enviar el código , o debería añadir el 2 .

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...