Network: WoW Gold | WoW Accounts | MPS Games | FPSowned
MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides
Homepage »      Register »      Hall of Fame »      Ranks And Awards »      Advertise »      Marketplace »
 
Sign up



Do you like this excellent information? Then Donate HERE to remove ads and support the MMOwned community.


Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > WoW Emulator Server > Emulator Server Guides > Mangos Guides

Mangos Guides This section is for WoW emulated server, Mangos guides.
[NO QUESTIONS HERE]

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

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 04:28 PM. Reason: found a few typos
Reply With Quote


Donate to remove ads, get your "DONATOR title, and get access to the MMOwned community's elite Shoutbawx.

  #2  
Old 06-08-2008
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)
  
 
Join Date: Jun 2008
Location: UK
Posts: 5
Reputation: 1
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 06-10-2008
hotandsekc is offline.
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
  
 
Join Date: May 2008
Posts: 101
Reputation: 1
"Go to Player.cpp and find the following segment of code:"
where do i find this?...
Reply With Quote
  #4  
Old 06-25-2008
plokami's Avatar
plokami is offline.
Sergeant
  
 
Join Date: May 2007
Location: at a cig factory
Posts: 39
Reputation: 14
thanx for help
__________________
Reply With Quote
  #5  
Old 08-22-2008
Pascal257 is offline.
New User
  
 
Join Date: Sep 2007
Posts: 16
Reputation: 2
Points: 406, Level: 1
Points: 406, Level: 1 Points: 406, Level: 1 Points: 406, Level: 1
Level up: 2%, 494 Points needed
Level up: 2% Level up: 2% Level up: 2%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Oh thanks! I only found some tutorials regarding flying mounts for ascent. Finally flying mounts in the "old world"
Reply With Quote
  #6  
Old 09-06-2008
dominick1233's Avatar
dominick1233 is offline.
Corporal
  
 
Join Date: Dec 2007
Posts: 31
Reputation: 6
Points: 455, Level: 1
Points: 455, Level: 1 Points: 455, Level: 1 Points: 455, Level: 1
Level up: 11%, 445 Points needed
Level up: 11% Level up: 11% Level up: 11%
Activity: 1.0%
Activity: 1.0% Activity: 1.0% Activity: 1.0%

ty its very useful
Reply With Quote
  #7  
Old 09-22-2008
iamunk is offline.
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
  
 
Join Date: Sep 2008
Posts: 1
Reputation: 1
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; 09-23-2008 at 02:32 AM.
Reply With Quote
  #8  
Old 09-29-2008
stevamirkovic is offline.
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
  
 
Join Date: Aug 2008
Posts: 27
Reputation: 1
Points: 370, Level: 1
Points: 370, Level: 1 Points: 370, Level: 1 Points: 370, Level: 1
Level up: 93%, 30 Points needed
Level up: 93% Level up: 93% Level up: 93%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
re

hmm, its good
Reply With Quote
  #9  
Old 10-02-2008
Nick_Da_Maco's Avatar
Nick_Da_Maco is offline.
Master Sergeant
  
 
Join Date: Jun 2008
Posts: 104
Reputation: 13
Nicee i was looking for something like this now i can make it like a gm item
Reply With Quote
  #10  
Old 10-28-2008
lordm0 is offline.
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
  
 
Join Date: Aug 2008
Location: The Outland
Posts: 17
Reputation: 1
Where do I find Player.cpp
(I'm using 711's repack if you need to know)
Reply With Quote
Reply

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



All times are GMT -4. The time now is 07:01 PM.




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.1

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 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490