Jump to content

Use Items with the Effect of Use


Recommended Posts

/// UserInterface -> Packet.h ///

Search: SE_EQUIP_RAMADAN_RING,
Add below: SE_EQUIP_WELES_RING1,

/// UserInterface -> InstanceBase.h ///

Search: EFFECT_RAMADAN_RING_EQUIP,
Add below: EFFECT_WELES_RING1_EQUIP,

/// UserInterface -> PythonCharacterManagerModule.cpp ///

Search: PyModule_AddIntConstant(poModule, "EFFECT_RAMADAN_RING_EQUIP",            CInstanceBase::EFFECT_RAMADAN_RING_EQUIP);
Add below: PyModule_AddIntConstant(poModule, "EFFECT_WELES_RING1_EQUIP",            CInstanceBase::EFFECT_WELES_RING1_EQUIP);

/// UserInterface -> PythonNetworkStreamPhaseGameItem.cpp ///

Search:

        case SE_EQUIP_RAMADAN_RING:
            effect = CInstanceBase::EFFECT_RAMADAN_RING_EQUIP;
            break;

Add below:

        case SE_EQUIP_WELES_RING1:
            effect = CInstanceBase::EFFECT_WELES_RING1_EQUIP;
            break;

/// game/src -> char_item.cpp ///

Search:

        if (true == CItemVnumHelper::IsRamadanMoonRing(dwVnum))
        {
            this->EffectPacket(SE_EQUIP_RAMADAN_RING);
        }
	
Add below:
        else if (true == CItemVnumHelper::IsWELESRing1(dwVnum))
        {
            this->EffectPacket(SE_EQUIP_WELES_RING1);
        }

/// game/src -> item.cpp ///

Search:
    if (true == CItemVnumHelper::IsRamadanMoonRing(GetVnum()) || true == CItemVnumHelper::IsHalloweenCandy(GetVnum())
        || true == CItemVnumHelper::IsHappinessRing(GetVnum()) || true == CItemVnumHelper::IsLovePendant(GetVnum()))

Add to the function: || true == CItemVnumHelper::IsWELESRing1(GetVnum())

Example:

    if (true == CItemVnumHelper::IsRamadanMoonRing(GetVnum()) || true == CItemVnumHelper::IsHalloweenCandy(GetVnum())
        || true == CItemVnumHelper::IsHappinessRing(GetVnum()) || true == CItemVnumHelper::IsLovePendant(GetVnum())
        || true == CItemVnumHelper::IsWELESRing1(GetVnum()))

/// common -> leght.h ///

Search: SE_EQUIP_RAMADAN_RING,
Add below: SE_EQUIP_WELES_RING1,

/// common -> VnumHelper.h ///

Search: static    const bool    IsRamadanMoonRing(DWORD vnum)        { return 71135 == vnum; }
Add below: static    const bool    IsWELESRing1(DWORD vnum)        { return YOUR_ID == vnum; }

/// root -> playersettingsmodule.py ///

Search: chrmgr.RegisterCacheEffect(chrmgr.EFFECT_RAMADAN_RING_EQUIP, "", "d:/ymir work/effect/etc/buff/buff_item1.mse")
Add below: chrmgr.RegisterCacheEffect(chrmgr.EFFECT_WELES_RING1_EQUIP, "", "d:/ymir work/effect/etc/buff/your_effect.mse")

/// item_proto ///

Type: 16
Subtype: 0
WearFlags: 128

  • Love 2
Link to comment
Share on other sites

  • 6 months later...
  • 3 years later...
  • 8 months later...

Announcements



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