Jump to content

iFreakTime~.~

Member
  • Posts

    120
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by iFreakTime~.~

  1. Hi everyone, i want to delete the "affect delete" on purple and green potion.

    I found this but i don't understand.

    void CHARACTER::ClearAffect(bool bSave)
    {
    	TAffectFlag afOld = m_afAffectFlag;
    	WORD	wMovSpd = GetPoint(POINT_MOV_SPEED);
    	WORD	wAttSpd = GetPoint(POINT_ATT_SPEED);
    
    	itertype(m_list_pkAffect) it = m_list_pkAffect.begin();
    
    	while (it != m_list_pkAffect.end())
    	{
    		CAffect * pkAff = *it;
    
    		if (bSave)
    		{
    			if ( IS_NO_CLEAR_ON_DEATH_AFFECT(pkAff->dwType) || IS_NO_SAVE_AFFECT(pkAff->dwType) )
    			{
    				++it;
    				continue;
    			}
    
    			if (IsPC())
    			{
    				SendAffectRemovePacket(GetDesc(), GetPlayerID(), pkAff->dwType, pkAff->bApplyOn);
    			}
    		}
    
    		ComputeAffect(pkAff, false);
    
    		it = m_list_pkAffect.erase(it);
    		CAffect::Release(pkAff);
    	}
    
    	if (afOld != m_afAffectFlag ||
    			wMovSpd != GetPoint(POINT_MOV_SPEED) ||
    			wAttSpd != GetPoint(POINT_ATT_SPEED))
    		UpdatePacket();
    
    	CheckMaximumPoints();
    
    	if (m_list_pkAffect.empty())
    		event_cancel(&m_pkAffectEvent);
    }

    I find this clear affect on char_battle un void Dead but i dont understand how to make the green/purple potions affect to remain.

  2. Hi everyone. I have a problem when i tried this system 

    When i compiled the source, i have this error. https://metin2.download/picture/WdeiqMZIJym8h2C715tAfKfGdo05I1xG/.png

    I'm using Vs2013 with update 5. 

    I read something on internet about this function don't exist in VS2013.. 

    Can someone help me with that?

     

    Best regards, iFreakTime.

     

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.