Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Miscellaneous => Topic started by: dbbaker01 on August 18, 2015, 12:44:07 am

Title: [SOLVED] How to remove zone limit from spells?
Post by: dbbaker01 on August 18, 2015, 12:44:07 am
Some spells in the game are awesome, but unfortunately some may be have the "May only be used in {zone}." thing.

Take this one (http://www.wowhead.com/spell=42786/echo-of-ymiron) for instance. When you cast it, it gives you that nice white and blurry vista. You know, the thing where you can't see anything 10 feet away 'cause of the intense white and everything has a blur to it that keeps bouncing around? Yeah, that.
Sadly, it's only usable in Wyrmskull Village.

I tried a few things like changing AreaGroup to 0 in the spell's dbc. Also looked for something in SQL but nothing. No matter what, though, it would behave the same way when I logged on and tested it: I click it, and it just gives me the big fat "You need to be in Wyrmskull Village." sentence in red.

Can someone help me out with this? Thanks. :D
Title: Re: [NOT SOLVED] How to remove zone limit from spells?
Post by: schlumpf on August 18, 2015, 02:42:06 am
area group seems to be exactly the right thing. did you update it on both, server and client?
Title: Re: [NOT SOLVED] How to remove zone limit from spells?
Post by: dbbaker01 on August 18, 2015, 05:22:05 am
Client dbc never seems to be loaded by world.exe so I assumed they weren't needed. Guess I was wrong. Thanks, it works now.
Title: Re: [NOT SOLVED] How to remove zone limit from spells?
Post by: Kaev on August 18, 2015, 07:44:44 am
Quote from: "dbbaker01"
Client dbc never seems to be loaded by world.exe so I assumed they weren't needed. Guess I was wrong. Thanks, it works now.
The worldserver doesn't load the client dbc, but actually your client also checks if you can cast your stuff.
I think they do that to save some network traffic. If the client already said that you can't cast it, then you don't need to ask the server if you can cast it.  :P
Title: Re: [SOLVED] How to remove zone limit from spells?
Post by: Amaroth on August 19, 2015, 07:06:41 pm
http://www.pxr.dk/wowdev/wiki/index.php?title=Spell.dbc (http://www.pxr.dk/wowdev/wiki/index.php?title=Spell.dbc" onclick="window.open(this.href);return false;)
Code: [Select]
  uint32      Attributes;                                     // 4        m_attribute
   uint32      AttributesEx;                                   // 5        m_attributesEx
   uint32      AttributesEx2;                                  // 6        m_attributesExB
   uint32      AttributesEx3;                                  // 7        m_attributesExC
   uint32      AttributesEx4;                                  // 8        m_attributesExD
   uint32      AttributesEx5;                                  // 9        m_attributesExE
   uint32      AttributesEx6;                                  // 10       m_attributesExF
0 based spell.dbc. It is somewhere there, as far as I know. At least outland-limited spells (fly mounts) are.