[c++] Target és választás szín

Indította Samurai, 2015-11-11, 18:22:24

2015-11-11, 18:22:24 Utolsó szerkesztés: 2016-02-21, 19:33:34 Szerző: gterx
Indító forrás

InstanceBase.cpp

Keressetek rá erre:

CInstanceBase::OnSelected

Az egész funkciót cseréljétek le erre:

void CInstanceBase::OnSelected()
{
#ifdef __MOVIE_MODE__
if (!__IsExistMainInstance())
return;
#endif

if (IsStoneDoor())
return;

if (IsDead())
return;

if (IsEnemy())
{
__AttachSelectEffectMonster();
}

if (IsPC() || IsNPC())
{
if (m_dwEmpireID == 1) // Shinshoo
{
__AttachSelectEffectShinsoo();
}
else if (m_dwEmpireID == 2) // chunjo
{
__AttachSelectEffectChunjo();
}
else if (m_dwEmpireID == 3)//Jinnos
{
__AttachSelectEffectJinnos();
}
}
}


Keressetek rá erre:

CInstanceBase::OnUnselected()

Cseréljétek le a funkciót erre:

void CInstanceBase::OnUnselected()
{
//__DetachSelectEffect();


if (IsPC() || IsNPC())
{
if (m_dwEmpireID == 1) //Shinsoo
{
__DetachSelectEffectShinsoo();
}
else if (m_dwEmpireID == 2)//Chunjo
{
__DetachSelectEffectChunjo();
}
else if (m_dwEmpireID == 3)//Jinnnos
{
__DetachSelectEffectJinnos();
}
}
if (IsEnemy())
{
__DetachSelectEffectMonster();
}
}


Keresetek rá erre:

CInstanceBase::OnTargeted()

Az egész funkciót cseréljétek le erre:

void CInstanceBase::OnTargeted()
{
#ifdef __MOVIE_MODE__
if (!__IsExistMainInstance())
return;
#endif

if (IsStoneDoor())
return;

if (IsDead())
return;

if (IsEnemy())
{
__AttachTargetEffectMonster();
}

if (IsPC() || IsNPC())
{
if (m_dwEmpireID == 1) //Shinsoo
{
__AttachTargetEffectShinsoo();
}
else if (m_dwEmpireID == 2)//Chunjo
{
__AttachTargetEffectChunjo();
}
else if (m_dwEmpireID == 3)//Jinnnos
{
__AttachTargetEffectJinnos();
}
}


}


Keressetek rá erre:

CInstanceBase::OnUntargeted()

Az egész funkciót cseréljétek le erre:

void CInstanceBase::OnUntargeted()
{

if (IsPC() || IsNPC())
{
if (m_dwEmpireID == 1) //Shinsoo
{
__DetachTargetEffectShinsoo();
}
else if (m_dwEmpireID == 2)//Chunjo
{
__DetachTargetEffectChunjo();
}
else if (m_dwEmpireID == 3)//Jinnnos
{
__DetachTargetEffectJinnos();
}
}
if (IsEnemy())
{
__DetachTargetEffectMonster();
}
}


Instancebase.h-t nyissátok meg:

Keressetek rá erre:

EFFECT_EMOTICON + EMOTICON_NUM

Alá adjátok ezt:

EFFECT_MONSTER,
EFFECT_SHINSOO,
EFFECT_CHUNJO,
EFFECT_JINNOS,
EFFECT_TARGET_SHINSOO,
EFFECT_TARGET_JINNOS,
EFFECT_TARGET_CHUNJO,
EFFECT_TARGET_MONSTER,


Keressetek rá erre:

__DetachTargetEffect

Alá adjátok ezt:

void __AttachTargetEffectMonster();
void __DetachTargetEffectMonster();
void __AttachSelectEffectMonster();
void __DetachSelectEffectMonster();

void __AttachTargetEffectShinsoo();
void __DetachTargetEffectShinsoo();
void __AttachSelectEffectShinsoo();
void __DetachSelectEffectShinsoo();

void __AttachTargetEffectJinnos();
void __DetachTargetEffectJinnos();
void __AttachSelectEffectJinnos();
void __DetachSelectEffectJinnos();

void __AttachTargetEffectChunjo();
void __DetachTargetEffectChunjo();
void __AttachSelectEffectChunjo();
void __DetachSelectEffectChunjo();


InstanceBaseEffect.cpp-t nyissátok meg.

Keressetek rá erre:

CInstanceBase::__StoneSmoke_Inialize

Adjátok alá ezt:

///////////////////////////////////////////////////////////////////////

void CInstanceBase::__AttachSelectEffectMonster()
{
__EffectContainer_AttachEffect(EFFECT_MONSTER);
}
void CInstanceBase::__DetachSelectEffectMonster()
{
__EffectContainer_DetachEffect(EFFECT_MONSTER);
}
void CInstanceBase::__AttachTargetEffectMonster()
{
__EffectContainer_AttachEffect(EFFECT_TARGET_MONSTER);
}
void CInstanceBase::__DetachTargetEffectMonster()
{
__EffectContainer_DetachEffect(EFFECT_TARGET_MONSTER);
}

/////////////////////////////////////////////////////////////

void CInstanceBase::__AttachSelectEffectShinsoo()
{
__EffectContainer_AttachEffect(EFFECT_SHINSOO);
}
void CInstanceBase::__DetachSelectEffectShinsoo()
{
__EffectContainer_DetachEffect(EFFECT_SHINSOO);
}
void CInstanceBase::__AttachTargetEffectShinsoo()
{
__EffectContainer_AttachEffect(EFFECT_TARGET_SHINSOO);
}
void CInstanceBase::__DetachTargetEffectShinsoo()
{
__EffectContainer_DetachEffect(EFFECT_TARGET_SHINSOO);
}

/////////////////////////////////////////////////////////////

void CInstanceBase::__AttachSelectEffectChunjo()
{
__EffectContainer_AttachEffect(EFFECT_CHUNJO);
}
void CInstanceBase::__DetachSelectEffectChunjo()
{
__EffectContainer_DetachEffect(EFFECT_CHUNJO);
}
void CInstanceBase::__AttachTargetEffectChunjo()
{
__EffectContainer_AttachEffect(EFFECT_TARGET_CHUNJO);
}
void CInstanceBase::__DetachTargetEffectChunjo()
{
__EffectContainer_DetachEffect(EFFECT_TARGET_CHUNJO);
}

/////////////////////////////////////////////////////////////

void CInstanceBase::__AttachSelectEffectJinnos()
{
__EffectContainer_AttachEffect(EFFECT_JINNOS);
}
void CInstanceBase::__DetachSelectEffectJinnos()
{
__EffectContainer_DetachEffect(EFFECT_JINNOS);
}
void CInstanceBase::__AttachTargetEffectJinnos()
{
__EffectContainer_AttachEffect(EFFECT_TARGET_JINNOS);
}
void CInstanceBase::__DetachTargetEffectJinnos()
{
__EffectContainer_DetachEffect(EFFECT_TARGET_JINNOS);
}

/////////////////////////////////////////////////////////////


PythonCharacterManagerModule.cpp-t nyissátok meg:

Keressetek rá erre:

EFFECT_CRITICAL

Adjátok alá ezt:

PyModule_AddIntConstant(poModule, "EFFECT_MONSTER", CInstanceBase::EFFECT_MONSTER);
PyModule_AddIntConstant(poModule, "EFFECT_TARGET_MONSTER", CInstanceBase::EFFECT_TARGET_MONSTER);
PyModule_AddIntConstant(poModule, "EFFECT_SHINSOO", CInstanceBase::EFFECT_SHINSOO);
PyModule_AddIntConstant(poModule, "EFFECT_TARGET_SHINSOO", CInstanceBase::EFFECT_TARGET_SHINSOO);
PyModule_AddIntConstant(poModule, "EFFECT_CHUNJO", CInstanceBase::EFFECT_CHUNJO);
PyModule_AddIntConstant(poModule, "EFFECT_TARGET_CHUNJO", CInstanceBase::EFFECT_TARGET_CHUNJO);
PyModule_AddIntConstant(poModule, "EFFECT_JINNOS", CInstanceBase::EFFECT_JINNOS);
PyModule_AddIntConstant(poModule, "EFFECT_TARGET_JINNOS", CInstanceBase::EFFECT_TARGET_JINNOS);



Kliens - python fájlok

playersettingmodule.py-t nyissátok meg. (root-ban van)

Keressetek rá erre:

chrmgr.EFFECT_STUN

Adjátok alá ezt:

chrmgr.RegisterCacheEffect(chrmgr.EFFECT_SHINSOO, "", "d:/ymir work/effect/world/shinsoo_select.mse")
chrmgr.RegisterCacheEffect(chrmgr.EFFECT_TARGET_SHINSOO, "", "d:/ymir work/effect/world/shinsoo_glow_select.mse")
chrmgr.RegisterCacheEffect(chrmgr.EFFECT_CHUNJO, "", "d:/ymir work/effect/world/chunjo_select.mse")
chrmgr.RegisterCacheEffect(chrmgr.EFFECT_TARGET_CHUNJO, "", "d:/ymir work/effect/world/chunjo_glow_select.mse")
chrmgr.RegisterCacheEffect(chrmgr.EFFECT_JINNOS, "", "d:/ymir work/effect/world/jinnos_select.mse")
chrmgr.RegisterCacheEffect(chrmgr.EFFECT_TARGET_JINNOS, "", "d:/ymir work/effect/world/jinnos_glow_select.mse")
chrmgr.RegisterCacheEffect(chrmgr.EFFECT_MONSTER, "", "d:/ymir work/effect/world/mob_select.mse")
chrmgr.RegisterCacheEffect(chrmgr.EFFECT_TARGET_MONSTER, "", "d:/ymir work/effect/world/mob_glow_select.mse")


Fájlokat amiket csatolok rakjátok be a pack mappába és írjátok be az indexbe.

KÉP:

ElsÅ' az elsÅ'k között, Az emberek istent játszanak engedély nélkül.