Jump to content
TrinityCore
Sign in to follow this  
zamalaev

Phasing System

Recommended Posts

I had a small idea, why not do reading phases from the database, for example, such as reading spawnDifficulty

example `PhaseID` varchar(255) NOT NULL DEFAULT '0'
(phase, phase, phase,)

maybe i am wrong but then we can avoid random duplicates or large amounts of data

Share this post


Link to post
Share on other sites
some more information if you let

packet

ServerToClient: SMSG_PHASE_SHIFT_CHANGE (0x2577) Length: 59 ConnIdx: 0 Time: 12/10/2018 22:16:12.995 Number: 347
Client: Full: 0x0815E8000000000000000000073DC84B Player/0 R1402/S0 Map: Eastern Kingdoms Low: 121489483
PhaseShiftFlags: 24
PhaseShiftCount: 6
PersonalGUID: Full: 0x0
[0] PhaseFlags: 1
[0] Id: 4899
[1] PhaseFlags: 1
[1] Id: 5114
[2] PhaseFlags: 1
[2] Id: 5115
[3] PhaseFlags: 1
[3] Id: 5116
[4] PhaseFlags: 1
[4] Id: 5324
[5] PhaseFlags: 1
[5] Id: 5837
PhaseGroup: 895 Phases: 5116 - 5114 - 5115
it is interesting and how to determine which phase the player is currently in from 14 phases
and field `PhaseUseFlag` = [0] PhaseFlags: 1 or PhaseShiftFlags: 24?


Of course, you can make a hard hack for all 14 phases, create a phase group in the hotfix database and use it then we get the minimum records in the database and fast phase switching using
 condition or spell
 
Edited by zamalaev

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...