INTRODUCTION & PROBLEM
Hello, the issue we will be working on this time is actually important, it will prevent players from using mounts/horses in various PvP maps (Guild War, Arena, PvP Event Maps, etc. - in addition to these, OX and Wedding maps are among the banned maps-) or if they go to unwanted map while riding on a mount/horse, we will have them dismount/unsummon when they enter these maps. Although there are many topics about this in various places, none of them offer a complete solution, so I am sharing with you all the checks I have made for my own src.
WHY & WHAT DID WE CHANGE?
Especially in PvP-oriented maps such as Guild War map, it is generally undesirable for players to gain an advantage by using mounts/horses. To prevent this, we will add the necessary controls in the right places and create a function that includes maps where we do not want characters to use mounts/horses. (You can create a new case in this function and add the extra map index code if you want to include in the list, so it will be very easy to activate this obstacle on the map you want.)
ATTENTION!
1- I do not use the COSTUME_MOUNT system in my own src, so I wrote the codes accordingly while creating this topic, so if you are using this system, you should add the necessary controls to this system and adjust some of the controls I gave you (because some sections were written based on the old mount system) , otherwise it may not work correctly or effectively!
2- As I said during the explanation, add it below or above the code you are looking for (whichever I said in the explanation), their positions are important! Many codes have different placements, so while following this guide, make sure that you do not make any mistakes in the parts i mentioned above or below.
HOW TO DO?
First, open the "char.h" file.
Then open the "char_horse.cpp" file.
Then open the "char_item.cpp" file.
Then open the "cmd_general.cpp" file.
Then open the "cmd_gm.cpp" file.
Then open the "input_login.cpp" file.
Then open the "questlua_horse.cpp" file.
Then open the "questlua_pc.cpp" file.
We're done with src, now we need to edit on the SF side. First, open your quest file and open all your quests in the style of "ride_xxx.quest", especially "ride.quest", and do the following for all of them.
Finally open the "locale_string.txt" file
Best regards, MT2Dev.