3 mesaje
  • Mesaje: 43
  • Reacții: 126
  • Mesaje utile: 5
  • Status: Pierd vremea ^.^
  • Regat: Jinno
  • [ID Discord]
  • Contact:

    Medalii

    Hi, I have a problem... When I change the case from 71052 to 84007 in char_item.cpp, the item doesn't work, but it works at 71052. Do you know why this is happening? Many thanks to anyone who can point me in the right direction.



    Code:
    							case 71052 :
    								{
    									LPITEM item2;
    
    									if (!IsValidItemPosition(DestCell) || !(item2 = GetItem(DestCell)))
    										return false;
    
    									if (ITEM_COSTUME == item2->GetType()) // @fixme124
    									{
    										ChatPacket(CHAT_TYPE_INFO, LC_TEXT("속성을 변경할 수 없는 아이템입니다."));
    										return false;
    									}
    
    									if (item2->IsExchanging() || item2->IsEquipped()) // @fixme114
    										return false;
    
    									if (item2->GetAttributeSetIndex() == -1)
    									{
    										ChatPacket(CHAT_TYPE_INFO, LC_TEXT("속성을 변경할 수 없는 아이템입니다."));
    										return false;
    									}
    
    #ifdef ENABLE_ITEM_RARE_ATTR_LEVEL_PCT
    									if (item2->ChangeRareAttribute2())
    #else
    									if (item2->ChangeRareAttribute())
    #endif
    									{
    										char buf[21];
    										snprintf(buf, sizeof(buf), "%u", item2->GetID());
    										LogManager::instance().ItemLog(this, item, "CHANGE_RARE_ATTR", buf);
    
    										item->SetCount(item->GetCount() - 1);
    									}
    									else
    									{
    										ChatPacket(CHAT_TYPE_INFO, LC_TEXT("변경 시킬 속성이 없습니다"));
    									}
    								}
    Rezolvat de GreposX » 23 Iul 2025, 20:07

    📢 Resurse Metin2 Premium!

    Zeci de resurse Metin2 Premium - exclusive și 100% funcționale începând cu 15.99€!.

    Vezi resursele Cumpără premium
    Premium
    Premium
    Anunț
    Robot Robot
  • Mesaje: 121
  • Reacții: 0
  • Mesaje utile: 0
  • Status: Sunt doar un Bot :)
  • Regat: Shinsoo
  • Contact:

    Medalii

    Avatar utilizator
    Robot
    Robot

    Mesaj de Uriel »

    Salut, GreposX!

    Îți recomand câteva link-uri utile care te pot ajuta să rezolvi problema mai rapid:

    - Alte probleme rezolvate
    - Fixuri Metin2
    - Tutoriale
    - Cum resetez parola MySQL
    - Compilare sursă Metin2
    - Lista FreeBSD pentru compilare


    Și dacă vrei ajutor direct, te așteptăm pe serverul nostru de Discord — chat activ, suport live și o comunitate faină gata să te ajute! Pentru a intra pe serverul de Discord: Click aici
  • Mesaje: 43
  • Reacții: 126
  • Mesaje utile: 5
  • Status: Pierd vremea ^.^
  • Regat: Jinno
  • [ID Discord]
  • Contact:

    Medalii

    Mesaj de GreposX »

    I had to write down the item ID in uiinventory.py, look for it there.

    🔥 Hai pe Discord! - Chat activ și support direct

    Te așteptăm și pe serverul de Discord - aici ne-am strâns toată comunitatea de Metin2 din România.

    Alătură-te acum!
    1300+ de membri activi!
    Robot Discord
    Roboțelu'
    Anunț
    Închis

    Înapoi la “Probleme rezolvate”

    Informații

    Utilizatori ce navighează pe acest forum: Niciun utilizator înregistrat și 2 vizitatori

    Discord ID copiat: