AprendizM2 Posted March 18, 2018 at 09:22 PM Share Posted March 18, 2018 at 09:22 PM (edited) 1. abrir InstanceBase.cpp em /UserInterface Buscar CInstanceBase::OnSelected e colar : 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(); } } } Buscar CInstanceBase::OnUnselected() e colar: 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(); } } Buscar CInstanceBase::OnTargeted() e colar: 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(); } } } Buscar CInstanceBase::OnUntargeted() e colar: 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(); } } 2.abrir InstanceBase.h en UserInterface Buscar EFFECT_EMOTICON_END = EFFECT_EMOTICON + EMOTICON_NUM, y abajo colocamos : EFFECT_MONSTER, EFFECT_SHINSOO, EFFECT_CHUNJO, EFFECT_JINNOS, EFFECT_TARGET_SHINSOO, EFFECT_TARGET_JINNOS, EFFECT_TARGET_CHUNJO, EFFECT_TARGET_MONSTER, Buscar __DetachTargetEffect e apos colar : 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(); 3.Abrir InstanceBaseEffect.cpp en UserInterface Buscar CInstanceBase::__StoneSmoke_Inialize y arriba colocamos /////////////////////////////////////////////////////////////////////// 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); } ///////////////////////////////////////////////////////////// 4.Abrir PythonCharacterManagerModule.cpp em UserInterface Buscamos EFFECT_CRITICAL y debajo colocamos 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); Apos edição da source vamos ao cliente 1.Abrimos playersettingmodule.py em root Buscamos chrmgr.EFFECT_STUN e acima colar : 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") compilar cliente e binario e desfrutar. Edited March 18, 2018 at 09:30 PM by AprendizM2 Link to comment Share on other sites More sharing options...
GODSPEED Posted March 18, 2018 at 09:30 PM Share Posted March 18, 2018 at 09:30 PM Não entendi o que isso faz? Link to comment Share on other sites More sharing options...
AprendizM2 Posted March 18, 2018 at 09:31 PM Author Share Posted March 18, 2018 at 09:31 PM Just now, GODSPEED said: Não entendi o que isso faz? olha img Link to comment Share on other sites More sharing options...
GODSPEED Posted March 18, 2018 at 09:32 PM Share Posted March 18, 2018 at 09:32 PM Agora, AprendizM2 disse: olha img ah ok entendi xD, a imagem tava a carregar my bad xD Link to comment Share on other sites More sharing options...
AprendizM2 Posted March 18, 2018 at 09:35 PM Author Share Posted March 18, 2018 at 09:35 PM 2 minutes ago, GODSPEED said: ah ok entendi xD, a imagem tava a carregar my bad xD hahah mete upvote se ajudou ;D Link to comment Share on other sites More sharing options...
GODSPEED Posted March 18, 2018 at 09:36 PM Share Posted March 18, 2018 at 09:36 PM Agora, AprendizM2 disse: hahah mete upvote se ajudou ;D Não mecho com metin faz tempo ahhahaah, mas ta ai o upvote Link to comment Share on other sites More sharing options...
Marcos Posted March 18, 2018 at 11:20 PM Share Posted March 18, 2018 at 11:20 PM Apesar de ter esse sistema há alguns anos deixo meu upvote, pois quem está a começar vai lhes servir e muito. Link to comment Share on other sites More sharing options...
OnlineVip Posted May 2, 2021 at 03:25 PM Share Posted May 2, 2021 at 03:25 PM OO Link to comment Share on other sites More sharing options...
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 accountSign in
Already have an account? Sign in here.
Sign In Now