Jump to content

felipeard1

Developer
  • Posts

    325
  • Joined

  • Last visited

  • Days Won

    6
  • Feedback

    0%

Posts posted by felipeard1

  1. HI

    I need help with this

    mysql_query    / It works perfect

    Spoiler

    function Getlinebanco()
                local rows = mysql_query("SELECT COUNT(id) FROM x.x WHERE id='"..pc.get_player_id().."'")
                return tonumber(rows[1][1])
     end

    mysql_direct_query   / error

    Spoiler

    function Getlinebanco()
                local res1,rows = mysql_direct_query("SELECT COUNT(id) FROM x.x WHERE id='"..pc.get_player_id().."'limit 1;")
                return tonumber(rows[1][1])
     end

     

    In mysql_direct_query  it does not work

  2. It serves to open PNG

    Source Client

    1. Open folder ScriptLib 

    1. Open file Resource.cpp and look m_resManager.RegisterResourceNewFunctionPointer ("TGA" NewImage); and put down

    m_resManager.RegisterResourceNewFunctionPointer("png", NewImage);

    that can be opened with png images in png textures python and put in granny

    sorry speak english

    • Metin2 Dev 1
    • Good 1
    • Love 6
  3. You can do this for a GM too

    I guess this is so

    if (IsGameMaster())
    {
    	__AttachSelectEffectMonster(); // Effect Example
    }

    nice idea :) ... but like this you can't attach the horse with any of this effects .

    I guess this is so

    if (IsMounting())
    {
    	__AttachSelectEffectMonster();
     // Effect Example
    }

     

     

    • Love 1
  4. M2 Download Center

    This is the hidden content, please
    ( Internal )

    Spoiler

    28255390a2fbb9e9.png.a19b6906e51487de48d

     

    Is the color that appears to each character when selected or give click, this color is changed depending on the kingdom which is the pj, this same applies to the NPC.

    The mobs appear with a different effect to common and is a matter of each effect changes the color depending on individual taste

     

    [Source Binary]

     

    1. open InstanceBase.cpp in UserInterface

     

    Spoiler

    1.Search CInstanceBase :: OnSelected and replace everything:

    
    
    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();
    		}
    	}
    }

    2.Search CInstanceBase :: OnUnselected () and replace everything:

    
    
    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();
    	}
    }

    3. Search CInstanceBase :: OnTargeted () and replace everything:

    
    
    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();
    		}
    	}
    
    
    }

     

    4. Search CInstanceBase :: OnUntargeted () and replace everything:

     

    
    
    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. Open InstanceBase.h in UserInterface

     

    Spoiler

    1.Search EFFECT_EMOTICON_END = EFFECT_EMOTICON + EMOTICON_NUM, and put down:

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

    2.Search __DetachTargetEffect and put down that:

    
    
    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. Open InstanceBaseEffect.cpp in UserInterface

     

    Spoiler

    1.Search CInstanceBase :: __ StoneSmoke_Inialize and put up

    
    
    ///////////////////////////////////////////////////////////////////////
    
    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. Open PythonCharacterManagerModule.cpp in UserInterface

     

    Spoiler

    1.Search EFFECT_CRITICAL and placed under

    
    
    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);

     

    [Python Client]

     

    1. Open playersettingmodule.py in root:

     

    Spoiler

    1. Look up and place chrmgr.EFFECT_STUN

    
    
    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")

     

     

    Finally add eix epk and I leave at Download

     

    Img System

    90a2fbb9e9.png

     

    Credits: me :)

    Greetings!

     

    This is the hidden content, please

    • Metin2 Dev 40
    • Angry 1
    • Not Good 1
    • Smile Tear 1
    • Good 6
    • Love 1
    • Love 44
  5. M2 Download Center

    This is the hidden content, please
    ( Internal )

    Spoiler

    1456052.gif

     

    1. Open game.py in root

    Spoiler

    1.Search onPressKeyDict [app.DIK_Q] and settle down

    
    onPressKeyDict[app.DIK_P] = self.__PressPKey

    1456053.png

     

    2.Search app.RotateCamera(app.CAMERA_TO_NEGATIVE) and settle down

    
    def __PressPKey(self):
    	if app.IsPressed(app.DIK_LCONTROL) or app.IsPressed(app.DIK_RCONTROL):
    		if 0==interfaceModule.IsWisperHide:
    			interfaceModule.IsWisperHide = 1
    			self.interface.HideAllWhisperButton()
    		else:
    			interfaceModule.IsWisperHide= 0
    			self.interface.ShowAllWhisperButton()

     

    1456051.png

     

    2.Open interfacemodule.py in root

    Spoiler

    1.Search IsQBHide = 0 and settle down

    
     IsWisperHide = 0

     

    Pd: To hide press Ctrl p

    Greetings!

    • Metin2 Dev 7
    • Cry 1
    • Love 12
×
×
  • 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.