Jump to content

iMerv3

Active Member
  • Posts

    49
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by iMerv3

  1. 22 hours ago, Koran said:

    if Battle Pass Extended

    char_battle.cpp

    #ifdef ENABLE_EXTENDED_BATTLE_PASS
    	if (type != DAMAGE_TYPE_POISON && type != DAMAGE_TYPE_FIRE)
    	{
    		if (IsPC())
    			pAttacker->UpdateExtBattlePassMissionProgress(DAMAGE_PLAYER, dam, GetLevel());
    		else
    			pAttacker->UpdateExtBattlePassMissionProgress(DAMAGE_MONSTER, dam, GetRaceNum());
    	}
    #endif

     

    Spoiler

    #ifdef ENABLE_EXTENDED_BATTLE_PASS
        if (pAttacker)
        {
            pAttacker->UpdateExtBattlePassMissionProgress(IsPC() ? DAMAGE_PLAYER : DAMAGE_MONSTER, dam, IsPC() ? GetLevel() : GetRaceNum());
        }
    #endif

     

  2. On 8/10/2022 at 6:02 PM, enzi said:

    That is most common error when you are editing packet.h without really understanding what are you doing 🙂 My advice for you is fully compare packet.h from binary+game they must be same..

    check for duplicates, check if you dont have something // in game but dont in binary, check if every packet is defined in right way in (PythonNetworkStreamPhaseGame/Item.cpp)

    ex. if this packet in binary = 80 it has to be 80 in game too

    HEADER_CG_GUILD								= 80,

    as last that = 80 must be unique so you cant use it for another packet, but be carefull there are 2 types of headers CG and GC (if you use 80 in CG packets you are free to use same number in GC but you cant use same number in 1 type of packets)

    ex. WRONG

    HEADER_CG_GUILD								= 80,
    HEADER_CG_WHEEL_DESTINY						= 80,

    I hope this will helps, if it dont, insert here your packet.h files I will look at it 🙂

    The compiler won't let u using the same number in a switch. The problem he have is a dynamic packet size mismatch.

    • Love 1
  3. #if defined(ENABLE_NEW_PET_SYSTEM)
    	const CNewPetSystem* pNewPetSystem = GetNewPetSystem();
    	if (pNewPetSystem && pNewPetSystem->IsActivePet()) {
    		ChatPacket( CHAT_TYPE_INFO, LC_TEXT("nu deschide fereastra de schimb atunci cand animalul de companie nou"));
    		return false;
    	}
    
    	pNewPetSystem = victim ? victim->GetNewPetSystem() : NULL;
    
    	if (pNewPetSystem && pNewPetSystem->IsActivePet()) {
    		ChatPacket( CHAT_TYPE_INFO, LC_TEXT("nu deschide?i fereastra de schimb de victime atunci cand animalul de companie este nou"));
    		return false;
    	}
    #endif

     

  4. 		## Sys Ver drops de todos los mobs mejorada
    		if app.ENABLE_SEND_TARGET_INFO:
    			infoButton = ui.Button()
    			infoButton.SetParent(self)
    			infoButton.SetUpVisual("d:/ymir work/ui/pattern/q_mark_01.tga")
    			infoButton.SetOverVisual("d:/ymir work/ui/pattern/q_mark_02.tga")
    			infoButton.SetDownVisual("d:/ymir work/ui/pattern/q_mark_01.tga")
    			infoButton.SetEvent(ui.__mem_func__(self.OnPressedInfoButton))
    			infoButton.Hide()
    
    			infoBoard = self.InfoBoard()
    			infoBoard.Hide()
    			infoButton.showWnd = infoBoard

    (removed one TAB)

  5. #ifdef ENABLE_CHAT_COLOR_SYSTEM
    	static const char* colorbuf[] = {"|cFFffa200|H|h[Staff]|h|r", "|cFFff0000|H|h[Shinsoo]|h|r", "|cFFffc700|H|h[Chunjo]|h|r", "|cFF000bff|H|h[Jinno]|h|r"};
    
    	int len;
    
    	if (CHAT_TYPE_SHOUT == pinfo->type) {
    		len = snprintf(chatbuf, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf);
    	} else {
    		len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf);
    	}
    #else
    	int len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf);
    #endif

     

    or

     

    #ifdef ENABLE_CHAT_COLOR_SYSTEM
    	static const char* colorbuf[] = {"|cFFffa200|H|h [Staff]|h|r", "|cFFff0000|H|h [Shinsoo]|h|r", "|cFFffc700|H|h [Chunjo]|h|r", "|cFF000bff|H|h [Jinno]|h|r"};
    	int len = snprintf(chatbuf, sizeof(chatbuf), "%s%s : %s", pinfo->type == CHAT_TYPE_SHOUT ? (ch->IsGM() ? colorbuf[0] : colorbuf[MINMAX(0, ch->GetEmpire(), 3)]) : "", ch->GetName(), buf);
    #else
    	int len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf);
    #endif

     

    • Love 1
  6. On 3/24/2021 at 2:08 AM, WizKid said:

    Hi, does anyone know how to fix this? (Sorry for the bad image quality)
    If I trade DS while my set is on, it shows the bonus of the stones inside the trade window.

    https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif

    Thanks 😁

     

     

     

    On 3/24/2021 at 9:52 PM, Cappuccino said:

    I can say that probably the bug is in uitooltip.py

    In fact, in uiToolTip.py, window_type should be right when append __AppendDragonSoulAttributeInformation. Most people use the old uidragonsoul.py class and is most common that you will have this kind of problems.

     

    Example (also make sure in uiDragonSoul.py on OverInEquipItem func must be self.ShowToolTip(player.EQUIPMENT, overSlotPos))

    Spoiler

    if window_type == player.EQUIPMENT and self.interface and self.interface.wndDragonSoul:
        self.__AppendDragonSoulAttributeInformation(attrSlot, itemVnum/10000, self.interface.wndDragonSoul.GetDSSetGrade())
    else:
        self.__AppendDragonSoulAttributeInformation(attrSlot)

     

×
×
  • 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.