Forums WoW Modding Tutorials Miscellaneous [Archive] [3.3.5] TC - Make Phase 0 possible

[Archive] [3.3.5] TC - Make Phase 0 possible

[Archive] [3.3.5] TC - Make Phase 0 possible

rektbyfaith
Administrator
0
11-04-2025, 05:04 PM
#1
Archived author: dokuro • Posted: 2025-11-04T18:04:39.068868
Original source

TC - Make Phase 0 possible

Summary:

Tools

The Core

The Database

1. Tools:

A functional core

A text editor (Atom, Visual Code, SublimeText)

A SGDB (Navicat, SQLYog etc.)

A machine to compile ..

2. The Core:

You will go to:
Quote: src/server/game/Globals/ObjectMgr.cpp

Click to expand...
You are looking for the line:
Quote: if (data.phaseMask == 0)

Click to expand...
And you comment on the whole block:

Imgur: The magic of the Internet

And the same for GameObject’s which is in the same file:

Imgur: The magic of the Internet

And hop you can recompile and besides under Linux and Windows, do not repeat Cmake, no need, you build and it's finished

3. The database:

Very simple when you want an NPC to be in phase 0 you will have to execute this code in your DB:
Quote: SET @GUID := ;

UPDATE creature SET spawnMask = 0, phaseMask = 0 WHERE guid = @GUID;

Click to expand...
And if you want it to be a GameObject in phase 0:
Quote: SET @GUID := ;

UPDATE gameobject SET spawnMask = 0, phaseMask = 0 WHERE guid = @GUID;

Click to expand...
Credit to : iThorgrim from Open-Wow
rektbyfaith
11-04-2025, 05:04 PM #1

Archived author: dokuro • Posted: 2025-11-04T18:04:39.068868
Original source

TC - Make Phase 0 possible

Summary:

Tools

The Core

The Database

1. Tools:

A functional core

A text editor (Atom, Visual Code, SublimeText)

A SGDB (Navicat, SQLYog etc.)

A machine to compile ..

2. The Core:

You will go to:

Quote: src/server/game/Globals/ObjectMgr.cpp

Click to expand...
You are looking for the line:
Quote: if (data.phaseMask == 0)

Click to expand...
And you comment on the whole block:

Imgur: The magic of the Internet

And the same for GameObject’s which is in the same file:

Imgur: The magic of the Internet

And hop you can recompile and besides under Linux and Windows, do not repeat Cmake, no need, you build and it's finished

3. The database:

Very simple when you want an NPC to be in phase 0 you will have to execute this code in your DB:
Quote: SET @GUID := ;

UPDATE creature SET spawnMask = 0, phaseMask = 0 WHERE guid = @GUID;

Click to expand...
And if you want it to be a GameObject in phase 0:
Quote: SET @GUID := ;

UPDATE gameobject SET spawnMask = 0, phaseMask = 0 WHERE guid = @GUID;

Click to expand...
Credit to : iThorgrim from Open-Wow

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)