Jump to content

gragonvlad

Inactive Member
  • Posts

    8
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by gragonvlad

  1. I ask good or not . Change surce limit 10 level pc not drop mobs if level >10  

    Code

    int CItem::GetLevelLimit()
    {
        for (int i = 0; i < ITEM_LIMIT_MAX_NUM; ++i)
        {
            if (this->m_pProto->aLimits.bType == LIMIT_LEVEL)
            {
                return this->m_pProto->aLimits.lValue;
            }
        }
        return 0;
    }

    Change

    int CItem::GetLevelLimit()
    {
        for (int i = 0; i < ITEM_LIMIT_MAX_NUM; ++i)
        {
            if (this->m_pProto->aLimits.bType == LIMIT_LEVEL)
            {
                return this->m_pProto->aLimits.lValue;
            }
        }
        return 1;
    }

     

  2. If i have many STACKABLE one item Stone example Anti-Magic +3 28344  And many not 1 and enter to weapon or shield  all stone destroy . How do it fixen?

     

    I lisend surce

    if (item2->GetVnum() >= 28330 && item2->GetVnum() <= 28343) // 영석+3
                                {
                                    ChatPacket(CHAT_TYPE_INFO, LC_TEXT("+3 영석은 이 아이템으로 개량할 수 없습니다"));
                                    return false;
                                }
                                
                                if (item2->GetVnum() >= 28430 && item2->GetVnum() <= 28443)  // 영석+4
                                {
                                    if (item->GetVnum() == 71056) // 청룡의숨결
                                    {
                                        RefineItem(item, item2);
                                    }
                                    else
                                    {
                                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("영석은 이 아이템으로 개량할 수 없습니다"));
                                    }
                                }
                                else
                                {
                                    RefineItem(item, item2);
                                }
                            }
                            break;

    change

      if (item2->GetVnum() >= 28330 && item2->GetVnum() <= 28343 && item2->GetCount() > 1 )
                                {
                                    ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ERROR 1"));
                                    break;
                                return false;
                                }
                                
                                 if (item2->GetVnum() >= 28430 && item2->GetVnum() <= 28443 && item2->GetCount() > 1 )
                                {
                                    ChatPacket(CHAT_TYPE_INFO, LC_TEXT("ERROR 2"));
                                    break;
                                return false;
                                }
                                
                            
                                if (item2->GetVnum() >= 28330 && item2->GetVnum() <= 28343) // 영석+3
                                {
                                    ChatPacket(CHAT_TYPE_INFO, LC_TEXT("+3 영석은 이 아이템으로 개량할 수 없습니다"));
                                    return false;
                                }
                                
                                if (item2->GetVnum() >= 28430 && item2->GetVnum() <= 28443)  // 영석+4
                                {
                                    if (item->GetVnum() == 71056) // 청룡의숨결
                                    {
                                        RefineItem(item, item2);
                                    }
                                    else
                                    {
                                        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("영석은 이 아이템으로 개량할 수 없습니다"));
                                    }
                                }
                                else
                                {
                                    RefineItem(item, item2);
                                }
                            }
                            break;

     

    Not work how realese ))) I known item2 is stone item1 is weapon or shield ? Or have continuation code.

     

  3. I have error

    /usr/bin/ld: skipping incompatible ../../libthecore/lib/libthecore.a when searching for -lthecore
    /usr/bin/ld: cannot find -lthecore

    MakeFile

    INCDIR += -I../../../Extern/include
    INCDIR += -I../../../Extern/include/mysql
    INCDIR += -I../../../Extern/include/devil
    INCDIR += -I../../../Extern/include/boost
    INCDIR += -I../../../Extern/include/liblua
    LIBDIR += -L../../../Extern/lib
    LIBDIR += -L../../libthecore/lib -L../../libpoly -L../../libsql -L../../libgame/lib -L../../liblua/lib
    LIBS += -lthecore -lpoly -llua -llualib -lsql -lgame -lssl -lcryptopp -lmysqlclient -lz -lIL -lpng -ltiff -lmng -llcms -ljpeg -pthread -lm -lmd

    And dirrectory libthecore/lib/libthecore.a file compile

     

    How did repair.

    All libs replaced if i gmake all in surce dirrectory how disabled.

  4. Question how fix

    system.py(line:273) RunMainScript
    system.py(line:192) execfile
    system.py(line:163) Run
    prototype.py(line:61) ?
    prototype.py(line:59) RunApp
    networkModule.py(line:113) Destroy
    introSelect.py(line:201) Close

    Run - exceptions.AttributeError:'SelectCharacterWindow' object has no attribute 'dlgQuestion'

     

    Another im listen packet.h not found how fix it error?

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