Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --------------------------------------------------------------------------------------------------
- //////////////////////////////////////////////////////////////////////////////////////////////////
- --------------------------------------------------------------------------------------------------
- //UserInterface/PythonCharacterManagerModule.cpp
- // Find
- PyModule_AddIntConstant(poModule, "EFFECT_REFINED", CInstanceBase::EFFECT_REFINED);
- // Add below
- PyModule_AddIntConstant(poModule, "EFFECT_BOSS", CInstanceBase::EFFECT_BOSS);
- --------------------------------------------------------------------------------------------------
- //////////////////////////////////////////////////////////////////////////////////////////////////
- --------------------------------------------------------------------------------------------------
- //UserInterface/InstanceBase.cpp
- // Find
- RegisterBoundingSphere();
- // Add below
- uint32_t dwRank = CPythonNonPlayer::Instance().GetMonsterRank(c_rkCreateData.m_dwRace);
- uint32_t dwType = CPythonNonPlayer::Instance().GetMonsterType(c_rkCreateData.m_dwRace);
- if (dwRank >= 4 && dwType == 0)
- __AttachBossEffect();
- --------------------------------------------------------------------------------------------------
- //////////////////////////////////////////////////////////////////////////////////////////////////
- --------------------------------------------------------------------------------------------------
- //UserInterface/InstanceBase.h
- // Find
- EFFECT_TEMP,
- // Add below
- EFFECT_BOSS,
- /*
- NOTE:
- If the boss effect over head isn't displayed --> max limit of enum (276 - is default effect range done by ymir) is reached,
- so you probably placed the EFFECT_BOSS below EFFECT_NUM which determines range of enum.
- */
- // Find
- void __EffectContainer_Destroy();
- // Add below
- void __AttachBossEffect();
- --------------------------------------------------------------------------------------------------
- //////////////////////////////////////////////////////////////////////////////////////////////////
- --------------------------------------------------------------------------------------------------
- //UserInterface/InstanceBaseEffect.cpp
- // Find
- void CInstanceBase::__EffectContainer_DetachEffect(DWORD dwEftKey)
- // Add below as new function
- void CInstanceBase::__AttachBossEffect()
- {
- if (!__IsExistMainInstance())
- return;
- CInstanceBase* pkInstMain = __GetMainInstancePtr();
- if (IsWarp())
- return;
- if (IsObject())
- return;
- if (IsFlag())
- return;
- if (IsResource())
- return;
- __EffectContainer_AttachEffect(EFFECT_BOSS);
- }
- --------------------------------------------------------------------------------------------------
- //////////////////////////////////////////////////////////////////////////////////////////////////
- --------------------------------------------------------------------------------------------------
- //UserInterface/PythonNonPlayer.cpp
- // Find
- DWORD CPythonNonPlayer::GetMonsterColor(DWORD dwVnum)
- // Add below as new functions
- DWORD CPythonNonPlayer::GetMonsterType(DWORD dwVnum)
- {
- const CPythonNonPlayer::TMobTable* c_pTable = GetTable(dwVnum);
- if (!c_pTable)
- return 0;
- return c_pTable->bType;
- }
- DWORD CPythonNonPlayer::GetMonsterRank(DWORD dwVnum)
- {
- const CPythonNonPlayer::TMobTable* c_pTable = GetTable(dwVnum);
- if (!c_pTable)
- return 0;
- return c_pTable->bRank;
- }
- --------------------------------------------------------------------------------------------------
- //////////////////////////////////////////////////////////////////////////////////////////////////
- --------------------------------------------------------------------------------------------------
- //UserInterface/PythonNonPlayer.h
- // Find
- const char* GetMonsterName(DWORD dwVnum);
- // Add below
- DWORD GetMonsterType(DWORD dwVnum);
- DWORD GetMonsterRank(DWORD dwVnum);
- --------------------------------------------------------------------------------------------------
- //////////////////////////////////////////////////////////////////////////////////////////////////
- --------------------------------------------------------------------------------------------------
- //root/playersettingmodule.py
- //Find
- chrmgr.RegisterEffect(chrmgr.EFFECT_AFFECT+0, "Bip01", localeInfo.FN_GM_MARK)
- // Add below
- chrmgr.RegisterEffect(chrmgr.EFFECT_BOSS, "", "d:/ymir work/effect/etc/boss_effect/boss.mse")
- --------------------------------------------------------------------------------------------------
- //////////////////////////////////////////////////////////////////////////////////////////////////
- --------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement