Jump to content
  • 0

problemas con cambiador de 6y7 bonus eternia


Question

Posted

hola, me descargue los files eternia2 con cliente,source y binario, como servidor de base para empezar a crear mi primer server. enpese editando el source el cual le agrege el 6 y 7  bonus

pero tengo un problema, el agregador de 6/7 bonus funciona bien, pero el cambiador no me lo toma, cuando arastro el cambiador al item este se pone en rojo. como si fuera un item prohibido o sin funcion alguno . les paso el char_item que edite. y la parte del item_proto.txt

char_item.cpp

Quote

case 71051 : // 진재가
                                {
                                    // 유럽, 싱가폴, 베트남 진재가 사용금지
                                    LPITEM item2;

                                    if (!IsValidItemPosition(DestCell) || !(item2 = GetInventoryItem(wDestCell)))
                                        return false;

                                    if (item2->IsExchanging() == true)
                                        return false;

                                    if (item2->GetAttributeSetIndex() == -1)
                                    {
                                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("속성을 변경할 수 없는 아이템입니다."));
                                        return false;
                                    }

                                    if (item2->AddRareAttribute() == true)
                                    {
                                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("성공적으로 속성이 추가 되었습니다"));

                                        int iAddedIdx = item2->GetRareAttrCount() + 4;
                                        char buf[21];
                                        snprintf(buf, sizeof(buf), "%u", item2->GetID());

                                        LogManager::instance().ItemLog(
                                                GetPlayerID(),
                                                item2->GetAttributeType(iAddedIdx),
                                                item2->GetAttributeValue(iAddedIdx),
                                                item->GetID(),
                                                "ADD_RARE_ATTR",
                                                buf,
                                                GetDesc()->GetHostName(),
                                                item->GetOriginalVnum());

                                        item->SetCount(item->GetCount() - 1);
                                    }
                                    else
                                    {
                                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("더 이상 이 아이템으로 속성을 추가할 수 없습니다"));
                                    }
                                }
                                break;

                            case 71052 : // 진재경
                                {
                                    // 유럽, 싱가폴, 베트남 진재가 사용금지
                                    LPITEM item2;

                                    if (!IsValidItemPosition(DestCell) || !(item2 = GetItem(DestCell)))
                                        return false;

                                    if (item2->IsExchanging() == true)
                                        return false;

                                    if (item2->GetAttributeSetIndex() == -1)
                                    {
                                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("속성을 변경할 수 없는 아이템입니다."));
                                        return false;
                                    }

                                    if (item2->ChangeRareAttribute() == true)
                                    {
                                        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("변경 시킬 속성이 없습니다"));
                                    }
                                }
                                break;

item_proto.txt

Quote

71051    anadir bonus 6/7    ITEM_USE    USE_SPECIAL    1    ANTI_MYSHOP    STACKABLE | LOG    NONE    NONE    0    0    0    0    0    LIMIT_NONE    0    LIMIT_NONE    0    APPLY_NONE    0    APPLY_NONE    0    APPLY_NONE    0    0    0    0    0    0    0    0    0    0     

   
71052    cambio de bonus 6/7    ITEM_USE    USE_SPECIAL    1    ANTI_MYSHOP    STACKABLE | LOG    NONE    NONE    0    0    0    0    0    LIMIT_NONE    0    LIMIT_NONE    0    APPLY_NONE    0    APPLY_NONE    0    APPLY_NONE    0    0    0    0    0    0    0    0    0    0        

 

 

 

 

    1 answer to this question

    Recommended Posts

    • 0
    Posted
    hace 20 horas, over dijo:

    hola, me descargue los files eternia2 con cliente,source y binario, como servidor de base para empezar a crear mi primer server. enpese editando el source el cual le agrege el 6 y 7  bonus

    pero tengo un problema, el agregador de 6/7 bonus funciona bien, pero el cambiador no me lo toma, cuando arastro el cambiador al item este se pone en rojo. como si fuera un item prohibido o sin funcion alguno . les paso el char_item que edite. y la parte del item_proto.txt

    char_item.cpp

    item_proto.txt

     

     

     

      Hablame al privado y le hecho un ojo! 

      Un saludo!

      Join the conversation

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

      Guest
      Answer this question...

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

      • Recently Browsing   0 members

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

      Important Information

      This site uses cookies to enhance your browsing experience and provide relevant content. By continuing to browse, you agree to our 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. and Terms of Use. For more information on how we protect your data, please check our Privacy Policy.