Jump to content

Aura different colors m1, g1, p bug!


Recommended Posts

Hello im using this code for the different colors!

 

InstanceBaseEffect.cpp
 
Such nach: void CInstanceBase::__Warrior_SetGeomgyeongAffect(bool isVisible)
 
Ersetz die Funktion mit:
 

void CInstanceBase::__Warrior_SetGeomgyeongAffect(bool isVisible)
{
	if (isVisible)
	{
		if (IsWearingDress())
			return;
 
		if (m_kWarrior.m_dwGeomgyeongEffect)
			__DetachEffect(m_kWarrior.m_dwGeomgyeongEffect);
 
		m_GraphicThingInstance.SetReachScale(1.5f);
		UINT iEffect = EFFECT_WEAPON + WEAPON_ONEHAND;
		if (m_GraphicThingInstance.IsTwoHandMode())
		{
			iEffect = EFFECT_WEAPON + WEAPON_TWOHAND;
			DWORD dwSkillGrade = 0, dwSlotIndex = 0;
			if (CPythonPlayer::Instance().GetSkillSlotIndex(4, &dwSlotIndex))
			{
				if (dwSlotIndex < SKILL_MAX_NUM)
				{
					dwSkillGrade = CPythonPlayer::Instance().GetSkillGrade(dwSlotIndex);
					if (dwSkillGrade == 0)
						iEffect = EFFECT_AFFECT + 50;
					else if (dwSkillGrade == 1)
						iEffect = EFFECT_AFFECT + 51;
					else if (dwSkillGrade == 2)
						iEffect = EFFECT_AFFECT + 52;
					else if (dwSkillGrade == 3)
						iEffect = EFFECT_AFFECT + 53;
				}
			}
		}
		else
		{
			DWORD dwSkillGrade = 0, dwSlotIndex = 0;
			if (CPythonPlayer::Instance().GetSkillSlotIndex(4, &dwSlotIndex))
			{
				if (dwSlotIndex < SKILL_MAX_NUM)
				{
					dwSkillGrade = CPythonPlayer::Instance().GetSkillGrade(dwSlotIndex);
					if (dwSkillGrade == 0)
						iEffect = EFFECT_AFFECT + 50;
					else if (dwSkillGrade == 1)
						iEffect = EFFECT_AFFECT + 51;
					else if (dwSkillGrade == 2)
						iEffect = EFFECT_AFFECT + 52;
					else if (dwSkillGrade == 3)
						iEffect = EFFECT_AFFECT + 53;
				}
			}
		}
		
		m_kWarrior.m_dwGeomgyeongEffect = __AttachEffect(iEffect);
	}
	else
	{
		m_GraphicThingInstance.SetReachScale(1.0f);
 
		__DetachEffect(m_kWarrior.m_dwGeomgyeongEffect);
		m_kWarrior.m_dwGeomgyeongEffect=0;
	}
}
 
Geh in die Playersettingmodule und fueg folgendes ein:
 
chrmgr.RegisterEffect(chrmgr.EFFECT_AFFECT+50, "equip_right_hand", "d:/ymir work/pc/warrior/effect/Aura1-19.mse")
chrmgr.RegisterEffect(chrmgr.EFFECT_AFFECT+51, "equip_right_hand", "d:/ymir work/pc/warrior/effect/AuraM.mse")
chrmgr.RegisterEffect(chrmgr.EFFECT_AFFECT+52, "equip_right_hand", "d:/ymir work/pc/warrior/effect/AuraG.mse")
chrmgr.RegisterEffect(chrmgr.EFFECT_AFFECT+53, "equip_right_hand", "d:/ymir work/pc/warrior/effect/AuraP.mse")

As you see in the picture, if you have aura p you see all auras red, if you have aura m for example you the all auras in blue how can i fix this?

 

3b72640bcdac4683b1c86627b36cdf13.png

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 3 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

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.