Closed n4ndo closed 7 years ago
isn't that OnCreatureCreate() is called when there are no players yet in the instance ?
Hello @jackpoz, so how exactly works this part? https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/server/scripts/Northrend/IcecrownCitadel/instance_icecrown_citadel.cpp#L187
cuz in that case =>
if (TeamInInstance == ALLIANCE)
never be true.
Thanks for your time.
It's an additional check in case that void OnPlayerEnter(Player* player) override is not going to work properly for example if you enter the instance by logging in for example.
i see, so i dont understand why testing as ally, everytime i have Garrosh instead Varian :/
GM mode should affect?
GM mode (GM ON) invalidates testing because the player character will not have the right faction value.
So weird, just re-test.
Garrosh appear. :/
I also try do some test like:
cannot reproduce:
Hello, well, after some tests, i change GameType option in worldserver.conf from 1 to 0 and the problem is now solved, but.... any ideas why happen this?
Thank you.
Dunno, my gametype is 1.
this issue is no longer about instance->GetPlayers() returning an empty container ? did you debug the code to ensure it was actually returning an empty container ?
Hello, this happen with:
GridUnload = 0
Right. GridUnload = 0
is not the default setting, so this could explain why others could not replicate it.
Please stop @'ing me or I'll block you. I already get notifications about issues I subscribe to.
@n4ndo : is this issue still valid? If it is no longer showing up with default settings, it should be closed.
Hello @tkrokli i still have GridUnload = 1, if you want i can test this again.
Yes. please. If you can test with one of the new commits and confirm that it still is the same with default settings, it would be useful in order to keep the issue up to date so we know it hasn't changed yet.
I presume you know that issues should be confirmed on straight, unmodified TC source with no addons.
Any news @n4ndo ?
No answer after near 4 months, closing, if this bug is still valid plz open a new ticket with one updated core.
Description: instance->GetPlayers(); Current behaviour: When called from "void OnCreatureCreate(Creature* creature)" in Scripts, "players" is allways empty. Expected behaviour:
"TeamInInstance" should be filled
Any help or suggestions will be grateful
Branch(es): 335/6x 335 TC hash/commit: 7834d33 TDB version: 60 Operating system: Linux