Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Forbid summon players if they are in prison #65

Open
Tony931023 opened this issue Apr 18, 2022 · 6 comments
Open

Feature: Forbid summon players if they are in prison #65

Tony931023 opened this issue Apr 18, 2022 · 6 comments
Labels
Enhancement Idea to improve upon the anticheat module. Role Play Feature described as Role Play and will not be a priority of any kind. Suggestion Suggestions to change or handle something differently.

Comments

@Tony931023
Copy link

Tony931023 commented Apr 18, 2022

Describe your feature request or suggestion in detail

Testing various antihack-module jailbreaks, we found that if a GM gives .summon to a player he is jailbroken and to avoid this, he asked if something could be added to the source code in the command. summon to prohibit this bug
More information in this Issues #59

@acidmanifesto

Describe a possible solution to your feature or suggestion in detail

  • Implement some function or some flag inside cs_misc.cpp
  • something like this:
if (map->IsBattlegroundOrArena())
            {
                handler->PSendSysMessage("Can't summon to a battleground!");
                handler->SetSentErrorMessage(true);
                return false;
            }

that prohibits giving .summon to a player if he is in arena o BG

Additional context

I don't know if I've explained myself well, it's just a suggestion to be valued, and sorry for my bad English, it's not my main language.

AC rev. hash/commit

AzerothCore rev. 4ac565699fcb 2022-04-13 11:57:04 +0000 (master branch) (Unix, RelWithDebInfo, Static)

@Tony931023 Tony931023 added the Suggestion Suggestions to change or handle something differently. label Apr 18, 2022
@acidmanifesto
Copy link

this will be more of a issue or suggestion for the anticheat module git, as implementing select things fo this case will not be a core subject. currently there is some research for the jailing feature's improvements. so far we got the bg\arena\lfg\lfr jailbreak queues fixed. but as for gm summons. the issue will is that GM's are suppose to play the role as the disciplinary committee and therefor should be handling the punishment and the release.

@Nyeriah
Copy link
Member

Nyeriah commented Apr 18, 2022

Sounds like roleplay to me, and in that case, yes, maybe it should go to a module? Or GMs need to check where people are at before summoning...

@acidmanifesto
Copy link

Sounds like roleplay to me, and in that case, yes, maybe it should go to a module? Or GMs need to check where people are at before summoning...

pretty much what i suggested in my comment that this is more of a issue or suggestions for the anticheat module git.

@acidmanifesto acidmanifesto transferred this issue from azerothcore/azerothcore-wotlk Apr 18, 2022
@acidmanifesto
Copy link

acidmanifesto commented Apr 18, 2022

Issued transfered to Anticheat Module GIt, that way we dont have to bother with the whole close and reopen the issue on another git.

@acidmanifesto acidmanifesto added the Enhancement Idea to improve upon the anticheat module. label Apr 18, 2022
@acidmanifesto
Copy link

acidmanifesto commented Apr 18, 2022

@Tony931023 a quick solution for your local would be to place the code at https://github.com/azerothcore/azerothcore-wotlk/blob/03a6413080752294bd47b9e4e9ef0287dc1d4833/src/server/scripts/Commands/cs_misc.cpp#L853

Code:

           Player* player;
            if (player->GetSession()->GetSecurity() == SEC_PLAYER && player->GetAreaId() == 876)
            {
                handler->PSendSysMessage("User is Jailed!");
                handler->SetSentErrorMessage(true);
                return false;
            }

That will prevent a level 0 normal player account from not being summoned if they are in the area 876 gm island. the gm jail is actually inside the tall mountain behind the gm cabin. however i am not certain if the parole command will override it which can only be done by a level 3 gm account. But try it out and let me know how it goes. I can not see how to add this is in the module as that summon gm cmd is apart of the core itself. so i am not entirely certain if they will allow such a edit or change to the core it self for the auto jailing.

@acidmanifesto
Copy link

@Tony931023 i updated the above code slightly to include a message on error, obviosuly feel free to adjust it to your locale and liking.

@acidmanifesto acidmanifesto added the Role Play Feature described as Role Play and will not be a priority of any kind. label Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Idea to improve upon the anticheat module. Role Play Feature described as Role Play and will not be a priority of any kind. Suggestion Suggestions to change or handle something differently.
Projects
None yet
Development

No branches or pull requests

3 participants