Jump to content

Rinnegan

Member
  • Posts

    37
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Rinnegan

  1. I have improved the code about show/hide the compare tooltip because you need press the button alt before move the mouse over the item, my english isnt good but here you can see the fix:
    https://metin2.download/picture/Mjw4S503geClPBngGrip5FPFRJM8U59F/.gif

    Open uitooltip.py and find:

    		if app.__COMPARE_TOOLTIP__ and app.IsPressed(app.DIK_LALT) and not slotIndex >= player.EQUIPMENT_SLOT_START and CompareItem:
    			self.SetCompareItem(itemVnum)

    remove or comment that code

    now go to def OnUpdate(self):

    and over this code

    		if app.__COMPARE_TOOLTIP__:
    			if self.IsCompare:
    				return

    add:

    		if app.IsPressed(app.DIK_G):
    			if self.IsCompare:
    				return
    			if not self.CompareTooltip:
    				self.SetCompareItem(self.itemVnum)
    		else:
    			if self.CompareTooltip:
    				self.CompareTooltip.Hide()
    				self.IsCompare = False
    				self.CompareTooltip = None

    must see like this:
    https://metin2.download/picture/23J65uMbQ9S6Wod7I1JJU52X4asyBN5f/.png

    PD: I have changed the key to G because in key ALT i have the Rendertarget system and 2 systems made a bug in same key, but you can change the key to any you want.

     

    Thanks for the release.

     

    • Metin2 Dev 2
    • Angry 1
    • Love 2
  2. hace 1 hora, tierrilopes dijo:

    I make you responsible for future hate i will receive and i will forward my hospital bill to you.

    _____________________

    Copy-pasted:

    Open EterLib/ResourceManager.cpp and edit those:

    
    int g_iLoadingDelayTime = 1;
    
    const long c_Deleting_Wait_Time = 3600000*4;			// 3600000 = 1 h
    const long c_DeletingCountPerFrame = 1;
    const long c_Reference_Decrease_Wait_Time = 3600000*4;	// 3600000 = 1 h

    Search

    
    void CResourceManager::__DestroyCacheMap()

    and inside of it comment this 

    
    //m_pCacheMap.clear();

    Search in UserInterface\PythonCharacterManagerModule.cpp

    
    PyObject * chrmgrRegisterMotionData(PyObject* poSelf, PyObject* poArgs)

    Under

    
    CGraphicThing* pkMotionThing = pRaceData->RegisterMotionData(iMode, iMotion, c_szFullFileName, iWeight);

    Add

    
    	if (pkMotionThing)
    	{
    		CResourceManager::Instance().LoadStaticCache(pkMotionThing->GetFileName());
    		//TraceError(pkMotionThing->GetFileName());
    	}

    Search for from GameLib\RaceData.cpp

    
    void CRaceData::RegisterMotionMode(WORD wMotionModeIndex)

    Comment this

    
    //pMotionModeData->MotionVectorMap.clear();

    i dont have 
    CGraphicThing* pkMotionThing=pRaceData->RegisterMotionData(iMode, iMotion, c_szFullFileName, iWeight);
    in

    PyObject * chrmgrRegisterCacheMotionData(PyObject* poSelf, PyObject* poArgs)

    i already have it but in PyObject * chrmgrRegisterCacheMotionData(PyObject* poSelf, PyObject* poArgs)

    like that, its okey?

    thanks for answer

    image.png.dafd68971ddedaebd99ca126eb7530ad.png

  3. Hi, im testing the code mysql_direct_query but i have problem with the table, here the problem:
    With mysql_query normal:
    ZMo5yti.png

    With direct_mysql_query:
    rUimNW1.png

    and say that error:

    dn0w8Nn.png

    is too strange because i can insert, remove or getn from the table without errors but this not working.. can any try to fix that? thanks for read!

  4.  

    Spoiler

    220249qDAKjis.gif.0a0cba3450e627601450ba

     

    but have 1 error, i fix and work for me

    go to char.cpp

    search: case APPLY_MAX_HP:

    and replace with this

     

    		case APPLY_MAX_HP:
    		case APPLY_MAX_HP_PCT:
    			{
    				if(GetMaxHP() == 0) break;
    				PointChange(aApplyInfo[bApplyType].bPointType, iVal);
    			}
    			break;
    
    		case APPLY_MAX_SP:
    		case APPLY_MAX_SP_PCT:
    			{
    				if(GetMaxSP() == 0) break;
    				PointChange(aApplyInfo[bApplyType].bPointType, iVal);
    			}
    			break;
    

     

    https://metin2.download/picture/Yz9XCRAwXN13MF7005uxjT42h81OoG31/.png

    next search: case POINT_MAX_HP: and case POINT_MAX_SP:  (line3309)

    replace with this

     

    		case POINT_MAX_HP:
    			{
    				SetPoint(type, GetPoint(type) + amount);
    				int curMaxHP = GetMaxHP();
    				int hp = GetRealPoint(POINT_MAX_HP);
    				int add_hp = MIN(3500, hp * GetPoint(POINT_MAX_HP_PCT) / 100);
    				add_hp += GetPoint(POINT_MAX_HP);
    				add_hp += GetPoint(POINT_PARTY_TANKER_BONUS);
    				SetMaxHP(hp + add_hp);
    				float fRatio = (float)GetMaxHP() / (float)curMaxHP;
    				PointChange(POINT_HP, GetHP() * fRatio - GetHP());
    				val = GetMaxHP();
    			}
    			break;
    
    		case POINT_MAX_SP:
    			{
    				SetPoint(type, GetPoint(type) + amount);
    				int curMaxSP = GetMaxSP();
    				int sp = GetRealPoint(POINT_MAX_SP);
    				int add_sp = MIN(800, sp * GetPoint(POINT_MAX_SP_PCT) / 100);
    				add_sp += GetPoint(POINT_MAX_SP);
    				add_sp += GetPoint(POINT_PARTY_SKILL_MASTER_BONUS);
    				SetMaxSP(sp + add_sp);
    				float fRatio = (float)GetMaxSP() / (float)curMaxSP;
    				PointChange(POINT_SP, GetSP() * fRatio - GetSP());
    				val = GetMaxSP();
    			}
    			break;
    

     

    https://metin2.download/picture/5AO4aitX8wviTK15G11o25s0gkKr2zsQ/.png

    thats all.

    • Metin2 Dev 2
    • Love 8
  5. i try this

    but the coins not actualize in the client,

    and i put this in the def for see if  yes work, but the message "lol" not see in my screen, this means that the def is never activated

    	def Binary_Update_Coins(self,coins):
    		import dbg
    		dbg.LogBox("lol")
    		constInfo.mds3 = int(coins)
    

    any idea for fix? thanks.

     

     

     

    sorry my bad english, i speak spanish.

×
×
  • 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.