Jump to content

Fazer

Inactive Member
  • Posts

    98
  • Joined

  • Last visited

  • Days Won

    6
  • Feedback

    0%

Posts posted by Fazer

  1. Hello i update gold yang limit but i have a problem. when i login gold its work but when i change the gold value its going to 0.

    Serverside config.cpp

    Spoiler

    long long    g_llMaxGold = 9223372036854775807LL;

     

    client:

    Spoiler

    PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
    {
        __int64 GoldVal = CPythonPlayer::Instance().GetStatus(POINT_GOLD);
        return Py_BuildValue("L", GoldVal);
    }

    i also try this
     

    Spoiler
    
    PyObject * playerGetElk(PyObject* poSelf, PyObject* poArgs)
    {
    	long long llGold = CPythonPlayer::Instance().GetStatus(POINT_GOLD);
    #ifdef _DEBUG
    	Tracef("GetElk(): %lld\n", llGold);
    #endif
    	return PyLong_FromLongLong(llGold);
    }

     

    • Love 1
  2. 6/7 enable:
    char_item.cpp:
    search this
    case 71092 : // 변신 해체부 임시
    after break; add or replace if exist 

    you must add the items to item_proto

    Spoiler


                                case 71051 : // 진재가
                                    {
                                        // 유럽, 싱가폴, 베트남 진재가 사용금지
                                        if (LC_IsVietnam())
                                            return false;

                                        LPITEM item2;

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

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

                                        if (item2->GetType() == ITEM_COSTUME) //6-7 fix
                                        {
                                            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 : // 진재경
                                    {
                                        // 유럽, 싱가폴, 베트남 진재가 사용금지
                                        if (LC_IsVietnam())
                                            return false;

                                        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;
     

     

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