Metin2 Hungarian Forum

Metin2 => Privát szerverek => Szerver készítés => A témát indította: MartinezTheKing Dátum 2018-03-27, 21:16:07

Cím: [C++] Fix kosztüm fegyver
Írta: MartinezTheKing Dátum 2018-03-27, 21:16:07

Ez a fix arra van hogyha van kosztüm fegyvered és felveszed a horgászbotot vagy a csákányt,  és akkor azoknál használja a kosztüm fegyvert úgy mint ha fegyver lenne..


Nyisd meg a game/src/char_item.cpp-t

1.) Keresd meg ezt :

        else if (item->GetValue(3) != pkItem->GetSubType())
        {
            ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You can't wear a costume weapon who has different type of your weapon."));
            return false;
        }


2. ) Add utána ezt :

        else if (pkItem->GetType() == ITEM_ROD || pkItem->GetType() == ITEM_PICK) // Blockolja a horgászbot és a csákány használatát kosztüm fegyvernél

        {
            ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You can't wear a costume weapon who has different type of your weapon."));
            return false;
        }


3.) Így nézzen ki az egész :

        else if (item->GetValue(3) != pkItem->GetSubType())
        {
            ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You can't wear a costume weapon who has different type of your weapon."));
            return false;
        }
        else if (pkItem->GetType() == ITEM_ROD || pkItem->GetType() == ITEM_PICK) // Blockolja a horgászbot és a csákány használatát kosztüm fegyvernél

        {
            ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You can't wear a costume weapon who has different type of your weapon."));
            return false;
        }



Ha segitettem akkor egy köszit 'nyomjá má'  ;D
EhPortal 1.39 © 2025, WebDev