Jump to content

Mano

Premium
  • Posts

    196
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Mano

  1. You'll have to adapt new sashes with code starts from 86001 in this two files

    in InstanceBase.cpp this function needs to be edit

    Spoiler

    #ifdef ENABLE_SASH_SYSTEM
    void CInstanceBase::SetSash(DWORD dwSash)
    {
        if (!IsPC())
            return;
        
        if (IsPoly())
            return;
        
        dwSash += 85000;
        ClearSashEffect();
        
        float fSpecular = 65.0f;
        if (dwSash > 86000)
        {
            dwSash -= 1000;
            fSpecular += 35;
            
            m_dwSashEffect = EFFECT_REFINED + EFFECT_SASH;
            __EffectContainer_AttachEffect(m_dwSashEffect);
        }
        
        fSpecular /= 100.0f;
        m_awPart[CRaceData::PART_SASH] = dwSash;
        
        CItemData * pItemData;
        if (!CItemManager::Instance().GetItemDataPointer(dwSash, &pItemData))
            return;
        
        m_GraphicThingInstance.AttachSash(pItemData, fSpecular);
        #ifdef ENABLE_OBJ_SCALLING
        DWORD dwRace = GetRace(), dwPos = RaceToJob(dwRace), dwSex = RaceToSex(dwRace);
        dwPos += 1;
        if (dwSex == 0)
            dwPos += 5;
        
        float fScaleX, fScaleY, fScaleZ, fPositionX, fPositionY, fPositionZ;
        if (pItemData->GetItemScale(dwPos, fScaleX, fScaleY, fScaleZ, fPositionX, fPositionY, fPositionZ))
        {
            m_GraphicThingInstance.SetScale(fScaleX, fScaleY, fScaleZ, true);
            if (m_kHorse.IsMounting())
                fPositionZ += 10.0f;
            
            m_GraphicThingInstance.SetScalePosition(fPositionX, fPositionY, fPositionZ);
        }
        #endif
    }

    And item.cpp this also needs to be edit

    Spoiler

    #ifdef __SASH_SYSTEM__
                    else if (GetSubType() == COSTUME_SASH)
                    {
                        toSetValue -= 85000;
                        if (GetSocket(SASH_ABSORPTION_SOCKET) >= SASH_EFFECT_FROM_ABS)
                            toSetValue += 1000;
                        
                        toSetValue = (bAdd == true) ? toSetValue : 0;
                        toSetPart = PART_SASH;
                    }
    #endif

    Read the code and you'll understand the reason

    Kind regards

  2. fix for cheque system error

    PythonNetworkStreamPhaseGame.cpp

    search

    Spoiler

    bool CPythonNetworkStream::SendExchangeElkAddPacket(DWORD elk)

    after add

    Spoiler

    #ifdef ENABLE_CHEQUE_SYSTEM
    bool CPythonNetworkStream::SendExchangeChequeAddPacket(BYTE cheque)
    {
        if (!__CanActMainInstance())
            return true;
        
        TPacketCGExchange    packet;
        
        packet.header        = HEADER_CG_EXCHANGE;
        packet.subheader    = EXCHANGE_SUBHEADER_CG_CHEQUE_ADD;
        packet.arg1            = cheque;
        
        if (!Send(sizeof(packet), &packet))
        {
            Tracef("send_trade_cheque_add_packet Error\n");
            return false;
        }
        
        return SendSequence();
    }
    #endif

     

    • Love 1
  3. or in offlineshop_manger.cpp in

    Spoiler

    void COfflineShopManager::AddItem(LPCHARACTER ch, BYTE bDisplayPos, BYTE bPos, int iPrice)

    add

    Spoiler
    
       if (ch->IsAcceOpen())
       {
          ch->ChatPacket(CHAT_TYPE_INFO, "Nu poti sa folosesti magazinul offline cand craftezi o esarfa.");
          return;
       }

    maybe not the same result because now it can open offlineshop when the acce window is open but he can't put any item in the offlineshop

    Thank you

  4. i tried to make it also with costume mount

    Spoiler

            elif item.ITEM_TYPE_COSTUME == itemType:
                self.__AppendLimitInformation()

     

    and this for show the bounses

    Spoiler

            elif item.ITEM_TYPE_COSTUME == itemType:
                if itemVnum >= 52001 and itemVnum <= 52200:
                    self.AppendSpace(5)
                    for g in xrange(item.ITEM_APPLY_MAX_NUM):
                        (affectType, affectValue) = item.GetAffect(g)
                        affectString = self.__GetAffectString(affectType, affectValue)
                        if affectString:
                            affectColor = self.GetChangeTextLineColor(affectValue)
                            self.AppendTextLine(affectString, affectColor)
                for i in xrange(item.LIMIT_MAX_NUM):
                    (limitType, limitValue) = item.GetLimit(i)

    Spoiler

            if app.ENABLE_COSTUME_SYSTEM:
                if item.ITEM_TYPE_COSTUME == itemType:
                    isCostumeItem = 1
                    isCostumeHair = item.COSTUME_TYPE_HAIR == itemSubType
                    isCostumeBody = item.COSTUME_TYPE_BODY == itemSubType
                    isCostumeMount = item.COSTUME_TYPE_MOUNT == itemSubType
                    if app.ENABLE_COSTUME_WEAPON_SYSTEM:
                        isCostumeWeapon = item.COSTUME_TYPE_WEAPON == itemSubType
                    isCostumeAcce = item.COSTUME_TYPE_ACCE == itemSubType

    but it doesn't work

    btw syserr is clean

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