MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides

Homepage Register FAQ Members Mark Forums Read Advertise Marketplace FPSowned


Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > WoW Emulator Server > Emulator Server Guides > Mangos Guides
Reload this Page [GUIDE] Allow players to use a custom flying mount in Azeroth. REQ Source Edits
Mangos Guides This section is for WoW emulated server, Mangos guides.
[NO QUESTIONS HERE]

Reply
 
LinkBack Thread Tools
[GUIDE] Allow players to use a custom flying mount in Azeroth. REQ Source Edits
(#1)
Old
saevic is Offline
Private
Rep Power: 1
Reputation: 17
saevic is on a distinguished road
 
Posts: 9
Join Date: May 2008
Location: Charlotte, NC
Wow Guides [GUIDE] Allow players to use a custom flying mount in Azeroth. REQ Source Edits - 05-30-2008

First things first. It is not possible, even with the latest core of MaNGOS to be able to use the current Outland flying mounts in Azeroth. You can however make your own mount, or edit an existing one that will. Also the mounts can not be summoned like a traditional mount, they have to be equipped like an item. The best way I've found is to make it a trinket.

That's the purpose of this guide, to show you how to add the custom Azeroth-capable mount to your server and what needs to be edited in the MaNGOS source code to make the custom Azeroth-capable mount work.

Okay so MaNGOS first. All these steps are the same for all the latest MaNGOS cores so unless you havn't updated it in a long time (4-5 months) these are the changes you need to make:

Go to Player.cpp and find the following segment of code:
Code:
// remove new continent flight forms
if( !isGameMaster() &&
GetVirtualMapForMapAndZone(GetMapId(),newZone) != 530)
{
  RemoveSpellsCausingAura(SPELL_AURA_MOD_SPEED_MOUNTED_FLIGHT);
  RemoveSpellsCausingAura(SPELL_AURA_FLY);
}
change it like so:
Code:
// remove new continent flight forms
// if( !isGameMaster() &&
// GetVirtualMapForMapAndZone(GetMapId(),newZone) != 530)
// {
//   RemoveSpellsCausingAura(SPELL_AURA_MOD_SPEED_MOUNTED_FLIGHT);
//   RemoveSpellsCausingAura(SPELL_AURA_FLY);
// }
Now go to Spell.cpp and look for this segment of code:
Code:
            
case SPELL_AURA_FLY:
{
  // not allow cast fly spells at old maps by players (all spells is self target)
  if(m_caster->GetTypeId()==TYPEID_PLAYER)
  {
    if( !((Player*)m_caster)->isGameMaster() && 
      GetVirtualMapForMapAndZone(m_caster->GetMapId(),m_caster->GetZoneId()) != 530)
      return SPELL_FAILED_NOT_HERE;
  }
};break;
default:break;
and change it like so:
Code:
            
case SPELL_AURA_FLY:
//{
//  not allow cast fly spells at old maps by players (all spells is self target)
//  if(m_caster->GetTypeId()==TYPEID_PLAYER)
//  {
//    if( !((Player*)m_caster)->isGameMaster() && 
//      GetVirtualMapForMapAndZone(m_caster->GetMapId(),m_caster->GetZoneId()) != 530)
//      return SPELL_FAILED_NOT_HERE;
//  }
//};break;
default:break;
Now the only thing to do is either edit an existing mount so the players can use it in a trinket spot or add your own. Keep in mind if you add your own it will show up in the players backpack as a question mark due to changes Blizzard made to the client in 2.4.

To edit an existing mount make the following changes to the item in the item_template table. To find the item id for the mount you are changing either look the mount up in-game on a gm account (.lookup item) or look it up on thottbot whichever you prefer.

Class = 4
Flags = 64
Inventory = 12 (so it will be equippable in the trinket slot)
RequiredSkill = 0 (so players don't have to have the riding skill to use it)
RequiredSkillRank = 0 (so players don't have to have a certain rank of riding skill to use it)
spelltrigger_1 = 1 (make the mount active on equip)
spellcategory_1 = 0
spellcategorycooldown_1 = -1

Or you can add a new item to the item_template file just take an existing mount, and add it as a new item then make the changes above. Or you can go here ( hxxp://filebeam.com/506f5d57f390c803ce9d764c09529bbf ) and download the .sql file where I've done that for you; just run the query inside the file. It will add the new mount with item id 99999.

I've also gone ahead and compiled the latest MaNGOS core with the source code revisions already in them. You can find that here hxxp://filebeam.com/e09c94ccf71d29deaf80ddd43d88e491



I would personally recommend that you only give this item out to players who deserve it. Due to the nature of the mount being equippable the movement speed increase will stack with normal mounts. Also since Blizzard has not redone the Azeroth maps you'll find that if you go too high in a city for example the textures will disappear.

If there are any questions or problems I will do my best to address them in a timely manner. Enjoy!

Last edited by saevic; 05-30-2008 at 03:28 PM. Reason: found a few typos
Reply With Quote

Donate to remove ads.
(#2)
Old
davechaos's Avatar
davechaos is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 1
davechaos is an unknown quantity at this point
 
Posts: 5
Join Date: Jun 2008
Location: UK
06-07-2008

Ok done this but only GM's can use flying mounts! so how do we get our normal players flying?
Reply With Quote
(#3)
Old
hotandsekc is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 1
hotandsekc is an unknown quantity at this point
 
Posts: 101
Join Date: May 2008
06-10-2008

"Go to Player.cpp and find the following segment of code:"
where do i find this?...
Reply With Quote
(#4)
Old
plokami's Avatar
plokami is Offline
Sergeant
Rep Power: 2
Reputation: 14
plokami is on a distinguished road
 
Posts: 37
Join Date: May 2007
Location: at a cig factory
06-25-2008

thanx for help


Reply With Quote
(#5)
Old
Pascal257 is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 2
Reputation: 1
Pascal257 is an unknown quantity at this point
 
Posts: 12
Join Date: Sep 2007
08-22-2008

Oh thanks! I only found some tutorials regarding flying mounts for ascent. Finally flying mounts in the "old world"
Reply With Quote
(#6)
Old
dominick1233 is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 1
dominick1233 is an unknown quantity at this point
 
Posts: 7
Join Date: Dec 2007
09-06-2008

ty its very useful
Reply With Quote
(#7)
Old
iamunk is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 0
Reputation: 1
iamunk is an unknown quantity at this point
 
Posts: 1
Join Date: Sep 2008
2 Weeks Ago

This is the most useful thing I have seen yet. I encountered an initial bug where the mount would constantly roar when flying, but zoning from Silvermoon/Ghostlands to the Plaguelands seemed to have fixed this.

Thanks!

Edit:

I managed to reproduce this issue. It seems to occur in areas added to Azeroth in Burning Crusade any time I use the item in these zones.

Last edited by iamunk; 2 Weeks Ago at 01:32 AM.
Reply With Quote
re
(#8)
Old
stevamirkovic is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 1
stevamirkovic is an unknown quantity at this point
 
Posts: 22
Join Date: Aug 2008
re - 1 Week Ago

hmm, its good
Reply With Quote
(#9)
Old
Nick_Da_Maco's Avatar
Nick_Da_Maco is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 6
Nick_Da_Maco is an unknown quantity at this point
 
Posts: 71
Join Date: Jun 2008
1 Week Ago

Nicee i was looking for something like this now i can make it like a gm item
Reply With Quote
Reply

Donate to remove ads.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344