Jump to content

Deliris

Developer
  • Posts

    162
  • Joined

  • Last visited

  • Days Won

    5
  • Feedback

    0%

Posts posted by Deliris

  1. M2 Download Center

    This is the hidden content, please
      ( Internal )
    This is the hidden content, please
     
    ( Github )

    Helloo!

    Someone asked if there's a way to scale buttons and since Metin2 doesn't support this by default, I decided to make this small tutorial.

     

    Spoiler

    265138F-r-titlu.png

     

    How to  use?
    
    your_button.SetScale(scaleWidth, scaleHeight)
    
    E.g:
    
    self.costumeButton.SetScale(0.7, 0.7)

     

    Sincerly,

    Finnis.

     

    • Metin2 Dev 64
    • kekw 1
    • Eyes 1
    • Angry 1
    • Confused 1
    • Lmao 1
    • Good 16
    • Love 4
    • Love 33
  2. 7 hours ago, peakzinho said:

    up

    thanks all :)

    Replace:
    	if (GuildID != 0)
                _snprintf(szBufName, sizeof(szBufName), "Name: %s - Guild: %s", CPythonPlayer::Instance().GetName(), &GuildName);
            else
                _snprintf(szBufName, sizeof(szBufName), "Name: %s", CPythonPlayer::Instance().GetName());
    With this:
    	if (GuildID != 0)
                _snprintf(szBufName, sizeof(szBufName), "Name: %s - Guild: %s", CPythonPlayer::Instance().GetName(), GuildName.c_str());
            else
                _snprintf(szBufName, sizeof(szBufName), "Name: %s", CPythonPlayer::Instance().GetName());
            
    	char szLevel[256];
    	_snprintf(szLevel, sizeof(szLevel), "Level: %u", CPythonPlayer::Instance().GetStatus(POINT_LEVEL));
    		
    	strcat(szBufName, szLevel);

     

  3. Regarding the discord RPC,  you could try something like this:

     

    #include "InstanceBase.h"
    #include "PythonCharacterManager.h"
      
    CInstanceBase* pkMainInstance = CPythonCharacterManager::Instance().GetMainInstancePtr();
    char info[32 + 1];
    snprintf(info, sizeof(info), "Level: %u", pkMainInstance->GetLevel());
    activity.SetDetails(info);
    
    /*
    You can get other player's informations such as player name, empire id, duel state, alignment, race, etc using the same object 'pkMainInstance', you can get a list of these functions from InstanceBase.h.
    */
     

     

     

    252709OrangeWarning.png'activity' is an object of type 'discord::Activity', you should adapt it to your source.

     

     

    • Metin2 Dev 1
  4. 2 hours ago, Sevence™ said:

    new team metin2dev definitely does not cope with the administration of this forum.

    nEw TeAm MeTiN2DeV dEfInEtLy DoEs NoT COpE WiTH thE AdmInIstRaTiON oF ThIS FoRuM

    On topic: The important thing is that is online now :D

    • Love 1
  5. Spoiler

    SYSERR: Jun 11 01:05:47.699160 :: Analyze: Handshake phase does not handle packet 3 (fd 17)
    SYSERR: Jun 11 01:05:47.699234 :: Process: SEQUENCE 35ce6300 mismatch 0xaf != 0x2f header 3
    SYSERR: Jun 11 01:05:47.699271 :: Process: SEQUENCE_LOG [UNKNOWN]-------------
        [003 : 0xaf]

    Fix sequence.

    Off: Next time use spoiler,  please.

    • Love 1
  6. 7 hours ago, Cripplez said:

    Ok I fixed all the syserr and now it is empty, but when i use the item 71032 it doesnt show this:

    self.probText.SetText(localeInfo.REFINE_SUCCESS_PROBALITY % (self.percentage2))

     

     

    Maybe it is not correct using this here for what I need?

    
    		if itemVnum == 71032:
    			self.probText.SetText(localeInfo.REFINE_SUCCESS_PROBALITY % (self.percentage2))
    		else:
    			self.probText.SetText(localeInfo.REFINE_SUCCESS_PROBALITY % (self.percentage))

    Maybe I'm wrong but I think you should make use of 'type' instead of itemVnum. You can get a list of all refine types from source.

  7. 32 minutes ago, Crital said:

    Mine server has .txt files for item_names and mob_names when I view them with WinSCP. What files should I edit to change the displayed text-ingame?

    Should I edit the files from WinSCP, with Navicat or both? I'm confused.

    Guess what?

    All of them + client item and mob_proto.

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