Jump to content
  • 0

problemas con cambiador de 6y7 bonus eternia


over

Pregunta

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        

 

 

 

 

    Enlace para comentar
    Compartir en otros sitios

    1 respuesta a esta pregunta

    Mensajes recomendados

    • 0
    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!

      Enlace para comentar
      Compartir en otros sitios

      Unirse a la conversación

      Puedes publicar ahora y registrarte más tarde. Si tienes una cuenta, regístrate para publicar con su cuenta.

      Guest
      Responder esta pregunta...

      ×   Has pegado contenido con formato .   Eliminar formato

        Only 75 emoji are allowed.

      ×   Tu enlace se ha incorporado automáticamente.   Mostrar un enlace en su lugar

      ×   Se ha restaurado el contenido anterior. .   Borrar editor

      ×   You cannot paste images directly. Upload or insert images from URL.

      • Recientemente navegando por este tema   0 miembros

        • No hay usuarios registrados visitando esta página.
      ×
      ×
      • Crear nuevo...