Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Miscellaneous => Tutorials => Topic started by: akriso on January 18, 2013, 05:00:49 pm

Title: [TUTORIAL] Screen Effect.
Post by: akriso on January 18, 2013, 05:00:49 pm
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.
(http://i.imgur.com/vMf5Z.png)

Next, you need to convert ScreenEffect.dbc with dbcUTIL

(http://i.imgur.com/whb4W.png)


Code: [Select]
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

Let's create a test for the effect.

Code: [Select]
900,"test@akriso-2",3,-872349952,0x2,0,,-1,0,0,
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: [Select]
902,"test@akriso-3",2,-176267558,0x2,0,,-1,0,0, (http://i.imgur.com/WhOtq.jpg)

Code: [Select]
900,"test@akriso-2",3,-872349952,0x2,0,,-1,0,0, (http://i.imgur.com/lDMpu.jpg)
Title: Re: [TUTORIAL] Screen Effect.
Post by: akriso on January 18, 2013, 05:10:08 pm
If you have questions about spell.dbc screenEffect.dbc or you can ask them in the thread.
Title: Re: [TUTORIAL] Screen Effect.
Post by: Steff on January 19, 2013, 01:09:09 am
Thanks for this tutorial :)
Title: Re: [TUTORIAL] Screen Effect.
Post by: ferreon on January 20, 2013, 11:57:13 am
I have a question, where do you define that this spell activated when u enter in a custom continent?

Thanks.
Title: Re: [TUTORIAL] Screen Effect.
Post by: akriso on January 20, 2013, 10:31:03 pm
Quote from: "ferreon"
I have a question, where do you define that this spell activated when u enter in a custom continent?

Thanks.
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.
Title: Re: [TUTORIAL] Screen Effect.
Post by: XxXGenesisXxX on January 21, 2013, 01:09:59 am
Looks pretty good akriso. Thanks for the guide :)
Title: Re: [TUTORIAL] Screen Effect.
Post by: ferreon on January 21, 2013, 03:03:12 pm
Quote from: "akriso"
Quote from: "ferreon"
I have a question, where do you define that this spell activated when u enter in a custom continent?

Thanks.
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.

Thanks, are u spanish or...¿
Title: Re: [TUTORIAL] Screen Effect.
Post by: akriso on January 21, 2013, 03:45:00 pm
Quote from: "ferreon"

Thanks, are u spanish or...¿
Russian  :)
Title: Re: [TUTORIAL] Screen Effect.
Post by: ferreon on January 21, 2013, 04:36:13 pm
I think is necessary extract custom vmaps cause spell_area need a Area Id, and if you havent got it, it wont work, if someone can confirm it...

Thanks.
Title: Re: [TUTORIAL] Screen Effect.
Post by: Ascathos on January 21, 2013, 05:15:10 pm
Quote from: "ferreon"
I think is necessary extract custom vmaps cause spell_area need a Area Id, and if you havent got it, it wont work, if someone can confirm it...

Thanks.
How are vmaps even remotely related to areaid if you want to create a screen effect for a spell ?
Title: Re: [TUTORIAL] Screen Effect.
Post by: schlumpf on January 21, 2013, 05:18:06 pm
Quote from: "Ascathos"
Quote from: "ferreon"
I think is necessary extract custom vmaps cause spell_area need a Area Id, and if you havent got it, it wont work, if someone can confirm it...

Thanks.
How are vmaps even remotely related to areaid if you want to create a screen effect for a spell ?
Where else would the server know the area id from?!
Title: Re: [TUTORIAL] Screen Effect.
Post by: akriso on January 21, 2013, 05:21:39 pm
Here is a video showing the work of the example dungeon Zul'Gurub, I used only 2 new dbc file and line in the sql shown above.

http://www.youtube.com/watch?v=yMvrWDWkCe8
Title: Re: [TUTORIAL] Screen Effect.
Post by: ferreon on January 21, 2013, 05:44:00 pm
Quote from: "akriso"
Here is a video showing the work of the example dungeon Zul'Gurub, I used only 2 new dbc file and line in the sql shown above.

http://www.youtube.com/watch?v=yMvrWDWkCe8

Yes, thanks, but Zulgurub have got a blizzlike Area Id's so if you want to put the screen effect in a custom map, you need to extract custom vmaps, to do that the server recognise the area id of the new zone.

Thanks. when i get it i will make a tutorial.
Title: Re: [TUTORIAL] Screen Effect.
Post by: akriso on January 21, 2013, 05:52:46 pm
to create AreaID not need Vmaps ...
Title: Re: [TUTORIAL] Screen Effect.
Post by: ferreon on January 21, 2013, 05:55:31 pm
Quote from: "akriso"
to create AreaID not need Vmaps ...

Create areaid is areatable, but when u put .gps in custom zone dont recognise Vmaps, so dont recognise AreaId, try putting .gps in a blizzlike zone and in a custom zone, see the diference, i think this is the error.

Thanks.
Title: Re: [TUTORIAL] Screen Effect.
Post by: Ascathos on January 21, 2013, 05:59:32 pm
Quote from: "schlumpf"
Quote from: "Ascathos"
Quote from: "ferreon"
I think is necessary extract custom vmaps cause spell_area need a Area Id, and if you havent got it, it wont work, if someone can confirm it...

Thanks.
How are vmaps even remotely related to areaid if you want to create a screen effect for a spell ?
Where else would the server know the area id from?!
I am pretty sure you mean maps, because vmaps are not even calling the area ids within extracting and assembling process.
Title: Re: [TUTORIAL] Screen Effect.
Post by: ferreon on January 21, 2013, 06:42:44 pm
In game said: "There arent Vmaps for this zone" instead of AreaID