Forum > Serverside Modding
Fly mount on Azeroth ( or Own map )
<< < (2/2)
Ascathos:
After doing some tests, I have to agree and thank Vel. This one is doing the job and you have to set additional 0x400 (or 0x4400) bytes to the 5th point, flag. Note that this has to be done individual.
Moving from an area providing flight into one without flight doesn't disable or deactivate already activated ones. You can not re-apply flight in areas where it is not enabled. Enabling flight in Azeroth or custom maps might always result in a buggy character, as they gain access to areas beyond a players reach. Choose wisely how and what you do.
sevi:
the area must have the right areaflag, see above me.
but this allone is not enough under trinitycore. the core self is checking can the player fly in this map. so you will fly in a custom map, then must you change some thinks in the core files from trinitycore.
spells_generic.cpp
here you search following line in this cpp:
--- Code: ---if (map == 530 || (map == 571 && target->HasSpell(SPELL_COLD_WEATHER_FLYING))) --- End code ---
this change you to:
--- Code: ---if (map == 530 || (map == 571 && target->HasSpell(SPELL_COLD_WEATHER_FLYING)) || map = yourmapid) --- End code ---
but this is not all. in the spellinfo.cpp ist following checking:
--- Code: ---!mapEntry->IsContinent() --- End code --- so your map is not a continent for the core, switch in this cpp:
DBCStructure.h
here search you following code line:
--- Code: ---bool IsContinent() const { - return MapID == 0 || MapID == 1 || MapID == 530 || MapID == 571; + return MapID == 0 || MapID == 1 || MapID == 530 || MapID == 571; }
--- End code ---
this change you in this:
--- Code: --- bool IsContinent() const { - return MapID == 0 || MapID == 1 || MapID == 530 || MapID == 571; + return MapID == 0 || MapID == 1 || MapID == 530 || MapID == 571 || MapID == yourmapid; }
--- End code ---
Now you compiling the core and then you can fly in custom map. before extract the current map files whit the new map/areas.
Navigation
[0] Message Index
[*] Previous page
|