-
Member
[Question] How to disable LFG Teleports in WOTLK TrinityCore
Hello, so i have a WOTLK server im working on, i want to make the Dungeon Finder match you up with a group of People but i wanna disable the part where the Dungeon Finder teleports you to the Dungeon, so people only get the group together quick, but they still have to travel to the dungeon and go in by themselves. How do i do this? Thank you
-
You can edit LFGMgr.cpp:
Code:
/**
Teleports the player in or out the dungeon
@param[in] player Player to teleport
@param[in] out Teleport out (true) or in (false)
@param[in] fromOpcode Function called from opcode handlers? (Default false)
*/
void LFGMgr::TeleportPlayer(Player* player, bool out, bool fromOpcode /*= false*/)
Something like:
Code:
void LFGMgr::TeleportPlayer(Player* player, bool out, bool fromOpcode /*= false*/)
{
player->GetSession()->SendLfgTeleportError(uint8(error));
return;
}
That might be all you need to change, there might be another place for when the queue pops.
-
Member
Im gonna try, but i can't believe i got answered by Stoneharry himself!
-
Member
Where do i find this File "LFGMgr.cpp" i searched in my Repack folders with the search tool and i did not find it
-
Originally Posted by
Peter2972
Where do i find this File "LFGMgr.cpp" i searched in my Repack folders with the search tool and i did not find it
You cannot edit this if you are using a repack.
What I quoted is one of the source code files in the emulator, which can be found here:
- TrinityCore/LFGMgr.cpp at 3.3.5 . TrinityCore/TrinityCore . GitHub
- TrinityCore/LFGMgr.cpp at 3.3.5 . TrinityCore/TrinityCore . GitHub
There is good documentation on how to compile and it is very achievable, but it is quite complicated for someone new to this:
- TrinityCore
- TrinityCore - TrinityCore Collaboration Platform
- Installation Guide - TrinityCore - TrinityCore Collaboration Platform
-
Post Thanks / Like - 1 Thanks
Peter2972 (1 members gave Thanks to stoneharry for this useful post)
-
Member
Hey, months have passed, i am now using a azeroth core compiled server 3.3.5a hosted. I went to the LFGMgr.cpp file and added your modifications, but it still teleports to dungeon, i then tested a lot of stuff on it and it still teleported to dungeon, so just for
curiosity i destroyed all the code in that file and it STILL TELEPORTED!, so clearly my changes aren't being applied to the server, is there something im doing wrong? I opened the file with Notepad++ and just edited it, afterwards i saved and restarted the server. What am i missing?
Last edited by Peter2972; 08-03-2021 at 09:54 AM.
-
Originally Posted by
Peter2972
Hey, months have passed, i am now using a azeroth core compiled server 3.3.5a hosted. I went to the LFGMgr.cpp file and added your modifications, but it still teleports to dungeon, i then tested a lot of stuff on it and it still teleported to dungeon, so just for
curiosity i destroyed all the code in that file and it STILL TELEPORTED!, so clearly my changes aren't being applied to the server, is there something im doing wrong? I opened the file with Notepad++ and just edited it, afterwards i saved and restarted the server. What am i missing?
The steps you followed to compile your server, you need to do that again. The cpp file contains source code that when compiled gets turned into your executable (exe) file.