What's new

Sanii efekt.

Sziasztok beraktam sanii féle efekt rendszert armoron tökéletesen müködik,fegyveren nem.
Elméletileg ez a rész felel érte.
InstanceBase.cpp

Code:
bool CInstanceBase::SetWeapon(DWORD eWeapon)
{
    if (IsPoly())
        return false;
   
    if (__IsShapeAnimalWear())
        return false;
   
    if (__IsChangableWeapon(eWeapon) == false)
        eWeapon = 0;

    m_GraphicThingInstance.AttachWeapon(eWeapon);
    m_awPart[CRaceData::PART_WEAPON] = eWeapon;
   
    //Weapon Effect
    CItemData * pItemData;
    if (CItemManager::Instance().GetItemDataPointer(eWeapon, &pItemData))
    {
        __GetRefinedEffect(pItemData);
        __GetShiningEffect(pItemData);
    }
    else
    {
        __ClearWeaponRefineEffect();
        __ClearWeaponShiningEffect();
    }

    return true;
}
Hol lehet a hiba?
 

Imperial

Moderator
Code:
        __ClearWeaponRefineEffect();

        if (pItem->GetSubType() == CItemData::WEAPON_SWORD)
        {
            //NEW WEAPON - [New Effect] - NEW WEAPON
            DWORD vnum = pItem->GetIndex();
            if (vnum == ID) // Change "ID" to your Weapon ID
            {
                __AttachEffect(EFFECT_REFINED + EFFECT_SWORD_REFINED_SPECIAL1); // effect 24 NEW EFFECT
            }
            //End NEW WEAPON - [New Effect] - NEW WEAPON
        }
        if (refine < 6)    //ÇöÀç Á¦·Ãµµ 6 ÀÌ»ó¸¸ ÀÌÆåÆ®°¡ ÀÖ½À´Ï´Ù.
            return 0;
        switch(pItem->GetSubType())
        {
        case CItemData::WEAPON_DAGGER:
            m_swordRefineEffectRight = EFFECT_REFINED+EFFECT_SMALLSWORD_REFINED6+refine-6;
            m_swordRefineEffectLeft = EFFECT_REFINED+EFFECT_SMALLSWORD_REFINED6_LEFT+refine-6;
            break;
        case CItemData::WEAPON_FAN:
            m_swordRefineEffectRight = EFFECT_REFINED+EFFECT_FANBELL_REFINED6+refine-6;
            break;
        case CItemData::WEAPON_ARROW:
        case CItemData::WEAPON_BELL:
            m_swordRefineEffectRight = EFFECT_REFINED+EFFECT_SMALLSWORD_REFINED6+refine-6;
            break;
        case CItemData::WEAPON_BOW:
            m_swordRefineEffectRight = EFFECT_REFINED+EFFECT_BOW_REFINED6+refine-6;
            break;
        default:
            m_swordRefineEffectRight = EFFECT_REFINED+EFFECT_SWORD_REFINED6+refine-6;
        }
        if (m_swordRefineEffectRight)
            m_swordRefineEffectRight = __AttachEffect(m_swordRefineEffectRight);
        if (m_swordRefineEffectLeft)
            m_swordRefineEffectLeft = __AttachEffect(m_swordRefineEffectLeft);
        break;
 

Imperial

Moderator
Code:
            EFFECT_REFINED_NONE,

            EFFECT_SWORD_REFINED6,
            EFFECT_SWORD_REFINED7,
            EFFECT_SWORD_REFINED8,
            EFFECT_SWORD_REFINED9,

            EFFECT_BOW_REFINED6,
            EFFECT_BOW_REFINED7,
            EFFECT_BOW_REFINED8,
            EFFECT_BOW_REFINED9,

            EFFECT_FANBELL_REFINED6,
            EFFECT_FANBELL_REFINED7,
            EFFECT_FANBELL_REFINED8,
            EFFECT_FANBELL_REFINED9,

            EFFECT_SMALLSWORD_REFINED6,
            EFFECT_SMALLSWORD_REFINED7,
            EFFECT_SMALLSWORD_REFINED8,
            EFFECT_SMALLSWORD_REFINED9,

            EFFECT_SMALLSWORD_REFINED6_LEFT,
            EFFECT_SMALLSWORD_REFINED7_LEFT,
            EFFECT_SMALLSWORD_REFINED8_LEFT,
            EFFECT_SMALLSWORD_REFINED9_LEFT,

            EFFECT_BODYARMOR_REFINED7,
            EFFECT_BODYARMOR_REFINED8,
            EFFECT_BODYARMOR_REFINED9,

            EFFECT_SWORD_REFINED_SPECIAL1,    // NEW_WEAPON_EFFECT_24

            EFFECT_REFINED_NUM,
 

Imperial

Moderator
Code:
    chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+1, "PART_WEAPON", "D:/ymir work/pc/common/effect/sword/sword_7.mse")
    chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+2, "PART_WEAPON", "D:/ymir work/pc/common/effect/sword/sword_8.mse")
    chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+3, "PART_WEAPON", "D:/ymir work/pc/common/effect/sword/sword_9.mse")
    chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+4, "PART_WEAPON", "D:/ymir work/pc/common/effect/sword/sword_10.mse")

    chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+5, "PART_WEAPON_LEFT", "D:/ymir work/pc/common/effect/sword/sword_7_b.mse")
    chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+6, "PART_WEAPON_LEFT", "D:/ymir work/pc/common/effect/sword/sword_8_b.mse")
    chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+7, "PART_WEAPON_LEFT", "D:/ymir work/pc/common/effect/sword/sword_9_b.mse")
    chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+8, "PART_WEAPON_LEFT", "D:/ymir work/pc/common/effect/sword/sword_10_b.mse")

    chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+9, "PART_WEAPON", "D:/ymir work/pc/common/effect/sword/sword_7_f.mse")
    chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+10, "PART_WEAPON", "D:/ymir work/pc/common/effect/sword/sword_8_f.mse")
    chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+11, "PART_WEAPON", "D:/ymir work/pc/common/effect/sword/sword_9_f.mse")
    chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+12, "PART_WEAPON", "D:/ymir work/pc/common/effect/sword/sword_10_f.mse")

    chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+13, "PART_WEAPON", "D:/ymir work/pc/common/effect/sword/sword_7_s.mse")
    chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+14, "PART_WEAPON", "D:/ymir work/pc/common/effect/sword/sword_8_s.mse")
    chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+15, "PART_WEAPON", "D:/ymir work/pc/common/effect/sword/sword_9_s.mse")
    chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+16, "PART_WEAPON", "D:/ymir work/pc/common/effect/sword/sword_10_s.mse")

    chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+17, "PART_WEAPON_LEFT", "D:/ymir work/pc/common/effect/sword/sword_7_s.mse")
    chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+18, "PART_WEAPON_LEFT", "D:/ymir work/pc/common/effect/sword/sword_8_s.mse")
    chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+19, "PART_WEAPON_LEFT", "D:/ymir work/pc/common/effect/sword/sword_9_s.mse")
    chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+20, "PART_WEAPON_LEFT", "D:/ymir work/pc/common/effect/sword/sword_10_s.mse")

    chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+21, "Bip01", "D:/ymir work/pc/common/effect/armor/armor_7.mse")
    chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+22, "Bip01", "D:/ymir work/pc/common/effect/armor/armor_8.mse")
    chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+23, "Bip01", "D:/ymir work/pc/common/effect/armor/armor_9.mse")

    chrmgr.RegisterEffect(chrmgr.EFFECT_REFINED+24, "PART_WEAPON", "D:/ymir work/pc/common/effect/sword/YOUR_EFFECT.mse")
 

66Dragon99

Active member
há nem tom mi van ha a csaávaóú nem képes egyesével mind a harmcin hétmilliárd effektet eggye$É-vel betenni tagem?
Elvérzik a felénél és egy csecsemő sírását játssza be youtuberől, mialatt az ujját szopizva azon rimánkodik, hogy rossz a kód, nem érti hogy mit kell csinálnia meg ilyenek?
 
Megoldódott.
Apropó amit sanii felrakott kód hibás volt,(btw nem hibás csak a módosítandó fájlokba nem írt bele 1-2 dolgot,és a virusírtom a readme txt-t egyből virusosnak kezelte és nem birtam megnézni és abba volt a helyes megoldás)a leírása így utána jártam hol lehet a hiba és az egyik forumon ahol sanii tag,sőt premi tag leírta hogy mi a gond.
 
Top