This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [TUTORIAL] Screen Effect.  (Read 6660 times)

akriso

  • Contributors
  • Loreweaver
  • *****
  • Posts: 107
    • View Profile
[TUTORIAL] Screen Effect.
« 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.


Next, you need to convert ScreenEffect.dbc with dbcUTIL




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,

Code: [Select]
900,"test@akriso-2",3,-872349952,0x2,0,,-1,0,0,
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

akriso

  • Contributors
  • Loreweaver
  • *****
  • Posts: 107
    • View Profile
Re: [TUTORIAL] Screen Effect.
« Reply #1 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [TUTORIAL] Screen Effect.
« Reply #2 on: January 19, 2013, 01:09:09 am »
Thanks for this tutorial :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

ferreon

  • Contributors
  • Loreweaver
  • *****
  • Posts: 104
    • View Profile
Re: [TUTORIAL] Screen Effect.
« Reply #3 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

akriso

  • Contributors
  • Loreweaver
  • *****
  • Posts: 107
    • View Profile
Re: [TUTORIAL] Screen Effect.
« Reply #4 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

XxXGenesisXxX

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 204
    • View Profile
Re: [TUTORIAL] Screen Effect.
« Reply #5 on: January 21, 2013, 01:09:59 am »
Looks pretty good akriso. Thanks for the guide :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

ferreon

  • Contributors
  • Loreweaver
  • *****
  • Posts: 104
    • View Profile
Re: [TUTORIAL] Screen Effect.
« Reply #6 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...¿
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

akriso

  • Contributors
  • Loreweaver
  • *****
  • Posts: 107
    • View Profile
Re: [TUTORIAL] Screen Effect.
« Reply #7 on: January 21, 2013, 03:45:00 pm »
Quote from: "ferreon"

Thanks, are u spanish or...¿
Russian  :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

ferreon

  • Contributors
  • Loreweaver
  • *****
  • Posts: 104
    • View Profile
Re: [TUTORIAL] Screen Effect.
« Reply #8 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [TUTORIAL] Screen Effect.
« Reply #9 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 ?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [TUTORIAL] Screen Effect.
« Reply #10 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?!
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

akriso

  • Contributors
  • Loreweaver
  • *****
  • Posts: 107
    • View Profile
Re: [TUTORIAL] Screen Effect.
« Reply #11 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.

« Last Edit: January 01, 1970, 01:00:00 am by Admin »

ferreon

  • Contributors
  • Loreweaver
  • *****
  • Posts: 104
    • View Profile
Re: [TUTORIAL] Screen Effect.
« Reply #12 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.


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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

akriso

  • Contributors
  • Loreweaver
  • *****
  • Posts: 107
    • View Profile
Re: [TUTORIAL] Screen Effect.
« Reply #13 on: January 21, 2013, 05:52:46 pm »
to create AreaID not need Vmaps ...
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

ferreon

  • Contributors
  • Loreweaver
  • *****
  • Posts: 104
    • View Profile
Re: [TUTORIAL] Screen Effect.
« Reply #14 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »