• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Solo Dungeon

Status
Not open for further replies.

Tommy

Founder
Hmm... There's something weird going on, you sure that it's the right code.

It some kind of only works for me if i use
Code:
if (player->isGameMaster() || GetId() == 389 && !player->GetGroup())

        return Map::CanEnter(player); 
sLog->outDetail("MAP: Instance '%u' of map '%s' cannot have more than '%u' players. Player '%s' rejected", GetInstanceId(), GetMapName(), player->GetName());
        player->SendTransferAborted(GetId(), TRANSFER_ABORT_MAX_PLAYERS);
                    return false;

AND that will make it a one mans instance in all instances, so that might not work correctly.

If i use if (player->isGameMaster() || GetId() == 389 && !player->GetGroup())

return Map::CanEnter(player); Then nothing happens at all.

You aren't suppose to put it there..

It goes here, in that if statement: http://prntscr.com/12elb4

You don't alter any of the 'CanEnter' code except the statement I SS. :p
 

ExonatioN

Noble Member
There's something weird going on. Hamar tried to help me as well, we used the same code and that, it worked great on he's 3.3.5 trinitycore, you couldn't enter and it said the instance was full:
http://scr.hu/0jhi/k3303


But on mine, I get an error on worldserver (not crash) Map 389 could not be created for player xx, porting player to homebind.

And then I either get bugged and have to reopen wow to fix it, OR i'll get to my homebind, depends.
 

Hamar

BETA Tester
Seems that player is first teleported and then checks checked in result of complete failure.
 
Last edited:

Tommy

Founder
There's something weird going on. Hamar tried to help me as well, we used the same code and that, it worked great on he's 3.3.5 trinitycore, you couldn't enter and it said the instance was full:
http://scr.hu/0jhi/k3303


But on mine, I get an error on worldserver (not crash) Map 389 could not be created for player xx, porting player to homebind.

And then I either get bugged and have to reopen wow to fix it, OR i'll get to my homebind, depends.

Why are you in a group? Are you testing to see if it doesn't let you in if you are? I'll see if I can test this further later on.
 
Status
Not open for further replies.
Top