Jump to content

Metin2 | Mount System Renewal


Recommended Posts

M2 Download Center

This is the hidden content, please
( Internal )

Description :

  • The mount will follow you.
  • The bonuses is set from item_proto.
     

https://metin2.download/picture/559sESZ3iBgtGvKZV5fkd22h0KmHibi8/.gif
https://metin2.download/picture/XSOe492wbEm296xZxCQd5diJ59zmJAl9/.gif

https://metin2.download/picture/m8KttSHiYiJR5BBdl9MR0j0gyT937oBY/.gif

 

Code is based on default pet code from Ymir, i don't offer support for extra features, details, anyway easy for use.
(Sorry for tutorial, not so perfect.)


Download (Reupload):

This is the hidden content, please

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 290
  • kekw 2
  • Eyes 6
  • Angry 2
  • Sad 2
  • Smile Tear 1
  • Think 2
  • Confused 4
  • Lmao 1
  • Good 110
  • Love 15
  • Love 184
Link to comment
Share on other sites

"

///add:
#ifdef ENABLE_MOUNT_COSTUME_SYSTEM
#include "MountSystem.h"
#endif

///search:
    if (g_noticeBattleZone)
    {
        if (FN_is_battle_zone(ch))
        {
            ch->ChatPacket(CHAT_TYPE_NOTICE, LC_TEXT("? ??? ???? ??? ??? ? ????."));
            ch->ChatPacket(CHAT_TYPE_NOTICE, LC_TEXT("? ??? ???? ???"));
            ch->ChatPacket(CHAT_TYPE_NOTICE, LC_TEXT("??? ?? ? ???? ????? ????."));
        }
    }

///add:
#ifdef ENABLE_MOUNT_COSTUME_SYSTEM
    if (ch->GetMapIndex() != 113 && CArenaManager::instance().IsArenaMap(ch->GetMapIndex()) == false)
    {
        ch->CheckMount();
    }
#endif

///search:
    else if (ch->GetMapIndex() == 113)
    {
#ifdef ENABLE_MOUNT_COSTUME_SYSTEM
        if (ch->IsHorseRiding() == true)
        {
            ch->StopRiding();
            ch->HorseSummon(false);
        }

        ch->RemoveAffect(AFFECT_MOUNT);
        ch->RemoveAffect(AFFECT_MOUNT_BONUS);
        if (ch->IsRiding())
            ch->StopRiding();
#endif
///add:


///search:


///add:


///search:


///add:

"

 

why? :(

Link to comment
Share on other sites

https://pastebin.com/eHXxUSt

 

 

  1. 01. Search :
  2. #include "priv_manager.h"
  3.  
  4. 01. Add after :
  5.  
  6. #ifdef ENABLE_MOUNT_COSTUME_SYSTEM
  7. #include "MountSystem.h"
  8. #endif
  9.  
  10.  
  11. 02. Search :
  12.  
  13.     if (g_noticeBattleZone)
  14.     {
  15.                 ...
  16.     }
  17.    
  18. 02. Add after :
  19.  
  20. #ifdef ENABLE_MOUNT_COSTUME_SYSTEM
  21.     if (ch->GetMapIndex() != 113 && CArenaManager::instance().IsArenaMap(ch->GetMapIndex()) == false)
  22.     {
  23.         ch->CheckMount();
  24.     }
  25. #endif

c

  • Metin2 Dev 8
  • Think 1
  • Good 5
  • Love 2
Link to comment
Share on other sites

  • 2 weeks later...
  • 3 months later...

Why you did not do this? Isn't it simplier this way ?

		m_stateIdle.Set(this, &CHARACTER::BeginStateEmpty, &CHARACTER::StateHorse, &CHARACTER::EndStateEmpty);
		m_stateMove.Set(this, &CHARACTER::BeginStateEmpty, &CHARACTER::StateMove, &CHARACTER::EndStateEmpty);
		m_stateBattle.Set(this, &CHARACTER::BeginStateEmpty, &CHARACTER::StateHorse, &CHARACTER::EndStateEmpty);
		//Instead of StateHorse create a new one inside char_state called StateMount or sth same for StateMove

 

  • Love 1
Link to comment
Share on other sites

  • 1 month later...
4 hours ago, raihan3 said:

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

how can i solve this after followed this tutorial everything fine just mount come 2 

mount_system.quest delete...

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 1
  • Angry 1
Link to comment
Share on other sites

  • 2 weeks later...

Announcements



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