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: [SOLVED] How to remove zone limit from spells?  (Read 882 times)

dbbaker01

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 18
    • View Profile
[SOLVED] How to remove zone limit from spells?
« 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 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
« Last Edit: August 18, 2015, 05:22:28 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [NOT SOLVED] How to remove zone limit from spells?
« Reply #1 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?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

dbbaker01

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 18
    • View Profile
Re: [NOT SOLVED] How to remove zone limit from spells?
« Reply #2 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Kaev

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 308
    • View Profile
Re: [NOT SOLVED] How to remove zone limit from spells?
« Reply #3 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [SOLVED] How to remove zone limit from spells?
« Reply #4 on: August 19, 2015, 07:06:41 pm »
http://www.wowdev.wiki/index.php?title=Spell.dbc
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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz