Skip to content

Commit

Permalink
Remove the invaders world state if the player leaves the trial of str…
Browse files Browse the repository at this point in the history
…ength.
  • Loading branch information
AnchyDev committed Mar 9, 2024
1 parent 8ea6394 commit c81372a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/scripts/ToSPlayerScript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,20 @@ bool ToSPlayerScript::OnBeforeTeleport(Player* player, uint32 mapId, float /*x*/

sToSMapMgr->ClearCurses(player);

// Disable the invaders worldstate.
{
WorldPacket packet(SMSG_INIT_WORLD_STATES);

packet << uint32(534); // map
packet << uint32(3606); // zone
packet << uint32(0); // ukn1
packet << uint16(1); // ukn2
packet << uint32(2453); // stateId
packet << uint32(0); // stateValue

player->SendDirectMessage(&packet);
}

return true;
}

Expand Down

0 comments on commit c81372a

Please sign in to comment.