[Question] How to disable LFG Teleports in WOTLK TrinityCore menu

User Tag List

Results 1 to 7 of 7
  1. #1
    Peter2972's Avatar Member
    Reputation
    1
    Join Date
    Mar 2021
    Posts
    12
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [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

    [Question] How to disable LFG Teleports in WOTLK TrinityCore
  2. #2
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    150/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    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.

  3. #3
    Peter2972's Avatar Member
    Reputation
    1
    Join Date
    Mar 2021
    Posts
    12
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Im gonna try, but i can't believe i got answered by Stoneharry himself!

  4. #4
    Peter2972's Avatar Member
    Reputation
    1
    Join Date
    Mar 2021
    Posts
    12
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Where do i find this File "LFGMgr.cpp" i searched in my Repack folders with the search tool and i did not find it

  5. #5
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    150/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Peter2972 View Post
    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

  6. Thanks Peter2972 (1 members gave Thanks to stoneharry for this useful post)
  7. #6
    Peter2972's Avatar Member
    Reputation
    1
    Join Date
    Mar 2021
    Posts
    12
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  8. #7
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    150/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Peter2972 View Post
    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.

Similar Threads

  1. How to disable screen capture in TH?
    By Gilavar in forum TurboHUD Discussions
    Replies: 3
    Last Post: 08-30-2018, 10:36 AM
  2. [How-To] how to disable pokesniper ticker in shoutbox
    By NetAnt in forum Pokemon GO Chat
    Replies: 3
    Last Post: 08-12-2016, 02:25 AM
  3. [Question] How to disable Npc rendering
    By hamburger12 in forum WoW Memory Editing
    Replies: 12
    Last Post: 08-17-2013, 12:02 AM
  4. [QUESTION] How to change the slime in UC
    By BACKABACKA in forum WoW ME Questions and Requests
    Replies: 7
    Last Post: 08-06-2008, 11:03 AM
  5. [Question] How to add multiple files in MWCS
    By Randie in forum WoW ME Questions and Requests
    Replies: 7
    Last Post: 04-21-2008, 03:52 PM
All times are GMT -5. The time now is 01:39 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search