Jump to content
×
×
  • Create New...
  • 0

Aura different colors m1, g1, p bug!


Krusty

Question

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

Link to comment
  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

4 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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.