Jump to content

Recommended Posts

Hello guys,

I tried to fix a bug when you teleport and you are riding a mount the mount disapear.

I added this code to char_item.cpp

#ifdef __MOUNT_SYSTEM__
                    case USE_MOUNT:
                    {
                        if (Mount_map_unallowed_find(GetMapIndex()))
                        {
                            ChatPacket(CHAT_TYPE_INFO, "Nu poti folosii mountul in aceasta mapa!");
                            return false;
                        }
                        
                        if ((item->GetWearFlag() & WEARABLE_COSTUME_MOUNT))
                        {
                            if (!item->IsEquipped())
                                EquipItem(item);
                            else
                                UnequipItem(item);
                        }
                        else
                        {
                            if (IsRidingMount())
                            {
                                ChatPacket(CHAT_TYPE_INFO, "Ai un mount chemat deja!");
                                return false;
                            }
                            
                            int mount_effect = item->GetValue(5);
                            if (mount_effect > 0)
                                this->EffectPacket(mount_effect);
                            
                            Mount(item->GetValue(4), false, item->GetValue(0) * 60, item->GetNewAttributeType(0), item->GetNewAttributeValue(0));
                            item->SetCount(item->GetCount() - 1);
                        }                    
                    
                    }
                    break;
#endif

 

Now the problem is solved, when i teleport the mount does not disappear but:

 

1. CTRL + G / CTRL + H dosent work only when im riding. It says "Call your horse first". (for dismount it works)

2. When i have a mount equiped and i try to disequip it by right clicking on it, the item goes in inventory but the mount is still active.

eSoagJL.png

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/15926-mount-system-problem/
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.