Forum > Tutorials

[TUTORIAL] Screen Effect.

(1/4) > >>

akriso:
First we need to create a spell that will hang up on us effect.

The figure below outlines all that is necessary for that would spell overlay effects.


Next, you need to convert ScreenEffect.dbc with dbcUTIL





--- Code: ---1 ID int
2 Name str
3 Type int
-  0: ffxEffectGlow
-  1: ffxEffectDeath
-  2: ffxEffectNetherWorld
-  3: ffxEffectSwirlingFog
4 Col color, see in hex. rrggbbxx
5 edge int Screen Edge Size
6 bw int (the higher this is.. the more Black and White the screen will go)
7 unk null
8 LightParams iRefId
9 SoundAmbience iRefId
10 ZoneMusic iRefId

--- End code ---

Let's create a test for the effect.


--- Code: ---900,"test@akriso-2",3,-872349952,0x2,0,,-1,0,0,

--- End code ---
900 - ID;
test@akriso-2 - Name;
3 - Effect Swirling Fog;
-872349952  - rrggbbxx;
0x2 - Screen Edge Size;
0 - bw int (the higher this is.. the more Black and White the screen will go);
_  - null;
-1 -  LightParams;
0 - SoundAmbience;
0 - ZoneMusic.

Save both DBC file, restart the server and make a patch for the client.


--- Code: --- 902,"test@akriso-3",2,-176267558,0x2,0,,-1,0,0,
--- End code ---



--- Code: --- 900,"test@akriso-2",3,-872349952,0x2,0,,-1,0,0,
--- End code ---

akriso:
If you have questions about spell.dbc screenEffect.dbc or you can ask them in the thread.

Steff:
Thanks for this tutorial :)

ferreon:
I have a question, where do you define that this spell activated when u enter in a custom continent?

Thanks.

akriso:

--- Quote from: "ferreon" ---I have a question, where do you define that this spell activated when u enter in a custom continent?

Thanks.
--- End quote ---
as I said - I do not know much English, but understood how you want to learn how to do so, that would spell-activated when a player enters a certain zone.

Here is a chunk of code from TrinityCore


REPLACE INTO `spell_area` VALUES ('Spell ID ', 'Area ID, '0', '0', '0', '0', '2', '1', '64', '11');

Spell will be applied automatically when you log into the zone and can not be canceled.

Navigation

[0] Message Index

[#] Next page

Go to full version